* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    min-height: 100vh;
}

/* Copy protection for unauthorized users */
body.copy-protected .song-card,
body.copy-protected #songContent,
body.copy-protected .presentation-lyrics {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Songbook page specific offset for fixed header + countdown banner */
.songbook-page {
    padding-top: 140px;
}

/* Mobile: Use CSS variables from redesign-styles.css */
@media (max-width: 768px) {
    .songbook-page {
        padding-top: var(--fixed-top-offset, 115px);
    }
}

/* Dark mode alignment - relies on global design tokens */
body.dark .songbook-page,
body[data-theme="dark"] .songbook-page {
    color: var(--text-body);
    background: var(--bg-page);
}

/* Page-specific header for Song Book title (not site header) */
.page-header {
    text-align: center;
    color: var(--brand-primary);
    margin-bottom: 30px;
    padding: 20px;
    background: transparent;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-section {
    min-width: 200px;
}

#userInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 0.9em;
    padding: 8px 16px;
    background: var(--bg-card-surface);
    border-radius: 20px;
    color: var(--text-heading);
    font-weight: bold;
}

.btn-auth {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: var(--brand-primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}

.btn-auth:hover {
    background: var(--color-primary-dark);
}

.btn-auth-small {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--brand-secondary);
    color: white;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-auth-small:hover {
    background: var(--brand-accent);
}

.saved-playlists-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-card-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-sm, 0 1px 3px 0 rgba(30, 58, 95, 0.08));
}

.saved-playlists-section h2,
.saved-playlists-section h3 {
    color: var(--brand-primary);
    margin-bottom: 15px;
    text-align: center;
}

.saved-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.saved-playlist-card {
    background: var(--bg-page);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm, 0 1px 3px 0 rgba(30, 58, 95, 0.08));
}

.saved-playlist-card h4 {
    margin: 0 0 8px 0;
    color: var(--brand-primary);
    font-size: 1.1em;
}

.saved-playlist-card p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 0.9em;
}

.saved-playlist-card small {
    color: var(--text-muted);
    font-size: 0.8em;
}

.playlist-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: var(--brand-accent) !important;
    color: var(--text-inverse) !important;
}

.btn-danger:hover {
    background: var(--brand-accent) !important;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: none;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-family: Georgia, 'Times New Roman', serif;
}

header h1 .icon {
    display: inline-block;
    margin-right: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.8;
    margin-top: 5px;
    color: var(--text-muted);
}

.search-container {
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    box-shadow: var(--shadow-sm, 0 1px 3px 0 rgba(30, 58, 95, 0.08));
    outline: none;
    background: var(--bg-card-surface);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 30px;
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    background: var(--bg-card-surface);
    color: var(--text-body);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--bg-page);
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.alphabet-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 15px;
    background: var(--bg-card-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-sm, 0 1px 3px 0 rgba(30, 58, 95, 0.08));
    overflow-x: hidden;
}

.alphabet-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-body);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 45px;
}

.alphabet-btn:hover {
    background: var(--brand-secondary);
    color: white;
    border-color: var(--brand-secondary);
    transform: scale(1.1);
}

.alphabet-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.song-card {
    background: var(--bg-card-surface);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(30, 58, 95, 0.1));
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    border: 1px solid var(--border-subtle);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 10px 20px -5px rgba(30, 58, 95, 0.12));
    border-color: var(--brand-secondary);
}

.song-card h3 {
    color: var(--brand-primary);
    margin-bottom: 8px;
    font-size: 1.2em;
    min-height: 2.4em;
    line-height: 1.2em;
    font-family: Georgia, 'Times New Roman', serif;
}

.song-card p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-card-surface);
    margin: 0;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.close {
    color: var(--text-heading);
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-surface);
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: var(--text-heading);
}

#songTitle {
    color: var(--text-inverse) !important;
    margin: 0 !important;
    padding: 25px 50px 20px 30px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    background: var(--bg-header-presentation) !important;
    border-bottom: 2px solid var(--color-primary-dark) !important;
    flex-shrink: 0 !important;
    display: block !important;
    min-height: 60px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 30px;
    border-bottom: 2px solid var(--border-subtle);
    background: var(--bg-card-surface);
    flex-shrink: 0;
}

.controls-advanced {
    border-top: 1px solid var(--border-subtle);
    border-bottom: none;
    padding-top: 0;
    background: var(--bg-section);
}

.btn {
    padding: 10px 20px;
    border: 1px solid var(--cta-primary-hover, var(--color-primary-dark));
    border-radius: 25px;
    background: var(--cta-primary-bg, var(--brand-primary));
    color: var(--cta-primary-text, var(--text-inverse));
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s, border-color 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: var(--cta-primary-bg, var(--brand-primary));
}

.btn-secondary {
    background: var(--cta-secondary-bg, var(--brand-secondary));
    color: var(--cta-secondary-text, var(--text-inverse));
    border: 2px solid var(--cta-secondary-border, var(--brand-secondary));
}

