/* ============================================================
   Full Circle DJs — Design System
   Open-format AZ DJ collective · "Music with Purpose"
   Single black & red theme. No theme switching.
   ============================================================ */

/* --- Reset -------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Tokens ------------------------------------------------- */
:root {
    /* Core palette */
    --ink:        #0b0b0d;   /* page base */
    --ink-2:      #101013;   /* raised surface */
    --ink-3:      #17171b;   /* card surface */
    --line:       #26262c;   /* hairline borders */
    --line-soft:  #1c1c21;

    --paper:      #f4f4f6;   /* primary text */
    --muted:      #a0a0ab;   /* secondary text */
    --faint:      #6c6c78;   /* tertiary / captions */

    --red:        #e11d2a;   /* brand red */
    --red-bright: #ff3242;
    --red-deep:   #a5121c;
    --red-wash:   rgba(225, 29, 42, 0.10);

    /* Type */
    --display: 'Anton', 'Oswald', Impact, sans-serif;
    --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Rhythm */
    --shell: 1220px;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);

    --radius: 4px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base --------------------------------------------------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.05;
    color: var(--paper);
}

.display {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    line-height: 0.92;
}

p { color: var(--muted); }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

img { display: block; max-width: 100%; }

::selection {
    background: var(--red);
    color: #fff;
}

/* --- Utilities ---------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Small overline label with a leading red tick */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--red);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow { margin-bottom: 1.25rem; }

.section-head h2 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
}

.section-head .lede {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 52ch;
}

.text-red { color: var(--red); }

/* --- Buttons ------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1.05rem 1.9rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease),
                color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-solid:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--paper);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 13, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img { height: 40px; width: auto; }

.brand-name {
    font-family: var(--display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}
.brand-name .text-red { display: inline; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.primary-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    padding: 0.25rem 0;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--paper); }
.primary-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(1100px 640px at 78% -8%, rgba(225,29,42,0.16), transparent 60%),
        linear-gradient(180deg, #0d0d10 0%, var(--ink) 70%);
}

/* faint vertical rule + oversized ghost logo */
.hero::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: -8%;
    width: clamp(24rem, 55vw, 54rem);
    height: clamp(24rem, 55vw, 54rem);
    background: url('media/Logo.png') no-repeat center / contain;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero .eyebrow { margin-bottom: 1.75rem; }

.hero h1 {
    font-size: clamp(3.2rem, 11vw, 8rem);
    margin-bottom: 1.75rem;
}
.hero h1 .line { display: block; }
.hero h1 .stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--paper);
}

.hero-lede {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* --- Marquee ------------------------------------------------ */
.marquee {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--ink-2);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    padding: 1.1rem 0;
    animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
}
.marquee-item::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    transform: rotate(45deg);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   About  (asymmetric: label column + prose)
   ============================================================ */
.about {
    padding: var(--section-y) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.about-aside .eyebrow { margin-bottom: 1.5rem; }

.about-aside h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 2rem;
}

.motto {
    border-left: 3px solid var(--red);
    padding-left: 1.25rem;
}
.motto .motto-word {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--paper);
    line-height: 1;
}
.motto .motto-sub {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 0.4rem;
}

.about-body p {
    font-size: 1.12rem;
    line-height: 1.8;
    margin-bottom: 1.35rem;
}
.about-body p:last-of-type { margin-bottom: 0; }
.about-body strong { color: var(--paper); font-weight: 600; }

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-top: 2.75rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.stat .stat-num {
    font-family: var(--display);
    font-size: 2.4rem;
    color: var(--red);
    line-height: 1;
}
.stat .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 0.5rem;
}

/* ============================================================
   What We Do  (numbered editorial list)
   ============================================================ */
.offer {
    padding: var(--section-y) 0;
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.offer-list {
    border-top: 1px solid var(--line);
}

.offer-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: baseline;
    padding: 2.25rem 0.5rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.offer-row:hover {
    background: linear-gradient(90deg, var(--red-wash), transparent 70%);
    padding-left: 1.25rem;
}
.offer-num {
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--red);
}
.offer-row h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.offer-row p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================================
   Roster
   ============================================================ */
