.media-page-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(22rem, 39vw, 34rem);
    margin: 1rem 0 1.5rem;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #594a2f;
    border-radius: .8rem;
    background:
        linear-gradient(90deg, transparent 0 28%, rgba(5, 8, 6, .16) 38%, rgba(5, 8, 6, .38) 50%, rgba(5, 8, 6, .14) 63%, transparent 73%),
        url('/images/brand/section-soundtrack-tavern.webp') center / cover no-repeat,
        #0b0d0b;
    box-shadow: inset 0 0 0 1px rgba(201, 166, 92, .12), 0 1.1rem 2.5rem rgba(0, 0, 0, .35);
}

.media-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 6, 5, .04), transparent 46%, rgba(4, 6, 5, .45));
}

.media-page-hero-copy {
    position: relative;
    z-index: 1;
    width: min(34rem, 44%);
    padding: 2rem 1.5rem;
    text-align: center;
    text-shadow: 0 2px 8px #000, 0 0 22px #000;
}

.media-page-hero h1 {
    margin: .15rem 0 .35rem;
    color: #f1dfb0;
    font-size: clamp(2rem, 4.1vw, 3.8rem);
    line-height: .98;
}

.media-page-lede {
    margin: 0 0 .75rem;
    color: #e3d4ad;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    font-style: italic;
}

.media-page-description {
    max-width: 31rem;
    margin: 0 auto 1.2rem;
    color: #d0d2c7;
    font-size: .92rem;
}

.media-credit-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.media-credit-links .btn {
    box-shadow: 0 .3rem .9rem rgba(0, 0, 0, .45);
}

.media-credit-links > a:not(.btn) {
    color: #b9da87;
    font-weight: 700;
    text-decoration: none;
}

.media-credit-links > a:not(.btn):hover,
.media-credit-links > a:not(.btn):focus {
    color: #fff;
    text-decoration: underline;
}

.official-soundtrack {
    overflow: hidden;
    padding: clamp(.6rem, 1.3vw, 1rem);
    border-color: #51452e;
    background: linear-gradient(180deg, rgba(53, 42, 24, .22), rgba(17, 24, 18, .92) 9rem), #111812;
}

.jukebox-cabinet {
    position: relative;
    width: min(100%, 1320px);
    aspect-ratio: 3/2;
    margin: 0 auto;
    overflow: hidden;
    border-radius: .65rem;
    background: #090b09;
}

.jukebox-cabinet-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.jukebox-gem-lights,
.jukebox-gem-light {
    position: absolute;
    pointer-events: none;
}

.jukebox-gem-lights {
    z-index: 2;
    inset: 0;
}

.jukebox-gem-light {
    opacity: .5;
    background: rgba(2, 6, 3, .92);
    box-shadow: inset 0 0 .55rem #000;
    mix-blend-mode: multiply;
    transition: opacity .45s ease;
}

.jukebox-stage.is-playing .jukebox-gem-light {
    opacity: 0;
}

.gem-crown {
    top: 2%;
    left: 48.18%;
    width: 3.65%;
    height: 12.8%;
    clip-path: polygon(50% 0, 88% 31%, 82% 72%, 50% 100%, 18% 72%, 12% 31%);
}

.gem-column {
    top: 42.4%;
    width: 2.85%;
    height: 12.5%;
    clip-path: polygon(50% 0, 92% 25%, 92% 76%, 50% 100%, 8% 76%, 8% 25%);
}

.gem-column-left {
    left: 18.62%;
}

.gem-column-right {
    right: 18.62%;
}