.btn:hover {
    background: var(--cta-primary-hover, var(--color-primary-dark));
    color: var(--cta-primary-text, var(--text-inverse));
}

.btn-secondary:hover {
    background: var(--cta-secondary-border, var(--brand-secondary));
    color: #ffffff;
}

/* Desktop/Tablet: Always show advanced controls, hide toggle */
@media (min-width: 769px) {
    .controls-advanced {
        display: flex !important;
    }
    
    #toggleAdvanced {
        display: none !important;
    }
}

.song-content {
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 16px;
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-card-surface);
}

.chord {
    color: var(--brand-secondary);
    font-weight: bold;
    display: inline-block;
}

.lyrics-line {
    color: var(--text-body);
    margin-bottom: 10px;
}

.verse-separator {
    margin: 20px 0;
    border-top: 1px dashed var(--border-subtle);
}

.add-to-service-btn {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--brand-primary);
    color: white;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
    width: 100%;
    font-weight: 600;
}

.add-to-service-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.add-to-service-btn.in-playlist {
    background: var(--brand-secondary);
}

.service-playlist-panel {
    position: fixed;
    bottom: -400px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background: var(--bg-card-surface);
    border-radius: 15px 15px 0 0;
    box-shadow: var(--shadow-xl, 0 20px 30px -8px rgba(30, 58, 95, 0.15));
    transition: bottom 0.3s;
    z-index: 999;
    border: 1px solid var(--border-subtle);
}

.service-playlist-panel.visible {
    bottom: 0;
}

.playlist-header {
    padding: 15px 20px;
    background: var(--brand-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-header h2,
.playlist-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-family: Georgia, 'Times New Roman', serif;
}

.playlist-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--bg-card-surface);
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
}

.btn-small:hover {
    background: var(--bg-section);
}

.playlist-songs {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 5px;
    background: var(--bg-card-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.playlist-number {
    background: var(--brand-secondary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
    flex-shrink: 0;
}

.playlist-title {
    flex: 1;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-remove {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background: var(--brand-accent);
    color: var(--text-inverse);
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-remove:hover {
    background: var(--brand-accent);
}

#presentationModal {
    padding: 0;
    align-items: stretch;
}

#presentationModal .presentation-content {
    background: var(--bg-section);
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-inverse);
    margin: 0;
    border-radius: 0;
    padding-top: 80px;
}

.presentation-header {
    background: var(--bg-header-presentation) !important;
    padding: 30px 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    min-height: 90px !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.presentation-header h2 {
    margin: 0 auto !important;
    font-size: 1.8em !important;
    color: var(--text-inverse) !important;
    font-weight: 700 !important;
    display: block !important;
    text-align: center !important;
    flex: 1 !important;
    line-height: 1.5 !important;
    padding: 5px 0 !important;
}

.presentation-counter {
    font-size: 1.2em !important;
    opacity: 0.9 !important;
    color: var(--text-inverse) !important;
    display: block !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    margin-left: 20px !important;
}

.presentation-lyrics {
    flex: 1;
    padding: 40px 60px;
    font-size: 2em;
    line-height: 1.8;
    overflow-y: auto;
    text-align: left;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    width: 100%;
}

.presentation-lyrics::-webkit-scrollbar {
    width: 12px;
}

.presentation-lyrics::-webkit-scrollbar-track {
    background: var(--bg-section);
}

.presentation-lyrics::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 6px;
}

.presentation-lyrics::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent);
}

.presentation-controls {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: var(--bg-section);
}

.pres-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    background: var(--brand-primary);
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
}

.pres-btn:hover {
    background: var(--color-primary-dark);
}

/* Copyright Modal */
.copyright-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.copyright-content {
    background: var(--bg-card-surface);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-xl, 0 20px 30px -8px rgba(30, 58, 95, 0.15));
}

