﻿/* =====================================================
   MelodyArk — app.css
   Dark, Spotify-inspired theme -v222
   ===================================================== */

:root {
    --bg:            #11111e;
    --bg-card:       #20202f;
    --bg-card-2:     #29293d;
    --bg-card-3:     #0e0c16;
    --bg-nav:        rgba(22, 22, 36, 0.93);
    --bg-player:     #1d1d2e;
    --player-h:      96px;
    --player-gap:    10px;
    --nav-h:         68px;
    --accent:        #7c3aed;
    --accent-hover:  #6d28d9;
    --accent-light:  #a78bfa;
    --accent-glow:   rgba(124, 58, 237, 0.28);
    --text:          #f2f2fa;
    --text-muted:    #a0a0be;
    --text-dim:      #5a5a78;
    --green:         #4ade80;
    --border:        rgba(255, 255, 255, 0.10);
    --radius:        14px;
    --radius-sm:     8px;
    --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* ── Global scrollbar: hidden ───────────────────────────────────────────── */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 11px 24px;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; display: flex; }

/* ─── NAV ────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Site-wide logo image sizing */
.site-logo-img {
    display: block;
    width: auto;
    height: 34px;
}
.nav-logo .site-logo-img       { height: 44px; }
.auth-logo .site-logo-img      { height: 62px; }
.footer-brand .site-logo-img   { height: 26px; }
.app-sidebar__brand .site-logo-img { height: 28px; }
.app-footer__brand .site-logo-img  { height: 20px; }

.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover    { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active   { color: var(--text); }

.nav-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
    padding: 100px 0 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.38);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.4px;
}

.hero-title {
    font-size: clamp(46px, 7.5vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 45%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── ALBUM PREVIEW STRIP ────────────────────────── */
/* .album-strip — outer bg/padding provided by .section.section--alt parent */

.album-strip__grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.album-strip__card {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    width: 170px;
    flex-shrink: 0;
    transition: transform 0.22s;
}
.album-strip__card:hover { transform: translateY(-4px); }

.album-strip__cover-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}
.album-strip__cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s, transform 0.25s;
    filter: brightness(0.72) saturate(0.8);
}
/* Dark screen overlay over cover art */
.album-strip__cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 18, 0.38);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.22s;
}
.album-strip__card:hover .album-strip__cover-wrap img {
    opacity: 0.75;
    transform: scale(1.04);
}
.album-strip__card:hover .album-strip__cover-wrap::after { opacity: 0.6; }

/* Play icon overlay on hover */
.album-strip__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s;
    background: rgba(0,0,0,0.28);
    z-index: 2;
}
.album-strip__play i {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.album-strip__card:hover .album-strip__play { opacity: 1; }

/* Text overlaid at bottom of cover image */
.album-strip__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    padding: 0 10px 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.945));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}
.album-strip__ref {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: .8;
}
.album-strip__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.album-strip__cta-line {
    text-align: center;
    margin-top: 28px;
}
.album-strip__see-all {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: .8;
    transition: opacity 0.15s;
}
.album-strip__see-all:hover { opacity: 1; }

@media (max-width: 640px) {
    .album-strip__grid { gap: 12px; }
    .album-strip__card { width: calc(50% - 6px); }
}

/* ─── SECTIONS ───────────────────────────────────── */
.section { padding: 40px 0; }
.section--alt { background: var(--bg); }
.section-rule { border: none; border-top: 1px solid var(--border); margin: 52px 0; }

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 10px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 420px;
    margin: 0 auto 52px;
    line-height: 1.65;
}

/* ─── GENRE PREVIEW ─────────────────────────────────── */
.genre-preview { padding: 0px 0 0px; }

.genre-preview__header { text-align: center; margin-bottom: 28px; }
.genre-preview__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: 0.8;
    margin-bottom: 10px;
}
/* .genre-preview__title/.genre-preview__sub replaced by .section-title/.section-sub */

/* Tag pills */
.genre-preview__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

/* Mobile select — hidden on desktop */
.genre-preview__select-wrap { display: none; margin-bottom: 28px; }
.genre-tag-select {
    width: 100%;
    max-width: 340px;
    padding: 11px 16px;
    border-radius: var(--radius);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238080a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.genre-tag-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.genre-tag-btn {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.genre-tag-btn:hover { background: var(--bg-card); color: var(--text); }
.genre-tag-btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Results panel */
.genre-preview__panel { max-width: 620px; margin: 0 auto; }
.genre-preview__track-list { margin-bottom: 10px; }

/* Track row */
.gp-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid transparent;
    margin-bottom: 8px;
    transition: background 0.15s, border-color 0.15s;
}
.gp-track:hover { background: var(--bg-card-2); border-color: var(--border); }

.gp-track__art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card-2);
}
.gp-track__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gp-track__info { flex: 1; min-width: 0; }
.gp-track__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-track__album {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-track__dur {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

/* 30s progress bar */
.gp-progress {
    width: 56px;
    height: 3px;
    background: var(--bg-card-2);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}
.gp-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Play/pause button */
.gp-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-size: 14px;
}
.gp-btn:hover      { background: var(--accent); color: #fff; border-color: var(--accent); }
.gp-btn--playing   { background: var(--accent); color: #fff; border-color: var(--accent); }
.gp-btn:disabled   { opacity: 0.35; cursor: not-allowed; }

/* Promo upsell card */
.genre-preview__promo { margin-top: 14px; }
.genre-preview__promo-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.genre-preview__promo-inner > i {
    font-size: 22px;
    color: var(--accent-light);
    flex-shrink: 0;
}
.genre-preview__promo-inner > span {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    min-width: 160px;
}
.genre-preview__promo-inner > a { flex-shrink: 0; }

/* Loading / empty states */
.gp-loading, .gp-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 22px 0;
}
.gp-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gp-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* Placeholder player — shown on all breakpoints until a tag is selected */
.gp-placeholder {
    display: flex; /* hidden via JS (hidden attr) once tracks load */
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: 0 auto 12px;
    max-width: 600px;
}
.gp-placeholder__art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-placeholder__art img {
    width: 28px;
    height: 28px;
    opacity: 1;
    object-fit: contain;
}
.gp-placeholder__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gp-placeholder__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-placeholder__sub {
    font-size: 11px;
    color: var(--text-dim);
}
.gp-placeholder__bar { width: 56px; flex-shrink: 0; }

@media (max-width: 640px) {
    .section-title { font-size: 26px; letter-spacing: -0.5px; }
    .gp-track__dur { display: none; }
    .gp-progress   { width: 38px; }
    .genre-preview__promo-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    /* Swap pills for select on mobile */
    .genre-preview__tags        { display: none; }
    .genre-preview__select-wrap { display: flex; justify-content: center; }
}

/* ─── FEATURE CARDS ──────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px 52px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.feature-card__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: 0.75;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-card__ghost-icon {
    position: absolute;
    bottom: -8px;
    right: -4px;
    width: 200px;
    height: 200px;
    opacity: 0.02;
    pointer-events: none;
    color: var(--text);
    transition: opacity 0.2s;
}
.feature-card__ghost-icon svg { width: 100%; height: 100%; }
.feature-card:hover .feature-card__ghost-icon { opacity: 0.02; }

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .features-grid { max-width: 100%; }
    .feature-card { padding: 26px 20px 48px; }
}

/* ─── PRICING ────────────────────────────────────── */
.pricing {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(124, 58, 237, 0.04) 40%,
        transparent 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.1) 0%, var(--bg-card) 100%);
    transform: scale(1.034);
    box-shadow: 0 0 48px rgba(124, 58, 237, 0.14);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 22px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}
.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.pricing-guarantee {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pricing-guarantee i {
    color: var(--green);
    font-size: 15px;
    flex-shrink: 0;
}

/* ─── Advertiser Banner ──────────────────────────── */
.adv-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, rgba(124,58,237,.22) 0%, rgba(109,40,217,.10) 60%, rgba(124,58,237,.04) 100%);
    border: 1px solid rgba(124,58,237,.45);
    border-radius: var(--radius);
    padding: 32px 36px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(124,58,237,.12), inset 0 1px 0 rgba(167,139,250,.15);
}
.adv-banner::before {
    content: '\f327'; /* ti-speakerphone unicode approx */
    font-family: 'tabler-icons';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 130px;
    color: rgba(124,58,237,.10);
    pointer-events: none;
    line-height: 1;
}
.adv-banner-text { flex: 1; min-width: 220px; position: relative; }
.adv-banner-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,.18);
    border: 1px solid rgba(124,58,237,.30);
    padding: 3px 10px;
    border-radius: 100px;
}
.adv-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -.3px;
    line-height: 1.25;
}
.adv-banner-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 480px;
}
.adv-banner .btn {
    flex-shrink: 0;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(124,58,237,.4);
}