.gem-round {
    top: 61.1%;
    width: 1.72%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.gem-round-left {
    left: 19.12%;
}

.gem-round-right {
    right: 19.12%;
}

.jukebox-candle-flames,
.jukebox-candle-flame {
    position: absolute;
    pointer-events: none;
}

.jukebox-candle-flames {
    z-index: 3;
    inset: 0;
}

.jukebox-candle-flame {
    top: 63.3%;
    width: .72%;
    height: 3.5%;
    isolation: isolate;
    opacity: .58;
    filter: brightness(.64) saturate(.8);
    transform: scale(.82, .62);
    transform-origin: 50% 100%;
    transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}

.jukebox-stage.is-playing .jukebox-candle-flame {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: scale(1);
}

.jukebox-candle-flame::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    transform-origin: 50% 100%;
    clip-path: polygon(50% 0, 73% 24%, 100% 70%, 78% 100%, 22% 100%, 0 70%, 27% 24%);
    background: radial-gradient(ellipse at 50% 72%, #fff8bd 0 13%, #ffd45b 30%, #ee831d 58%, rgba(183, 52, 8, .55) 76%, transparent 78%);
    filter: drop-shadow(0 0 .18rem #ffd96c) drop-shadow(0 0 .42rem rgba(238, 126, 30, .82));
    animation: candle-flame-left 1.73s ease-in-out infinite;
}

.jukebox-candle-flame::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -240%;
    bottom: -105%;
    width: 580%;
    height: 430%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 185, 69, .32), rgba(228, 100, 20, .11) 42%, transparent 72%);
    animation: candle-glow 1.31s ease-in-out infinite alternate;
}

.candle-left {
    left: 14.58%;
}

.candle-right {
    right: 14.58%;
}

.candle-right::before {
    animation-name: candle-flame-right;
    animation-duration: 1.91s;
    animation-delay: -.64s;
}

.candle-right::after {
    animation-duration: 1.47s;
    animation-delay: -.38s;
}

