/**
 * Geekly — Single Trailer
 *
 * Player-first single trailer layout: YouTube poster handoff, a fully custom
 * direct-upload player deck, title and actions, likers, About this trailer,
 * Up next and the comment area aligned to the player column.
 *
 * Scoped to .single-geekly_trailer so none of it reaches the trailer hub.
 *
 * @package Geekly
 */

/* =============================================================================
   Page shell and layout
   ============================================================================= */

.single-geekly_trailer .geekly-main {
    padding: 24px 16px 48px;
}

.geekly-trailer-page {
    /* Video-first pages can use more of the main column than reading pages.
       The wider cap keeps a 32px gutter beside the collapsed sidebar at
       1728px and the expanded sidebar at 1920px, then stops the player from
       stretching indefinitely on ultrawide displays. */
    --trailer-page-max: 1760px;
    width: 100%;
    max-width: var(--trailer-page-max);
    margin: 0 auto;
}

.geekly-trailer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.geekly-trailer-stage {
    min-width: 0;
}

.geekly-trailer-player-shell {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

.geekly-trailer-meta,
.geekly-trailer-below,
.geekly-trailer-upnext {
    min-width: 0;
}

@media (min-width: 1100px) {
    .geekly-trailer-layout {
        grid-template-columns: minmax(0, 1fr) 420px;
        grid-template-areas:
            "player upnext"
            "meta upnext"
            "below upnext";
    }

    .geekly-trailer-stage { grid-area: player; }
    .geekly-trailer-meta { grid-area: meta; }
    .geekly-trailer-below { grid-area: below; }
    .geekly-trailer-upnext {
        grid-area: upnext;
        position: sticky;
        top: calc(var(--topbar-height) + 18px);
    }
}

@media (min-width: 1280px) {
    .single-geekly_trailer .geekly-main {
        padding: 24px var(--main-padding-lg, 32px) 56px;
    }
}

@media (min-width: 1440px) {
    .geekly-trailer-layout {
        grid-template-columns: minmax(0, 1fr) 460px;
    }
}

@media (max-width: 1099px) {
    .geekly-trailer-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .geekly-trailer-stage { order: 1; }
    .geekly-trailer-meta { order: 2; }
    .geekly-trailer-upnext { order: 3; margin-top: 28px; }
    .geekly-trailer-below { order: 4; margin-top: 28px; }
}

@media (max-width: 767px) {
    .single-geekly_trailer .geekly-main {
        padding: 0 0 40px;
    }

    .geekly-trailer-meta { padding: 20px 16px 0; }
    .geekly-trailer-upnext { padding: 0 16px; }
    .geekly-trailer-below { padding: 0 16px; }
}

/* =============================================================================
   Player shell
   ============================================================================= */

.geekly-trailer-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.geekly-trailer-player-shell.is-studio-source {
    border: 1px solid rgb(255 255 255 / 9%);
    box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
}

:root[data-theme="light"] .geekly-trailer-player-shell.is-studio-source {
    border-color: rgb(32 33 37 / 10%);
    box-shadow: 0 18px 48px rgb(32 32 36 / 12%);
}

.geekly-trailer-source {
    position: absolute;
    inset: 0;
}

.geekly-trailer-source[hidden],
.geekly-trailer-iframe[hidden],
.geekly-trailer-poster[hidden],
.geekly-trailer-player-bar[hidden] {
    display: none;
}

/* YouTube poster */

.geekly-trailer-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.geekly-trailer-poster__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geekly-trailer-poster__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 35%, rgb(0 0 0 / 22%) 100%);
}

.geekly-trailer-poster__play > span,
.geekly-trailer-poster__play .geekly-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    background: rgb(0 0 0 / 56%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform var(--transition-med) var(--ease-out), background var(--transition-med);
}

.geekly-trailer-poster__play .geekly-icon {
    padding: 0;
    border: 0;
    background: transparent;
}

