/* ------------------------------------------------------------
   LyricsHub  -  Warm Earthy Editorial Design
   Palette: Cream ivory - Deep burgundy - Terracotta rose - Warm umber
   ------------------------------------------------------------ */
/* Fonts: fonts.css, served from this site (linked before this file) */

/* --- CSS Custom Properties ------------------------------------------------------------ */
:root {
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-lora:   'Lora', Georgia, serif;

    --cream:       #FDF8F2;
    --cream-dark:  #F5EDE0;
    --cream-deep:  #EDE0CF;
    --ivory:       #FAF6EF;

    --umber:       #2D1B16;
    --umber-mid:   #4A2C22;
    --umber-soft:  #6B3D2E;

    --burgundy:    #7B2D3E;
    --burgundy-lt: #9E3D52;
    --rose:        #C46B7A;
    --terracotta:  #C4623A;
    --terra-lt:    #E8825E;

    --stone:       #8B7355;
    --stone-lt:    #B09A7E;
    --dust:        #D4C4B0;
    --dust-lt:     #E8DDD0;

    --bg-page:     var(--cream);
    --bg-surface:  #FFFFFF;
    --bg-warm:     var(--ivory);
    --bg-subtle:   var(--cream-dark);
    --bg-header:   var(--umber);

    --text-main:   var(--umber);
    --text-body:   var(--umber-mid);
    --text-muted:  var(--stone);
    --text-faint:  var(--stone-lt);

    --border:      var(--dust);
    --border-lt:   var(--dust-lt);
    --border-focus: var(--burgundy);

    --accent:      var(--burgundy);
    --accent2:     var(--terracotta);

    --badge-bg:     #FFF1EE;
    --badge-border: #F5CFC5;
    --mark-bg:      rgba(196,107,122,0.22);
    --header-h:     66px;

    --r-xs:   4px;
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-full: 9999px;

    --shadow-xs:   0 1px 2px rgba(45,27,22,0.04);
    --shadow-sm:   0 2px 8px rgba(45,27,22,0.06);
    --shadow-md:   0 6px 20px rgba(45,27,22,0.08);
    --shadow-warm: 0 4px 16px rgba(123,45,62,0.12);

    --container: 1160px;
}

/* --- Dark Theme ------------------------------------------------------------
   Follows the system setting unless the reader picks a theme with
   the header toggle (stored as data-theme on <html>). The light
   palette names are re-pointed at dark values, and the always-dark
   chrome (header, footer, drawer, song band) gets its originals back. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]),
    :root:not([data-theme="light"]) .search-results-dropdown {
        color-scheme: dark;
        --cream:       #17100D;
        --cream-dark:  #2A1D18;
        --cream-deep:  #3A2A22;
        --ivory:       #211612;
        --umber:       #F4EBE1;
        --umber-mid:   #E2D4C5;
        --umber-soft:  #C9B39F;
        --burgundy:    #C45670;
        --burgundy-lt: #D46A83;
        --rose:        #D98A98;
        --terracotta:  #E8825E;
        --stone:       #B8A089;
        --stone-lt:    #94806B;
        --dust:        #4B382E;
        --dust-lt:     #35261F;
        --bg-surface:  #1F1511;
        --bg-header:   #2D1B16;
        --badge-bg:     #3A1F1C;
        --badge-border: #5A2F2A;
        --mark-bg:      rgba(217,138,152,0.3);
        --shadow-xs:   0 1px 2px rgba(0,0,0,0.3);
        --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
        --shadow-md:   0 6px 20px rgba(0,0,0,0.45);
        --shadow-warm: 0 4px 16px rgba(0,0,0,0.4);
    }
    :root:not([data-theme="light"]) :is(.site-header, .site-footer, .mobile-menu-drawer, .song-header-band, .toast-notice) {
        --cream: #FDF8F2; --umber: #2D1B16; --umber-mid: #4A2C22; --burgundy: #7B2D3E; --rose: #C46B7A;
    }
}
:root[data-theme="dark"],
:root[data-theme="dark"] .search-results-dropdown {
    color-scheme: dark;
    --cream:       #17100D;
    --cream-dark:  #2A1D18;
    --cream-deep:  #3A2A22;
    --ivory:       #211612;
    --umber:       #F4EBE1;
    --umber-mid:   #E2D4C5;
    --umber-soft:  #C9B39F;
    --burgundy:    #C45670;
    --burgundy-lt: #D46A83;
    --rose:        #D98A98;
    --terracotta:  #E8825E;
    --stone:       #B8A089;
    --stone-lt:    #94806B;
    --dust:        #4B382E;
    --dust-lt:     #35261F;
    --bg-surface:  #1F1511;
    --bg-header:   #2D1B16;
    --badge-bg:     #3A1F1C;
    --badge-border: #5A2F2A;
    --mark-bg:      rgba(217,138,152,0.3);
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:   0 6px 20px rgba(0,0,0,0.45);
    --shadow-warm: 0 4px 16px rgba(0,0,0,0.4);
}
:root[data-theme="dark"] :is(.site-header, .site-footer, .mobile-menu-drawer, .song-header-band, .toast-notice) {
    --cream: #FDF8F2; --umber: #2D1B16; --umber-mid: #4A2C22; --burgundy: #7B2D3E; --rose: #C46B7A;
}

/* --- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}
body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip; /* clip, unlike hidden, keeps position: sticky working */
    width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.18s; }
ul, ol { list-style: none; }

/* --- Container ------------------------------------------------------------ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
    box-sizing: border-box;
}

/* --- AdSense Wrappers ------------------------------------------------------------ */
.ad-slot { text-align: center; background: transparent; overflow: hidden; max-width: 100%; }
.ad-slot iframe, .ad-slot ins { max-width: 100% !important; }
.ad-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--stone-lt);
    font-weight: 500;
    margin-bottom: 5px;
}
.ad-slot-header  { margin: 30px auto; max-width: 728px; min-height: auto; }
.ad-slot-content { margin: 30px 0; }
.ad-slot-sidebar { margin: 0 0 24px; min-height: auto; }
.ad-slot-footer  { margin: 40px auto 0; max-width: 728px; min-height: auto; }
.ad-placeholder {
    border: 1px dashed var(--dust);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone-lt);
    font-size: 0.78rem;
    background: var(--ivory);
}