/* ─── CTA ────────────────────────────────────────── */
.cta-section { padding: 20px 0 110px; }

.cta-title {
    font-size: clamp(38px, 5.5vw, 58px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 16px;
}

/* ─── HERO stat ──────────────────────────────────────────────── */
.hero-stat {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--accent-light);
    opacity: .8;
}

/* ─── DAILY VERSE ────────────────────────────────────────────── */
.daily-verse-section { padding: 40px 0 60px; }

.daily-verse-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, .25);
    border-radius: 20px;
    padding: 48px 52px 40px;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* Decorative large opening-quote glyph */
.daily-verse-card::before {
    content: '\201C';
    position: absolute;
    top: -24px;
    left: 28px;
    font-size: 180px;
    line-height: 1;
    color: rgba(124, 58, 237, .12);
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}
/* Subtle radial glow */
.daily-verse-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.09) 0%, transparent 65%);
    pointer-events: none;
}

.daily-verse-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.daily-verse-ref {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.daily-verse-quote {
    font-size: 1.18rem;
    font-weight: 500;
    color: #e0e0f0;
    line-height: 1.65;
    margin: 0 0 16px;
    border: none;
    padding: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.dv-verse-num {
    font-size: .6em;
    font-weight: 700;
    color: var(--accent-light);
    vertical-align: super;
    margin-right: 2px;
    font-style: normal;
}
.dv-verse-ellipsis { color: var(--text-muted); font-style: italic; }

.daily-verse-cite {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    font-style: normal;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .daily-verse-card { padding: 36px 28px 30px; }
    .daily-verse-card::before { font-size: 120px; }
    .daily-verse-quote { font-size: 1rem; }
}

/* ─── LATEST RELEASE ─────────────────────────────────────────── */
.latest-release-section { padding: 20px 0 80px; }

/* Full-bleed image card — image fills the whole card, text overlaid at bottom */
.latest-release-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 310px;
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.latest-release-card:hover { border-color: rgba(124,58,237,.35); }

/* Image fills the full card */
.latest-release-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* "NEW TRACK" pill badge — top left */
.latest-release-cover::before {
    content: 'NEW TRACK';
    position: absolute;
    top: 14px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 11px;
    border-radius: 100px;
    z-index: 2;
    font-family: inherit;
}
.latest-release-cover img {
    object-fit: cover;
    display: block;
    filter: brightness(0.3) saturate(0.65);
}
/* Semi-transparent gradient — text area sees through to the image beneath */
.latest-release-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 72%;
    background: linear-gradient(to bottom, transparent, rgba(8, 4, 18, 0.82));
    pointer-events: none;
    z-index: 1;
}

/* Brand icon watermark — top right corner */
.latest-release-brand-icon {
    position: absolute;
    bottom: 40px;
    right: -20px;
    width: 50%;             
    opacity: 0.28;
    z-index: 2;
    pointer-events: none;
    display: block;
}

/* Text content floats over the gradient */
.latest-release-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 28px 28px;
    z-index: 2;
}

.latest-release-ref {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-light);
    display: block;
    margin-bottom: 6px;
}

.latest-release-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 4px;
}

.latest-release-meta {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.latest-release-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 560px) {
    .latest-release-card { border-radius: 16px; min-height: 270px; }
    .latest-release-info { padding: 16px 20px 22px; }
    .latest-release-actions { justify-content: center; }
    .latest-release-title { font-size: 1.3rem; }
}

/* ─── PRICING muted feature lines ────────────────────────────── */
.plan-feature--muted { color: var(--text-muted); }

/* ─── ABOUT stats + progress ────────────────────────────────── */
.about-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 28px 0 8px;
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 22px;
    text-align: center;
    flex: 1 1 120px;
}

.about-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #f3f3ff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat__label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.about-progress {
    margin: 12px 0 28px;
}

.about-progress__bar {
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.about-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
}

.about-progress__label {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Guest gate modal ───────────────────────────────── */
/* ─── EULA Modal ──────────────────────────────────── */
.eula-modal { display:none; position:fixed; inset:0; z-index:1300; align-items:center; justify-content:center; }
.eula-modal--open { display:flex; }
.eula-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.88); backdrop-filter:blur(6px); }
.eula-modal__card {
    position:relative; z-index:1;
    background:var(--bg-card); border:1px solid var(--border); border-radius:20px;
    padding:36px 32px; width:min(480px,94vw); max-height:90vh; overflow-y:auto;
}
.eula-modal__header { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.eula-modal__icon { font-size:2rem; color:var(--accent-light); }
.eula-modal__title { font-size:1.3rem; font-weight:700; }
.eula-modal__intro { font-size:.9rem; color:var(--text-muted); margin-bottom:20px; line-height:1.55; }
.eula-modal__list { list-style:none; display:flex; flex-direction:column; gap:12px; margin-bottom:20px; padding:0; }
.eula-modal__list li { display:flex; align-items:flex-start; gap:10px; font-size:.9rem; line-height:1.5; }
.eula-modal__list li i { color:var(--accent-light); flex-shrink:0; margin-top:3px; font-size:1rem; }
.eula-modal__list li span { flex:1; }
.eula-modal__footer-note { font-size:.8rem; color:var(--text-dim); margin-bottom:24px; }
.eula-modal__footer-note a { color:var(--accent-light); }
.eula-modal__btn {
    display:flex; align-items:center; justify-content:center; gap:8px;
    width:100%; padding:14px; border-radius:10px;
    background:var(--accent); color:#fff; font-size:1rem; font-weight:700;
    border:none; cursor:pointer; transition:background .15s;
}
.eula-modal__btn:hover { background:var(--accent-hover); }

/* ─── Remember-me row (verify page) ───────────────── */
.remember-me-row {
    display:flex; align-items:center; gap:10px; margin-top:16px;
    font-size:.85rem; color:var(--text-muted); cursor:pointer; justify-content:center;
}
.remember-me-row input[type=checkbox] { width:16px; height:16px; accent-color:var(--accent-light); cursor:pointer; }

.guest-modal { display:none; position:fixed; inset:0; z-index:1200; align-items:center; justify-content:center; }
.guest-modal--open { display:flex; }
.guest-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.75); backdrop-filter:blur(4px); }
.guest-modal__card {
    position:relative; z-index:1;
    background:var(--bg-card); border:1px solid var(--border); border-radius:16px;
    padding:40px 32px; width:min(360px,90vw); text-align:center;
}
.guest-modal__close {
    position:absolute; top:14px; right:14px;
    background:none; border:none; color:var(--text-muted);
    cursor:pointer; padding:4px; font-size:18px; line-height:1;
}
.guest-modal__close:hover { color:var(--text); }
.guest-modal__icon {
    width:56px; height:56px; border-radius:50%; background:var(--accent);
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 18px; font-size:24px; color:#fff;
}
.guest-modal__title { font-size:1.25rem; font-weight:700; margin:0 0 10px; }
.guest-modal__body { font-size:.9rem; color:var(--text-muted); margin:0 0 24px; line-height:1.55; }
.guest-modal__btn {
    display:block; width:100%; padding:12px 0; border-radius:8px;
    font-size:.95rem; font-weight:600; text-decoration:none; transition:opacity .15s;
}
.guest-modal__btn:hover { opacity:.85; }
.guest-modal__btn--primary { background:var(--accent); color:#fff; margin-bottom:10px; }
.guest-modal__btn--secondary { background:transparent; border:1px solid var(--border); color:var(--text-muted); }
/* Bonus upgrade modal variant */
.guest-modal__icon--bonus { background:linear-gradient(135deg, #c9921e, #e8c440); }
.guest-modal__btn--bonus { background:linear-gradient(135deg, #c9921e, #e8c440); color:#fff; margin-bottom:10px; font-weight:700; }

/* ─── SHARE BUTTON + TOAST ───────────────────────── */
.track-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    transition: color 0.15s;
    padding: 0;
}
.track-share-btn:hover { color: var(--accent-light); }

.album-hero__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid rgba(249,115,22,0.4);
    color: #f97316;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.album-hero__share-btn:hover { background: rgba(249,115,22,0.08); border-color: #f97316; }

.ma-toast {
    position: fixed;
    bottom: calc(var(--player-h, 0px) + var(--player-gap, 0px) * 2 + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card-2);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ma-toast--in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    border-top: 0px solid var(--border);
    padding: 44px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.footer-logo {
    display: block;
    font-size: 16px;
    font-weight: 700;
}
.footer-tagline {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid   { grid-template-columns: 1fr 1fr; }
    .pricing-grid    { grid-template-columns: 1fr; max-width: 360px; }
    .pricing-card--featured { transform: scale(1); }
}

@media (max-width: 640px) {
    .nav-links       { display: none; }
    .nav-logo .site-logo-img { height: 34px; }
    .features-grid   { grid-template-columns: 1fr; }
    .hero            { padding: 64px 0 52px; }
    .hero-sub br     { display: none; }
    .strip-card      { flex: 0 0 42vw; }
    .strip-card--wide { flex: 0 0 72vw; }
    .footer-inner    { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-sub br  { display: none; }
}

/* =======================================================
   PERSISTENT AUDIO PLAYER
   ======================================================= */
.player {
    position: fixed;
    bottom: var(--player-gap);
    left: var(--player-gap);
    right: var(--player-gap);
    z-index: 200;
    height: var(--player-h);
    background: rgb(0 0 0 / 72%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 9px;
    display: grid;
    grid-template-columns: 300px 1fr 160px;
    align-items: center;
    padding: 0 20px;
    transform: translateY(calc(100% + var(--player-gap) * 2));
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}

.player--active { transform: translateY(0); }

/* Hide the mini player bar while the full NP overlay is open */
.np-overlay--open ~ #player { opacity: 0; pointer-events: none; }

/* Prevent content being obscured by player */
body.has-player { padding-bottom: calc(var(--player-h) + var(--player-gap) * 2); }
/* App layout scrolls inside .app-content — body padding-bottom is not needed and breaks sidebar height */
body.app-layout.has-player { padding-bottom: 0; }

/* Track info (left) */
.player-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card-2);
    flex-shrink: 0;
}
.player-cover-img { width: 100%; height: 100%; object-fit: cover; }

.player-meta { min-width: 0; }

.player-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bible {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Center controls */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    padding: 4px;
    position: relative;
}
.player-btn:hover { color: var(--text); }

.player-btn--play {
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    padding: 0;
    transition: background 0.15s, transform 0.1s;
}
.player-btn--play:hover { background: var(--accent-hover); transform: scale(1.06); }
.player-btn--sm { opacity: 0.7; }
.player-btn--sm:hover { opacity: 1; }

/* Progress */
.player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 500px;
}

.player-time {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.player-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s;
}
.player-bar-track:hover { height: 6px; }

.player-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-light);
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Volume (right) */
.player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.player-shuffle-btn {
    color: var(--text-dim);
    opacity: 0.5;
    transition: color 0.15s, opacity 0.15s;
}
/* Repeat button */
.repeat-btn {
    color: var(--text-dim);
    opacity: 0.5;
    transition: color 0.15s, opacity 0.15s;
}
.repeat-btn--on {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}
.repeat-btn--on::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}
.player-shuffle-btn--on {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}
.player-shuffle-btn--on::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Player extra row (volume) ──────────────────────── */
.player-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}
.player-vol-icon { color: var(--text-muted); flex-shrink: 0; opacity: 0.7; }
.player-volume {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    max-width: 160px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}
.player-volume::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text);
    border: none;
    cursor: pointer;
}
/* NP overlay volume row */
.np-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}
.np-volume-icon { color: var(--text-muted); flex-shrink: 0; opacity: 0.7; }
.np-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
}
.np-volume-slider:hover { height: 6px; }
.np-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}
.np-volume-slider::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--text);
    border: none;
    cursor: pointer;
}