.copyright-content h2 {
    color: var(--brand-primary);
    margin-top: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

.copyright-content p {
    color: var(--text-body);
    line-height: 1.6;
    margin: 15px 0;
}

.copyright-content button {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
}

.copyright-content button:hover {
    background: var(--color-primary-dark);
}

/* Presentation Mode */
.presentation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.presentation-modal .close {
    color: var(--text-inverse);
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.presentation-modal .close:hover,
.presentation-modal .close:focus {
    color: var(--brand-accent);
}

.presentation-modal .content {
    background: var(--bg-section);
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.presentation-modal .title {
    color: var(--brand-primary);
    margin-bottom: 20px;
    font-size: 1.8em;
    font-family: Georgia, 'Times New Roman', serif;
}

.presentation-modal .subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.2em;
}

.presentation-modal .lyrics {
    color: var(--text-inverse);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 16px;
}

.presentation-modal .chord {
    color: var(--brand-secondary);
    font-weight: bold;
    display: inline-block;
}

.presentation-modal .lyrics-line {
    color: var(--text-inverse);
    margin-bottom: 10px;
}

.presentation-modal .verse-separator {
    margin: 20px 0;
    border-top: 1px dashed var(--border-subtle);
}

.presentation-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: var(--brand-primary);
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
    font-weight: 600;
}

.presentation-modal .btn:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 768px) {
    /* Make search bar always visible */
    .search-container {
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    /* Horizontal scrollable filter tabs with native momentum */
    .filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        gap: 10px;
        margin-bottom: 20px;
        padding: 10px 15px;
        justify-content: flex-start;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 0.95em;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    /* Horizontal scrollable alphabet index - BANGLA MENU SWIPE */
    .alphabet-index {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-x;
        justify-content: flex-start !important;
        padding: 10px 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
    }
    
    .alphabet-index::-webkit-scrollbar {
        display: none;
    }
    
    .alphabet-btn {
        flex: 0 0 auto;
        min-width: 40px;
        white-space: nowrap;
    }
    
    .song-list {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Modal Fixes - ONLY apply to OPEN modals */
    .modal[style*="display: flex"] {
        padding: 10px;
        /* display: flex is set by JavaScript - DO NOT force here */
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        margin: auto;
        border-radius: 10px;
    }
    
    /* Compact Title on Mobile */
    #songTitle {
        padding: 15px 45px 15px 20px !important;
        font-size: 20px !important;
        min-height: 50px !important;
        line-height: 1.3 !important;
    }
    
    /* Close Button Adjustment */
    .close {
        right: 10px;
        top: 10px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    /* Compact Controls on Mobile */
    .controls {
        padding: 10px 12px;
        gap: 6px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .controls-advanced {
        padding: 8px 12px 10px;
    }
    
    /* Primary Buttons - Two per row on mobile (4 buttons total) */
    .btn-primary {
        padding: 8px 10px;
        font-size: 0.85em;
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
    }
    
    /* Advanced toggle button - full width and more subtle */
    #toggleAdvanced {
        padding: 6px 10px;
        font-size: 0.8em;
        flex: 1 1 100%;
        background: rgba(14, 165, 164, 0.15);
        color: var(--brand-secondary);
        font-weight: 500;
    }
    
    /* Advanced controls - two transpose buttons side by side */
    .controls-advanced .btn {
        padding: 7px 10px;
        font-size: 0.8em;
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
        white-space: nowrap;
    }
    
    /* Ensure Lyrics Are Scrollable */
    .song-content {
        padding: 20px 15px;
        font-size: 14px;
        line-height: 1.7;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Compact Add to Service Button */
    .add-to-service-btn {
        padding: 6px 12px;
        font-size: 0.8em;
        margin-top: 8px;
    }
}

/* ============================================================================
   ACCESSIBILITY HARDENING — Songbook
   ============================================================================ */

.songbook-page {
    max-width: 100%;
    overflow-x: clip;
}

.filter-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.tab-btn,
.alphabet-btn,
.btn,
.btn-small,
.add-to-service-btn,
.playlist-remove,
.pres-btn,
.close {
    min-width: 44px;
    min-height: 44px;
}

.playlist-remove {
    width: 44px;
    height: 44px;
    font-size: 1.3em;
}

.close {
    width: 44px;
    height: 44px;
}

#searchInput:focus-visible,
.tab-btn:focus-visible,
.alphabet-btn:focus-visible,
.btn:focus-visible,
.btn-small:focus-visible,
.add-to-service-btn:focus-visible,
.playlist-remove:focus-visible,
.close:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.song-list,
.song-card,
#songList,
.modal-content,
.presentation-content {
    max-width: 100%;
}

.song-card h3,
.song-card p,
.playlist-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body[data-theme="dark"] .btn,
body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .add-to-service-btn,
body[data-theme="dark"] .pres-btn,
body[data-theme="dark"] .btn-auth,
body[data-theme="dark"] .playlist-header {
    background: var(--cta-primary-bg, var(--color-primary));
    color: var(--cta-primary-text, #f8fafc);
    border-color: #60a5fa;
}

body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .btn-auth-small,
body[data-theme="dark"] .alphabet-btn:hover,
body[data-theme="dark"] .tab-btn:hover {
    background: var(--cta-secondary-bg, rgba(147, 197, 253, 0.12));
    color: var(--cta-secondary-text, #dbeafe);
    border-color: var(--cta-secondary-border, #93c5fd);
}

@media (max-width: 1024px) {
    .service-playlist-panel {
        width: min(100%, 420px);
        right: 8px;
        left: auto;
    }
}

@media (max-width: 768px) {
    .service-playlist-panel {
        width: calc(100% - 1rem);
        right: 0.5rem;
        left: 0.5rem;
    }

    .modal-content {
        max-width: calc(100vw - 1rem);
    }
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading skeleton for song cards */
.song-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    grid-column: 1 / -1;
    width: 100%;
}

.skeleton-card {
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