/* --- Site Header ------------------------------------------------------------ */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 2px solid rgba(196,107,122,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 24px;
}
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--burgundy);
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.3px;
    line-height: 1;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.header-nav a {
    color: rgba(253,248,242,0.72);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--r-sm);
    transition: all 0.18s;
}
.header-nav a:hover {
    color: var(--cream);
    background: rgba(255,255,255,0.08);
}
.header-nav a.admin-link {
    color: var(--rose);
    background: rgba(196,107,122,0.12);
    font-weight: 600;
}
.header-nav a.admin-link:hover {
    background: rgba(196,107,122,0.22);
    color: var(--cream);
}
.header-search {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}
.header-search form {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-full);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}
.header-search input::placeholder { color: rgba(253,248,242,0.4); }
.header-search input:focus {
    background: rgba(255,255,255,0.18);
    border-color: var(--rose);
}
.header-search .search-icon {
    position: absolute;
    left: 11px;
    color: rgba(253,248,242,0.45);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--dust);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 300;
}
.search-results-dropdown.active { display: block; }
.search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-lt);
    transition: background 0.15s;
    gap: 12px;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--cream-dark); }
.search-item-title { font-weight: 600; font-size: 0.88rem; color: var(--umber); }
.search-item-meta  { font-size: 0.76rem; color: var(--stone); }

/* --- Mobile Header Action Controls & Drawer ----------------- */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}
.btn-header-mobile {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s;
    padding: 0;
}
.btn-header-mobile:hover, .btn-header-mobile:active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: var(--rose);
}
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 9px;
}
.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile Slide-Down Search Bar */
.mobile-search-dropdown {
    display: none;
    background: var(--umber-mid);
    padding: 10px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(196, 107, 122, 0.3);
}
.mobile-search-dropdown.active {
    display: block;
}
.mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.mobile-search-form .m-search-icon {
    position: absolute;
    left: 12px;
    color: rgba(253, 248, 242, 0.5);
    pointer-events: none;
}
.mobile-search-form input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r-full);
    color: var(--cream);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
}
.mobile-search-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--rose);
}
.mobile-search-form .m-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: rgba(253, 248, 242, 0.5);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Mobile Navigation Drawer Backdrop & Panel */
.mobile-menu-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 27, 22, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 310px;
    max-width: 85vw;
    background: var(--umber);
    color: var(--cream);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-drawer.active {
    visibility: visible;
    pointer-events: auto;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--cream);
    width: 34px;
    height: 34px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
}
.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-drawer-body {
    padding: 20px 20px 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.drawer-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rose);
    margin-bottom: 12px;
}
.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    color: rgba(253, 248, 242, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.18s;
    text-decoration: none;
}
.drawer-link svg {
    color: var(--rose);
    flex-shrink: 0;
}
.drawer-link:hover, .drawer-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 18px;
}
.mobile-drawer-sublinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}
.mobile-drawer-sublinks a {
    font-size: 0.82rem;
    color: rgba(253, 248, 242, 0.5);
    transition: color 0.18s;
}
.mobile-drawer-sublinks a:hover {
    color: var(--cream);
}
.drawer-admin-box {
    margin-top: auto;
}
.drawer-admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(196, 107, 122, 0.15);
    border: 1px solid rgba(196, 107, 122, 0.35);
    color: var(--rose);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all 0.18s;
}
.drawer-admin-btn:hover {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}

/* --- Flash ------------------------------------------------------------ */
.flash-wrap { margin: 14px auto 0; }
.flash { padding: 11px 18px; border-radius: var(--r-sm); font-size: 0.9rem; }
.flash-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-err { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }

/* --- Main Wrapper ------------------------------------------------------------ */
.main-wrapper { padding: 36px 0 72px; }

/* --- Content Grid ------------------------------------------------------------ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 296px;
    gap: 44px;
    align-items: start;
}

/* --- Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--stone-lt);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--stone); }
.breadcrumbs a:hover { color: var(--burgundy); }
.breadcrumbs .bc-sep { color: var(--dust); }
.breadcrumbs .bc-current { color: var(--text-body); font-weight: 500; }

/* --- Homepage Hero ------------------------------------------------------------ */
.home-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--dust);
    margin-bottom: 36px;
}
.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--terracotta);
    margin-bottom: 16px;
}
.home-hero-eyebrow::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--terracotta);
}
.home-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800;
    color: var(--umber);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.home-hero-title em {
    font-style: italic;
    color: var(--burgundy);
}
.home-hero-sub {
    font-family: var(--font-lora);
    font-size: 1.05rem;
    color: var(--stone);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.lang-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--dust);
    border-radius: var(--r-full);
    background: var(--bg-surface);
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.18s;
}
.lang-chip:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    background: var(--bg-surface);
}
.lang-chip-native { font-size: 0.75rem; color: var(--stone-lt); }

/* --- Section Headers ------------------------------------------------------------ */
.section-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-deep);
}
.section-hd-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--umber);
    letter-spacing: -0.3px;
}
.section-hd-count {
    font-size: 0.78rem;
    color: var(--stone-lt);
    font-weight: 500;
}

/* --- Song List Rows (No Images) ------------------------------------------------------------ */
.song-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--dust-lt);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    margin-bottom: 28px;
}
.song-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 22px;
    border-bottom: 1px solid var(--border-lt);
    text-decoration: none;
    transition: background 0.18s;
    gap: 16px;
    position: relative;
}
.song-entry:last-child { border-bottom: none; }
.song-entry:hover { background: var(--cream); }
.song-entry-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.song-entry-title {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--umber);
    line-height: 1.3;
    letter-spacing: -0.2px;
    transition: color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-entry:hover .song-entry-title { color: var(--burgundy); }