/* =======================================================
   NAV USER CHIP
   ======================================================= */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 100px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.nav-user:hover,
.nav-user--active { color: var(--text); background: rgba(255,255,255,0.06); }

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =======================================================
   APP LAYOUT (logged-in dashboard — app.php)
   ======================================================= */

/* Body override for sidebar layout */
body.app-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden; /* sidebar doesn't scroll, content does */
}

/* ── Sidebar ─────────────────────────────────────────── */
.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-card-3);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 200;
    overflow-y: auto;
    padding: 24px 0 calc(var(--player-h) + var(--player-gap) * 2 + 16px);
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 28px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
}
.app-sidebar__brand-name > span { color: var(--accent-light); }  /* "Ark" highlight */
.app-sidebar__brand-icon {
    font-size: 1.5rem;
    color: var(--accent-light);
    flex-shrink: 0;
    line-height: 1;
}

.app-sidenav { display: flex; flex-direction: column; flex: 1; padding: 0 10px; gap: 2px; }

.app-sidenav__section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 16px 10px 6px;
}

.app-sidenav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 100px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}
.app-sidenav__link i { font-size: 1.1rem; flex-shrink: 0; }
.app-sidenav__link:hover       { color: var(--text); background: rgba(255,255,255,0.05); }
.app-sidenav__link--active     { color: var(--text); background: rgba(124,58,237,0.15); }
.app-sidenav__link--active i   { color: var(--accent-light); }

.app-sidebar__upgrade {
    margin: auto 12px 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(168,85,247,0.1));
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: var(--radius);
    padding: 16px;
}
.app-sidebar__upgrade-icon { font-size: 1.3rem; color: #f59e0b; display: block; margin-bottom: 6px; }
.app-sidebar__upgrade strong { display: block; font-size: 13px; margin-bottom: 4px; color: var(--text); }
.app-sidebar__upgrade p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

/* ── Main column ─────────────────────────────────────── */
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ── Top bar ─────────────────────────────────────────── */
.app-topbar {
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-topbar__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: color 0.15s;
}
.app-topbar__hamburger:hover { color: var(--text); }

.app-topbar__search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.app-topbar__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}
.app-topbar__search-input {
    width: 100%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 18px 8px 40px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.app-topbar__search-input::placeholder { color: var(--text-dim); }
.app-topbar__search-input:focus { border-color: var(--accent); }

.app-topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.app-topbar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.app-topbar__avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent-glow); }

/* Scrollable content area ─────────────────────────── */
.app-content {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 0 32px calc(var(--player-h) + var(--player-gap) * 2 + 32px);
}

/* ── Greeting ────────────────────────────────────────── */
.home-greeting {
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0 4px;
    font-weight: 400;
}
.home-greeting strong { color: var(--text); font-weight: 600; }

/* ── Hero banner ─────────────────────────────────────── */
.app-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 24px -32px 0;
    border-radius: 0;
}
.app-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}
.app-hero:hover .app-hero__bg { transform: scale(1.04); }
.app-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgb(6 0 14) 0%, rgb(40 0 109 / 77%) 55%, rgba(0, 0, 0, 0.30) 100%), linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.30) 60%, transparent 100%);
}
.app-hero__body {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
    max-width: 680px;
    color: #fff;
}
.app-hero__tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.app-hero__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 10px;
}
.app-hero__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}
.app-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.app-hero__play i  { margin-right: 4px; }

/* ── Section chrome ──────────────────────────────────── */
.app-section { padding: 36px 0 0; }
.app-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.app-section__title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.app-section__sub   { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.app-section__more  {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    white-space: nowrap;
    transition: opacity 0.15s;
}
.app-section__more:hover { opacity: 0.75; }

/* ── Narrations grid ─────────────────────────────────── */
.narrations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 16px;
}

.narration-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.narration-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }

/* large card spans 2 rows / 1 col (left column) */
.narration-card--lg {
    grid-row: 1 / 3;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.narration-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.narration-card--lg:hover .narration-card__bg { transform: scale(1.06); }
.narration-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.narration-card__body {
    position: relative;
    z-index: 1;
    padding: 24px;
}
.narration-card__tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-light);
    margin-bottom: 6px;
}
.narration-card__title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: #fff; margin-bottom: 4px; }
.narration-card__meta  { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.narration-card__btns  { display: flex; gap: 10px; }

.narration-play-btn, .narration-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.narration-play-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.narration-play-btn:hover { transform: scale(1.1); }
.narration-add-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
}
.narration-add-btn:hover { background: rgba(255,255,255,0.22); }

/* small card (2 stacked on the right) */
.narration-card--sm {
    padding: 14px;
    cursor: pointer;
}
.narration-card__thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}
.narration-card--sm:hover .narration-card__thumb { transform: scale(1.04); }
.narration-card__sm-title { font-size: 14px; font-weight: 700; }
.narration-card__sm-sub   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── Curated horizontal scroll ───────────────────────── */
.curated-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
}
.curated-scroll:active { cursor: grabbing; }
.curated-scroll::-webkit-scrollbar { display: none; }