.geekly-trailer-poster:hover .geekly-trailer-poster__play > span,
.geekly-trailer-poster:hover .geekly-trailer-poster__play .geekly-icon {
    transform: scale(1.06);
    background: rgb(0 0 0 / 68%);
}

.geekly-trailer-poster__play svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: #fff;
}

.geekly-trailer-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.geekly-trailer-poster--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--clr-bg-raised);
    color: var(--clr-text-muted);
    cursor: default;
}

.geekly-trailer-poster--placeholder p {
    margin: 0;
    font-size: var(--text-sm);
}

/* YouTube expand bar: the iframe keeps its own native controls, so theatre
   lives on a slim strip below the player rather than over the video. */

.geekly-trailer-player-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    padding: 0 10px;
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #0b0b0b;
}

.geekly-trailer-player-bar__shortcuts,
.geekly-trailer-player-bar__theater {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgb(255 255 255 / 72%);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.geekly-trailer-player-bar__shortcuts {
    margin-right: auto;
}

.geekly-trailer-player-bar__shortcuts[hidden] {
    display: none;
}

.geekly-trailer-player-bar__shortcuts:hover,
.geekly-trailer-player-bar__theater:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

.geekly-trailer-player-bar__shortcuts:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])),
.geekly-trailer-player-bar__theater:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.geekly-trailer-player-bar__theater .geekly-icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 1099px) {
    .geekly-trailer-player-bar__theater { display: none; }
}

/* =============================================================================
   Direct-upload player
   ============================================================================= */

.geekly-trailer-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #08080b;
    object-fit: contain;
}

.geekly-trailer-studio-start {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    background:
        linear-gradient(90deg, rgb(5 5 7 / 54%) 0%, rgb(5 5 7 / 6%) 56%, rgb(5 5 7 / 20%) 100%),
        linear-gradient(0deg, rgb(5 5 7 / 78%) 0%, transparent 47%);
    color: #fff;
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.geekly-trailer-studio-start[hidden] {
    display: none;
}

.geekly-trailer-player.is-studio-playing .geekly-trailer-studio-start {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.geekly-trailer-studio-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(10 10 13 / 62%);
    color: #f2f5f8;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.geekly-trailer-studio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-brand);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 25%);
}

.geekly-trailer-studio-center {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 11px;
}

.geekly-trailer-studio-play {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 50%;
    background: var(--clr-brand-dark);
    color: var(--clr-on-brand);
    cursor: pointer;
    transition: transform var(--transition-med) var(--ease-out), background var(--transition-fast);
}

.geekly-trailer-studio-play:hover {
    background: var(--clr-brand-fill-hover);
    transform: scale(1.06);
}

.geekly-trailer-studio-play:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.geekly-trailer-studio-play-icon {
    display: grid;
    place-items: center;
}

.geekly-trailer-studio-play-icon svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: #fff;
}

.geekly-trailer-studio-action {
    color: rgb(255 255 255 / 78%);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 1px 8px rgb(0 0 0 / 60%);
}

.geekly-trailer-studio-start-theater {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(10 10 13 / 62%);
    color: #f2f5f8;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.geekly-trailer-studio-start-theater:hover {
    border-color: rgb(255 255 255 / 30%);
    background: rgb(10 10 13 / 82%);
}

.geekly-trailer-studio-start-theater:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.geekly-trailer-studio-start-theater .geekly-icon {
    width: 15px;
    height: 15px;
}

.geekly-trailer-studio-caption {
    position: absolute;
    right: 20px;
    bottom: 17px;
}

