/* ==========================================================================
   app.css — Shared styles for LyricTribe
   Unified from all 6 mockup files
   ========================================================================== */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --vermillion: #e63946;
    --vermillion-dark: #c5303c;
    --vermillion-light: rgba(230, 57, 70, 0.1);
    --warm-gray: #f1f1f1;
    --gray-100: #fafafa;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --content-max: 1200px;
    --font-display: 'Onest', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --header-h: 68px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.10);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Theme tokens */
    --bg-primary: var(--white);
    --bg-secondary: var(--warm-gray);
    --bg-card: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--gray-600);
    --text-muted: #888888;
    --border-color: var(--gray-200);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: var(--gray-200);
    --hover-bg: var(--gray-100);
}

[data-theme="dark"] {
    --bg-primary: var(--black);
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #848484;
    --text-secondary: var(--gray-400);
    --text-muted: #939191;
    --border-color: var(--gray-700);
    --header-bg: rgba(10, 10, 10, 0.95);
    --header-border: var(--gray-700);
    --hover-bg: var(--gray-700);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--vermillion); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; }

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 7rem;
}

/* ==================== DARK GLASSMORPHIC HEADER (V4) ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 7rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.logo .accent { color: var(--vermillion); }
.logo-img { height: 40px; width: 40px; object-fit: contain; margin-right: 0.5rem; }

/* Pill Nav */
.nav-pills {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 4px;
}
.nav-pills a {
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.2s;
}
.nav-pills a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-pills a.active { color: #fff; background: var(--vermillion); }

/* Right actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-icon-btn:hover { border-color: var(--vermillion); color: var(--vermillion); background: rgba(230,57,70,0.1); }
.nav-icon-btn svg { width: 16px; height: 16px; }

/* Dark mode toggle icons */
.nav-icon-btn .icon-sun { display: none; }
.nav-icon-btn .icon-moon { display: block; }
[data-theme="dark"] .nav-icon-btn .icon-moon { display: none; }
[data-theme="dark"] .nav-icon-btn .icon-sun { display: block; }

/* Hamburger (mobile only) */
.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==================== MOBILE SIDEBAR (Dark) ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
}
.sidebar-overlay.open { display: block; }

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #0a0a0a;
    z-index: 1002;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.sidebar-menu.open { right: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
}
.sidebar-logo .accent { color: var(--vermillion); }
.sidebar-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    transition: background 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.15); }

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sidebar-nav a.active { color: var(--vermillion); background: rgba(230,57,70,0.08); }
.sidebar-nav .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 8px;
}
.sidebar-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-body);
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-btn-outline {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.7);
}
.sidebar-btn-outline:hover { border-color: var(--vermillion); color: var(--vermillion); }
.sidebar-btn-filled {
    border: none;
    background: var(--vermillion);
    color: #fff;
}
.sidebar-btn-filled:hover { background: var(--vermillion-dark); }

/* ==================== AD SLOTS ==================== */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 1.5rem auto;
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition);
}
.ad-leaderboard,
.ad-728x90 { max-width: 728px; width: 100%; height: 90px; }
.ad-970x90 { max-width: 970px; width: 100%; height: 90px; margin: 1rem auto; }
.ad-in-content,
.ad-300x250 { max-width: 300px; width: 100%; min-height: 250px; margin: 2rem auto; }
.ad-sidebar-sticky,
.ad-300x600 { max-width: 300px; width: 100%; min-height: 600px; }
.ad-end-lyrics,
.ad-336x280 { max-width: 336px; width: 100%; min-height: 280px; margin: 2rem auto; }
.ad-in-feed,
.ad-728x90-infeed { max-width: 728px; width: 100%; height: 90px; margin: 2rem auto; }
.ad-320x100 { max-width: 320px; width: 100%; min-height: 100px; margin: 1rem auto; }
.ad-320x50 { max-width: 320px; width: 100%; height: 50px; margin: 0 auto; }
.ad-160x600 { max-width: 160px; width: 100%; min-height: 600px; }

/* In-lyrics / in-article ads — natively sized, wide */
.ad-pos-in_lyrics_1,
.ad-pos-in_lyrics_2,
.ad-pos-blog_inread_1,
.ad-pos-blog_inread_2 {
    margin: 2rem auto;
    max-width: 100%;
}