.curated-card {
    min-width: 180px;
    width: 180px;
    flex-shrink: 0;
    cursor: pointer;
    scroll-snap-align: start;
}

/* ─── Scripture Navigator ────────────────────────────── */
.snav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.snav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.4;
}
.snav-tab i { font-size: 1.3rem; }
.snav-tab:hover { border-color: var(--accent-light); color: var(--text); }
.snav-tab--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.snav-tab__count { font-size: .75rem; font-weight: 400; opacity: .8; }
.snav-testament { display: none; }
.snav-testament--active { display: block; }

/* Available book grid */
.snav-available-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.snav-book-card { position: relative; }
.snav-book-card__face {
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}
.snav-book-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform .2s;
}
.snav-book-card__face:hover .snav-book-card__img-wrap { transform: translateY(-3px); }
.snav-book-card__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.snav-book-card__face:hover .snav-book-card__img-wrap img { transform: scale(1.05); }
.snav-book-card__play {
    position: absolute; bottom: 8px; right: 8px;
    width: 38px; height: 38px;
    background: var(--accent); border: none; border-radius: 50%;
    color: #fff; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    cursor: pointer; box-shadow: 0 4px 12px var(--accent-glow);
    pointer-events: none;
}
.snav-book-card__face:hover .snav-book-card__play {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.snav-book-card__badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--accent); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; line-height: 1.6;
}
.snav-book-card__info { padding: 0 2px; }
.snav-book-card__name { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.snav-book-card__sub  { font-size: .75rem; color: var(--text-muted); }

/* Multi-album panel */
.snav-book-card__panel {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    left: 0; right: 0;
    z-index: 50;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow);
    flex-direction: column; gap: 4px;
    min-width: 220px;
}
.snav-book-card__panel--open { display: flex; }
.snav-book-card__album-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: 6px;
    text-decoration: none; color: inherit;
    transition: background .12s;
}
.snav-book-card__album-row:hover { background: var(--bg-card); }
.snav-book-card__album-row img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.snav-book-card__album-text { flex: 1; min-width: 0; }
.snav-book-card__album-title { display: block; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav-book-card__album-ref   { display: block; font-size: .72rem; color: var(--text-muted); }
.snav-book-card__album-arrow { color: var(--text-dim); flex-shrink: 0; font-size: .9rem; }

/* Coming Soon section */
.snav-soon { margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--border); }
.snav-soon__label {
    display: flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 14px;
}
.snav-soon__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.snav-soon__pill {
    font-size: .78rem; color: var(--text-dim);
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 20px;
    text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
a.snav-soon__pill:hover {
    background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

/* ── Sanctuary ──────────────────────────────────────────────────────────── */
.votd-card {
    background: linear-gradient(135deg, rgba(var(--accent-rgb,88,28,255),.18) 0%, var(--bg-card-2) 100%);
    border: 1px solid rgba(var(--accent-rgb,88,28,255),.25);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 28px;
}
.votd-card__label {
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); display: flex; align-items: center; gap: 5px; margin-bottom: 12px;
}
.votd-card__verse {
    font-size: 1.08rem; font-style: italic; line-height: 1.7;
    color: var(--text); margin: 0 0 14px; padding: 0;
    border: none;
}
.votd-card__ref {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: .82rem; color: var(--text-muted); font-weight: 600;
}
.votd-card__cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; font-weight: 600; color: var(--accent);
    text-decoration: none; padding: 4px 12px;
    border: 1px solid var(--accent); border-radius: 20px;
    transition: background .15s, color .15s;
}
.votd-card__cta:hover { background: var(--accent); color: #fff; }

.sanctuary-continue {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 24px;
    font-size: .85rem; color: var(--text-muted);
}
.sanctuary-continue i { color: var(--accent); font-size: 1.1rem; }
.sanctuary-continue strong { color: var(--text); }
.sanctuary-continue .btn { margin-left: auto; }

.sanctuary-section-head {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
}
.sanctuary-section-title {
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px; margin: 0;
}
.sanctuary-section-sub { font-size: .78rem; color: var(--text-muted); }

.sanctuary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
@media (min-width: 600px)  { .sanctuary-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
@media (min-width: 1024px) { .sanctuary-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }

.sanctuary-book { position: relative; }
.sanctuary-book__inner {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sanctuary-book__inner:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.sanctuary-book--music .sanctuary-book__inner { border-color: rgba(var(--accent-rgb,88,28,255),.3); }

.sanctuary-book__art {
    position: relative; width: 100%; aspect-ratio: 1;
    background: var(--bg-card-2); overflow: hidden;
}
.sanctuary-book__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sanctuary-book__art--plain {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 1.8rem;
}
.sanctuary-book__play {
    position: absolute; bottom: 6px; right: 6px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); border: none; color: #fff;
    font-size: .9rem; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
    cursor: pointer; box-shadow: 0 3px 10px var(--accent-glow);
}
.sanctuary-book__inner:hover .sanctuary-book__play { opacity: 1; transform: translateY(0); }

.sanctuary-book__name {
    font-size: .78rem; font-weight: 600; padding: 6px 6px 2px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sanctuary-book__meta {
    font-size: .68rem; color: var(--text-muted); padding: 0 6px 6px;
    display: flex; align-items: center; gap: 4px;
}
.sanctuary-book__music-badge {
    display: inline-flex; align-items: center; gap: 2px;
    color: var(--accent); font-weight: 600;
}

.sanctuary-book__chapters-btn {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent); border: none; color: #fff;
    font-size: .7rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2;
}
.sanctuary-book__chapters-panel {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg-card-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px; z-index: 50;
    box-shadow: var(--shadow); flex-direction: column; gap: 2px; min-width: 190px;
}
.sanctuary-book__chapters-panel--open { display: flex; }
.sanctuary-book__chapter-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 5px; text-decoration: none; color: inherit;
    font-size: .78rem; transition: background .12s;
}
.sanctuary-book__chapter-row:hover { background: var(--bg-card); }
.sanctuary-book__chapter-ref { color: var(--text-muted); font-size: .72rem; flex-shrink: 0; }

.curated-card__img-wrap {
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.curated-card:hover .curated-card__img-wrap { transform: translateY(-3px); }
.curated-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.curated-card:hover .curated-card__img-wrap img { transform: scale(1.05); }
.curated-card__play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
    pointer-events: none;
}
.curated-card:hover .curated-card__play { opacity: 1; transform: translateY(0); }
.curated-card__title { font-size: 14px; font-weight: 700; }
.curated-card__sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── App footer ──────────────────────────────────────── */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.app-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.app-footer__brand i  { color: var(--accent-light); }
.app-footer__brand span { color: var(--accent-light); }
.app-footer__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.app-footer__links a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.app-footer__links a:hover { color: var(--text); }
.app-footer__copy { font-size: 12px; color: var(--text-dim); }

/* ── Mobile bottom nav ───────────────────────────────── */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 199; /* sits just below player (200) so they merge seamlessly */
    background: rgba(22, 20, 40, 0.72);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 0 max(12px, env(safe-area-inset-bottom));
    justify-content: space-around;
}
.app-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 16px;
    transition: color 0.15s;
}
.app-bottom-nav__item i { font-size: 1.3rem; }
.app-bottom-nav__item:hover,
.app-bottom-nav__item--active { color: var(--accent-light); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        transition: left 0.25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }
    .app-sidebar--open { left: 0; }
    .app-topbar__hamburger { display: flex; }
    .app-bottom-nav {
        display: flex;
        left: 0;
        right: 0;
        width: 100%;
        bottom: 0;
        border-radius: 0;
        border-top: 1px solid var(--border);
        box-shadow: none;
    }
    /* Player floats above nav with gap */
    body.has-player .app-bottom-nav {
        border-radius: 0;
        border-top: 1px solid var(--border);
        box-shadow: none;
    }
    body.has-player .player {
        bottom: calc(var(--nav-h) + var(--player-gap));
        border-radius: 6px !important;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    }
    .narrations-grid { grid-template-columns: 1fr 1fr; }
    .narration-card--lg { grid-row: auto; min-height: 280px; }
    /* Push content above bottom nav + player */
    .app-content { padding: 0 16px calc(var(--nav-h) + var(--player-h) + var(--player-gap) * 2 + 16px); }
    .app-hero    { margin: 24px -16px 0; }
}

@media (max-width: 600px) {
    .app-hero { margin: 12px -16px 0; min-height: 260px; }
    .app-hero__body { padding: 24px 20px; }
    .app-section { padding: 28px 0 0; }
    .narrations-grid { grid-template-columns: 1fr; }
    .narration-card--lg { min-height: 260px; }
    /* ~2 cards + peek of 3rd gives clear swipe affordance */
    .curated-card { min-width: clamp(140px, 43vw, 165px); width: clamp(140px, 43vw, 165px); }
    .curated-card__img-wrap { width: 100%; height: clamp(140px, 43vw, 165px); }
}