.geekly-trailer-studio-caption > span {
    display: inline-block;
    padding: 5px var(--space-2);
    border-radius: var(--radius-sm);
    background: rgb(0 0 0 / 68%);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.geekly-trailer-icon-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.geekly-trailer-icon-state[hidden],
.geekly-studio-btn[hidden],
.geekly-studio-btn .geekly-icon[hidden],
.geekly-trailer-studio-start-theater .geekly-icon[hidden] {
    display: none;
}

/* The deck */

.geekly-studio-controls {
    position: absolute;
    z-index: 6;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 10px 8px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    background: linear-gradient(180deg, rgb(15 15 19 / 78%), rgb(7 7 9 / 90%));
    box-shadow: 0 14px 36px rgb(0 0 0 / 36%);
    color: #fff;
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.geekly-trailer-player.is-studio-playing .geekly-studio-controls:not(.is-hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.geekly-studio-progress-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.geekly-studio-time {
    min-width: 31px;
    color: rgb(255 255 255 / 68%);
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.geekly-studio-progress {
    --progress: 0%;
    --buffer: 100%;
    --hover-x: 0%;
    position: relative;
    display: flex;
    align-items: center;
    height: 18px;
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
}

.geekly-studio-progress__track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 18%);
    transition: height 120ms ease;
}

.geekly-studio-progress:hover .geekly-studio-progress__track,
.geekly-studio-progress:focus-visible .geekly-studio-progress__track,
.geekly-studio-progress.is-scrubbing .geekly-studio-progress__track {
    height: 6px;
}

.geekly-studio-progress__buffer,
.geekly-studio-progress__played {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
}

.geekly-studio-progress__buffer {
    width: var(--buffer);
    background: rgb(255 255 255 / 28%);
}

.geekly-studio-progress__played {
    width: var(--progress);
    background: var(--clr-brand);
}

.geekly-studio-progress__thumb {
    position: absolute;
    top: 50%;
    left: var(--progress);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-brand) 35%, transparent);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 120ms ease, transform 120ms ease;
}

.geekly-studio-progress:hover .geekly-studio-progress__thumb,
.geekly-studio-progress:focus-visible .geekly-studio-progress__thumb,
.geekly-studio-progress.is-scrubbing .geekly-studio-progress__thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.geekly-studio-progress__tooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: clamp(20px, var(--hover-x), calc(100% - 20px));
    padding: 3px 6px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 4px;
    background: rgb(0 0 0 / 90%);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 120ms ease;
}

.geekly-studio-progress:hover .geekly-studio-progress__tooltip,
.geekly-studio-progress.is-scrubbing .geekly-studio-progress__tooltip {
    opacity: 1;
}

.geekly-studio-progress:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])),
.geekly-studio-btn:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])),
.geekly-studio-volume__slider:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])),
.geekly-studio-menu button:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.geekly-studio-controls__row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.geekly-studio-controls__group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.geekly-studio-controls__group--end {
    margin-left: auto;
}

.geekly-studio-btn {
    display: inline-grid;
    width: 32px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgb(255 255 255 / 80%);
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.geekly-studio-btn:hover {
    background: rgb(255 255 255 / 11%);
    color: #fff;
}

.geekly-studio-btn:active {
    transform: scale(0.94);
}

.geekly-studio-btn .geekly-icon {
    width: 18px;
    height: 18px;
}

.geekly-studio-btn--play {
    width: 36px;
    height: 32px;
}

.geekly-studio-btn--play .geekly-icon {
    width: 20px;
    height: 20px;
}

.geekly-studio-btn--skip {
    position: relative;
}

.geekly-studio-btn--skip .geekly-icon {
    width: 21px;
    height: 21px;
}

.geekly-studio-skip-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-top: 1px;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.geekly-studio-btn[aria-pressed="true"]:not(.geekly-studio-btn--play) {
    background: color-mix(in srgb, var(--clr-brand) 20%, transparent);
    color: #fff;
}

.geekly-studio-btn--theater {
    display: none;
}

.geekly-studio-speed {
    width: auto;
    min-width: 34px;
    padding: 0 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.geekly-studio-volume {
    display: flex;
    align-items: center;
}

.geekly-studio-volume__slider {
    --volume: 100%;
    width: 0;
    height: 4px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff 0%, #fff var(--volume), rgb(255 255 255 / 22%) var(--volume), rgb(255 255 255 / 22%) 100%);
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: width 160ms ease, opacity 160ms ease, margin 160ms ease;
}

.geekly-studio-volume:hover .geekly-studio-volume__slider,
.geekly-studio-volume:focus-within .geekly-studio-volume__slider {
    width: 64px;
    margin-left: 4px;
    opacity: 1;
}

.geekly-studio-volume__slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 30%);
    cursor: pointer;
    -webkit-appearance: none;
}

