/*!
 * ChordMate CSS - Custom ChordPro styling
 * Generated by ChordMate library
 * 
 * Clean, semantic CSS for ChordPro songs with responsive design.
 * Supports chord positioning, vocal annotations, and tablatures.
 */

/* ==========================================================================
   Catalog Page Styles
   ========================================================================== */

.song-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.song-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.song-card .card {
    border-width: 2px;
    transition: border-color 0.2s ease-in-out;
}

.song-card .card.border-success {
    border-color: #198754 !important;
}

.song-card .card.border-warning {
    border-color: #ffc107 !important;
}

.song-metadata {
    font-size: 0.85rem;
    line-height: 1.4;
}

.song-metadata .mb-1 {
    margin-bottom: 0.25rem !important;
}

.song-metadata i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

.btn-group .btn {
    border-radius: 0.375rem;
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* ==========================================================================
   Song Container
   ========================================================================== */

.yuk-song {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1em; /* inherit from container to allow dynamic scaling */
    line-height: 1.6;
    color: var(--bs-body-color, #212529);
}

/* ==========================================================================
   Metadata Section
   ========================================================================== */

.yuk-metadata {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.yuk-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--bs-primary, #0d6efd);
}

.yuk-artist {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: var(--bs-secondary, #6c757d);
}

.yuk-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.yuk-meta-item {
    display: inline-flex;
    align-items: center;
}

.yuk-meta-label {
    font-weight: 600;
    color: var(--bs-secondary, #6c757d);
}

.yuk-meta-value {
    color: var(--bs-body-color, #212529);
}

.yuk-key {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background-color: var(--bs-primary, #0d6efd);
    color: white;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.85em;
}

/* ==========================================================================
   Song Content
   ========================================================================== */

.yuk-content {
    margin-top: 1rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.yuk-section {
    margin-bottom: 2rem;
    position: relative;
}

/* Base styling for supported sections */
.yuk-section-verse,
.yuk-section-chorus,
.yuk-section-bridge,
.yuk-section-intro,
.yuk-section-outro,
.yuk-section-tab,
.yuk-section-grid {
    padding-left: 1rem;
}

.yuk-section-label {
    position: absolute;
    left: -12px;
    top: 16px;
    width: 18px;
    height: auto;
    font-weight: bold;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 1);
    writing-mode: horizontal-tb;
    transform: rotate(90deg);
    transform-origin: 9px 0;
    z-index: 10;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    margin: 0;
    padding: 0;
}



.yuk-section-content {
    margin-left: 0;
}

/* Section type styling - Vertical labels in colored borders */

/* Verse sections - Green theme */
.yuk-section-verse {
    border-left: 20px solid rgba(25, 135, 84, 0.3);
}
.yuk-section-verse .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Chorus sections - Orange/Yellow theme */
.yuk-section-chorus {
    border-left: 20px solid rgba(255, 193, 7, 0.4);
}
.yuk-section-chorus .yuk-section-label {
    color: white;
}


/* Bridge sections - Cyan theme */
.yuk-section-bridge {
    border-left: 20px solid rgba(13, 202, 240, 0.4);
}
.yuk-section-bridge .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Intro sections - Blue theme */
.yuk-section-intro {
    border-left: 20px solid rgba(13, 110, 253, 0.3);
}
.yuk-section-intro .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Outro sections - Purple theme */
.yuk-section-outro {
    border-left: 20px solid rgba(111, 66, 193, 0.3);
}
.yuk-section-outro .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Tab sections - Orange theme */
.yuk-section-tab {
    border-left: 20px solid rgba(255, 149, 0, 0.3);
}
.yuk-section-tab .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Grid sections - Purple theme */
.yuk-section-grid {
    border-left: 20px solid rgba(102, 16, 242, 0.3);
}
.yuk-section-grid .yuk-section-label {
    color: rgba(255, 255, 255, 0.9);
}


/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .yuk-section-verse {
        border-left-color: rgba(25, 135, 84, 0.5);
    }
    
    .yuk-section-chorus {
        border-left-color: rgba(255, 193, 7, 0.6);
    }
    .yuk-section-chorus .yuk-section-label {
        color: rgba(0, 0, 0, 0.9);
    }
    
    .yuk-section-bridge {
        border-left-color: rgba(13, 202, 240, 0.6);
    }
    
    .yuk-section-intro {
        border-left-color: rgba(13, 110, 253, 0.5);
    }
    
    .yuk-section-outro {
        border-left-color: rgba(111, 66, 193, 0.5);
    }
    
    .yuk-section-tab {
        border-left-color: rgba(255, 149, 0, 0.5);
    }
    
    .yuk-section-grid {
        border-left-color: rgba(102, 16, 242, 0.5);
    }
}

/* Grid sections rendered as preformatted monospace */
.yuk-section-grid .yuk-grid-pre {
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: pre;
    background-color: var(--bs-light, #f8f9fa);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0 0.75rem 0;
    overflow-x: auto;
}

/* Tab sections - remove conflicting border from tablature elements */
.yuk-section-tab .yuk-tablature {
    border: none;
}



/* ==========================================================================
   Lines
   ========================================================================== */

.yuk-line {
    margin-bottom: 0.25rem;
    min-height: 1.2em;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.yuk-line-empty {
    height: 0.8em;
    margin-bottom: 0.8rem;
}

.yuk-line-comment {
    font-style: italic;
    color: var(--bs-secondary, #6c757d);
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-left: 4px solid #959fa7; /* Bande gauche grise pour cohérence avec highlight */
    border-radius: 0.25rem;
}

.yuk-line-lyrics {
    position: relative;
}

/* Space-based positioning ChordPro layout - reliable */
.yuk-line-chordpro-spaces {
    font-family: monospace;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.yuk-line-chords-spaces {
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    line-height: 1.2;
    margin-bottom: 0.05em;
    height: 1.2em; /* Fixed height to prevent shifting */
    white-space: pre; /* Preserve spaces */
}

.yuk-line-annotations-spaces {
    font-size: 0.7em;
    color: var(--bs-secondary, #6c757d);
    line-height: 1;
    margin-bottom: 0.05em;
    height: 1em; /* Fixed height to prevent shifting */
    white-space: pre; /* Preserve spaces */
}

.yuk-line-lyrics-spaces {
    color: var(--bs-body-color, #212529);
    line-height: 1.2;
}



.yuk-spacer {
    display: inline-block;
    height: 1em;
}

/* Empty row placeholder */
.yuk-line-chords:empty::after,
.yuk-line-annotations:empty::after {
    content: "\00a0"; /* Non-breaking space to preserve height */
    visibility: hidden;
}

.yuk-line-tab {
    margin: 1rem 0;
}

/* Comment directives */
.yuk-line-highlight {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    font-style: italic;
    color: #856404;
}



/* Comment directive variations - inherit base style and add specific modifications */
.yuk-line-comment_italic {
    font-style: italic;
}

.yuk-line-comment_box {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem; /* Slightly more padding for boxed style */
}

/* Highlight sections */
.yuk-section-highlight {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.yuk-section-highlight .yuk-section-content {
    background: none;
    padding: 0;
}

/* ==========================================================================
   Chords
   ========================================================================== */

.yuk-chord {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85em;
    color: var(--bs-primary, #0d6efd);
    margin-right: 0.125rem;
    position: relative;
    top: -0.25em;
    background-color: rgba(13, 110, 253, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Timing part of a chord, e.g., the ½ in [G:½] */
.yuk-chord-timing {
    margin-left: 0.15em;
    color: #446; /* Dark purple */
    font-weight: 300;
    font-family: monospace;
}

.yuk-chord:hover {
    background-color: rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   Lyrics
   ========================================================================== */

.yuk-lyrics {
    display: inline;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==========================================================================
   Annotations (Classic and Vocal)
   ========================================================================== */

.yuk-annotation {
    display: inline-block;
    font-style: italic;
    font-size: 0.7em;
    color: var(--bs-secondary, #6c757d);
    cursor: help;
}

/* ==========================================================================
   Vocal Annotations
   ========================================================================== */

.yuk-vocal {
    display: inline-block;
    font-weight: 600;
    font-size: 0.7em;
    border-radius: 0.25rem;
    padding: 0.05rem 0.25rem;
    line-height: 1;
    cursor: help;
}

/* Category palettes for vocal annotations (badge-like, no borders) */
/* Dynamics: amber theme */
.yuk-vocal-forte,
.yuk-vocal-piano,
.yuk-vocal-crescendo,
.yuk-vocal-decrescendo {
    background-color: rgba(255, 193, 7, 0.18);
    color: #6b3f00;
}

/* Rhythm / articulation: green/teal theme */
.yuk-vocal-hold,
.yuk-vocal-staccato,
.yuk-vocal-pause {
    background-color: rgba(25, 135, 84, 0.15);
    color: #0f5132;
}

/* Pitch: violet theme */
.yuk-vocal-up,
.yuk-vocal-down,
.yuk-vocal-vibrato {
    background-color: rgba(102, 16, 242, 0.15);
    color: #4a148c;
}

.yuk-vocal:hover { filter: brightness(0.95); }

/* ==========================================================================
   Tablatures
   ========================================================================== */

.yuk-tablature {
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: var(--yuk-tab-line-height, 1.2);
    background-color: var(--bs-light, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-left: 3px solid var(--bs-secondary, #6c757d);
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
    color: var(--bs-body-color, #212529);
    background-image: none; /* remove helper grid lines */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .yuk-song {
        font-size: 0.875em; /* 14px equivalent but respects parent scaling */
    }
    
    .yuk-title {
        font-size: 1.5rem;
    }
    
    .yuk-artist {
        font-size: 1.1rem;
    }
    
    .yuk-meta-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .yuk-chord {
        font-size: 0.8em;
        top: -0.2em;
    }
    
    .yuk-tablature {
        font-size: 0.7rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .yuk-song {
        font-size: 0.8125em; /* 13px equivalent but respects parent scaling */
    }
    
    .yuk-section-label {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }
    
    .yuk-chord {
        font-size: 0.75em;
        padding: 0.1rem 0.2rem;
    }
    
    .yuk-vocal {
        font-size: 0.7em;
        padding: 0.1rem 0.2rem;
        margin: 0 0.1rem;
    }
}

/* ==========================================================================
   Global Compact Layout - Reduced spacing for all devices
   ========================================================================== */

/* Minimize main container spacing */
.container-lg {
    padding-left: 0.9rem !important;
    padding-right: 0rem !important;
    padding-top: 0rem !important;
    padding-bottom: 0.5rem !important;
}

/* Minimize song display container and parent card */
.song-display-card,
.card.song-display-card {
    --bs-card-border-width: 0 !important;
    --bs-card-border-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

#songDisplay,
.card-body#songDisplay,
div.card-body#songDisplay {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    --bs-card-border-width: 0 !important;
    --bs-card-border-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Compact song content */
.yuk-song {
    margin: 0 !important;
}

.yuk-metadata {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.25rem !important;
}

.yuk-section {
    margin-bottom: 0.5rem !important;
}

.yuk-line {
    margin-bottom: 0.1rem !important;
}

.yuk-verse, .yuk-chorus, .yuk-bridge {
    margin-bottom: 0.5rem !important;
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

[data-bs-theme="dark"] .yuk-song {
    color: var(--bs-body-color, #dee2e6);
}

[data-bs-theme="dark"] .yuk-metadata {
    border-bottom-color: var(--bs-border-color, #495057);
}





[data-bs-theme="dark"] .yuk-chord {
    background-color: rgba(100, 181, 255, 0.25);
    color: #64b5ff;
}

/* Keep timing black in dark mode too */
[data-bs-theme="dark"] .yuk-chord .yuk-chord-timing {
    color: #000;
}

[data-bs-theme="dark"] .yuk-chord:hover {
    background-color: rgba(100, 181, 255, 0.35);
    color: #7bc3ff;
}

[data-bs-theme="dark"] .yuk-annotation {
    color: #a8b3bd;
}

[data-bs-theme="dark"] .yuk-vocal {
    color: #dee2e6;
}

/* Dark mode vocal annotation categories with improved contrast */
[data-bs-theme="dark"] .yuk-vocal-forte,
[data-bs-theme="dark"] .yuk-vocal-piano,
[data-bs-theme="dark"] .yuk-vocal-crescendo,
[data-bs-theme="dark"] .yuk-vocal-decrescendo {
    background-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

[data-bs-theme="dark"] .yuk-vocal-hold,
[data-bs-theme="dark"] .yuk-vocal-staccato,
[data-bs-theme="dark"] .yuk-vocal-pause {
    background-color: rgba(25, 135, 84, 0.3);
    color: #20c997;
}

[data-bs-theme="dark"] .yuk-vocal-up,
[data-bs-theme="dark"] .yuk-vocal-down,
[data-bs-theme="dark"] .yuk-vocal-vibrato {
    background-color: rgba(102, 16, 242, 0.3);
    color: #a855f7;
}

[data-bs-theme="dark"] .yuk-tablature {
    background-color: var(--bs-dark, #212529);
    border-color: var(--bs-border-color, #495057);
    color: var(--bs-body-color, #dee2e6);
    background-image: none; /* remove helper grid lines in dark mode */
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .yuk-song {
        font-size: 12pt;
        color: black;
    }
    
    .yuk-metadata {
        border-bottom: 1px solid #000;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .yuk-title {
        color: black;
        font-size: 18pt;
    }
    
    .yuk-artist {
        color: #666;
        font-size: 14pt;
    }
    
    .yuk-chord {
        background: none;
        color: black;
        font-weight: bold;
        top: -0.3em;
    }
    .yuk-chord .yuk-chord-timing { color: black; }
    
    .yuk-vocal {
        background: none;
        border: 1px solid #000;
        color: black;
    }
    
    .yuk-tablature {
        background: white;
        border: 1px solid #000;
        color: black;
        background-image: none;
    }
    
    .yuk-section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .yuk-section-label {
        background: none;
        border-left: 3px solid #000;
        color: black;
    }
}

/* --- Text Grid Layout (Final & Corrected) --- */

/* The main container for a line. */
.yuk-line-grid {
    font-family: monospace;
    line-height: var(--yuk-lyrics-line-height, 1.2);
    margin-bottom: 0.5em;
}

/* The layers for chords and annotations.
   `white-space: pre` is CRITICAL for preserving the calculated spaces. */
.yuk-grid-chords,
.yuk-grid-annotations {
    white-space: pre;
}

.yuk-grid-chords {
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

[data-bs-theme="dark"] .yuk-grid-chords {
    color: #64b5ff;
}

.yuk-grid-annotations {
    color: var(--bs-secondary, #6c757d);
    /* font-size is applied to child spans to avoid shrinking spaces */
}

[data-bs-theme="dark"] .yuk-grid-annotations {
    color: #a8b3bd;
}

/* Individual annotation spans are sized down, leaving spaces at full size. */
.yuk-grid-annotations .yuk-annotation,
.yuk-grid-annotations .yuk-vocal {
    font-size: 0.7em;
}

/* The lyrics text itself. */
.yuk-grid-lyrics,
.yuk-grid-lyrics-only {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--bs-body-color, #212529);
}

/* Zero-width slot wrapper to avoid consuming horizontal space */
.yuk-grid-slot { display: inline-block; width: 0; position: relative; overflow: visible; }
.yuk-grid-slot .yuk-chord,
.yuk-grid-slot .yuk-annotation,
.yuk-grid-slot .yuk-vocal { position: absolute; left: 0; white-space: nowrap; }

/* Adjust vertical spacing between layers */
.yuk-grid-chords { margin-bottom: var(--yuk-chords-gap, 0.15em); }
.yuk-grid-annotations { margin-bottom: var(--yuk-annotations-gap, 0.45em); }

/* Nudge elements up a bit to avoid baseline collision */
.yuk-grid-slot .yuk-annotation, .yuk-grid-slot .yuk-vocal { top: -0.1em; }
.yuk-grid-slot .yuk-chord { top: -0.05em; }

.yuk-no-annotations .yuk-grid-chords .yuk-chord { top: -1em; }

/* ==========================================================================
   User-controlled Column Layouts (parity with legacy CSS)
   ========================================================================== */

/* Apply column layouts to the song container wrapper. */
/* Apply columns directly to the inner yuk-content so that sections/lines are fragmented properly */
.chordpro-content-1col .yuk-content { column-count: 1; -webkit-column-count: 1; -moz-column-count: 1; }

.chordpro-content-2col .yuk-content {
    column-count: 2; -webkit-column-count: 2; -moz-column-count: 2;
    column-gap: 30px; -webkit-column-gap: 30px; -moz-column-gap: 30px;
    column-rule: 1px solid #dee2e6;
    column-fill: balance;
}

.chordpro-content-3col .yuk-content {
    column-count: 3; -webkit-column-count: 3; -moz-column-count: 3;
    column-gap: 25px; -webkit-column-gap: 25px; -moz-column-gap: 25px;
    column-rule: 1px solid #dee2e6;
    column-fill: balance;
}

.chordpro-content-4col .yuk-content {
    column-count: 4; -webkit-column-count: 4; -moz-column-count: 4;
    column-gap: 20px; -webkit-column-gap: 20px; -moz-column-gap: 20px;
    column-rule: 1px solid #dee2e6;
    column-fill: balance;
}

/* Responsive auto mode: 2 cols on large, 3 on very large */
@media (min-width: 992px) {
    .chordpro-content-responsive .yuk-content {
        column-count: 2; -webkit-column-count: 2; -moz-column-count: 2;
        column-gap: 30px; -webkit-column-gap: 30px; -moz-column-gap: 30px;
        column-rule: 1px solid #dee2e6;
        column-fill: balance;
    }
}

@media (min-width: 1600px) {
    .chordpro-content-responsive .yuk-content {
        column-count: 3; -webkit-column-count: 3; -moz-column-count: 3;
        column-gap: 25px; -webkit-column-gap: 25px; -moz-column-gap: 25px;
    }
}

/* Common refinements for multi-column modes */
/* Avoid breaking key atomic blocks across columns */
.chordpro-content-2col .yuk-line,
.chordpro-content-2col .yuk-line-grid,
.chordpro-content-2col .yuk-section-label,
.chordpro-content-2col .yuk-metadata,
.chordpro-content-3col .yuk-line,
.chordpro-content-3col .yuk-line-grid,
.chordpro-content-3col .yuk-section-label,
.chordpro-content-3col .yuk-metadata,
.chordpro-content-4col .yuk-line,
.chordpro-content-4col .yuk-line-grid,
.chordpro-content-4col .yuk-section-label,
.chordpro-content-4col .yuk-metadata,
.chordpro-content-responsive .yuk-line,
.chordpro-content-responsive .yuk-line-grid,
.chordpro-content-responsive .yuk-section-label,
.chordpro-content-responsive .yuk-metadata {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Headings span all columns for readability */
.chordpro-content-2col .yuk-content .yuk-title,
.chordpro-content-2col .yuk-content .yuk-artist,
.chordpro-content-2col .yuk-content .yuk-key,
.chordpro-content-3col .yuk-content .yuk-title,
.chordpro-content-3col .yuk-content .yuk-artist,
.chordpro-content-3col .yuk-content .yuk-key,
.chordpro-content-4col .yuk-content .yuk-title,
.chordpro-content-4col .yuk-content .yuk-artist,
.chordpro-content-4col .yuk-content .yuk-key,
.chordpro-content-responsive .yuk-content .yuk-title,
.chordpro-content-responsive .yuk-content .yuk-artist,
.chordpro-content-responsive .yuk-content .yuk-key {
    column-span: all;
    -webkit-column-span: all;
    display: block;
}

/* ==========================================================================
   YouTube Video Responsive Embedding
   ========================================================================== */

.yuk-video-section {
    margin: 1.5rem 0;
    text-align: center;
    column-span: all;
    -webkit-column-span: all;
    display: block;
}

.yuk-video-responsive {
    width: 100%;
    max-width: 400px; /* Reduced from 800px to 400px (50%) */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Modern CSS property for aspect ratio */
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.yuk-video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Video responsive breakpoints */
@media (max-width: 768px) {
    .yuk-video-section {
        margin: 1rem 0;
    }
    
    .yuk-video-responsive {
        border-radius: 4px;
        max-width: 320px; /* Reduced from 100% to maintain proportional size */
    }
}

@media (max-width: 480px) {
    .yuk-video-responsive {
        border-radius: 2px;
    }
}