/* =======================================================
   ALBUM DRAWER
   ======================================================= */
.album-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}
.album-drawer--open { pointer-events: auto; }
.album-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(2px);
}
.album-drawer--open .album-drawer__backdrop { opacity: 1; }

.album-drawer__panel {
    position: relative;
    width: min(420px, 100vw);
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.album-drawer--open .album-drawer__panel { transform: translateX(0); }

.album-drawer__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}
.album-drawer__close:hover { background: rgba(0,0,0,0.7); }

.album-drawer__cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    max-height: 240px;
    overflow: hidden;
}
.album-drawer__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.album-drawer__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,.9) 0%, rgba(10,10,20,.1) 60%);
}
.album-drawer__cover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px 14px;
}
.album-drawer__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 4px;
}
.album-drawer__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.2;
}
.album-drawer__artist {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.album-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 120px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.album-drawer__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}
.album-drawer__actions {
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
}

/* Track rows inside drawer */
.album-drawer__tracks { display: flex; flex-direction: column; gap: 2px; }
.drawer-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.drawer-track:hover { background: rgba(255,255,255,0.05); }
/* Bonus track row — gold left accent + slightly dimmed */
.drawer-track--bonus {
    border-left: 2px solid rgba(201, 162, 39, 0.45);
    padding-left: 8px;
}
.drawer-track--bonus .drawer-track__title { color: var(--text-muted); }
.drawer-track__bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #c9a227;
    letter-spacing: .02em;
    margin-bottom: 1px;
}
.drawer-track__num {
    width: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.drawer-track__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.drawer-track__title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.drawer-track__ref {
    font-size: 11px;
    color: var(--accent-light);
}
.drawer-track__dur {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.drawer-track__play {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.drawer-track:hover .drawer-track__play { opacity: 1; color: var(--accent-light); }

/* Prevent body scroll when drawer open */
body.drawer-open { overflow: hidden; }

@media (max-width: 600px) {
    .album-drawer__panel { width: 100vw; }
    .album-drawer__cover-wrap { max-height: 200px; }
}

/* =======================================================
   TRACK SAVE BUTTON
   ======================================================= */
.track-save-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.15s, color 0.15s;
}
.track-row:hover .track-save-btn,
.drawer-track:hover .track-save-btn { opacity: 0.7; }
.track-save-btn--saved { opacity: 1 !important; color: var(--accent-light); }
.track-save-btn--saved i { color: var(--accent-light); }
.track-save-btn:hover,
.track-save-btn:focus { opacity: 1; color: var(--accent-light); }

/* =======================================================
   VERSE PANEL
   ======================================================= */
.verse-panel {
    position: fixed;
    bottom: calc(var(--player-h) + var(--player-gap) * 2 + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: min(600px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 95;
    max-height: 240px;
    display: flex;
    flex-direction: column;
}
.verse-panel--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.verse-panel__inner {
    overflow-y: auto;
    padding: 14px 18px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.verse-panel__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.verse-panel__head > .ti {
    color: var(--accent-light);
    font-size: 1rem;
    flex-shrink: 0;
}
.verse-panel__ref {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-light);
}
.verse-panel__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
}
.verse-panel__close:hover { color: var(--text); }
.verse-panel__text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
}
.verse-panel__num {
    font-size: .6em;
    font-weight: 700;
    color: var(--accent-light);
    vertical-align: super;
    margin-right: 2px;
    font-style: normal;
}
.verse-panel__loading {
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
}

/* Verse-toggle button — in player track section */
.player-verse-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--accent-light);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 100px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.player-verse-btn i { font-size: 13px; }
.player-verse-btn:hover { background: rgba(124,58,237,0.32); color: #fff; }
@media (max-width: 640px) { .player-verse-btn span { display: none; } }

/* Bible ref line in track rows */
.track-ref {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* =======================================================
   ACCOUNT PAGE
   ======================================================= */
.account-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 48px 24px 32px;
    max-width: 720px;
    margin: 0 auto;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.25);
}

.account-hero__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 0;
}

.account-email {
    font-size: 14px;
    color: var(--text-muted);
}

.account-plan {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 4px;
    width: fit-content;
}
.plan-free    { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.plan-premium { background: rgba(124,58,237,0.2);   color: var(--accent-light); }

.account-stats {
    display: flex;
    gap: 1px;
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.account-stat {
    flex: 1;
    background: var(--bg-card);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
}
.account-stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.account-stat:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.account-stat__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.account-stat__label {
    font-size: 12px;
    color: var(--text-muted);
}

.account-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

.account-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.account-link-card i  { font-size: 1.4rem; color: var(--accent-light); }
.account-link-card span { font-weight: 600; font-size: 14px; }
.account-link-card small { font-size: 12px; color: var(--text-muted); }
.account-link-card:hover { border-color: var(--accent); background: var(--bg-card-2); transform: translateY(-2px); }
.account-link-card--upgrade { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.08); }
.account-link-card--upgrade i { color: #f59e0b; }

.account-section {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.account-section__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.account-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.account-input {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s;
}
.account-input:focus  { border-color: var(--accent); }
.account-input:disabled { opacity: 0.5; cursor: not-allowed; }

.account-hint { font-size: 12px; color: var(--text-dim); }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-success { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.alert-error   { background: rgba(239,68,68,0.12);  color: #f87171;      border: 1px solid rgba(239,68,68,0.2); }

/* =======================================================
   AUTH PAGES (login.php / signup.php)
   ======================================================= */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 44px 40px 40px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Form elements */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-align: left;
}

.form-input {
    width: 100%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 11px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

.form-select {
    width: 100%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 11px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    cursor: pointer;
}
.form-select:focus { border-color: var(--accent); }

.form-textarea {
    width: 100%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 11px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    resize: vertical;
    min-height: 100px;
}
.form-textarea:focus { border-color: var(--accent); }

.form-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 5px;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 12px;
}
.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.auth-footer a { color: var(--accent-light); }
.auth-footer a:hover { text-decoration: underline; }

.auth-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
    text-align: center;
    line-height: 1.5;
}
.auth-note a { color: var(--accent-light); }
.auth-note a:hover { text-decoration: underline; }

/* ─── PIN INPUTS (verify.php) ─────────────────────── */
.pin-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 4px;
}

.pin-digit {
    width: 44px;
    height: 56px;
    background: var(--bg-card-2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
    caret-color: var(--accent-light);
}
.pin-digit:focus {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.08);
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.alert-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.28);
    color: #fca5a5;
}
.alert-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.28);
    color: #86efac;
}

/* =======================================================
   PAGE HEADER (used by discover / library / sanctuary)
   ======================================================= */
.page-header {
    padding: 52px 0 36px;
}

.page-title {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.page-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
}

/* =======================================================
   DISCOVER PAGE
   ======================================================= */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.filter-bar--tags {
    margin-top: -24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-bar--tags .filter-tag-btn { flex-shrink: 0; }

/* "More styles" toggle — hidden on desktop, shown only on mobile via CSS */
.filter-tags-more {
    display: none;
}
@media (max-width: 640px) {
    .filter-bar--tags {
        flex-wrap: wrap;
        overflow: hidden;
        max-height: 76px;    /* ~2 rows of pills */
        position: relative;
        margin-bottom: 0;
        padding-bottom: 0;
        transition: max-height 0.3s ease;
    }
    .filter-bar--tags::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 34px;
        background: linear-gradient(transparent, var(--bg));
        pointer-events: none;
        transition: opacity 0.2s;
    }
    .filter-bar--tags.filter-bar--tags--expanded {
        max-height: 600px;
        overflow: visible;
    }
    .filter-bar--tags.filter-bar--tags--expanded::after {
        opacity: 0;
        pointer-events: none;
    }
    .filter-tags-more {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: var(--accent-light);
        background: none;
        border: 1px solid rgba(124,58,237,.3);
        border-radius: 100px;
        padding: 5px 14px;
        cursor: pointer;
        font-family: inherit;
        margin-bottom: 18px;
        transition: background 0.15s;
    }
    .filter-tags-more:hover { background: rgba(124,58,237,.1); }
    .filter-tags-more i { transition: transform 0.25s; font-size: 12px; }
    .filter-tags-more[aria-expanded="true"] i { transform: rotate(180deg); }
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.filter-btn--random {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-light);
}
.filter-btn--random:hover,
.filter-btn--random.shuffle-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.filter-tag-btn {
    background: transparent;
    border: 1px solid rgba(124,58,237,.25);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    letter-spacing: 0.2px;
}
.filter-tag-btn:hover {
    background: rgba(124,58,237,.12);
    border-color: rgba(124,58,237,.5);
    color: var(--accent-light);
}
.filter-tag-btn.active {
    background: rgba(124,58,237,.18);
    border-color: var(--accent);
    color: #a78bfa;
}