.song-entry-sub {
    font-size: 0.82rem;
    color: var(--stone);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-entry-sub em { font-style: italic; color: var(--stone-lt); }
.song-entry-sub .dot { color: var(--dust); }
.song-entry-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.badge-cat {
    background: var(--badge-bg);
    color: var(--terracotta);
    border: 1px solid var(--badge-border);
}
.badge-lang {
    background: var(--cream-dark);
    color: var(--stone);
    border: 1px solid var(--dust);
}
.badge-year {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--stone-lt);
    letter-spacing: 0.5px;
}
.entry-arrow {
    color: var(--dust);
    transition: transform 0.18s, color 0.18s;
    display: flex;
    align-items: center;
}
.song-entry:hover .entry-arrow {
    transform: translateX(4px);
    color: var(--burgundy);
}
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--stone);
    font-size: 0.95rem;
    font-family: var(--font-lora);
    font-style: italic;
    background: var(--bg-surface);
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-lg);
}

/* --- Sidebar ------------------------------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 0; }
.sidebar-widget {
    padding: 22px 0;
    border-bottom: 1px solid var(--dust-lt);
}
.sidebar-widget:first-child { padding-top: 0; }
.sidebar-widget:last-child { border-bottom: none; }
.widget-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--umber);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-title::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: var(--cream-deep);
}
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: var(--r-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.trend-item:hover {
    background: var(--bg-surface);
    border-color: var(--dust-lt);
    box-shadow: var(--shadow-sm);
}
.trend-rank {
    font-family: 'Impact', 'Arial Black', -apple-system, sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -2px;
    min-width: 38px;
    text-align: center;
    color: var(--cream);
    -webkit-text-stroke: 2.5px var(--stone);
    paint-order: stroke fill;
    text-shadow: 2px 2px 0 rgba(45,27,22,0.1);
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    flex-shrink: 0;
}
.trend-item:hover .trend-rank {
    -webkit-text-stroke: 2.5px var(--burgundy);
    color: var(--burgundy);
    text-shadow: 3px 3px 0 rgba(123,45,62,0.18);
    transform: scale(1.1) translateX(-2px);
}
.trend-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.trend-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.3;
    transition: color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trend-item:hover .trend-name { color: var(--burgundy); }
.trend-artist {
    font-size: 0.75rem;
    color: var(--stone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.w-list { display: flex; flex-direction: column; gap: 0; }
.w-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-lt);
}
.w-list-item:last-child { border-bottom: none; }
.w-list-item a { font-size: 0.86rem; color: var(--text-body); font-weight: 500; transition: color 0.18s; }
.w-list-item a:hover { color: var(--burgundy); }
.w-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--stone-lt);
    background: var(--cream-dark);
    padding: 2px 7px;
    border-radius: var(--r-full);
}

/* --- Single Song ------------------------------------------------------------ */
.single-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--dust-lt);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.song-header-band {
    background: var(--umber);
    padding: 32px 36px 28px;
    position: relative;
    overflow: hidden;
}
.song-header-band::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,107,122,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.song-header-band::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 40%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,45,62,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.song-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.song-eyebrow-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--rose);
}
.song-eyebrow-sep { color: rgba(253,248,242,0.2); }
.song-eyebrow-year { font-size: 0.7rem; color: rgba(253,248,242,0.45); letter-spacing: 0.5px; }
.song-main-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--cream);
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
    color: rgba(253,248,242,0.6);
    position: relative;
    z-index: 1;
}
.song-meta-bar strong { color: var(--cream); font-weight: 600; }
.song-meta-bar .sep { color: rgba(253,248,242,0.2); }
.song-lang-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}
.lang-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: rgba(253,248,242,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.4px;
}
.song-header-band .song-breadcrumbs,
.song-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin-bottom: 14px;
    background: transparent;
    border: none;
    font-size: 0.76rem;
    color: rgba(253, 248, 242, 0.5);
    position: relative;
    z-index: 1;
}
.song-header-band .song-breadcrumbs a,
.song-breadcrumbs a {
    color: rgba(253, 248, 242, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}
.song-header-band .song-breadcrumbs a:hover,
.song-breadcrumbs a:hover {
    color: var(--cream);
    text-decoration: underline;
}
.song-header-band .song-breadcrumbs .bc-sep,
.song-breadcrumbs .bc-sep {
    color: rgba(253, 248, 242, 0.25);
    font-size: 0.7rem;
}
.song-header-band .song-breadcrumbs .bc-current,
.song-breadcrumbs .bc-current {
    color: rgba(253, 248, 242, 0.92);
    font-weight: 500;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-body { padding: 32px 36px; }
.video-wrap {
    margin: 0 0 28px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #000;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border: 1px solid var(--dust);
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
/* Click-to-load poster: the YouTube player is only loaded when someone plays the video */
.video-facade {
    position: absolute;
    inset: 0;
    display: block;
    cursor: pointer;
}
.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-facade-play {
    position: absolute;
    top: 50%; left: 50%;
    width: 68px; height: 48px;
    transform: translate(-50%, -50%);
    line-height: 0;
}
.video-facade-bg { fill: #212121; fill-opacity: .8; transition: fill .15s, fill-opacity .15s; }
.video-facade:hover .video-facade-bg,
.video-facade:focus-visible .video-facade-bg { fill: #f00; fill-opacity: 1; }
.video-facade:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.credits-box {
    margin: 0 0 28px;
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-md);
    overflow: hidden;
}
.credits-head {
    padding: 10px 18px;
    background: var(--cream-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--stone);
    border-bottom: 1px solid var(--dust);
}
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.credits-table th,
.credits-table td { padding: 10px 18px; border-bottom: 1px solid var(--border-lt); text-align: left; }
.credits-table tr:last-child th,
.credits-table tr:last-child td { border-bottom: none; }
.credits-table th { width: 34%; font-weight: 600; color: var(--stone); background: var(--ivory); }
.credits-table td { color: var(--umber-mid); font-weight: 500; }

/* In-article ad */
.song-ad-break {
    margin: 28px 0;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--r-md);
    border: 1px dashed var(--dust);
    text-align: center;
}

/* Lyrics section */
.lyrics-section {
    margin: 0 0 28px;
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-surface);
}
.lyrics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: var(--ivory);
    border-bottom: 1px solid var(--dust-lt);
}
.lyrics-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lyrics-tab-btn {
    padding: 5px 14px;
    border-radius: var(--r-full);
    border: 1px solid var(--dust);
    background: var(--bg-surface);
    color: var(--stone);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.18s;
}
.lyrics-tab-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.lyrics-tab-btn.active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
}
.lyrics-actions { display: flex; align-items: center; gap: 6px; }
.btn-action-minimal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--dust);
    background: var(--bg-surface);
    color: var(--stone);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.18s;
}
.btn-action-minimal:hover { border-color: var(--stone); color: var(--text-body); }
.lyrics-panes-wrap { padding: 28px 28px; }
.lyrics-tab-content { display: none; }
.lyrics-tab-content.active { display: block; }
.lyrics-text-flow {
    font-family: var(--font-lora);
    font-size: 1.05rem;
    line-height: 2.1;
    color: var(--umber-mid);
}
.lyrics-text-flow .stanza,
.lyrics-text-flow .lyrics-stanza { 
    margin-bottom: 28px; 
}
.lyrics-text-flow .lyrics-stanza p {
    margin: 0 0 16px 0;
    line-height: 2.1;
}
.lyrics-text-flow .lyrics-stanza p:last-child {
    margin-bottom: 0;
}
.lyrics-text-flow .lyrics-section-title,
.lyrics-text-flow .verse-heading {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--terracotta);
    margin-top: 14px;
    margin-bottom: 10px;
    font-family: var(--font-body);
}
.lyrics-text-flow .lyrics-section-title:first-child,
.lyrics-text-flow .verse-heading:first-child {
    margin-top: 0;
}
.btn-copy.copied { color: #166534; border-color: #bbf7d0; }

/* --- Smart FAQ ------------------------------------------------------------ */
.song-faq-section {
    margin: 0 0 28px;
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-surface);
}
.faq-section-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--dust-lt);
    background: var(--cream);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.faq-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--terracotta);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 3px 8px;
    border-radius: var(--r-full);
}
.faq-main-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--umber);
    letter-spacing: -0.3px;
}
.faq-list { padding: 0; }
.faq-item { border-bottom: 1px solid var(--border-lt); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 24px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.18s;
    font-family: var(--font-body);
}
.faq-question:hover { background: var(--cream); }
.faq-question span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.4;
}
.faq-item.active .faq-question span:first-child { color: var(--burgundy); }
.faq-icon-toggle { color: var(--stone-lt); flex-shrink: 0; transition: transform 0.22s; }
.faq-item.active .faq-icon-toggle { transform: rotate(180deg); color: var(--burgundy); }
.faq-answer { display: none; padding: 0 24px 16px; }
.faq-item.active .faq-answer { display: block; }
.faq-answer-inner p {
    font-family: var(--font-lora);
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--stone);
}