.geekly-studio-volume__slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.geekly-studio-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 168px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    background: rgb(12 12 16 / 96%);
    box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.geekly-studio-menu[hidden] {
    display: none;
}

.geekly-studio-menu__title {
    margin: 2px 6px 6px;
    color: rgb(255 255 255 / 58%);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
}

.geekly-studio-menu__options {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.geekly-studio-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgb(255 255 255 / 82%);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.geekly-studio-menu button:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

.geekly-studio-menu button[aria-pressed="true"] {
    color: #fff;
}

.geekly-studio-menu button[aria-pressed="true"]::after {
    content: "✓";
    color: var(--clr-brand);
    font-size: 0.75rem;
}

.geekly-trailer-source--video {
    cursor: pointer;
}

.geekly-trailer-source--video:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])),
.geekly-trailer-player-shell:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.geekly-trailer-player-shell:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #000;
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-player {
    height: 100%;
    aspect-ratio: auto;
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-video {
    object-fit: contain;
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-player-bar {
    display: none;
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-studio-play {
    width: 96px;
    height: 96px;
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-studio-play-icon svg {
    width: 44px;
    height: 44px;
}

.geekly-trailer-player-shell:fullscreen .geekly-studio-controls {
    right: auto;
    bottom: 24px;
    left: 50%;
    width: min(calc(100% - 48px), 1080px);
    transform: translate(-50%, 7px);
}

.geekly-trailer-player-shell:fullscreen .geekly-trailer-player.is-studio-playing .geekly-studio-controls:not(.is-hidden) {
    transform: translate(-50%, 0);
}

@media (min-width: 1100px) {
    .geekly-studio-btn--theater { display: inline-grid; }
    .geekly-trailer-studio-start-theater { display: inline-flex; }
}

@media (max-width: 767px) {
    .geekly-trailer-player-shell {
        border-radius: 0;
    }

    .geekly-trailer-player-shell.is-studio-source {
        border: 0;
        box-shadow: none;
    }

    .geekly-trailer-poster__play > span,
    .geekly-trailer-poster__play .geekly-icon {
        width: 66px;
        height: 66px;
    }

    .geekly-trailer-poster__play svg {
        width: 30px;
        height: 30px;
    }

    .geekly-trailer-studio-start {
        padding: var(--space-3);
    }

    .geekly-trailer-studio-chip {
        top: 12px;
        left: 12px;
        padding: 5px var(--space-2);
        font-size: 0.625rem;
    }

    .geekly-trailer-studio-play {
        width: 62px;
        height: 62px;
    }

    .geekly-trailer-studio-play-icon svg {
        width: 28px;
        height: 28px;
    }

    .geekly-trailer-studio-action {
        display: none;
    }

    .geekly-trailer-studio-caption {
        right: 13px;
        bottom: 11px;
    }

    .geekly-studio-controls {
        right: 8px;
        bottom: 8px;
        left: 8px;
        padding: 8px;
        border-radius: 10px;
    }

    .geekly-studio-controls__row { gap: 2px; }
    .geekly-studio-progress-row { gap: 7px; }
    .geekly-studio-time { min-width: 28px; font-size: 0.625rem; }

    .geekly-studio-btn {
        width: 36px;
        height: 36px;
    }

    .geekly-studio-btn--play {
        width: 40px;
        height: 38px;
    }

    .geekly-studio-btn--play .geekly-icon { width: 22px; height: 22px; }
    .geekly-studio-btn--skip .geekly-icon { width: 22px; height: 22px; }

    .geekly-studio-volume,
    .geekly-studio-btn--pip {
        display: none;
    }

    .geekly-studio-menu {
        right: 0;
        bottom: calc(100% + 6px);
        left: 0;
        width: auto;
        padding: 6px;
    }

    .geekly-studio-menu__title { display: none; }

    .geekly-studio-menu__options {
        flex-direction: row;
        gap: 2px;
    }

    .geekly-studio-menu button {
        justify-content: center;
        min-height: 34px;
        padding: 0 2px;
        font-size: 0.6875rem;
    }

    .geekly-studio-menu button[aria-pressed="true"]::after {
        content: none;
    }

    .geekly-studio-menu button[aria-pressed="true"] {
        background: color-mix(in srgb, var(--clr-brand) 20%, transparent);
    }

    .geekly-trailer-player-shell:fullscreen .geekly-trailer-studio-play {
        width: 76px;
        height: 76px;
    }

    .geekly-trailer-player-shell:fullscreen .geekly-trailer-studio-play-icon svg {
        width: 34px;
        height: 34px;
    }

    .geekly-trailer-player-shell:fullscreen .geekly-studio-controls {
        width: calc(100% - 16px);
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .geekly-studio-controls,
    .geekly-studio-progress__track,
    .geekly-studio-progress__thumb,
    .geekly-studio-progress__tooltip,
    .geekly-studio-btn,
    .geekly-studio-volume__slider,
    .geekly-trailer-studio-start {
        transition: none;
    }
}

/* =============================================================================
   Title, metadata and actions
   ============================================================================= */

.geekly-trailer-meta {
    padding-top: 20px;
}

.geekly-trailer-title {
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.geekly-trailer-title__primary {
    display: block;
    font-size: clamp(2.25rem, 3.2vw, 2.75rem);
    text-wrap: balance;
}

.geekly-trailer-title__secondary {
    display: block;
    margin-top: 9px;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.4;
    text-wrap: pretty;
}

.geekly-trailer-title__dot {
    display: inline-block;
    margin: 0 0.14em;
    color: var(--clr-text-muted);
}

.geekly-trailer-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
}

.geekly-trailer-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.geekly-trailer-stat .geekly-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: 0.82;
}

.geekly-trailer-stat--trending {
    color: var(--clr-brand-text);
    font-weight: 600;
    text-decoration: none;
}

.geekly-trailer-stat--trending .geekly-icon {
    opacity: 1;
}

.geekly-trailer-stat--trending:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.geekly-trailer-stat--trending:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    border-radius: 2px;
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 3px;
}

.geekly-trailer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--clr-border);
}

.geekly-trailer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--clr-text-secondary);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.geekly-trailer-action .geekly-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.geekly-trailer-action:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-action:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    border-color: var(--clr-border-control);
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-action[aria-pressed="true"],
.geekly-trailer-action.is-active {
    background: var(--clr-brand-tint);
    color: var(--clr-brand-on-tint);
}