/* Album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 52px;
}

/* Tag / style filter — flat track list panel */
.tag-tracks-panel { margin-top: 0.5rem; margin-bottom: 52px; }
.tag-tracks-header {
    display: flex; align-items: baseline; gap: 0.75rem;
    margin-bottom: 1rem;
}
.tag-tracks-label {
    font-size: 1rem; font-weight: 700; color: var(--text);
}
.tag-tracks-label i { color: var(--accent); margin-right: 4px; }
.tag-tracks-count { font-size: 0.85rem; color: var(--text-muted); }
.tag-tracks-list { display: flex; flex-direction: column; gap: 4px; }
.tag-track-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border-radius: 10px;
    padding: 8px 12px; cursor: pointer;
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s;
}
.tag-track-row:hover {
    background: var(--bg-card-2);
    border-color: rgba(124,58,237,0.3);
}
.tag-track-cover {
    width: 44px; height: 44px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.tag-track-info { flex: 1; min-width: 0; }
.tag-track-title {
    font-size: 0.9rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-track-album {
    font-size: 0.78rem; color: var(--text-muted);
    text-decoration: none; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-track-album:hover { color: var(--accent); }
.tag-track-play-btn {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    border: none; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s, transform 0.1s;
    font-size: 0.85rem;
}
.tag-track-play-btn:hover { background: #7c3aed; transform: scale(1.08); }

.album-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.album-card:hover {
    border-color: rgba(124,58,237,0.35);
    transform: translateY(-3px);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-card-2);
    position: relative;
    overflow: hidden;
}

.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #1a1030, #2d1b69);
}

.album-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.album-card:hover .album-play-overlay { opacity: 1; }

.album-play-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}
.album-play-btn:hover { transform: scale(1.1); }

.album-info {
    padding: 14px 14px 16px;
}

.album-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Album card bottom rows */
.album-meta-row {
    font-size: 11px;
    color: var(--accent-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-meta-row .album-testament { font-weight: 600; }
.album-meta-row .album-bref::before { content: ' · '; opacity: .6; }
.album-artist {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-counts {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 10px;
}
.album-counts i { font-size: 12px; vertical-align: middle; }
.album-counts__bonus { color: var(--accent-light); }
.album-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.album-view-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.album-view-action:hover { opacity: 0.85; color: #fff; }

@media (max-width: 480px) {
    .album-card-actions { flex-direction: column; gap: 6px; }
    .album-view-action  { width: 100%; padding: 10px 14px; font-size: 13px; }
}

/* Track list */
.tracks-section { margin-bottom: 56px; }

.tracks-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-list { display: flex; flex-direction: column; }

.track-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: rgba(255,255,255,0.05); border-bottom-color: transparent; }
.track-row--playing { background: rgba(124,58,237,0.1); border-bottom-color: transparent; }
.track-row--hidden { display: none; }
.track-list__expand {
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}
.track-list__expand:hover { color: var(--accent-light); background: rgba(255,255,255,0.03); }

.track-num {
    font-size: 13px;
    color: var(--text-dim);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.track-row--playing .track-num { color: var(--accent-light); }

.track-info { min-width: 0; }

.track-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── SCRIPTURE RIBBON (discover.php) ───────────────────────────────── */
.scripture-ribbon {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .18);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.5;
}
.scripture-ribbon__ref {
    font-weight: 700;
    font-size: .75rem;
    color: var(--accent-light);
    letter-spacing: .03em;
    white-space: nowrap;
}
.scripture-ribbon__sep { color: var(--text-muted); flex-shrink: 0; }
.scripture-ribbon__text { color: #c8c8e8; font-style: italic; }

/* ─── OPENING WORD (app.php) ────────────────────────────────────── */
.daily-word-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, .2);
    border-left: 3px solid var(--accent);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
.daily-word-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(124,58,237,.07) 0%, transparent 55%);
    pointer-events: none;
}
.daily-word__cover {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card-2);
}
.daily-word__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.daily-word__body { flex: 1; min-width: 0; }
.daily-word__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.daily-word__verse {
    font-size: .92rem;
    font-style: italic;
    color: #d0d0ec;
    line-height: 1.65;
    margin: 0 0 8px;
}
.daily-word__verse-num {
    font-size: .62em;
    font-style: normal;
    font-weight: 700;
    color: var(--accent-light);
    vertical-align: super;
    margin-right: 2px;
}
.daily-word__meta {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.daily-word__ref {
    font-weight: 600;
    color: var(--text-secondary, #b0b0d0);
}
.daily-word__actions { display: flex; gap: 10px; }
@media (max-width: 480px) {
    .daily-word-card { flex-direction: column; gap: 12px; padding: 16px 18px; }
    .daily-word__cover { width: 54px; height: 54px; }
}

/* ── Bible Reading Page (/read) ──────────────────────────────────────────── */
.read-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: .82rem;
    color: var(--text-muted);
}
.read-breadcrumb__sep { opacity: .5; }
.read-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.read-back-link:hover { color: var(--accent-light); }

.read-book-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.read-book-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.read-book-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}
.read-testament-tag {
    font-size: .75rem;
    background: rgba(124,58,237,.15);
    color: var(--accent-light);
    padding: 3px 11px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.read-chapter-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}
.read-chapter-jump__label {
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.read-chapter-select {
    background: var(--bg-input, #1e1e32);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .88rem;
    padding: 6px 10px;
    cursor: pointer;
    min-width: 70px;
}
.read-chapter-select:focus { outline: 2px solid var(--accent); }

/* Chapter pill row */
.read-chapter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    max-height: 88px;
    overflow: hidden;
}
.chapter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--bg-input, #1e1e32);
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1;
}
.chapter-pill:hover { background: var(--border); color: var(--text); }
.chapter-pill--active { background: var(--accent); color: #fff; }

/* Two-column layout */
.read-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* Chapter text panel */
.read-chapter-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px 44px;
    min-height: 300px;
}

/* Chapter nav bar */
.read-chapter-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}
.read-chapter-nav--bottom {
    margin-top: 36px;
    margin-bottom: 0;
}
.read-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--bg-input, #1e1e32);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.read-nav-btn:hover { background: var(--border); color: var(--text); }
.read-nav-btn--disabled { visibility: hidden; }
.read-nav-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

/* Verse text */
.read-verse-text {
    font-size: 1.06rem;
    line-height: 2;
    color: var(--text);
}
.read-verse-wrap { display: inline; }
.read-verse-num {
    font-size: .62rem;
    font-weight: 700;
    color: var(--accent-light);
    vertical-align: super;
    line-height: 0;
    margin-right: 2px;
}
.read-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 24px 0;
}

/* Sidebar */
.read-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.read-sidebar-section {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 18px;
}
.read-sidebar-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.read-sidebar-empty {
    font-size: .85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}
.read-album-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
}
.read-album-card:hover { background: rgba(255,255,255,0.04); padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
.read-album-card:first-of-type { border-top: none; padding-top: 0; }
.read-album-chevron {
    font-size: 16px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.read-album-card:hover .read-album-chevron { color: var(--accent-light); transform: translateX(2px); }
.read-album-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.read-album-info {
    flex: 1;
    min-width: 0;
}
.read-album-title {
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    margin-bottom: 2px;
}
.read-album-ref {
    font-size: .74rem;
    color: var(--text-muted);
}
.read-album-ref--link {
    text-decoration: none;
    transition: color .15s;
}
.read-album-ref--link:hover { color: var(--accent-light); }
.read-album-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
    transition: opacity .15s;
}
.read-album-play:hover { opacity: .85; }

/* Discover card Read link */
.album-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--accent-light);
    text-decoration: none;
    margin-top: 6px;
    font-weight: 500;
    transition: opacity .15s;
}
.album-read-link:hover { opacity: .75; }