/* --- Tags ------------------------------------------------------------ */
.single-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.single-tags-wrap .tags-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--stone-lt);
}
.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--cream-dark);
    color: var(--stone);
    border: 1px solid var(--dust);
    transition: all 0.18s;
}
.tag-pill:hover {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}

/* --- Prev/Next ------------------------------------------------------------ */
.vp-doc-footer-nav { margin: 0 0 28px; }
.vp-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pager-link {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--dust);
    border-radius: var(--r-md);
    background: var(--bg-surface);
    text-decoration: none;
    transition: all 0.2s;
    gap: 4px;
}
.pager-link:hover {
    border-color: var(--burgundy);
    background: var(--cream);
    box-shadow: var(--shadow-warm);
}
.pager-link.next { text-align: right; }
.pager-desc {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stone-lt);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pager-link.next .pager-desc { justify-content: flex-end; }
.pager-link:hover .pager-desc { color: var(--burgundy); }
.pager-title {
    font-family: var(--font-serif);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--umber);
    line-height: 1.3;
    letter-spacing: -0.2px;
}
.pager-link:hover .pager-title { color: var(--burgundy); }

/* Related */
.related-posts-box { margin: 0; }
.related-posts-box .section-hd { margin-bottom: 14px; }

/* --- Pagination ------------------------------------------------------------ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--dust);
    border-radius: var(--r-sm);
    background: var(--bg-surface);
    color: var(--stone);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.18s;
    text-decoration: none;
}
.page-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.page-btn.active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

/* --- Archive / Search ------------------------------------------------------------ */
.archive-header {
    padding: 40px 0 28px;
    border-bottom: 1px solid var(--dust);
    margin-bottom: 32px;
}
.archive-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--terracotta);
    margin-bottom: 10px;
}
.archive-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--umber);
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.archive-desc {
    font-family: var(--font-lora);
    font-size: 0.95rem;
    color: var(--stone);
    font-style: italic;
    line-height: 1.65;
    max-width: 600px;
}

/* --- Static Pages ------------------------------------------------------------ */
.static-article {
    background: var(--bg-surface);
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-xs);
}
.page-title-head {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--umber);
    letter-spacing: -0.6px;
    margin-bottom: 10px;
}
.page-title-rule {
    width: 48px; height: 3px;
    background: var(--burgundy);
    border-radius: 2px;
    margin-bottom: 28px;
}
.page-body-prose {
    font-family: var(--font-lora);
    font-size: 1rem;
    color: var(--umber-mid);
    line-height: 1.85;
}
.page-body-prose h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--umber);
    margin: 28px 0 10px;
}
.page-body-prose p { margin-bottom: 18px; }
.page-body-prose ul { margin: 0 0 18px 22px; list-style: disc; }
.page-body-prose li { margin-bottom: 6px; }

.contact-form { width: 100%; margin-top: 28px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--umber-mid); }
.form-group input, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--dust);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--umber-mid);
    background: var(--ivory);
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(123,45,62,0.08);
}
.btn-submit {
    padding: 11px 26px;
    background: var(--burgundy);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.btn-submit:hover { background: var(--burgundy-lt); }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
    background: var(--umber);
    color: rgba(253,248,242,0.6);
    padding: 52px 0 32px;
    border-top: 3px solid var(--burgundy);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}