@keyframes candle-flame-left {
    0%, 100% { transform: translate(0, 1%) scale(.9, .88) rotate(-1deg); filter: brightness(.9) drop-shadow(0 0 .16rem #ffd96c) drop-shadow(0 0 .35rem rgba(238, 126, 30, .72)); }
    14% { transform: translate(-5%, -4%) scale(.82, 1.13) rotate(-3deg); filter: brightness(1.08) drop-shadow(0 0 .2rem #ffe58b) drop-shadow(0 0 .48rem rgba(238, 126, 30, .9)); }
    31% { transform: translate(4%, 3%) scale(.96, .76) rotate(2deg); filter: brightness(.82) drop-shadow(0 0 .14rem #ffc74d) drop-shadow(0 0 .3rem rgba(238, 126, 30, .62)); }
    49% { transform: translate(1%, -7%) scale(.86, 1.2) rotate(1deg); filter: brightness(1.12) drop-shadow(0 0 .22rem #ffe99b) drop-shadow(0 0 .5rem rgba(238, 126, 30, .94)); }
    68% { transform: translate(-3%, 0) scale(1, .91) rotate(-2deg); filter: brightness(.94) drop-shadow(0 0 .17rem #ffd96c) drop-shadow(0 0 .38rem rgba(238, 126, 30, .76)); }
    83% { transform: translate(5%, -3%) scale(.8, 1.08) rotate(3deg); filter: brightness(1.04) drop-shadow(0 0 .2rem #ffe58b) drop-shadow(0 0 .45rem rgba(238, 126, 30, .86)); }
}

@keyframes candle-flame-right {
    0%, 100% { transform: translate(0, 2%) scale(.94, .84) rotate(1deg); filter: brightness(.88) drop-shadow(0 0 .15rem #ffd45b) drop-shadow(0 0 .34rem rgba(238, 126, 30, .68)); }
    18% { transform: translate(4%, -5%) scale(.82, 1.16) rotate(3deg); filter: brightness(1.1) drop-shadow(0 0 .21rem #ffe994) drop-shadow(0 0 .49rem rgba(238, 126, 30, .92)); }
    37% { transform: translate(-4%, 1%) scale(1, .82) rotate(-2deg); filter: brightness(.87) drop-shadow(0 0 .15rem #ffcf55) drop-shadow(0 0 .32rem rgba(238, 126, 30, .66)); }
    56% { transform: translate(-1%, -6%) scale(.87, 1.22) rotate(-1deg); filter: brightness(1.13) drop-shadow(0 0 .22rem #ffecaa) drop-shadow(0 0 .52rem rgba(238, 126, 30, .96)); }
    76% { transform: translate(5%, -1%) scale(.8, 1.02) rotate(3deg); filter: brightness(.98) drop-shadow(0 0 .18rem #ffdc73) drop-shadow(0 0 .41rem rgba(238, 126, 30, .8)); }
    89% { transform: translate(-3%, 3%) scale(.98, .78) rotate(-2deg); filter: brightness(.84) drop-shadow(0 0 .14rem #ffc64b) drop-shadow(0 0 .29rem rgba(238, 126, 30, .6)); }
}

@keyframes candle-glow {
    from { opacity: .5; transform: scale(.9); }
    to { opacity: 1; transform: scale(1.12); }
}

.jukebox-music-roll {
    position: absolute;
    z-index: 1;
    top: 59.15%;
    left: 23.75%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.5%;
    width: 52.55%;
    height: 8.95%;
    overflow: hidden;
    pointer-events: none;
}

.jukebox-music-roll > span {
    position: relative;
    overflow: hidden;
    border-radius: 45% / 12%;
}

.jukebox-music-roll > span::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    background:
        radial-gradient(circle, rgba(22, 10, 2, .8) 0 1px, transparent 1.35px) 0 0 / 8px 7px,
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 225, 139, .2) 5px 6px, transparent 6px 11px);
    mix-blend-mode: soft-light;
    animation: jukebox-roll-turn 3s linear infinite;
    animation-play-state: paused;
}

.jukebox-stage.is-playing .jukebox-music-roll > span::before {
    animation-play-state: running;
}

.jukebox-music-roll > span:last-child::before {
    animation-delay: -1.35s;
}

@keyframes jukebox-roll-turn {
    to {
        background-position: 0 28px, 0 33px;
    }
}

.media-player-frame {
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid #74633e;
    border-radius: .65rem;
    background: #090d09;
    box-shadow: inset 0 0 40px #0008, 0 .5rem 1.4rem rgba(0, 0, 0, .28);
}

.media-player-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-player-frame-zone {
    margin-top: 1rem;
}

.media-player-frame-jukebox {
    position: absolute;
    z-index: 1;
    top: 26.35%;
    left: 22.35%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 55.3%;
    height: 29.1%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: #080b08;
    box-shadow: inset 0 0 1.6rem #000, 0 0 1.2rem rgba(190, 220, 102, .12);
}

.media-player-frame-jukebox::before,
.media-player-frame-jukebox::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 18.75%;
    background: linear-gradient(rgba(4, 6, 4, .18), rgba(4, 6, 4, .3)), url('/images/brand/soundtrack-jukebox-resonance-panel.webp') center / cover no-repeat;
    box-shadow: inset 0 0 1.35rem #000, inset 0 0 0 1px rgba(171, 143, 73, .48);
    filter: brightness(.7) saturate(.78);
    transition: filter .4s ease, box-shadow .4s ease;
}

.jukebox-stage.is-playing .media-player-frame-jukebox::before,
.jukebox-stage.is-playing .media-player-frame-jukebox::after {
    animation: jukebox-resonance 2.8s ease-in-out infinite;
}

.jukebox-stage.is-playing .media-player-frame-jukebox {
    box-shadow: inset 0 0 1.6rem #000, 0 0 1.25rem rgba(191, 223, 103, .28);
}

@keyframes jukebox-resonance {
    0%, 100% {
        filter: brightness(.88) saturate(.92);
        box-shadow: inset 0 0 1.35rem #000, inset 0 0 0 1px rgba(171, 143, 73, .55), 0 0 .35rem rgba(192, 226, 106, .12);
    }
    50% {
        filter: brightness(1.02) saturate(1.04);
        box-shadow: inset 0 0 1.05rem rgba(0, 0, 0, .82), inset 0 0 0 1px rgba(211, 184, 103, .72), 0 0 .85rem rgba(192, 226, 106, .35);
    }
}

.media-player-frame-jukebox::before {
    left: 0;
    border-right: 1px solid #8f7845;
}

.media-player-frame-jukebox::after {
    right: 0;
    border-left: 1px solid #8f7845;
    transform: scaleX(-1);
}

.media-player-frame-jukebox iframe {
    position: relative;
    z-index: 2;
    flex: 0 0 62.5%;
    width: 62.5%;
    height: 100%;
    background: #000;
    box-shadow: 0 0 0 1px #a68a4c, 0 0 1rem #000;
}

.jukebox-console {
    position: absolute;
    z-index: 2;
    top: 69.2%;
    left: 20.5%;
    display: grid;
    grid-template-columns: 4.35rem minmax(0, 1fr) 5rem 4.35rem;
    align-items: stretch;
    gap: .55rem;
    width: 59%;
    min-height: 6.6rem;
    padding: .55rem;
    border: 1px solid rgba(206, 174, 99, .72);
    border-radius: .55rem;
    background: linear-gradient(180deg, rgba(21, 18, 12, .93), rgba(7, 10, 8, .96));
    box-shadow: inset 0 0 0 1px rgba(255, 226, 148, .08), 0 .4rem 1.1rem rgba(0, 0, 0, .56);
}

.jukebox-step,
.jukebox-play {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: .25rem;
    color: #eadba7;
    border: 1px solid #8e7746;
    border-radius: .45rem;
    background: radial-gradient(circle at 50% 30%, #5b512f, #282316 58%, #11150f);
    box-shadow: inset 0 0 0 1px rgba(255, 232, 158, .11), 0 .18rem .45rem #0008;
    text-shadow: 0 1px 3px #000;
}

.jukebox-step > span,
.jukebox-play > span {
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: .85;
}

.jukebox-play.is-pause > span {
    padding-left: 0;
}

.jukebox-step > small,
.jukebox-play > small {
    margin-top: .25rem;
    color: #c4b98f;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.jukebox-step:hover,
.jukebox-step:focus-visible,
.jukebox-play:hover,
.jukebox-play:focus-visible {
    color: #fff6cf;
    border-color: #d7bd71;
    outline: 0;
    background: radial-gradient(circle at 50% 30%, #82723d, #3a321d 58%, #161a11);
    box-shadow: inset 0 0 0 1px rgba(255, 240, 178, .2), 0 0 .85rem rgba(188, 219, 102, .3);
}

.jukebox-play {
    color: #efffc8;
    border-color: #9eb45d;
    background: radial-gradient(circle at 50% 35%, #667b35, #34441f 56%, #141c11);
}

.jukebox-play > span {
    padding-left: .16rem;
    font-size: 1.7rem;
}

.jukebox-preview {
    display: grid;
    grid-template-columns: minmax(5.6rem, 7.2rem) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .35rem;
    overflow: hidden;
    border: 1px solid #4d4c35;
    border-radius: .38rem;
    background: rgba(4, 7, 5, .86);
}

.jukebox-preview > img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid #716747;
    border-radius: .22rem;
}

.jukebox-preview-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.jukebox-preview-copy > small {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .15rem;
    color: #9eaf82;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.jukebox-preview-copy > strong {
    overflow: hidden;
    color: #efe6c7;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(.85rem, 1.25vw, 1.12rem);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jukebox-preview-copy > span {
    overflow: hidden;
    margin-top: .2rem;
    color: #aeb5a6;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jukebox-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 67rem;
    margin: .6rem auto 0;
    padding: .55rem .7rem;
    color: #b6bbae;
    font-size: .84rem;
}

.jukebox-status > a {
    color: #c7d993;
    font-weight: 700;
    white-space: nowrap;
}

.media-library {
    max-width: 67rem;
    margin: .3rem auto 0;
    border-top: 1px solid #3f432f;
}

.media-library > summary {
    padding: .8rem .2rem;
    color: #d2c59b;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    cursor: pointer;
}

.media-library[open] > summary {
    color: #f0e5be;
}

.media-now-playing {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 1.25rem 0;
}

.media-now-playing h2,
.media-now-playing h3 {
    margin: 0;
}

.media-now-playing > a {
    color: #c7d993;
    font-weight: 700;
    white-space: nowrap;
}

.media-now-playing-zone {
    align-items: center;
    margin: .85rem 0;
}

.media-now-playing-zone h3 {
    font-size: 1.05rem;
}

.media-track-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(215px, 270px);
    gap: .85rem;
    overflow-x: auto;
    padding: .25rem .15rem .85rem;
    scroll-snap-type: x proximity;
    scrollbar-color: #88764d #161d17;
}

.media-track-strip-zone {
    grid-auto-columns: minmax(175px, 225px);
}

.media-track-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
    padding: .55rem;
    color: #e8eadf;
    background: linear-gradient(145deg, #1b2119, #121812);
    border: 1px solid #4c4935;
    border-radius: .55rem;
    scroll-snap-align: start;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.media-track-card > button {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    width: 100%;
    padding: 0;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
}

.media-track-card:hover,
.media-track-card:focus-within {
    border-color: #a48b55;
    background: linear-gradient(145deg, #292a1d, #1b2218);
    transform: translateY(-1px);
}

.media-track-card.is-active {
    border-color: #d0b367;
    box-shadow: 0 0 0 1px rgba(208, 179, 103, .34), 0 .35rem 1rem rgba(0, 0, 0, .3);
    background: linear-gradient(145deg, #34301e, #21271c);
}

.media-track-card.is-playing-track {
    box-shadow: 0 0 0 1px rgba(190, 220, 102, .5), 0 0 .9rem rgba(190, 220, 102, .22);
}

.media-track-image {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: .35rem;
    background: #0b0f0b;
}

.media-track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-track-image small {
    position: absolute;
    right: .35rem;
    bottom: .3rem;
    padding: .12rem .3rem;
    color: #fff;
    background: #000c;
    border-radius: .2rem;
    font: 700 .7rem/1.2 system-ui, sans-serif;
}

.media-track-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.media-track-copy strong {
    line-height: 1.2;
}

.media-track-copy small {
    color: #aeb6a8;
}

.media-track-places {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.media-track-places a {
    color: #badb88;
    font-size: .78rem;
    font-weight: 700;
}

.zone-soundtrack .section-heading {
    align-items: center;
}

@media (max-width: 820px) {
    .media-page-hero {
        min-height: 31rem;
        background-position: 39% center;
    }

    .media-page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: rgba(5, 8, 6, .52);
        backdrop-filter: blur(1px);
    }

    .media-page-hero-copy {
        width: min(34rem, 90%);
        padding: 2rem 1rem;
    }

    .jukebox-cabinet {
        aspect-ratio: auto;
        padding: .8rem;
        border: 1px solid #675631;
        background: linear-gradient(rgba(5, 8, 6, .68), rgba(5, 8, 6, .78)), url('/images/brand/soundtrack-jukebox-cabinet-v2.webp') center / cover;
    }

    .jukebox-cabinet-art {
        display: none;
    }

    .jukebox-music-roll {
        display: none;
    }

    .jukebox-gem-lights {
        display: none;
    }

    .jukebox-candle-flames {
        display: none;
    }

    .media-player-frame-jukebox {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border: 1px solid #8b7546;
        border-radius: .35rem;
    }

    .media-player-frame-jukebox::before,
    .media-player-frame-jukebox::after {
        display: none;
    }

    .media-player-frame-jukebox iframe {
        width: 100%;
        height: 100%;
        box-shadow: none;
    }

    .jukebox-console {
        position: relative;
        inset: auto;
        grid-template-columns: 3.5rem minmax(0, 1fr) 4.2rem 3.5rem;
        width: 100%;
        min-height: 5.8rem;
        margin-top: .75rem;
    }
}

@media (max-width: 700px) {
    .media-credit-links,
    .media-now-playing {
        align-items: flex-start;
    }

    .media-credit-links {
        justify-content: center;
    }

    .media-now-playing {
        flex-direction: column;
    }

    .media-track-strip {
        grid-auto-columns: minmax(190px, 76vw);
    }

    .jukebox-preview {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: .45rem;
    }

    .jukebox-step,
    .jukebox-play {
        min-height: 4.5rem;
    }

    .jukebox-step > small,
    .jukebox-play > small {
        display: none;
    }

    .jukebox-status {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .jukebox-console {
        grid-template-columns: 3rem minmax(0, 1fr) 3.3rem 3rem;
        gap: .3rem;
        padding: .35rem;
    }

    .jukebox-preview {
        grid-template-columns: 1fr;
    }

    .jukebox-preview > img,
    .jukebox-preview-copy > span {
        display: none;
    }

    .jukebox-preview-copy > small {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .media-track-card {
        transition: none;
    }

    .jukebox-stage.is-playing .media-player-frame-jukebox::before,
    .jukebox-stage.is-playing .media-player-frame-jukebox::after {
        animation: none;
        filter: brightness(.94) saturate(.96);
    }


    .jukebox-music-roll > span::before {
        animation: none;
    }

    .jukebox-candle-flame::before,
    .jukebox-candle-flame::after {
        animation: none;
    }
}