.geekly-trailer-action__count {
    font-variant-numeric: tabular-nums;
}

.geekly-trailer-action--youtube {
    margin-left: auto;
    padding: 0 14px;
    background: var(--clr-bg-raised);
    color: var(--clr-text-primary);
    text-decoration: none;
}

.geekly-trailer-action--youtube:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-youtube-mark {
    flex: 0 0 auto;
    color: var(--clr-brand-text);
}

.geekly-trailer-action__external {
    width: 13px;
    height: 13px;
    color: var(--clr-text-muted);
}

@media (max-width: 699px) {
    .geekly-trailer-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .geekly-trailer-action {
        min-height: 42px;
        padding: 0 6px;
        font-size: 0.75rem;
    }

    .geekly-trailer-action--youtube {
        grid-column: 1 / -1;
        min-height: 42px;
        margin: 6px 0 0;
        padding: 0 12px;
        font-size: var(--text-sm);
    }
}

/* Share panel: the shared share block is rendered inside a popover, so its
   own section heading and spacing are stripped and the buttons become a row. */

.geekly-trailer-share-panel {
    position: fixed;
    z-index: var(--z-popover);
    padding: 6px;
    border: 1px solid var(--clr-border-control);
    border-radius: var(--radius-lg);
    background: var(--clr-bg-elevated);
    box-shadow: var(--shadow-card);
}