.footer-brand .brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 10px;
}
.footer-brand p {
    font-size: 0.84rem;
    line-height: 1.7;
    max-width: 300px;
    color: rgba(253,248,242,0.5);
}
/* Social icons under the footer description (Settings > Sidebar & Footer) */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(253,248,242,0.14);
    color: rgba(253,248,242,0.7);
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.footer-social-link:hover,
.footer-social-link:focus-visible { color: #fff; background: var(--rose); border-color: var(--rose); }
.footer-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rose);
    margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(253,248,242,0.55); font-size: 0.84rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
    font-size: 0.78rem;
    color: rgba(253,248,242,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Toast ------------------------------------------------------------ */
.toast-notice {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--umber);
    color: var(--cream);
    padding: 10px 20px;
    border-radius: var(--r-sm);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.22s;
    pointer-events: none;
}
.toast-notice.show { opacity: 1; transform: translateY(0); }

/* --- Share Lyrics as Image Popup ------------------------------------------------------------ */
.lyrics-text-flow ::selection { background: rgba(196,107,122,0.28); }

/* A floating panel, not a modal: no backdrop, the page stays scrollable
   and selectable. JS docks it over the sidebar (left/width inline);
   on one-column layouts it floats at the bottom of the screen. */
.share-lyrics-modal {
    position: fixed;
    z-index: 150;
    top: calc(var(--header-h) + 16px);
    right: 16px;
    width: 320px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.share-lyrics-modal.active { opacity: 1; visibility: visible; transform: none; }
.share-lyrics-modal.is-docked { right: auto; }
/* Docked panels start level with the song card; shrink to fit below that point */
.share-lyrics-modal.is-docked .share-lyrics-dialog { max-height: calc(100vh - var(--panel-top, 82px) - 16px); }
.share-lyrics-modal.is-docked .share-lyrics-preview img { max-height: calc(100vh - var(--panel-top, 82px) - 150px); }
.share-lyrics-dialog {
    position: relative;
    width: 100%;
    max-height: calc(100vh - var(--header-h) - 32px);
    display: flex; flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    user-select: none;
}
.share-lyrics-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 12px 18px;
    border-bottom: 1px solid var(--border-lt);
    background: var(--bg-warm);
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-main);
}
.share-lyrics-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 0; border-radius: var(--r-full);
    background: transparent; color: var(--text-muted);
    cursor: pointer;
}
.share-lyrics-close:hover { background: var(--bg-subtle); color: var(--text-main); }
.share-lyrics-preview {
    position: relative;
    padding: 14px 14px 0;
    min-height: 0; flex: 1 1 auto;
    display: flex; justify-content: center;
}
.share-lyrics-preview img {
    display: block;
    width: 100%; max-height: calc(100vh - var(--header-h) - 170px);
    aspect-ratio: 4 / 5; object-fit: contain;
    border-radius: var(--r-sm);
    background: #2D1B16;
}
.share-lyrics-loading {
    display: none;
    position: absolute; inset: 14px 14px 0;
    align-items: center; justify-content: center;
    color: #FDF8F2; font-size: 0.9rem;
    z-index: 1;
}
.share-lyrics-preview.is-loading .share-lyrics-loading { display: flex; }
.share-lyrics-actions {
    display: flex; justify-content: center; gap: 12px;
    padding: 14px;
}
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--border-lt); border-radius: var(--r-full);
    background: var(--bg-warm); color: var(--text-body);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, color 0.15s;
}
.share-btn[hidden] { display: none; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn-whatsapp { color: #1fa855; }
.share-btn-whatsapp:hover { background: #1fa855; color: #fff; border-color: #1fa855; }
.share-btn-x { color: #111; }
.share-btn-x:hover { background: #111; color: #fff; border-color: #111; }
.share-btn-facebook { color: #1877f2; }
.share-btn-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn-download { color: var(--burgundy); }
.share-btn-download:hover { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

/* --- Responsive ------------------------------------------------------------ */
@media (min-width: 821px) {
    .header-mobile-actions { display: none !important; }
    .mobile-search-dropdown { display: none !important; }
    .mobile-menu-drawer { display: none !important; }
    .mobile-menu-backdrop { display: none !important; }
}

@media (max-width: 960px) {
    /* No sidebar column: the share panel floats at the bottom instead */
    .share-lyrics-modal {
        top: auto; right: auto;
        bottom: 12px; left: 50%;
        width: calc(100% - 24px); max-width: 340px;
        transform: translate(-50%, 8px);
    }
    .share-lyrics-modal.active { transform: translate(-50%, 0); }
    .share-lyrics-preview img { max-height: 30vh; }
    .share-lyrics-head { padding: 8px 10px 8px 16px; }
    .share-lyrics-preview { padding: 10px 10px 0; }
    .share-lyrics-actions { padding: 10px; }
    .content-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .sidebar { padding-top: 36px; border-top: 1px solid var(--dust); }
    .sidebar-widget:first-child { padding-top: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
    .header-nav { display: none !important; }
    .header-search { display: none !important; }
    .header-mobile-actions { display: inline-flex !important; }
    .header-inner { height: 60px; gap: 12px; }
}

@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .main-wrapper { padding: 20px 0 48px; }

    /* Header */
    .header-inner { height: 58px; }
    .header-logo .logo-icon { width: 28px; height: 28px; }
    .header-logo .logo-text { font-size: 1.2rem; }

    /* Song Rows (No horizontal blowout on small screens) */
    .song-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }
    .song-entry-main { width: 100%; }
    .song-entry-title {
        white-space: normal;
        word-break: break-word;
        font-size: 1.02rem;
        line-height: 1.35;
    }
    .song-entry-sub {
        white-space: normal;
        flex-wrap: wrap;
        gap: 4px 6px;
        font-size: 0.8rem;
    }
    .song-entry-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }
    .entry-arrow { display: none; }

    /* Song Detail Page */
    .song-header-band { padding: 22px 18px 18px; }
    .song-header-band .song-breadcrumbs { margin-bottom: 10px; font-size: 0.72rem; }
    .song-main-title {
        font-size: clamp(1.4rem, 6vw, 1.95rem);
        word-break: break-word;
        line-height: 1.25;
    }
    .song-meta-bar { font-size: 0.82rem; gap: 8px 12px; }
    .song-body { padding: 20px 16px; }

    /* Credits Table */
    .credits-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .credits-table th, .credits-table td {
        padding: 9px 12px;
        font-size: 0.82rem;
        word-break: break-word;
    }
    .credits-table th { width: 38%; }

    /* Lyrics Toolbar */
    .lyrics-toolbar {
        padding: 12px 14px;
        gap: 12px;
    }
    .lyrics-tabs { width: 100%; }
    .lyrics-tab-btn { padding: 5px 12px; font-size: 0.78rem; }
    .lyrics-actions { width: 100%; justify-content: flex-start; }
    .lyrics-panes-wrap { padding: 20px 16px; }
    .lyrics-text-flow { font-size: 1rem; line-height: 2; }

    /* FAQ Section */
    .faq-section-header { padding: 18px 18px 14px; }
    .faq-question { padding: 24px 18px; }
    .faq-answer { padding: 0 18px 20px; }

    /* Pager & Static Pages */
    .vp-pager { grid-template-columns: 1fr; gap: 10px; }
    .pager-link { padding: 14px 16px; }
    .pager-title { word-break: break-word; }
    .static-article { padding: 24px 16px; }
    .page-title-head { font-size: 1.5rem; word-break: break-word; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Ad Slots on mobile */
    .ad-slot-header { margin: 20px auto; }
    .ad-slot-content { margin: 20px 0; }
}

@media (max-width: 420px) {
    .header-logo .logo-text { font-size: 1.05rem; }
    .btn-header-mobile { width: 34px; height: 34px; }
    .trend-rank { font-size: 2.6rem; min-width: 32px; }
    .trend-item { gap: 10px; padding: 6px 4px; }
    .faq-question { padding: 20px 14px; }
}

/* --- Front-end Refresh (2026-10) ------------------------------------------------------------ */

/* Visible keyboard focus everywhere */
:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}
:is(.site-header, .site-footer, .mobile-menu-drawer, .song-header-band) :focus-visible { outline-color: var(--rose); }
.lyrics-tab-btn:focus-visible,
.btn-action-minimal:focus-visible,
.share-btn:focus-visible,
.lang-chip:focus-visible { border-radius: var(--r-full); }

body { transition: background-color 0.2s; }
mark { background: var(--mark-bg); color: inherit; padding: 0 2px; border-radius: 3px; }

/* Theme toggle */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.header-theme-desktop {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: -12px;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--cream);
    cursor: pointer;
    transition: all 0.18s;
}
.header-theme-desktop:hover { background: rgba(255,255,255,0.18); border-color: var(--rose); }

/* Home hero */
.home-hero { padding: 8px 0 32px; margin-bottom: 32px; }
.hero-search {
    position: relative;
    display: flex; align-items: center;
    max-width: 640px;
    margin-bottom: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--dust);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.hero-search:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 4px var(--mark-bg); }
.hero-search-icon { position: absolute; left: 18px; color: var(--stone-lt); pointer-events: none; }
.hero-search input {
    flex: 1; min-width: 0;
    height: 52px;
    padding: 0 12px 0 48px;
    border: 0; outline: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.98rem;
}
.hero-search input::placeholder { color: var(--stone-lt); }
.hero-search button {
    flex-shrink: 0;
    height: 42px;
    margin-right: 5px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--r-full);
    background: var(--burgundy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.hero-search button:hover { background: var(--burgundy-lt); }
.lang-chip-native {
    background: var(--cream-dark);
    padding: 0 7px;
    border-radius: var(--r-full);
    font-weight: 600;
}

/* Song list thumbnails and search snippets */
.song-entry { justify-content: flex-start; }
.song-entry-thumb {
    flex-shrink: 0;
    width: 64px; height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--cream-dark);
    color: var(--stone-lt);
    display: flex; align-items: center; justify-content: center;
}
.song-entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.song-entry-right { margin-left: auto; }
.song-entry-snippet {
    font-family: var(--font-lora);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Song page: sticky lyrics toolbar (overflow: clip keeps sticky working) */
.single-wrap, .lyrics-section { overflow: clip; }
/* clip, unlike hidden, lets grid items grow to their content width, so the
   one-row language tabs would stretch the card past the screen; let them shrink */
.content-grid > * { min-width: 0; }
.lyrics-section, .lyrics-toolbar { min-width: 0; max-width: 100%; }
.lyrics-tabs { min-width: 0; }
.lyrics-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
}
.lyrics-zoom { display: flex; align-items: center; gap: 6px; }
.lyrics-zoom-buttons { display: flex; gap: 6px; }
.zoom-toggle { display: none; }

/* Play / pause pill on the eyebrow line of the song header band (always dark).
   clip, not hidden: the glow circles overflow the band, and a hidden
   (scrollable) band would slide sideways when its button takes focus */
.song-header-band { overflow: clip; }
.song-eyebrow { flex-wrap: wrap; }
.song-play-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px;
    margin-left: 4px;
    padding: 0 11px 0 9px;
    border: 1px solid rgba(196,107,122,0.55);
    border-radius: var(--r-full);
    background: rgba(196,107,122,0.14);
    color: #F2C9D1;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.song-play-btn:hover { background: rgba(196,107,122,0.3); color: #fff; }
.song-play-btn.is-playing { background: #C46B7A; border-color: #C46B7A; color: #fff; }
.song-play-btn.is-playing:hover { background: #D27F8D; border-color: #D27F8D; }
.song-play-btn:focus-visible { outline: 2px solid #FDF8F2; outline-offset: 2px; border-radius: var(--r-full); }
.song-play-btn .icon-pause { display: none; }
.song-play-btn.is-playing .icon-play { display: none; }
.song-play-btn.is-playing .icon-pause { display: block; }

/* Section header without the rule underneath (homepage list) */
.section-hd.section-hd-plain { border-bottom: 0; padding-bottom: 0; }

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

/* Home: featured song cover carousel */
.featured-carousel { position: relative; margin: 0 0 36px; }
.fc-track {
    display: flex; gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: var(--r-md);
}
.fc-track::-webkit-scrollbar { display: none; }
.fc-track:focus-visible { outline-offset: 4px; }
.fc-card {
    position: relative;
    flex: 0 0 calc((100% - 32px) / 3);
    aspect-ratio: 16 / 9;
    border-radius: var(--r-md);
    overflow: hidden;
    scroll-snap-align: start;
    background: #2D1B16;
    box-shadow: var(--shadow-sm);
}
.fc-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.fc-card:hover img { transform: scale(1.05); }
.fc-card:focus-visible { outline-offset: -3px; outline-color: #FDF8F2; }
.fc-card-plain {
    background:
        radial-gradient(circle at 25% 20%, rgba(196,107,122,0.55), transparent 60%),
        linear-gradient(135deg, #7B2D3E, #2D1B16 75%);
}
.fc-plain-title {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 0 18px 30px;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    text-align: center;
    color: rgba(253,248,242,0.22);
}
.fc-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 38%, transparent 62%);
    pointer-events: none;
}
.fc-caption {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.fc-caption strong { font-weight: 700; }
.fc-sep { margin: 0 4px; opacity: 0.8; }
.fc-artist { font-weight: 500; opacity: 0.92; }
.fc-arrow {
    position: absolute; top: 50%; z-index: 2;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.94);
    color: #2D1B16;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.fc-arrow[hidden] { display: none; }
.fc-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.fc-prev { left: 12px; }
.fc-next { right: 12px; }
@media (prefers-reduced-motion: reduce) {
    .fc-track { scroll-behavior: auto; }
    .fc-card img { transition: none; }
}
@media (max-width: 960px) {
    .fc-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 680px) {
    .featured-carousel { margin-bottom: 24px; }
    .fc-track { gap: 12px; }
    .fc-card { flex-basis: 80%; }
    .fc-caption { font-size: 0.92rem; }
    .fc-arrow { display: none; }
}

/* Error pages (404, 500) inside the site layout */
.error-page {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
}
.error-code {
    font-family: var(--font-serif);
    font-size: clamp(5.5rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--rose);
    margin-bottom: 18px;
}
.error-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    color: var(--umber);
    letter-spacing: -0.6px;
    margin-bottom: 12px;
}
.error-text {
    font-family: var(--font-lora);
    font-size: 1.02rem;
    color: var(--stone);
    max-width: 520px;
    margin: 0 auto 26px;
}
.error-search { margin: 0 auto 18px; text-align: left; }
.search-page-form { margin: 22px 0 0; }
.error-home-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--burgundy);
}
.error-home-link:hover { text-decoration: underline; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.error-btn {
    display: inline-flex; align-items: center;
    height: 44px;
    padding: 0 22px;
    border: 1px solid var(--burgundy);
    border-radius: var(--r-full);
    background: var(--burgundy);
    color: #fff;
    font-size: 0.9rem; font-weight: 600;
    transition: background 0.18s, color 0.18s;
}
.error-btn:hover { background: var(--burgundy-lt); border-color: var(--burgundy-lt); }
.error-btn-ghost { background: transparent; color: var(--burgundy); }
.error-btn-ghost:hover { background: var(--badge-bg); color: var(--burgundy); }
.error-suggestions { margin-top: 48px; text-align: left; }

/* Ad slot preview outlines (admins only, Settings > Preview Ad Slots) */
.ad-slot-preview {
    border: 2px dashed var(--rose);
    border-radius: var(--r-md);
    background: var(--badge-bg);
    padding: 10px 12px 12px;
    text-align: left;
}
.ad-preview-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    margin-bottom: 8px;
    font-size: 0.74rem;
    color: var(--text-body);
}
.ad-preview-bar strong { color: var(--burgundy); }
.ad-preview-bar span { color: var(--stone); }
.ad-preview-status {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--r-full);
    background: var(--cream-dark);
    color: var(--stone);
    font-style: normal;
    font-weight: 600;
    font-size: 0.68rem;
}
.ad-preview-status.is-live { background: #166534; color: #fff; }
.ad-preview-empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 90px;
    border-radius: var(--r-sm);
    background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(196,107,122,0.08) 10px 20px);
    color: var(--stone);
    font-size: 0.82rem;
    font-weight: 600;
}
.ad-slot-sidebar.ad-slot-preview .ad-preview-empty { min-height: 250px; }

/* Collapsible credits */
details.credits-box > summary { list-style: none; cursor: pointer; }
details.credits-box > summary::-webkit-details-marker { display: none; }
.credits-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credits-chevron { transition: transform 0.2s; }
details.credits-box[open] .credits-chevron { transform: rotate(180deg); }
details.credits-box:not([open]) .credits-head { border-bottom: none; }
.credits-head:hover { color: var(--burgundy); }

/* Share popup buttons that would vanish on a dark surface */
.share-btn-x { color: var(--umber); }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 900;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: var(--r-full);
    background: var(--burgundy);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.18s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--burgundy-lt); }