.roster {
    padding: var(--section-y) 0;
}

.roster-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.dj {
    position: relative;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.dj:hover {
    background: var(--ink-3);
    border-color: rgba(225,29,42,0.4);
    transform: translateY(-4px);
}

/* Headshot photo */
.dj-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink-3);
    margin-bottom: 1rem;
}
.dj-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}
.dj:hover .dj-photo img { transform: scale(1.05); }
/* When no real photo is set, show the logo small & centered instead of stretched */
.dj-photo.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(225,29,42,0.12), transparent 60%),
        var(--ink-3);
}
.dj-photo.is-placeholder img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    opacity: 0.6;
}

.dj-index {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    font-family: var(--display);
    font-size: 0.95rem;
    color: var(--paper);
    letter-spacing: 0.08em;
    background: rgba(11,11,13,0.72);
    backdrop-filter: blur(4px);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
}
.dj-name {
    font-family: var(--display);
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 0.55rem;
}
.dj-role {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}
.dj-role::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--red);
    flex: none;
}
.dj-bio {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}
.dj.is-guest .dj-name { color: var(--red); }

/* ============================================================
   Community + Venues
   ============================================================ */
.community {
    padding: var(--section-y) 0;
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.venue {
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.venue:hover {
    transform: translateY(-4px);
    border-color: var(--red);
}
.venue .venue-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.9rem;
}
.venue h3 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}
.venue .venue-city {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 1rem;
}
.venue p { line-height: 1.65; }

.venue-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper);
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
                background 0.25s var(--ease);
}
.venue-directions .arrow { transition: transform 0.25s var(--ease); }
.venue-directions:hover {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}
.venue-directions:hover .arrow { transform: translateX(4px); }

.venue-directions .pin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid var(--red);
    position: relative;
}
.venue-directions .pin::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--red);
    border-radius: 50%;
}
.venue-directions:hover .pin {
    border-color: #fff;
}
.venue-directions:hover .pin::after { background: #fff; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 12% 120%, rgba(225,29,42,0.14), transparent 60%),
        var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.contact h2 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    margin-bottom: 1.5rem;
}
.contact-lede {
    font-size: 1.1rem;
    max-width: 46ch;
}

.contact-card {
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(2rem, 4vw, 3rem);
}
.contact-card .card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.75rem;
}
.contact-value {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--paper);
    letter-spacing: 0.02em;
    display: inline-block;
    margin-bottom: 1.5rem;
    word-break: break-word;
    transition: color 0.25s var(--ease);
}
.contact-value:hover { color: var(--red); }
.contact-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #060607;
    border-top: 1px solid var(--line-soft);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-soft);
}