.geekly-trailer-share-panel[hidden] {
    display: none;
}

.geekly-trailer-share-panel .geekly-share {
    margin: 0;
    padding: 0;
}

.geekly-trailer-share-panel .geekly-share::before {
    display: none;
}

.geekly-trailer-share-panel .geekly-share__inner {
    display: block;
}

.geekly-trailer-share-panel .geekly-share__header,
.geekly-trailer-share-panel .geekly-share__copy-feedback {
    display: none;
}

.geekly-trailer-share-panel .geekly-share__buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.geekly-trailer-share-panel .geekly-share__btn {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--clr-bg-raised);
    color: var(--clr-text-secondary);
}

.geekly-trailer-share-panel .geekly-share__btn:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-share-panel .geekly-share__btn:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    border-color: var(--clr-border-control);
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-share-panel .geekly-share__btn .geekly-icon,
.geekly-trailer-share-panel .geekly-share__btn > svg {
    width: 17px;
    height: 17px;
}

.geekly-trailer-share-panel .geekly-share__btn-label {
    display: none;
}

/* =============================================================================
   Likers facepile and popover
   ============================================================================= */

.geekly-trailer-likers {
    position: relative;
    display: flex;
    margin-top: 9px;
}

.geekly-trailer-likers[hidden] {
    display: none;
}

.geekly-trailer-liked-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin-left: -5px;
    padding: 4px 8px 4px 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--clr-text-muted);
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.geekly-trailer-liked-by:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-secondary);
}

.geekly-trailer-liked-by:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    border-color: var(--clr-border-control);
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-liked-by__avatars {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.geekly-trailer-liker-avatar {
    --geekly-avatar-hue: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border: 2px solid var(--clr-bg-base);
    border-radius: 50%;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.geekly-trailer-liker-avatar + .geekly-trailer-liker-avatar {
    margin-left: -7px;
}

.geekly-trailer-liker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geekly-trailer-liker-avatar--initial {
    background: linear-gradient(
        135deg,
        hsl(var(--geekly-avatar-hue), 58%, 46%),
        hsl(var(--geekly-avatar-hue), 58%, 30%)
    );
}

.geekly-trailer-liked-by__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geekly-trailer-liked-by__text strong {
    color: var(--clr-text-secondary);
    font-weight: 600;
}

.geekly-trailer-likers-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: var(--z-popover);
    width: 244px;
    max-width: min(244px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--clr-border-control);
    border-radius: var(--radius-lg);
    background: var(--clr-bg-elevated);
    box-shadow: var(--shadow-card);
}

.geekly-trailer-likers-popover[hidden] {
    display: none;
}

.geekly-trailer-likers-popover--above {
    top: auto;
    bottom: calc(100% + 8px);
}

.geekly-trailer-likers-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px 9px 14px;
    border-bottom: 1px solid var(--clr-border);
}

