/* =========================================
   OFFBRAND — INDIVIDUAL FILM PAGE
========================================= */


/* =========================================
   GENERAL
========================================= */

.film-detail-page {
    overflow-x: hidden;
}

.film-detail-page a {
    text-decoration: none;
}

.film-detail-page button {
    font-family: inherit;
}


/* =========================================
   TOP BAR
========================================= */

.film-topbar {

    position: absolute;

    top: 25px;
    left: 8%;
    right: 8%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 1001;

}


.film-back-button {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

    transition: color 0.3s ease, transform 0.3s ease;

}


.film-back-button span {

    font-size: 20px;

    transition: transform 0.3s ease;

}


.film-back-button:hover {

    color: white;

}


.film-back-button:hover span {

    transform: translateX(-5px);

}


.film-theme-toggle {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    background: rgba(20, 20, 24, 0.35);

    backdrop-filter: blur(12px);

    color: white;

    font-size: 20px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;

}


.film-theme-toggle:hover {

    background: var(--accent, #b65b55);

    border-color: var(--accent, #b65b55);

    transform: rotate(20deg);

}



/* =========================================
   FILM HERO
========================================= */

.film-hero {

    min-height: 90vh;

    position: relative;

    display: flex;

    align-items: center;

    padding: 150px 10% 100px;

    background-color: #111216;

    background-size: cover;
    background-position: center;

    overflow: hidden;

    isolation: isolate;

}


.film-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(17, 18, 22, 0.96) 0%,
            rgba(17, 18, 22, 0.72) 45%,
            rgba(17, 18, 22, 0.20) 100%
        ),
        linear-gradient(
            0deg,
            #111216 0%,
            transparent 45%
        );

    z-index: -1;

}


.film-hero-content {

    max-width: 900px;

    position: relative;

    z-index: 2;

}