.footer-brand .brand-name {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.footer-brand p {
    font-size: 0.9rem;
    color: var(--faint);
    max-width: 34ch;
}

.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper);
    margin-bottom: 1.1rem;
    font-weight: 700;
}
.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--faint);
}
.footer-motto {
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}
.footer-motto .text-red { color: var(--red); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .roster-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .offer-row {
        grid-template-columns: 3rem 1fr;
        gap: 0.5rem 1.5rem;
    }
    .offer-row p { grid-column: 2; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .header-cta { display: none; }
    .primary-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--ink-2);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1.25rem;
        transform: translateY(-120%);
        transition: transform 0.35s var(--ease);
        z-index: 90;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav a {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line-soft);
        font-size: 0.9rem;
    }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        background: none;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        margin-inline: auto;
        background: var(--paper);
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .venue-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 460px) {
    .roster-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* --- Floating music player card ----------------------------- */
.music-player {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 60;
    width: 320px;
    max-width: calc(100vw - 2rem);
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(150% 100% at 100% 0%, rgba(225,29,42,0.12), transparent 55%),
        rgba(14, 14, 17, 0.96);
    backdrop-filter: blur(16px);
    color: var(--paper);
    font-family: var(--sans);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.music-player.is-playing { border-color: rgba(225,29,42,0.45); }

/* --- Compact dock (always visible) --- */
.mp-dock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
}

/* Cover art */
.mp-cover {
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink-3);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.07);
}
.mp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title + artist */
.mp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}
.mp-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-artist {
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Play / pause button */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    flex: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.mp-btn:hover { background: var(--red-bright); transform: scale(1.06); }
.mp-btn:active { transform: scale(0.96); }
.mp-btn-mini { width: 40px; height: 40px; }
.mp-icon { display: inline-flex; }
.mp-icon svg { fill: currentColor; display: block; }
.mp-icon .ic-pause { display: none; }
.music-player.is-playing .ic-play { display: none; }
.music-player.is-playing .ic-pause { display: block; }

/* Expand / collapse chevron */
.mp-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
    border-radius: 6px;
    flex: none;
    transition: color 0.2s ease, transform 0.25s ease;
}
.mp-expand:hover { color: var(--paper); }
.mp-expand svg { fill: currentColor; display: block; transition: transform 0.25s ease; }
/* chevron points up when collapsed (tap to expand), flips down when open */
.music-player:not(.is-collapsed) .mp-expand svg { transform: rotate(180deg); }

/* --- Expanded panel --- */
.mp-panel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0 0.9rem 0.95rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.85rem;
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}
.music-player.is-collapsed .mp-panel {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    pointer-events: none;
}

/* Progress */
.mp-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mp-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* Volume row */
.mp-vol {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.mp-mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    flex: none;
    transition: color 0.2s ease;
}
.mp-mute:hover { color: var(--paper); }
.mp-mute svg { fill: currentColor; display: block; }
.mp-mute .ic-muted { display: none; }
.music-player.is-muted .mp-mute .ic-vol { display: none; }
.music-player.is-muted .mp-mute .ic-muted { display: block; }
.music-player.is-muted .mp-mute { color: var(--red); }

/* Range inputs (seek + volume share styling) */
.mp-seek, .mp-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--red) 0%, var(--red) var(--seek, 0%), var(--line) var(--seek, 0%), var(--line) 100%);
    cursor: pointer;
    outline: none;
    transition: height 0.15s ease;
}
.mp-seek:hover, .mp-slider:hover { height: 7px; }
.mp-seek::-webkit-slider-thumb,
.mp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--red);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.mp-seek::-moz-range-thumb,
.mp-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--red);
    cursor: pointer;
}

/* "Tap anywhere for sound" hint */
.mp-hint {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: var(--red-bright);
    text-align: center;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease;
}
.music-player.needs-tap .mp-hint { opacity: 1; height: auto; }

/* Embedding-blocked fallback: play button becomes an "open on YouTube" launcher */
.music-player.is-blocked .mp-btn { background: var(--ink-3); }
.music-player.is-blocked .mp-btn:hover { background: var(--line); }
.music-player.is-blocked .mp-seek { pointer-events: none; opacity: 0.5; }

@media (max-width: 400px) {
    .music-player { width: calc(100vw - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
    .music-player, .mp-btn, .mp-panel, .mp-expand svg { transition: none; }
}

/* Hidden-but-present YouTube host (fully off-screen breaks playback in some
   browsers, so keep it rendered but visually negligible) */
/* The YouTube player needs REAL dimensions to actually play (browsers stall
   playback in a 1px / invisible frame). Give it a proper size but park it
   just off-screen so it's rendered and "visible" to the browser yet unseen. */
.yt-host {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    width: 240px;
    height: 135px;
    opacity: 0.0001;   /* on-screen & rendered, but effectively invisible */
    pointer-events: none;
    z-index: 1;        /* below the music card (z-index 60) so the card covers it */
    overflow: hidden;
    border-radius: 12px;
}
.yt-host iframe { width: 240px; height: 135px; border: 0; display: block; }