/* ─── ALBUM DETAIL PAGE (album.php) ─────────────────────────────── */
.album-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    padding-top: 24px;
}
.album-hero__cover-wrap {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.55);
}
.album-hero__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: ken-burns 18s ease-in-out infinite alternate;
    transform-origin: center center;
}
.album-hero__info { flex: 1; min-width: 0; }
.album-hero__testament {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 6px;
}
.album-hero__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}
.album-hero__artist {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.album-hero__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}
.album-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.album-hero__stats i { vertical-align: middle; font-size: 12px; }
.album-hero__stats-bonus { color: var(--accent-light); }
.album-hero__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.album-hero__play-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity 0.15s;
}
.album-hero__play-btn:hover { opacity: .85; }
.album-hero__shuffle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color 0.15s, color 0.15s;
}
.album-hero__shuffle-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.album-hero__read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--accent-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(124,58,237,.3);
    transition: opacity 0.15s;
}
.album-hero__read-link:hover { opacity: .75; }

/* Track thumbnail within track rows (album.php) */
.track-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
/* Override grid when thumb is present */
.album-page .track-row {
    grid-template-columns: 32px 36px 1fr auto auto;
}

/* Subtle alternating fill on all screen sizes to reinforce row separation */
.track-row:nth-child(even) {
    background: rgba(255,255,255,0.02);
}
.track-row:nth-child(even):hover,
.track-row:nth-child(even).track-row--playing {
    background: rgba(124,58,237,0.1);
}

/* Bonus badge inline */
.bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(124,58,237,.12);
    border-radius: 100px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
}
.bonus-badge i { font-size: 10px; }

@media (max-width: 600px) {
    .album-hero { padding-top: 16px; }
    .album-hero__cover-wrap { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .album-hero__cover { height: auto; }
    .album-hero__title { font-size: 1.4rem; }
}

@media (max-width: 900px) {
    .read-layout { grid-template-columns: 1fr; }
    .read-sidebar { position: static; order: -1; }
    .read-chapter-panel { padding: 24px 20px; }
    .read-chapter-pills { max-height: 64px; }
}
@media (max-width: 480px) {
    .read-book-title { font-size: 1.4rem; }
    .read-nav-btn { font-size: .75rem; padding: 6px 10px; }
}
.track-row--playing .track-name { color: var(--accent-light); }

.track-ref {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sing Along availability badge on track rows */
.track-sa-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22,163,74,0.12);
    border-radius: 100px;
    padding: 2px 6px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}
.track-sa-icon i { font-size: 10px; }

.track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}
.track-tag {
    font-size: 10px;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(124,58,237,.12);
    border: 1px solid rgba(124,58,237,.2);
    border-radius: 100px;
    padding: 1px 7px;
    letter-spacing: 0.2px;
}
.track-tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px;
}
.track-tag-filter {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all .15s;
}
.track-tag-filter:hover {
    background: rgba(124,58,237,.15);
    border-color: rgba(124,58,237,.3);
    color: var(--accent-light);
}
.track-tag-filter--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.track-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.track-quality-badge {
    font-size: 9px;
    font-weight: 700;
    background: rgba(124,58,237,0.2);
    color: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 72px 24px;
    color: var(--text-dim);
}
.empty-state-icon { font-size: 42px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 17px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* =======================================================
   SANCTUARY PAGE — themed collections
   ======================================================= */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.collection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.collection-card:hover {
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-2px);
}

.collection-banner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    position: relative;
}

.collection-emoji { font-size: 32px; }

.collection-body { padding: 18px 20px 20px; }

.collection-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.collection-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.collection-count {
    font-size: 12px;
    color: var(--text-dim);
}

/* =======================================================
   STATIC PAGES (about, privacy, terms, contact)
   ======================================================= */
.static-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.static-page h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 8px;
}

.static-page .updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 44px;
}

.static-page h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 40px 0 12px;
}

.static-page p, .static-page li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.static-page ul, .static-page ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.static-page a { color: var(--accent-light); }
.static-page a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { margin-top: 32px; }

/* Honeypot — invisible to humans, bots fill it in */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* static-article = wrapper inside .static-page */
.static-article { }
/* .static-date alias for .updated */
.static-page .static-date,
.static-page .updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 44px;
}
/* .lead paragraph style */
.static-page .lead {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* =======================================================
   SANCTUARY PAGE — new semantic class names
   ======================================================= */
.sanctuary-hero {
    padding: 60px 0 32px;
}
.sanctuary-hero h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 8px;
}
.sanctuary-hero p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.sanctuary-section { margin-bottom: 48px; }
.sanctuary-section__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Alias: sanctuary-grid = collection-grid */
.sanctuary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Alias: sanctuary-card = album card link */
.sanctuary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, transform 0.18s;
}
.sanctuary-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-3px);
}
.sanctuary-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.sanctuary-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sanctuary-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sanctuary-card__count {
    font-size: 12px;
    color: var(--text-dim);
}

/* =======================================================
   RESPONSIVE — player + new pages
   ======================================================= */
/* =======================================================
   NOW PLAYING FULL-SCREEN OVERLAY
   ======================================================= */
.np-overlay {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    transform: translateY(calc(100% + 20px));
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}
.np-overlay--open {
    transform: translateY(0);
    pointer-events: auto;
}
.np-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    background: rgba(124,58,237,0.22);
    border: 1px solid rgba(124,58,237,0.45);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    cursor: pointer;
    font-size: 1.15rem;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.np-close:hover { background: rgba(124,58,237,0.4); border-color: rgba(124,58,237,0.75); color: #fff; }

/* Overlay header action buttons (shuffle + sing-along) — top-left corner */
.np-overlay-actions {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}
.np-overlay-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.18s, color 0.18s;
    position: relative;
}
.np-overlay-btn:hover { background: rgba(255,255,255,0.13); color: var(--text); }
/* Shuffle active state reuses player-shuffle-btn--on */
.np-overlay-btn.player-shuffle-btn--on {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}
.np-overlay-btn.player-shuffle-btn--on::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}
/* Sing-along mic active state */
.np-overlay-btn.player-sa-btn--active {
    color: #16a34a !important;
    background: rgba(22,163,74,0.15);
    border-color: rgba(22,163,74,0.35);
}

/* NP left panel — full-bleed cover hero */
.np-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    min-height: 0;
    overflow: hidden;
}
.np-hero {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.np-hero__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: ken-burns 22s ease-in-out infinite alternate;
    transform-origin: center center;
}
@keyframes ken-burns {
    0%   { transform: scale(1.00) translate(0%, 0%); }
    33%  { transform: scale(1.06) translate(1%, -1.5%); }
    66%  { transform: scale(1.10) translate(-1.5%, 1%); }
    100% { transform: scale(1.04) translate(0.5%, 1.5%); }
}
.np-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 87%) 0%, rgb(0 0 0 / 52%) 40%, rgb(8 4 18 / 90%) 100%);
    pointer-events: none;
}
/* Top strip: MA logo centered at top as a subtle watermark between the two action buttons */
.np-hero__top {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.np-hero__logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.7;
    border-radius: 5px;
    display: block;
}
.np-hero__text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Tags sit above the album name — add extra bottom gap to visually separate from text */
.np-hero__text .np-tags { margin-bottom: 4px; }
.np-album-name { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); text-shadow: 0 1px 4px rgba(0,0,0,0.6); text-decoration: none; cursor: pointer; }
.np-album-name:hover { text-decoration: underline; }
.np-track-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
/* Below-hero strip: large ref + Add to Playlist */
.np-below {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 28px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.np-ref {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    text-align: center;
    letter-spacing: -0.01em;
}
.np-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}
.np-tags:empty { display: none; }
.np-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--accent-light);
    text-transform: uppercase;
}
.np-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e05a6b;
    border-radius: 100px;
    padding: 10px 22px;
    color: #e05a6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    font-family: inherit;
    line-height: 1;
}
.np-save-btn i { font-size: 1rem; }
.np-save-btn:hover { color: #f47383; border-color: #f47383; background: rgba(224,90,107,0.08); }
.np-save-btn.track-save-btn--saved { color: #e05a6b; border-color: #e05a6b; background: rgba(224,90,107,0.1); }
.np-save-btn.track-save-btn--saved i { font-style: normal; }
.np-controls { display: flex; align-items: center; gap: 22px; }
.np-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 6px;
    position: relative;
    transition: color 0.18s, background 0.18s, transform 0.12s;
}
.np-btn:hover { color: var(--text); }
.np-btn--sm { opacity: 0.7; }
.np-btn--sm:hover { opacity: 1; }
.np-btn--play {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 24px rgba(124,58,237,0.45);
}
.np-btn--play:hover { background: var(--accent-hover); transform: scale(1.06); }
.np-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 300px; }
.np-time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; flex-shrink: 0; }
.np-bar-track {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s;
}
.np-bar-track:hover { height: 6px; }
.np-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    pointer-events: none;
}
.np-right { display: flex; flex-direction: column; padding: 56px 40px 36px; overflow: hidden; min-height: 0; }
.np-scripture-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.np-verse-text {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 6px;
}
.np-verse { display: block; line-height: 1.75; transition: opacity 0.2s; border-radius: 6px; padding: 4px 8px; }
.np-verse--highlight {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 1;
    background: rgba(124,58,237,0.12);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}