.film-eyebrow,
.film-section-label {

    font-size: 11px;

    letter-spacing: calc(4px * var(--ob-label-tracking, 1));

    font-weight: 700;

    color: var(--accent-light, #d27b72);

    margin-bottom: 22px;

}


.film-hero-content h1 {

    font-family: var(--font-serif);

    font-size: calc(clamp(65px, 11vw, 135px) * var(--ob-display-scale, 1));

    line-height: 0.95;

    font-weight: 500;

    letter-spacing: calc(-5px * var(--ob-tracking, 1));

    color: #f2f0ec;

    margin: 0 0 35px;

    max-width: 1000px;

}


.film-hero-meta {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 15px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;

    letter-spacing: calc(1px * var(--ob-label-tracking, 1));

    margin-bottom: 40px;

}


.film-meta-item {

    display: flex;

    align-items: center;

    gap: 15px;

}


.film-meta-item:not(:last-child)::after {

    content: "";

    width: 4px;

    height: 4px;

    border-radius: 50%;

    background: var(--accent-light, #d27b72);

}


.film-watch-button {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 17px 27px;

    background: var(--accent, #b65b55);

    color: white;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

    transition: transform 0.3s ease, background 0.3s ease;

}


.film-watch-button:hover {

    transform: translateY(-5px);

    background: var(--accent-light, #d27b72);

}


.film-watch-button span {

    font-size: 15px;

}


.film-scroll-indicator {

    position: absolute;

    bottom: 35px;

    left: 10%;

    display: flex;

    align-items: center;

    gap: 17px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 9px;

    letter-spacing: calc(3px * var(--ob-label-tracking, 1));

}


.scroll-line {

    height: 1px;

    width: 55px;

    background: var(--accent-light, #d27b72);

}



/* =========================================
   MAIN CONTENT
========================================= */

.film-main {

    width: 100%;

    overflow: hidden;

}


.film-watch-section {

    padding: 110px 10% 100px;

    background: var(--background, #111216);

}


.film-section-heading {

    margin-bottom: 45px;

}


.film-section-heading h2,
.film-information-main h2 {

    font-family: var(--font-serif);

    font-size: calc(clamp(38px, 6vw, 70px) * var(--ob-display-scale, 1));

    font-weight: 500;

    letter-spacing: calc(-2px * var(--ob-tracking, 1));

    color: var(--text, #f2f0ec);

    margin: 0;

}


.film-section-heading h2 span,
.film-information-main h2 span {

    color: var(--accent-light, #d27b72);

}



/* =========================================
   VIDEO PLAYER
========================================= */

.film-player-container {

    width: 100%;

    max-width: 1350px;

    margin: auto;

}


.film-player {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    overflow: hidden;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

}


.film-player video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    background: #000;

}


/* =========================================
   CUSTOM VIDEO CONTROLS
========================================= */

.film-controls {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px 27px 20px;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.95),
        rgba(0, 0, 0, 0.65),
        transparent
    );

    display: flex;

    flex-direction: column;

    gap: 16px;

    opacity: 1;

}


.film-controls[hidden] {

    display: none;

}


/* PROGRESS BAR */

.film-progress-container {

    width: 100%;

    display: flex;

    align-items: center;

}


.film-progress {

    appearance: none;

    -webkit-appearance: none;

    width: 100%;

    height: 5px;

    border-radius: 20px;

    cursor: pointer;

    outline: none;

    background: linear-gradient(
        to right,
        var(--accent-light, #d27b72) 0%,
        var(--accent-light, #d27b72) 0%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );

}


.film-progress::-webkit-slider-thumb {

    appearance: none;

    -webkit-appearance: none;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: white;

    box-shadow: 0 0 0 4px rgba(var(--accent-bright-rgb), 0.2);

    transition: transform 0.2s ease;

}


.film-progress::-moz-range-thumb {

    width: 13px;
    height: 13px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow: 0 0 0 4px rgba(var(--accent-bright-rgb), 0.2);

}


.film-progress:hover::-webkit-slider-thumb {

    transform: scale(1.25);

}


/* BOTTOM CONTROL BAR */

.film-controls-bottom {

    display: flex;

    align-items: center;

    gap: 22px;

    min-width: 0;

}


.film-controls-spacer {

    flex: 1;

}


.film-control-button {

    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: white;

    font-size: 19px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.film-control-button:hover {

    background: rgba(255, 255, 255, 0.15);

    color: var(--accent-light, #d27b72);

}


.film-control-button:active {

    transform: scale(0.9);

}


.play-button {

    background: var(--accent, #b65b55);

    color: white;

    width: 39px;
    height: 39px;

}


.play-button:hover {

    background: var(--accent-light, #d27b72);

    color: white;

}


.play-button span {

    font-size: 15px;

}


.film-time {

    display: flex;

    gap: 8px;

    align-items: center;

    color: white;

    font-size: 11px;

    font-variant-numeric: tabular-nums;

    white-space: nowrap;

}


.time-divider {

    color: rgba(255, 255, 255, 0.4);

}


/* PLAYBACK SPEED */

.film-speed-wrapper {

    display: flex;

    align-items: center;

}


.film-speed-control {

    appearance: none;

    -webkit-appearance: none;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    padding: 8px;

    cursor: pointer;

}


.film-speed-control option {

    background: #1c1d23;

    color: white;

}


/* VOLUME */

.film-volume-control {

    display: flex;

    align-items: center;

    gap: 7px;

}


.film-volume-slider {

    appearance: none;

    -webkit-appearance: none;

    width: 75px;

    height: 4px;

    border-radius: 20px;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.35);

}


.film-volume-slider::-webkit-slider-thumb {

    appearance: none;

    -webkit-appearance: none;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: white;

}


.film-volume-slider::-moz-range-thumb {

    width: 11px;
    height: 11px;

    border: none;

    border-radius: 50%;

    background: white;

}


/* FULLSCREEN */

.fullscreen-button {

    font-size: 26px;

}



/* =========================================
   VIDEO PLACEHOLDER
========================================= */

.film-video-placeholder {

    position: absolute;

    inset: 0;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: white;

    background:
        radial-gradient(
            circle at center,
            #292a31,
            #111216
        );

}


.film-video-placeholder span {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    font-size: 23px;

    padding-left: 4px;

}


.film-video-placeholder p {

    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

    text-transform: uppercase;

}


.film-player-caption {

    display: flex;

    justify-content: space-between;

    padding: 17px 0;

    border-bottom: 1px solid var(--border, #303139);

    color: var(--muted, #a5a3a0);

    font-size: 9px;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

}



/* =========================================
   FILM INFORMATION
========================================= */

.film-information-section {

    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 100px;

    padding: 110px 10% 120px;

    background: var(--surface, #1c1d23);

}


.film-information-main h2 {

    margin-bottom: 35px;

}


.film-description {

    max-width: 700px;

    color: var(--muted, #a5a3a0);

    font-size: 16px;

    line-height: 1.9;

}


.film-credits {

    display: flex;

    flex-direction: column;

    gap: 35px;

    padding-top: 10px;

}


.film-credit-item {

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border, #303139);

}


.film-credit-item:last-child {

    border-bottom: none;

}


.film-credit-item .film-section-label {

    margin-bottom: 12px;

    font-size: 9px;

}


.film-credit-item h3 {

    font-family: var(--font-serif);

    font-size: 23px;

    font-weight: 500;

    color: var(--text, #f2f0ec);

    margin: 0;

}


.film-credit-item p:not(.film-section-label) {

    color: var(--muted, #a5a3a0);

    font-size: 13px;

    line-height: 1.9;

    margin: 3px 0;

}


.film-detail-line {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: var(--muted, #a5a3a0);

    font-size: 12px;

    margin: 10px 0;

}


.film-detail-line strong {

    color: var(--text, #f2f0ec);

    font-weight: 500;

    text-align: right;

}



/* =========================================
   RELATED FILMS
========================================= */

.related-films-section {

    padding: 110px 10% 100px;

    background: var(--background, #111216);

}


.related-films-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;

}


.related-film-card {

    position: relative;

    display: block;

    overflow: hidden;

    background: var(--surface, #1c1d23);

    color: var(--text, #f2f0ec);

    transition: transform 0.35s ease;

}


.related-film-card:hover {

    transform: translateY(-8px);

}


.related-film-image {

    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #24252c;

}


.related-film-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}


.related-film-card:hover .related-film-image img {

    transform: scale(1.07);

}


.related-film-content {

    padding: 24px;

}


.related-film-content p {

    color: var(--accent-light, #d27b72);

    font-size: 9px;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

    margin: 0 0 10px;

}


.related-film-content h3 {

    font-family: var(--font-serif);

    font-size: 24px;

    font-weight: 500;

    margin: 0;

}


.related-film-arrow {

    position: absolute;

    right: 25px;

    bottom: 28px;

    color: var(--accent-light, #d27b72);

    font-size: 20px;

}


.film-back-link {

    margin-top: 65px;

    text-align: center;

}


.film-back-link a {

    display: inline-block;

    color: var(--muted, #a5a3a0);

    font-size: 10px;

    letter-spacing: calc(2px * var(--ob-label-tracking, 1));

    transition: color 0.3s ease;

}


.film-back-link a:hover {

    color: var(--accent-light, #d27b72);

}



/* =========================================
   FOOTER
========================================= */

.film-footer {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;

    padding: 65px 20px;

    background: var(--surface, #1c1d23);

    text-align: center;

}


.film-footer .logo {

    color: var(--text, #f2f0ec);

}


.film-footer .logo span {

    color: var(--accent-light, #d27b72);

}


.film-footer p {

    color: var(--text, #f2f0ec);

    font-family: var(--font-serif);

    letter-spacing: calc(3px * var(--ob-label-tracking, 1));

    font-size: 14px;

}


.film-footer > span {

    color: var(--muted, #a5a3a0);

    font-size: 9px;

    letter-spacing: calc(1px * var(--ob-label-tracking, 1));

}



/* =========================================
   LIGHT THEME
========================================= */

.light-theme .film-hero {

    background-color: #242424;

}


.light-theme .film-hero-overlay {

    background:
        linear-gradient(
            90deg,
            rgba(25, 25, 25, 0.95) 0%,
            rgba(25, 25, 25, 0.7) 55%,
            rgba(25, 25, 25, 0.2) 100%
        ),
        linear-gradient(
            0deg,
            #242424 0%,
            transparent 50%
        );

}


.light-theme .film-theme-toggle {

    background: rgba(255, 255, 255, 0.15);

}



/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .film-information-section {

        grid-template-columns: 1fr;

        gap: 55px;

    }


    .film-credits {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px;

    }

}


@media (max-width: 700px) {

    .film-topbar {

        top: 18px;

        left: 7%;
        right: 7%;

    }


    .film-hero {

        min-height: 78vh;

        padding: 140px 7% 100px;

        background-position: center;

    }


    .film-hero-content h1 {

        font-size: calc(clamp(55px, 15vw, 85px) * var(--ob-display-scale, 1));

        letter-spacing: calc(-3px * var(--ob-tracking, 1));

    }


    .film-hero-meta {

        gap: 10px;

        font-size: 11px;

    }


    .film-scroll-indicator {

        left: 7%;

    }


    .film-watch-section,
    .film-information-section,
    .related-films-section {

        padding: 75px 7%;

    }


    .film-section-heading h2,
    .film-information-main h2 {

        font-size: 42px;

    }


    .film-description {

        font-size: 14px;

    }


    .film-credits {

        grid-template-columns: 1fr;

    }


    .related-films-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .film-player-caption {

        font-size: 8px;

    }


    .film-controls {

        padding: 25px 12px 12px;

        gap: 10px;

    }


    .film-controls-bottom {

        gap: 8px;

    }


    .film-control-button {

        width: 32px;
        height: 32px;

    }


    .film-time {

        font-size: 9px;

        gap: 4px;

    }


    .film-volume-slider {

        display: none;

    }


    .film-speed-control {

        font-size: 10px;

        padding: 5px;

    }


    .play-button {

        width: 34px;
        height: 34px;

    }

}


@media (max-width: 380px) {

    .film-time {

        display: none;

    }

    
    .film-controls-bottom {

        gap: 5px;

    }

}



/* =========================================
   ACCESSIBILITY
========================================= */

.film-detail-page button:focus-visible,
.film-detail-page input:focus-visible,
.film-detail-page select:focus-visible,
.film-detail-page a:focus-visible {

    outline: 2px solid var(--accent-light, #d27b72);

    outline-offset: 4px;

}


@media (prefers-reduced-motion: reduce) {

    .film-detail-page *,
    .film-detail-page *::before,
    .film-detail-page *::after {

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

    }

}/* =========================================
   AUTO-HIDING VIDEO CONTROLS
========================================= */

/* Hidden by default on desktop */

.film-controls {

    opacity: 0;

    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

}


/* Show controls when hovering over the player */

@media (hover: hover) and (pointer: fine) {

    .film-player:hover .film-controls,
    .film-player:focus-within .film-controls {

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;

    }

}


/* Keep controls visible on touchscreens */

@media (hover: none), (pointer: coarse) {

    .film-controls {

        opacity: 1;

        transform: none;

        pointer-events: auto;

    }

}


/* Respect reduced motion settings */

@media (prefers-reduced-motion: reduce) {

    .film-controls {

        transition: none;

    }

}/* =========================================
   FULLSCREEN AUTO-HIDING CONTROLS
========================================= */

.film-player:fullscreen.is-controls-hidden .film-controls {
    opacity: 0 !important;
    transform: translateY(8px);
    pointer-events: none;
}

.film-player:fullscreen.is-controls-visible .film-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Safari fullscreen support */

.film-player:-webkit-full-screen.is-controls-hidden .film-controls {
    opacity: 0 !important;
    transform: translateY(8px);
    pointer-events: none;
}

.film-player:-webkit-full-screen.is-controls-visible .film-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}/* =========================================
   FULLSCREEN CONTROL VISIBILITY
========================================= */

.film-player.is-controls-hidden .film-controls {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
}

.film-player.is-controls-visible .film-controls {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* the part someone plays, shown under their name in the cast list */
/* cast list on the film page: bold name, the part they play in the accent colour */
#filmCast p {
    color: var(--text, #f2f0ec);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

#filmCast p + p {
    margin-top: 16px;
}

.film-cast-role {
    display: block;
    margin-top: 4px;
    color: var(--accent-light, #d27b72);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.3px;
}