/* Native recommendations (sidebar card) */
.ad-pos-native_recommendations {
    max-width: 300px;
    margin: 1rem auto;
}

/* Sticky sidebar wrapper — applies to all sidebar ad positions */
.ad-pos-sidebar,
.ad-pos-sidebar_secondary,
.ad-pos-sidebar_tertiary {
    position: sticky;
    top: 80px;
    margin-bottom: 1.5rem;
}

/* ---- Anchor Ad (Sticky Bottom, Mobile Only) ---- */
.ad-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    min-height: 58px;
}
.ad-anchor-close {
    position: absolute;
    top: -14px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #1a1a1a);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}
.ad-anchor-close:hover {
    background: var(--bg-secondary, #f9fafb);
}
.ad-anchor-slot {
    width: 320px;
    height: 50px;
    overflow: hidden;
}
@media (min-width: 1025px) {
    .ad-anchor { display: none !important; }
}

/* ---- Ad Container (DB-driven component) ---- */
.ad-container { margin: 1.5rem auto; text-align: center; }
.ad-container:empty { display: none !important; margin: 0 !important; padding: 0 !important; }

/* Hide unfilled AdSense units — only when Google explicitly marks them as such */
.ad-slot:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Hide container ONLY when the ins has explicit "unfilled" status (Google said "no ad") */
.ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide container if ad script failed to load entirely (script.onerror handler sets this) */
.ad-container.ad-blocked {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide outer .ad-slot wrapper when there's nothing to show inside it.
   The blade template wraps <x-ad-slot> components like:
     <div class="ad-slot ad-in-feed">
         <x-ad-slot position="in_feed" page="lyrics" />
     </div>
   When no AdSlot record is configured OR the inner ad is unfilled, the
   outer wrapper still has dashed border + min-height + background. These
   :has() rules collapse the wrapper so the user never sees a ghost slot.
   `:empty` alone doesn't work because blade leaves whitespace between tags. */
.ad-slot:not(:has(.ad-container)),
.ad-slot:has(.ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"])),
.ad-slot:has(.ad-container.ad-blocked) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* Reserve minimum space for ads while they load (prevents CLS) */
.ad-container {
    min-height: 90px;
    text-align: center;
    display: block;
}
.ad-container ins.adsbygoogle {
    display: block !important;
}

/* Device-targeted ads: hide desktop-only on mobile, mobile-only on desktop */
@media (max-width: 1024px) {
    .ad-container[data-ad-device="desktop"] { display: none !important; }
}
@media (min-width: 1025px) {
    .ad-container[data-ad-device="mobile"] { display: none !important; }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}
.breadcrumb a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep {
    color: rgba(255,255,255,0.35);
    margin: 0 0.4rem;
}

/* Breadcrumb on light bg pages */
.page-header .breadcrumb,
.article-header .breadcrumb,
main > .container > .breadcrumb {
    color: var(--text-muted, #888);
}
.page-header .breadcrumb a,
.article-header .breadcrumb a,
main > .container > .breadcrumb a {
    color: var(--text-secondary, #555);
}
.page-header .breadcrumb a:hover,
.article-header .breadcrumb a:hover,
main > .container > .breadcrumb a:hover {
    color: var(--vermillion);
}
.page-header .breadcrumb .sep,
.article-header .breadcrumb .sep,
main > .container > .breadcrumb span {
    color: var(--gray-400, #aaa);
}

/* ==================== SECTION STYLES ==================== */
.section {
    padding: 48px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 20px;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--text-primary);
}
.section-header .view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--vermillion);
    white-space: nowrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title .count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* ==================== GENRE PILLS ==================== */
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.genre-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==================== CARD COMPONENTS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
}
.card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
}
.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* ==================== VIEW ALL BUTTON ==================== */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--vermillion);
    border: 2px solid var(--vermillion);
    border-radius: var(--radius-full);
    transition: background var(--transition), color var(--transition);
}
.view-all-btn:hover {
    background: var(--vermillion);
    color: #fff;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color var(--transition);
}
.accordion-item.active { border-color: var(--vermillion); }

.accordion-header,
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    transition: background var(--transition);
}
.accordion-header:hover,
.accordion-trigger:hover { background: var(--hover-bg); }
.accordion-header svg,
.accordion-trigger svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-item.open .accordion-header svg,
.accordion-item.active .accordion-trigger svg { transform: rotate(180deg); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.accordion-body-inner {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==================== SHARE BUTTONS ==================== */
.social-share,
.share-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    transition: transform var(--transition), opacity var(--transition);
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn svg { width: 16px; height: 16px; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #0a0a0a; }
.share-copy { background: var(--vermillion); }

/* ==================== HORIZONTAL SCROLL ==================== */
.h-scroll-wrapper {
    position: relative;
}
.h-scroll,
.h-scroll-wrap {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    cursor: grab;
}
.h-scroll::-webkit-scrollbar,
.h-scroll-wrap::-webkit-scrollbar { display: none; }
.h-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.h-scroll-track { display: flex; gap: 1rem; }
.h-scroll-wrap::-webkit-scrollbar { height: 4px; }
.h-scroll-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

/* ==================== GRADIENT PLACEHOLDERS ==================== */
.grad-1 { background: linear-gradient(135deg, #e63946, #f4a261); }
.grad-2 { background: linear-gradient(135deg, #457b9d, #1d3557); }
.grad-3 { background: linear-gradient(135deg, #6a0572, #ab83a1); }
.grad-4 { background: linear-gradient(135deg, #264653, #2a9d8f); }
.grad-5 { background: linear-gradient(135deg, #f72585, #7209b7); }
.grad-6 { background: linear-gradient(135deg, #ff6b35, #f7c59f); }
.grad-7 { background: linear-gradient(135deg, #0077b6, #00b4d8); }
.grad-8 { background: linear-gradient(135deg, #9b5de5, #f15bb5); }
.grad-9 { background: linear-gradient(135deg, #06d6a0, #118ab2); }
.grad-10 { background: linear-gradient(135deg, #ef476f, #ffd166); }
.grad-11 { background: linear-gradient(135deg, #073b4c, #06d6a0); }
.grad-12 { background: linear-gradient(135deg, #e63946, #1d3557); }

/* ==================== FOOTER (V4 Dark) ==================== */
.footer-v4 {
    background: #050505;
    padding-top: 64px;
    color: rgba(255,255,255,0.6);
}
.footer-v4 .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand-lockup { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 12px; }
.footer-logo-img { height: 40px; width: 40px; object-fit: contain; }
.footer-brand .footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.footer-logo-text .white { color: #fff; }
.footer-logo-text .accent { color: var(--vermillion); }
.footer-brand p {
    color: #a0a0a0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
}
.footer-socials a:hover { background: var(--vermillion); border-color: var(--vermillion); }
.footer-socials a svg { width: 16px; height: 16px; }
.footer-v4 .footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #fff;
}
.footer-v4 .footer-col ul li { margin-bottom: 8px; }
.footer-v4 .footer-col ul a {
    color: #a0a0a0;
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-v4 .footer-col ul a:hover { color: var(--vermillion); }
.footer-az {
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 24px 0;
}
.footer-az-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.footer-az-label {
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin-right: 8px;
    white-space: nowrap;
}
.footer-az a {
    width: 34px;
    height: 34px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a0a0a0;
    transition: all var(--transition);
}
.footer-az a:hover { background: var(--vermillion); border-color: var(--vermillion); color: #fff; }
.footer-v4 .footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .footer-v4 .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-v4 .footer-grid { grid-template-columns: 1fr; }
}

/* ==================== FOOTER (Legacy — kept for non-home pages) ==================== */
.site-footer:not(.footer-v4) {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-col h4,
.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-col a,
.footer-col ul a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-col a:hover,
.footer-col ul a:hover { color: var(--text-primary); }

.footer-logo img { height: 32px; margin-bottom: 12px; }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.social-icons a:hover { background: var(--vermillion); color: #fff; }
.social-icons svg { width: 16px; height: 16px; }

/* A-Z bar */
.az-bar {
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
    padding: 20px;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.az-bar a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all var(--transition);
}
.az-bar a:hover { background: var(--vermillion); color: #fff; }

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ==================== RESPONSIVE — HEADER/FOOTER/SHARED ==================== */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .ad-sidebar-sticky,
    .ad-300x600 { display: none; }
}

@media (max-width: 1024px) {
    .header-inner { padding: 0 2rem; }
}
@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; height: 56px; }
    .nav-pills { display: none; }
    .hamburger { display: flex; }
    .logo { font-size: 1rem; }

    .nav-center.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .ad-leaderboard,
    .ad-728x90,
    .ad-in-feed { max-width: 100%; height: 60px; }
    .ad-sidebar { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .ad-728x90 { height: 50px; }
    .ad-in-content,
    .ad-300x250 { height: 200px; }
    .section { padding: 32px 0; }
    .section-header { padding: 0 1rem; margin-bottom: 16px; }
}

/* ==================== LARGE DESKTOP (1440px+) ==================== */
@media (min-width: 1440px) {
    :root { --content-max: 1400px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}

/* ===== Pagination ===== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.pagination-btn:hover:not(.disabled) {
    background: var(--vermillion);
    color: #fff;
    border-color: var(--vermillion);
}
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
/* ===== EMPTY STATE (reusable across all listing pages) ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}
.empty-state-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--vermillion);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition);
}
.empty-state-btn:hover { background: var(--vermillion-dark); color: #fff; }

@media (max-width: 480px) {
    .pagination-wrap { gap: 0.5rem; }
    .pagination-btn { padding: 0.4rem 0.75rem; font-size: 13px; }
}

/* ==================== NEWSLETTER FULL-WIDTH (V4) ==================== */
.newsletter-fullwidth {
    background: linear-gradient(135deg, #e63946, #b71c1c, #1a1a1a);
    padding: 64px 0;
}
.newsletter-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.newsletter-inner h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}
.newsletter-inner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 12px;
}
.newsletter-form input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: 14px 24px;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
    background: #fff;
    color: #0a0a0a;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition);
    white-space: nowrap;
}
.newsletter-form button:hover { transform: scale(1.03); }
.newsletter-note {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .newsletter-inner h2 { font-size: 1.5rem; }
    .newsletter-fullwidth { padding: 48px 1rem; }
}
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}

/* ==================== TOPBAR TICKER ==================== */
.topbar-ticker {
    background: var(--vermillion);
    height: 28px;
    overflow: hidden;
    position: relative;
    z-index: 101;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-track span {
    display: inline-block;
    padding: 0 40px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    line-height: 28px;
    letter-spacing: 0.02em;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .ticker-track span { font-size: 0.7rem; padding: 0 24px; }
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--vermillion);
    padding: 2rem 0;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
.cookie-consent.hidden {
    transform: translateY(100%);
    pointer-events: none;
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.cookie-consent-text a {
    color: var(--vermillion);
    font-weight: 600;
    text-decoration: underline;
}
.cookie-consent-text a:hover { color: #fff; }
.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.cookie-btn-filled {
    background: var(--vermillion);
    color: #fff;
    border: 2px solid var(--vermillion);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}
.cookie-btn-filled:hover {
    background: #c5303c;
    border-color: #c5303c;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.6);
    transform: translateY(-1px);
}
.cookie-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.cookie-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
@media (max-width: 768px) {
    .cookie-consent { padding: 1.5rem 0; }
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .cookie-consent-text p { font-size: 0.95rem; }
    .cookie-consent-actions { width: 100%; justify-content: center; }
    .cookie-btn { padding: 0.75rem 1.75rem; font-size: 0.95rem; }
}

/* ===== FAQ — Native <details><summary> Accordion (Global) ===== */
/* Hide the default triangle marker on ALL browsers */
details.tribe-faq > summary { list-style-type: none; }
details.tribe-faq > summary::-webkit-details-marker { display: none !important; }
details.tribe-faq > summary::marker { display: none !important; content: '' !important; font-size: 0; }

details.tribe-faq {
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--bg-secondary, #f9f9f6);
}
details.tribe-faq[open] {
    background: var(--bg-primary, #ffffff);
}
summary.tribe-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    user-select: none;
    transition: color 0.2s;
    list-style: none;
    list-style-type: none;
}
summary.tribe-faq-q:hover { color: var(--vermillion); }
details.tribe-faq .qa-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
details.tribe-faq[open] .qa-icon { transform: rotate(45deg); }
details.tribe-faq .qa-answer {
    padding: 0 1.15rem 1.15rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SEARCH OVERLAY (Cmd+K / Ctrl+K Style) ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(15vh, 120px);
}
.search-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.search-overlay-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 70vh;
    margin: 0 1rem;
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: searchSlideIn 0.15s ease-out;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}
.search-input-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-muted, #999);
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-primary, #1a1a1a);
}
.search-input::placeholder { color: var(--text-muted, #aaa); }
.search-kbd {
    font-size: 0.7rem;
    font-family: var(--font-body);
    padding: 2px 6px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    color: var(--text-muted, #999);
    background: var(--bg-secondary, #f5f5f0);
    flex-shrink: 0;
}
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    min-height: 60px;
    max-height: calc(70vh - 120px);
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Category headings */
.search-category {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #999);
}
/* Result items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary, #1a1a1a);
    transition: background 0.1s;
}
.search-result-item:hover,
.search-result-item.active {
    background: var(--bg-secondary, #f5f5f0);
}
.search-result-item.active {
    background: rgba(230, 57, 70, 0.08);
}
.search-result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-secondary, #f0f0f0);
    flex-shrink: 0;
}
.search-result-thumb.artist {
    border-radius: 50%;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-title mark {
    background: rgba(230, 57, 70, 0.15);
    color: var(--vermillion, #e63946);
    padding: 0 1px;
    border-radius: 2px;
}
.search-result-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-muted, #999);
}
.search-result-badge.song { background: rgba(230, 57, 70, 0.1); color: var(--vermillion); }
.search-result-badge.artist { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.search-result-badge.album { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Empty state */
.search-empty {
    padding: 2rem 1.25rem;
    text-align: center;
}
.search-empty-text { color: var(--text-muted, #999); font-size: 0.9rem; }

/* Loading */
.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* No results */
.search-no-results {
    padding: 2rem 1.25rem;
    text-align: center;
}
.search-no-results p { color: var(--text-muted); font-size: 0.9rem; }
.search-no-results a { color: var(--vermillion); font-weight: 600; }

/* Footer */
.search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    border-top: 1px solid var(--border-color, #e5e5e5);
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}
.search-footer kbd {
    display: inline-block;
    padding: 1px 4px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.68rem;
    font-family: var(--font-body);
    background: var(--bg-secondary, #f5f5f0);
}
.search-all-link {
    color: var(--vermillion);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.78rem;
}
.search-all-link:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
    .search-overlay { padding-top: 0; align-items: stretch; }
    .search-overlay-card {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    .search-results { max-height: calc(100vh - 120px); }
    .search-kbd { display: none; }
}

/* Dark mode */
[data-theme="dark"] .search-overlay-card {
    background: #1a1a1a;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.active {
    background: rgba(255,255,255,0.05);
}

/* ===== Internal Links in Content — Visible & Accessible ===== */
/* Bio, about_text, song_meaning, production_notes, cultural_context */
.bio-text a,
.about-text a,
.meaning-content a,
.production-content a,
.cultural-content a,
.section-block a:not(.btn) {
    color: var(--vermillion, #e63946);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(230, 57, 70, 0.3);
    transition: border-color 0.2s, color 0.2s;
}
.bio-text a:hover,
.about-text a:hover,
.meaning-content a:hover,
.production-content a:hover,
.cultural-content a:hover,
.section-block a:not(.btn):hover {
    color: var(--vermillion-dark, #c5303c);
    border-bottom-color: var(--vermillion, #e63946);
}
/* Dark mode */
[data-theme="dark"] .bio-text a,
[data-theme="dark"] .about-text a,
[data-theme="dark"] .meaning-content a,
[data-theme="dark"] .production-content a,
[data-theme="dark"] .cultural-content a,
[data-theme="dark"] .section-block a:not(.btn) {
    color: #ff6b6b;
    border-bottom-color: rgba(255, 107, 107, 0.3);
}

/* ==================== AUTHOR BIO (E-E-A-T) ==================== */
.author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 1.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--vermillion);
}
.author-bio__media {
    flex-shrink: 0;
}
.author-bio__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
}
.author-bio__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e63946, #c5303c);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-color: transparent;
}
.author-bio__body {
    flex: 1 1 auto;
    min-width: 0;
}
.author-bio__heading-row {
    margin-bottom: 0.6rem;
}
.author-bio__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.1rem 0;
    line-height: 1.3;
}
.author-bio__name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.author-bio__name a:hover {
    border-bottom-color: var(--vermillion);
}
.author-bio__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.45rem;
    vertical-align: 0.15em;
}
.author-bio__title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
    font-weight: 500;
}
.author-bio__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0.75rem 0 0 0;
}
.author-bio__dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.85rem 0 0 0;
}
.author-bio__dates time {
    color: var(--text-secondary);
    font-weight: 500;
}
.author-bio__dates-sep {
    margin: 0 0.35rem;
    color: var(--text-muted);
}

/* Responsive — stack photo above text on mobile */
@media (max-width: 640px) {
    .author-bio {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    .author-bio__photo,
    .author-bio__photo--initials {
        width: 80px;
        height: 80px;
        font-size: 1.7rem;
    }
    .author-bio__name {
        font-size: 1.1rem;
    }
    .author-bio__text {
        font-size: 0.9rem;
    }
}

/* Dark mode tuning */
[data-theme="dark"] .author-bio {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    border-left-color: #ff6b6b;
}
[data-theme="dark"] .author-bio__photo {
    border-color: rgba(255,255,255,0.1);
}

/* Author bio — social row (full variant only, /author/{slug} page) */
.author-bio__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
}
.author-bio__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.author-bio__social-link:hover {
    color: var(--vermillion);
    border-color: var(--vermillion);
    background: rgba(230, 57, 70, 0.06);
}
.author-bio__social-link svg {
    flex-shrink: 0;
}
.author-bio__social-label {
    line-height: 1;
}
[data-theme="dark"] .author-bio__social-link {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .author-bio__social-link:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ============================================================
   Unified missing-cover placeholder — brand watermark
   One consistent branded fallback (plum gradient + faint
   LyricTribe icon watermark) anywhere a cover is absent, so empty
   slots look intentional instead of blank/varied across pages.
   Empty state detected via :not([style]) for background-image
   divs, and :not(:has(img)) for <img>-based slots. Groups are kept
   separate so browsers without :has() still apply the rest.
   ============================================================ */

/* -- Shared visual (group A: universally-supported selectors) -- */
.cover-ph,
.fl-mag-card__cover:not([style]),
.fl-trend__hero-cover:not([style]),
.fl-trend__row-cover:not([style]),
.fl-album-tile__cover:not([style]),
.fl-news-tile__cover:not([style]),
.lpG__side-cover:not([style]) {
    position: relative;
    background: linear-gradient(150deg, #241526 0%, #3a1730 55%, #5a1c33 100%) !important;
    overflow: hidden;
}
.cover-ph::after,
.fl-mag-card__cover:not([style])::after,
.fl-trend__hero-cover:not([style])::after,
.fl-trend__row-cover:not([style])::after,
.fl-album-tile__cover:not([style])::after,
.fl-news-tile__cover:not([style])::after,
.lpG__side-cover:not([style])::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/lyrictribe-mark.webp') no-repeat center 40%;
    background-size: 42%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* -- Shared visual (group B: :has()-based <img> slots) -- */
.lpG__hero-art:not(:has(img)),
.album-art:not(:has(img)),
.album-card-art:not(:has(img)),
.ltArtist__album-cover:not(:has(img)) {
    position: relative;
    background: linear-gradient(150deg, #241526 0%, #3a1730 55%, #5a1c33 100%) !important;
    overflow: hidden;
}
.lpG__hero-art:not(:has(img))::after,
.album-art:not(:has(img))::after,
.album-card-art:not(:has(img))::after,
.ltArtist__album-cover:not(:has(img))::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    border: 0;
    border-radius: 0;
    background: url('/images/lyrictribe-mark.webp') no-repeat center 40%;
    background-size: 42%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
/* Album hero: drop the now-redundant "Album Art" label when empty */
.album-art:not(:has(img)) .album-art-label { display: none; }

/* -- Standalone branded placeholder component (albums index, etc.) -- */
.cover-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cover-ph__label {
    position: relative;
    z-index: 1;
    max-width: 88%;
    margin-bottom: 12%;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