.back-to-top:focus-visible { outline-color: var(--umber); border-radius: var(--r-full); }

@media (max-width: 820px) {
    :root { --header-h: 60px; }
    .header-theme-desktop { display: none; }
}

@media (max-width: 680px) {
    :root { --header-h: 58px; }


    .home-hero { padding: 4px 0 24px; margin-bottom: 24px; }
    .home-hero-title { font-size: 1.9rem; letter-spacing: -0.6px; }
    .home-hero-sub { font-size: 0.95rem; margin-bottom: 20px; }
    .hero-search input { height: 48px; font-size: 0.92rem; padding-left: 44px; }
    .hero-search-icon { left: 16px; }
    .hero-search button { height: 38px; padding: 0 16px; }

    /* Thumbnail beside the text, badges under it */
    .song-entry {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        align-items: start;
    }
    .song-entry-thumb { grid-row: span 2; width: 56px; height: 42px; }
    .song-entry-right { grid-column: 2; margin-left: 0; }
    .song-entry-snippet { white-space: normal; }

    /* Language tabs wrap so every one stays visible; compact actions */
    .lyrics-tabs { flex-wrap: wrap; width: 100%; }
    .lyrics-tab-btn { white-space: nowrap; }
    .lyrics-toolbar { gap: 10px; }
    .zoom-toggle { display: inline-flex; }
    .lyrics-zoom-buttons { display: none; }
    .lyrics-zoom.open .lyrics-zoom-buttons { display: flex; }
    .lyrics-zoom.open .zoom-toggle { border-color: var(--burgundy); color: var(--burgundy); }

    .back-to-top { right: 16px; bottom: 18px; width: 42px; height: 42px; }
}
.pagination .page-gap { padding: 0 4px; color: var(--text-subtle); }
/* Edit link on the song page, for signed-in staff */
.song-edit-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px;
    margin-left: auto;
    padding: 0 11px 0 9px;
    border: 1px solid rgba(253,248,242,0.28);
    border-radius: var(--r-full);
    background: rgba(253,248,242,0.06);
    color: rgba(253,248,242,0.85);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.song-edit-btn:hover { background: rgba(253,248,242,0.16); border-color: rgba(253,248,242,0.5); color: #fff; }
.song-edit-btn:focus-visible { outline: 2px solid #FDF8F2; outline-offset: 2px; }

/* Contact form message: width fixed (resize up and down only), a little taller */
.contact-form textarea { resize: vertical; min-height: 170px; max-width: 100%; }

/* Song header: the feature image, blurred and tinted, behind the title */
.song-header-band.has-cover { isolation: isolate; }
.song-header-bg {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(14px) saturate(1.2);
    opacity: 0.9;
    z-index: -2;
    pointer-events: none;
    user-select: none;
}
/* Tint: darkest under the text on the left, more of the picture on the right */
.song-header-band.has-cover::after {
    inset: 0;
    width: auto; height: auto;
    left: 0; bottom: 0;
    border-radius: 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--umber) 82%, transparent) 0%,
        color-mix(in srgb, var(--umber) 55%, transparent) 55%,
        color-mix(in srgb, var(--umber) 25%, transparent) 100%);
    z-index: -1;
}
.song-header-band.has-cover::before { z-index: -1; }