.np-verse--dim { font-size: 0.92rem; color: #b8b8d8; opacity: 0.85; font-style: italic; }
.np-vnum { font-size: .6em; font-weight: 700; color: var(--accent-light); vertical-align: super; margin-right: 2px; font-style: normal; }
.np-verse-loading { font-size: 0.9rem; color: var(--text-muted); font-style: italic; padding: 8px; }

/* ── np-below action row ────────────────────────────────────── */
.np-below__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
/* Unified action pill button (icon + label) */
.np-action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 18px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    min-width: 64px;
}
.np-action-btn i { font-size: 1.15rem; }
.np-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: rgba(255,255,255,0.2); }
/* Shuffle active state */
.np-action-btn.player-shuffle-btn--on { color: var(--accent-light) !important; border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.12); }
.np-action-btn.track-save-btn--saved { color: #e05a6b !important; border-color: rgba(224,90,107,0.5); background: rgba(224,90,107,0.1); }
/* Scripture button: hidden on desktop, shown on mobile */
.np-scripture-btn { display: none; }

/* ── Scripture bottom-sheet modal ───────────────────────────── */
.scripture-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.scripture-modal[hidden] { display: none; }
.scripture-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.scripture-modal--open .scripture-modal__backdrop { opacity: 1; }
.scripture-modal__sheet {
    position: relative;
    width: 100%;
    max-height: 78vh;
    background: var(--bg-card, #1d1d28);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    pointer-events: auto;
}
.scripture-modal--open .scripture-modal__sheet { transform: translateY(0); }
.scripture-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.scripture-modal__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.scripture-modal__ref {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 4px;
}
.scripture-modal__close {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
    flex-shrink: 0;
}
.scripture-modal__close:hover { background: rgba(255,255,255,0.13); color: var(--text); }
.scripture-modal__verses {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 768px) {
    .np-overlay { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: hidden; left: 0; }
    /* Mobile: np-left fills overlay, np-right hidden (scripture opens in modal) */
    .np-left {
        flex-direction: column;
        border-right: none;
        border-bottom: none;
        max-height: 100%;
        flex: 1;
    }
    .np-hero { flex: 1; min-height: 0; }
    .np-hero__text { padding: 18px 18px 16px; }
    .np-track-title { font-size: 1.15rem; }
    .np-hero__top { /* centered logo — no override needed, inherits desktop positioning */ }
    .np-hero__logo { width: 82px; height: 82px; }
    .np-below { padding: 14px 20px 18px; gap: 14px; }
    .np-ref { font-size: 1rem; }
    /* Progress bar stretches full width in the overlay on mobile */
    .np-progress { max-width: 100%; }
    /* Controls slightly smaller to stay compact */
    .np-btn--play { width: 52px; height: 52px; }
    /* Scripture panel hidden on mobile — accessed via bottom-sheet modal */
    .np-right { display: none; }
    /* Show the scripture modal trigger button on mobile */
    .np-scripture-btn { display: inline-flex !important; }
}

@media (max-width: 900px) {
    .player { grid-template-columns: 200px 1fr auto; }
    .player-right > svg, .player-volume { display: none; }
    .album-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    /* Overlay clears the bottom nav bar */
    .np-overlay { left: 0; bottom: var(--nav-h); }
}

@media (max-width: 640px) {
    /* ── Mobile player: compact 2-row layout ────────────────── */
    .player { grid-template-columns: 1fr; height: auto; padding: 8px 14px 10px; gap: 6px; border-radius: 6px; }
    /* Row 1: track info — visible and tappable to open Now Playing */
    .player-track { display: flex; cursor: pointer; padding: 2px 0; }
    .player-cover { width: 36px; height: 36px; border-radius: 4px; }
    .player-title { font-size: 12px; }
    .player-right { display: none; }
    /* Row 2: buttons + progress bar side by side */
    .player-center { width: 100%; padding: 0; flex-direction: row; align-items: center; gap: 0; }
    .player-extra { display: none; }
    .player-buttons { gap: 4px; flex-shrink: 0; }
    .player-buttons .player-btn--sm { width: 32px; height: 32px; opacity: 0.9; }
    .player-buttons .player-btn--sm svg { width: 17px; height: 17px; }
    .player-btn--play { width: 34px; height: 34px; }
    .player-progress { max-width: none; flex: 1; min-width: 0; margin-left: 8px; }
    .player-bar-track { height: 5px; }
    body.has-player { padding-bottom: calc(var(--nav-h) + var(--player-h) + var(--player-gap) * 2); }
    .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .auth-card { padding: 32px 22px 28px; }
    .collection-grid { grid-template-columns: 1fr; }
}

/* ── np-panel wrapper (transparent to grid layout) ─────────── */
.np-panel {
    display: contents; /* children slot directly into parent grid */
}
.np-panel--hidden {
    display: none !important;
}

/* ── Sing Along panel (spans both grid columns) ─────────────── */
.np-panel--sa {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.np-panel--sa.np-panel--hidden {
    display: none !important;
}

/* ── Tab bar ─────────────────────────────────────────────────── */
.np-tabbar {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .4rem;
    z-index: 5;
    pointer-events: auto;
}
.np-tabbar__tab {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .3rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: background .15s, color .15s, border-color .15s;
}
.np-tabbar__tab:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.np-tabbar__tab--active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.np-tabbar__tab--active:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

/* ── Sing Along panel contents ──────────────────────────────── */
.sa-container {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5.5rem 1.5rem 6rem;
}
.sa-lyrics {
    max-width: 640px;
    width: 100%;
    text-align: center;
}
.sa-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 1.6rem;
}
.sa-section {
    margin: 0 0 2rem;
    padding: .75rem 1rem 1rem;
    border-radius: 10px;
    transition: background .35s, box-shadow .35s, opacity .35s;
    scroll-margin-top: 5.5rem;
    /* Default: future sections */
    opacity: 0.75;
}
/* Past sections — clearly read, fading back */
.sa-section--past {
    opacity: 0.45;
}
/* Active section — full brightness + glow */
.sa-section--active {
    opacity: 1;
    background: rgba(167,139,250,.15);
    box-shadow: inset 0 0 0 1px rgba(167,139,250,.3), 0 0 24px rgba(167,139,250,.08);
}
/* Upcoming (next timed) section — slightly more visible than other future */
.sa-section--upcoming {
    opacity: 0.82;
}
/* Static sections with no timestamp stay full opacity always */
.sa-section--notimed { opacity: 1; }

/* Now / Next micro-labels */
.sa-badge {
    display: inline-block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 2px 7px;
    margin-bottom: .45rem;
    line-height: 1.6;
}
.sa-badge--now {
    background: rgba(167,139,250,.25);
    color: rgba(167,139,250,1);
    border: 1px solid rgba(167,139,250,.3);
}
.sa-badge--next {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.1);
}

.sa-section__label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(167,139,250,.75);
    margin-bottom: .55rem;
}
.sa-section--active .sa-section__label { color: rgba(167,139,250,1); }
.sa-line {
    color: rgba(255,255,255,.88);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 .1rem;
}
.sa-section--active .sa-line { color: #fff; }
.sa-break { height: 1.4rem; }
.sa-loading {
    color: rgba(255,255,255,.38);
    font-size: .9rem;
    font-style: italic;
}

/* ── Sing Along — mobile responsive ─────────────────────────── */
@media (max-width: 640px) {
    .sa-container { padding: 5rem .75rem 5rem; }
    .sa-lyrics { text-align: center; }
    .sa-line { font-size: .95rem; line-height: 1.7; }
    .sa-section { margin-bottom: 1.5rem; padding: .6rem .75rem .75rem; }
    .sa-section__label { font-size: .6rem; margin-bottom: .45rem; }
    .sa-title { font-size: 1rem; }
}
@media (max-width: 480px) {
    .sa-container { padding: 4.5rem .5rem 5rem; }
    .sa-line { font-size: .88rem; line-height: 1.65; }
    .sa-section { margin-bottom: 1.25rem; }
}

/* ── Sing Along button in player bar ─────────────────────────── */
.player-sa-btn { color: rgba(255,255,255,.5); }
.player-sa-btn--active { color: var(--accent-light, #a78bfa); }
