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

/* ── Same tokens as main.css ── */
:root {
    --black:    #080808;
    --dark:     #0F0A08;
    --red:      #9B2217;
    --red-bg:   #A8281C;
    --gold:     #C9903C;
    --gold-warm:#D4923A;
    --white:    #FFFFFF;
    --cream:    #EDE0CA;
    --muted:    rgba(255,255,255,0.55);
}

html, body { height: 100%; overflow-x: hidden; }

body {
    background: var(--black);
    background-image: url('../media/jukebox-bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--white);
    font-family: 'Crimson Text', Georgia, serif;
    min-height: 100vh;
}

/* Gradient overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8,8,8,0.82) 0%,
        rgba(8,8,8,0.68) 40%,
        rgba(8,8,8,0.45) 68%,
        rgba(8,8,8,0.20) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ===== YOYO ===== */
.yoyo-rig {
    position: fixed;
    right: 24px;
    top: 0;
    width: 48px;
    height: 100vh;
    z-index: 300;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.rope-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: visible;
}

.rope-path {
    fill: none;
    stroke: rgba(212,146,58,0.55);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.yoyo-hang {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.08s ease-out;
}

.yoyo-svg {
    width: 48px;
    height: 48px;
    animation: yoyo-spin 0.6s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(212,146,58,0.5));
}

@keyframes yoyo-spin { to { transform: rotate(360deg); } }

/* ===== PAGE LAYOUT ===== */
.splash-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 80px 48px;
    gap: 40px;
}

/* Video + button stacked on the left */
.splash-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 400px;
}

/* Video fills the column width — padding-bottom trick for universal mobile support */
.splash-video-frame {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(212,146,58,0.18);
    border-radius: 12px;
}

.splash-video-frame video,
.splash-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 12px;
}

/* ===== HEADER ===== */
.splash-header { text-align: center; }

.artist-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.8);
}

.header-rule {
    width: 48px;
    height: 3px;
    background: var(--red);
    margin: 16px auto 0;
}

/* ===== VIDEO PLACEHOLDER ===== */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.22;
}

.video-placeholder span { font-size: 1.8rem; }
.video-placeholder p { font-size: 0.72rem; letter-spacing: 0.04em; text-align: center; }
.video-placeholder code {
    font-family: monospace;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.07);
    padding: 2px 6px;
    border-radius: 2px;
}

/* ===== AUDIO BAR ===== */
.audio-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 4px;
}

.unmute-btn {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.unmute-btn:hover { background: rgba(255,255,255,0.28); }

.volume-slider {
    flex: 1;
    accent-color: var(--gold-warm);
    height: 4px;
    cursor: pointer;
}

/* ===== ENTER BUTTON ===== */

.enter-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    background: var(--white);
    color: var(--red-bg);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 18px 44px;
    border: 2px solid var(--white);
    border-radius: 100px;
    transition: background 0.3s, color 0.3s;
}

.enter-btn:hover {
    background: transparent;
    color: var(--white);
}

.enter-ornament {
    font-size: 0.55em;
    opacity: 0.5;
}

/* ===== MOBILE ===== */
@media (max-width: 680px) {
    /* Zoom into the jukebox — 400% pushes the "Warning" text completely off the bottom */
    body {
        background-attachment: scroll;
        background-size: 420%;
        background-position: 50% 0%;
    }

    /* Drive iframe doesn't work reliably in a small mobile container — hide it.
       The artist name + audio + Enter button is a clean mobile splash experience. */
    .splash-video-frame { display: none; }

    .splash-wrap {
        padding: 44px 24px 64px;
        gap: 28px;
    }
    .splash-body {
        width: 100%;
    }
    .artist-name {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }
    .yoyo-rig {
        right: 8px;
        width: 36px;
    }
    .yoyo-svg { width: 36px; height: 36px; }
    .enter-btn {
        padding: 16px 28px;
        font-size: 0.8rem;
    }
    .audio-bar { gap: 10px; }
    .unmute-btn { font-size: 0.9rem; padding: 8px 14px; }
}

@media (max-width: 400px) {
    .splash-wrap { padding: 36px 16px 56px; }
    .artist-name { font-size: clamp(2.2rem, 15vw, 3rem); }
}

/* ===== FOOTER — pinned bottom-right, covers Gemini watermark ===== */
.splash-footer {
    position: fixed;
    bottom: 10px;
    right: 14px;
    z-index: 10;
    font-size: 0.68rem;
    color: var(--white);
    opacity: 0.35;
    letter-spacing: 0.06em;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