.geekly-trailer-likers-popover__heading {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.geekly-trailer-likers-popover__title {
    color: var(--clr-text-secondary);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.geekly-trailer-likers-popover__count {
    color: var(--clr-text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.geekly-trailer-likers-popover__close {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
}

.geekly-trailer-likers-popover__close:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-likers-popover__close:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-likers-popover__close svg {
    width: 14px;
    height: 14px;
}

.geekly-trailer-likers-popover__list {
    display: flex;
    flex-direction: column;
    max-height: 220px;
    margin: 0;
    padding: 5px 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-border-strong) transparent;
}

.geekly-trailer-likers-popover__list:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline-offset: -2px;
}

.geekly-trailer-likers-popover__user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    color: var(--clr-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.geekly-trailer-likers-popover__user:hover {
    background: var(--clr-bg-hover);
}

.geekly-trailer-likers-popover__user .geekly-trailer-liker-avatar {
    width: 28px;
    height: 28px;
    border-width: 1px;
    border-color: var(--clr-border);
    font-size: 0.625rem;
}

.geekly-trailer-likers-popover__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geekly-trailer-likers-popover__more {
    padding: 9px 14px 11px;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.geekly-trailer-likers-popover__more[hidden] {
    display: none;
}

@media (max-width: 699px) {
    .geekly-trailer-liked-by {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   About this trailer
   ============================================================================= */

.geekly-trailer-about {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--clr-border);
}

.geekly-trailer-about h2 {
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.geekly-trailer-about__body {
    max-width: 66ch;
    margin-top: 10px;
    color: var(--clr-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.geekly-trailer-about__body p {
    margin: 0;
}

.geekly-trailer-about__body p + p {
    margin-top: 0.7em;
}

.geekly-trailer-about__body a {
    color: var(--clr-brand-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.geekly-trailer-about__body a:hover {
    color: var(--clr-brand-hover);
}

.geekly-trailer-about__body.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.geekly-trailer-about__body.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.geekly-trailer-about__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 8px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--clr-brand-text);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
}

.geekly-trailer-about__toggle:hover {
    color: var(--clr-brand-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.geekly-trailer-about__toggle:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-about__toggle[hidden] {
    display: none;
}

/* =============================================================================
   Tags
   ============================================================================= */

.geekly-trailer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.geekly-trailer-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--clr-bg-raised);
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.geekly-trailer-tag:hover {
    background: var(--clr-bg-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-tag:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

/* =============================================================================
   Up next
   ============================================================================= */

.geekly-trailer-upnext__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.geekly-trailer-upnext__head h2 {
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.geekly-trailer-upnext__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.geekly-trailer-upnext__actions > a {
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.geekly-trailer-upnext__actions > a:hover {
    color: var(--clr-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.geekly-trailer-rail-arrow {
    display: none;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--clr-border-control);
    border-radius: 50%;
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.geekly-trailer-rail-arrow:hover {
    background: var(--clr-bg-hover);
    border-color: var(--clr-border-hover);
    color: var(--clr-text-primary);
}

.geekly-trailer-rail-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.geekly-trailer-rail-arrow:disabled:hover {
    background: transparent;
    border-color: var(--clr-border-control);
    color: var(--clr-text-muted);
}

.geekly-trailer-rail-arrow:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.geekly-trailer-rail-arrow .geekly-icon {
    width: 14px;
    height: 14px;
}

.geekly-trailer-upnext__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.geekly-trailer-upnext-card {
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 6px;
    border-radius: 10px;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.geekly-trailer-upnext-card:hover {
    background: var(--clr-bg-hover);
}

.geekly-trailer-upnext-card:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: -2px;
}

.geekly-trailer-upnext-card__thumb {
    position: relative;
    flex: 0 0 152px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: var(--clr-bg-raised);
}

.geekly-trailer-upnext-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geekly-trailer-upnext-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--clr-text-muted);
}

.geekly-trailer-upnext-card__dur {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgb(0 0 0 / 78%);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.geekly-trailer-upnext-card__meta {
    min-width: 0;
    padding: 2px 0;
}

.geekly-trailer-upnext-card__type {
    display: block;
    color: var(--clr-text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
}

.geekly-trailer-upnext-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 1099px) {
    .geekly-trailer-upnext__list {
        flex-direction: row;
        gap: 12px;
        padding-bottom: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .geekly-trailer-upnext__list::-webkit-scrollbar {
        display: none;
    }

    .geekly-trailer-upnext-card {
        flex: 0 0 260px;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        scroll-snap-align: start;
    }

    .geekly-trailer-upnext-card__thumb {
        flex: none;
        width: 100%;
    }

    .geekly-trailer-upnext-card__meta {
        padding: 0 2px 4px;
    }

    .geekly-trailer-upnext-card__title {
        -webkit-line-clamp: 2;
    }
}

/* =============================================================================
   Theatre mode
   ============================================================================= */

@media (min-width: 1100px) {
    body.geekly-trailer-theater .geekly-trailer-layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
        align-items: stretch;
    }

    body.geekly-trailer-theater .geekly-trailer-page {
        max-width: none;
    }
    body.geekly-trailer-theater .geekly-trailer-stage {
        --theater-bleed: 16px;
        --theater-chrome: 86px;
        position: relative;
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: calc(100vh - var(--topbar-height));
        margin: -24px calc(-1 * var(--theater-bleed)) 0;
        padding: 24px 0;
        overflow: hidden;
        background: radial-gradient(ellipse at 50% 35%, #17171c 0%, #0a0a0d 58%, #060608 100%);
    }
    body.geekly-trailer-theater .geekly-trailer-player-shell {
        /* The 48px keeps a 24px stage gutter on each side at narrower desktop
           widths. The 86px chrome allowance is the stage's 48px vertical
           padding plus the 38px YouTube bar, so the whole shell stays inside
           the viewport. */
        width: min(1280px, calc((100vh - var(--topbar-height) - var(--theater-chrome)) * 16 / 9), calc(100% - 48px));
        max-width: 1280px;
    }

    body.geekly-trailer-theater .geekly-trailer-meta {
        order: 2;
        width: 100%;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext {
        order: 3;
        position: static;
        max-width: none;
    }

    body.geekly-trailer-theater .geekly-trailer-below {
        order: 4;
        width: 100%;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }

    body.geekly-trailer-theater .geekly-trailer-rail-arrow {
        display: grid;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext__list {
        flex-direction: row;
        gap: 12px;
        padding-bottom: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--clr-border-strong) transparent;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext__list::-webkit-scrollbar {
        height: 6px;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext__list::-webkit-scrollbar-track {
        background: transparent;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext__list::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: var(--clr-border-strong);
    }

    body.geekly-trailer-theater .geekly-trailer-upnext-card {
        flex: 0 0 260px;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        scroll-snap-align: start;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext-card__thumb {
        flex: none;
        width: 100%;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext-card__meta {
        padding: 0 2px 4px;
    }

    body.geekly-trailer-theater .geekly-trailer-upnext-card__title {
        -webkit-line-clamp: 2;
    }
}

/* The trailer page moves to 32px side padding from 1280px, so the theatre
   stage has to bleed by the same amount to stay edge to edge. */
@media (min-width: 1280px) {
    body.geekly-trailer-theater .geekly-trailer-stage {
        --theater-bleed: var(--main-padding-lg, 32px);
    }
}

/* =============================================================================
   Below the player: XP and comments
   ============================================================================= */

.geekly-trailer-below .geekly-xp-block {
    margin-top: 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--clr-bg-surface), var(--clr-bg-elevated));
}

.geekly-trailer-below .geekly-xp-block__header {
    margin-bottom: 10px;
}

.geekly-trailer-below .geekly-xp-block__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 2px;
}

.geekly-trailer-below .geekly-xp-block__item {
    min-width: 0;
    padding: var(--space-2) 9px;
}

.geekly-trailer-below .geekly-xp-block__label {
    font-size: 0.875rem;
}

@media (max-width: 699px) {
    .geekly-trailer-below .geekly-xp-block__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The comment band is designed to break out of the article column. On a
   trailer page it sits inside the player column instead, so its bleed and
   elevated band are removed and the content aligns with the video edge. */

.single-geekly_trailer .geekly-comments {
    overflow: visible;
    margin: 32px 0 0;
    border-top: 0;
    background: transparent;
}

.single-geekly_trailer .geekly-comments__inner {
    max-width: none;
    padding: 0;
}

.single-geekly_trailer .geekly-comments__password-notice {
    margin: 0;
    padding: 0;
}