/* Singer and movie links in the song header */
.song-meta-bar a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(253,248,242,0.25); transition: border-color 0.15s, color 0.15s; }
.song-meta-bar a:hover { color: #fff; border-bottom-color: var(--rose); }
.song-meta-bar a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }

/* Notice for signed-in staff while maintenance mode is on */
.staff-notice { background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; font-size: 0.86rem; }
.staff-notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.staff-notice-links { display: inline-flex; gap: 16px; }
.staff-notice a { color: #78350f; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.staff-notice a:hover { color: #451a03; }

/* Maintenance page: the wrench is an icon, not outlined digits, and the message sits mid-screen */
.error-code-icon { color: var(--rose); -webkit-text-stroke: 0; letter-spacing: 0; line-height: 0; }
.error-code-icon svg { display: inline-block; }
.error-page.is-maintenance {
    min-height: min(60vh, 480px);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.error-page.is-maintenance .error-text { margin-bottom: 0; }
.error-page.is-maintenance .error-code-icon { margin-bottom: 14px; }
.error-page.is-maintenance .error-title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 8px; }
.error-page.is-maintenance .error-text { font-size: 0.98rem; }
/* Maintenance message in a card, like the site's other boxes */
.maintenance-card {
    width: 100%;
    max-width: 560px;
    padding: 40px 36px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--dust-lt);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
@media (max-width: 600px) {
    .maintenance-card { padding: 30px 20px 26px; }
}

/* Footer credit */
.footer-credit a { color: rgba(253,248,242,0.55); text-decoration: none; }
.footer-credit a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }

/* --- Search popup (app.js): centered panel with results as you type -------- */
.search-modal { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(28, 16, 12, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: sm-fade .15s ease-out; }
.search-modal-panel { position: relative; width: 100%; max-width: 640px; max-height: 76vh; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--dust-lt); border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(28, 16, 12, 0.45); overflow: hidden; animation: sm-rise .18s ease-out; }
.search-modal-form { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--dust-lt); }
.search-modal-icon { flex-shrink: 0; color: var(--stone); }
.search-modal-input { flex: 1; min-width: 0; height: 60px; border: 0; outline: none; background: transparent; color: var(--umber); font: 500 1.08rem/1 var(--font-body); }
.search-modal-input::placeholder { color: var(--stone); opacity: .8; }
.search-modal-input::-webkit-search-cancel-button { display: none; }
.search-modal-esc { flex-shrink: 0; padding: 4px 8px; border: 1px solid var(--dust); border-radius: 6px; background: transparent; color: var(--stone); font: 600 0.72rem/1 var(--font-body); cursor: pointer; }
.search-modal-results { overflow-y: auto; padding: 8px; }
.search-modal-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.search-modal-item:hover, .search-modal-item.is-active { background: var(--cream-dark); }
.search-modal-item.is-active { box-shadow: inset 3px 0 0 var(--rose); }
.search-modal-thumb { flex-shrink: 0; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--cream-dark); color: var(--stone); display: flex; align-items: center; justify-content: center; }
.search-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-modal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-modal-title { font: 700 0.98rem/1.3 var(--font-body); color: var(--umber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-modal-meta { font-size: 0.8rem; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-modal-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--dust); color: var(--stone); font-size: 0.72rem; font-weight: 600; }
.search-modal-all { display: block; margin: 4px 0 0; padding: 12px; border-radius: 10px; text-align: center; color: var(--rose); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.search-modal-all:hover { background: var(--cream-dark); }
.search-modal-empty { padding: 28px 16px; text-align: center; color: var(--stone); font-size: 0.9rem; line-height: 1.6; }
.search-modal-foot { display: flex; gap: 18px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--dust-lt); color: var(--stone); font-size: 0.74rem; }
.search-modal-foot kbd { display: inline-block; min-width: 20px; margin-right: 4px; padding: 1px 5px; border: 1px solid var(--dust); border-radius: 4px; font: 600 0.7rem/1.4 var(--font-body); text-align: center; }
html.search-open { overflow: hidden; }
@keyframes sm-fade { from { opacity: 0; } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .search-modal-backdrop, .search-modal-panel { animation: none; } }
@media (max-width: 640px) {
    .search-modal { padding: 0; align-items: stretch; }
    .search-modal-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
    .search-modal-foot { display: none; }
    .search-modal-badge { display: none; }
}
