/* =============================================
   REEL - Home-page signature pieces
   · Crossed marquee bands (react to scroll speed)
   · Editing-timeline scrubber (scroll = playhead)
   ============================================= */

/* ---------- Crossed marquee bands ---------- */
.marquee-cross {
    position: relative;
    height: clamp(150px, 19vw, 230px);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.marquee {
    position: absolute;
    left: -5%;
    width: 110%;
    padding: 14px 0 12px;
    overflow: hidden;
}

.marquee--gold {
    background: var(--primary-color);
    color: #1f3a12;
    transform: rotate(-3deg);
    z-index: 2;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.marquee--dark {
    background: var(--secondary-color);
    color: transparent;
    -webkit-text-stroke: 1.3px #fff1e0;
    transform: rotate(2.4deg);
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 30px;
    padding-right: 30px;
}

.marquee-group span {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.2vw, 3.2rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.marquee-group i {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

/* Mini pancake stacks as separators (single colour, follows the band) */
.marquee-group i svg {
    width: clamp(1.7rem, 3.4vw, 2.7rem);
    height: auto;
    fill: currentColor;
}

.marquee--gold .marquee-group i { color: #1f3a12; }
.marquee--dark .marquee-group i { color: #fff1e0; -webkit-text-stroke: 0; }

/* ---------- Timeline scrubber ---------- */
.scrubber {
    position: fixed;
    left: 50%;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(640px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 14px;
    background: rgba(22, 46, 15, 0.92);
    border: 1px solid rgba(241, 236, 227, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 900;
    transform: translate(-50%, 150%);
    opacity: 0;
    transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .scrubber {
        background: rgba(22, 46, 15, 0.78);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.scrubber.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.scrubber-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.scrubber-meta .rec-dot {
    width: 7px;
    height: 7px;
}

.scrubber-track {
    position: relative;
    flex: 1;
    display: flex;
    gap: 3px;
    height: 30px;
    min-width: 0;
}

.scrubber-clip {
    --c: 240, 168, 48;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 4px;
    border-left: 2px solid rgba(var(--c), 0.9);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
        rgba(var(--c), 0.14);
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scrubber-clip span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.scrubber-clip:nth-child(2) { --c: 230, 57, 70; }
.scrubber-clip:nth-child(3) { --c: 59, 130, 246; }
.scrubber-clip:nth-child(4) { --c: 20, 184, 166; }

.scrubber-clip:hover,
.scrubber-clip.is-active {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px),
        rgba(var(--c), 0.34);
    color: var(--text-light);
}

.scrubber-head {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--rec);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.7);
    pointer-events: none;
    will-change: transform;
}

.scrubber-head::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--rec);
}

.home .footer {
    padding-bottom: 96px;
}

@media (max-width: 600px) {
    .scrubber {
        gap: 8px;
        padding: 6px 6px 6px 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100% - 20px);
    }
    .scrubber-meta { font-size: 9.5px; }
    .scrubber-clip { padding: 0 5px; font-size: 8px; letter-spacing: 0.08em; }
    .marquee-group { gap: 20px; padding-right: 20px; }
}
