:root {
    --bg: #f6f2eb;
    --bg-soft: #fffaf3;
    --surface: rgba(255, 253, 249, 0.9);
    --surface-strong: rgba(255, 250, 244, 0.96);
    --line: rgba(115, 91, 67, 0.14);
    --text: #251b17;
    --muted: #6c5f57;
    --accent: #c96b3b;
    --accent-strong: #e8b15b;
    --hero: linear-gradient(135deg, rgba(232, 177, 91, 0.28), rgba(201, 107, 59, 0.1));
    --shadow: 0 24px 60px rgba(103, 74, 52, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(232, 177, 91, 0.24), transparent 28%),
        radial-gradient(circle at right center, rgba(201, 107, 59, 0.14), transparent 24%),
        linear-gradient(180deg, #fffaf2 0%, #f8f0e3 55%, #f2e6d6 100%);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
    color-scheme: light;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.42) !important;
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

iframe {
    border: 0;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.backdrop-orb {
    position: fixed;
    z-index: 0;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.backdrop-orb--one {
    top: 3rem;
    right: -6rem;
    background: rgba(232, 177, 91, 0.22);
}

.backdrop-orb--two {
    left: -5rem;
    bottom: 10rem;
    background: rgba(201, 107, 59, 0.15);
}

.site-header,
main,
.site-footer {
    position: relative;
}

main,
.site-footer {
    z-index: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: blur(18px);
    background: rgba(251, 244, 235, 0.86);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Fraunces", serif;
    font-size: 1.45rem;
}

.brand__logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 10px 22px rgba(201, 107, 59, 0.18));
}

.brand__wordmark {
    color: #2d221c;
}

.site-header__panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 5001;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a,
.text-link,
.admin-link {
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(201, 107, 59, 0.1);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input,
.search-panel input {
    width: clamp(180px, 24vw, 280px);
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    outline: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.menu-toggle span {
    width: 1.6rem;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff9f2;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(201, 107, 59, 0.18);
}

.button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--line);
}

.button--full {
    width: 100%;
}

.hero,
.page-hero {
    padding: 4rem 0 2rem;
}

.hero__grid,
.detail-layout,
.watch-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 1.5rem;
}

.hero__title,
.page-hero h1,
.detail-copy h1,
.empty-state h1 {
    margin: 0.2rem 0 1rem;
    font-family: "Fraunces", serif;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 0.98;
}

.hero__copy,
.page-hero__copy,
.detail-copy p,
.footer-copy,
.season-card p,
.episode-row p,
.media-card__body p,
.side-panel p,
.empty-state p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-slider,
.hero-card,
.media-card,
.season-card,
.player-card,
.side-panel,
.feature-band,
.search-panel,
.empty-state {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-slider,
.hero-card,
.season-card,
.side-panel,
.empty-state {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.hero-slider,
.hero-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(232, 177, 91, 0.1)), var(--surface-strong);
}

.hero-card__label,
.eyebrow {
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-slider {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
}

.hero--slider {
    padding-bottom: 2.4rem;
}

.hero-slider--hero {
    padding: 1.8rem;
    gap: 1.4rem;
}

.hero-slider__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.hero-slider__head h1,
.hero-slider__head h2 {
    margin: 0.55rem 0 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2.3rem, 4vw, 4.6rem);
    line-height: 0.96;
}

.hero-slider__intro {
    max-width: 54rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.hero-slider__count {
    margin: 0;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(115, 91, 67, 0.1);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.hero-slider__viewport {
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 2px);
    min-width: 0;
}

.hero-slider__track {
    display: flex;
    min-width: 0;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 1.35rem;
    align-items: stretch;
    min-width: 100%;
    min-height: 34rem;
}

.hero-slide__media {
    display: block;
    min-height: 34rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(232, 177, 91, 0.2), rgba(201, 107, 59, 0.08));
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 34rem;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    color: rgba(37, 27, 23, 0.55);
}

.hero-slide__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 0.75rem 1rem 0.1rem;
}

.hero-slide__top,
.hero-slider__footer,
.hero-slider__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-slide__views,
.hero-slide__detail {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.hero-slide__body h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 0.98;
}

.hero-slide__body h3 a {
    text-decoration: none;
}

.hero-slide__context {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(37, 27, 23, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-slide__summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.hero-slider__controls {
    justify-content: flex-start;
}

.hero-slider__dot {
    width: 0.8rem;
    height: 0.8rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(115, 91, 67, 0.18);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot:hover,
.hero-slider__dot.is-active {
    width: 2.15rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    transform: translateY(-1px);
}

.feature-list {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
}

.feature-list li {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(115, 91, 67, 0.08);
}

.setup-note {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(232, 177, 91, 0.14);
    border: 1px solid rgba(201, 107, 59, 0.16);
}

.hero__actions,
.episode-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.section {
    padding: 1.6rem 0 2rem;
}

.section--muted {
    background: linear-gradient(180deg, rgba(223, 194, 155, 0.16), rgba(255, 255, 255, 0));
}

.section-heading,
.panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-heading h2,
.panel-head h2 {
    margin: 0.2rem 0 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.text-link {
    font-weight: 700;
}

.text-link:hover {
    color: var(--text);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.media-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.26);
}

.media-card__cover {
    display: block;
    aspect-ratio: 2 / 3;
    min-height: 0;
    background: linear-gradient(135deg, rgba(232, 177, 91, 0.24), rgba(201, 107, 59, 0.12));
}

.media-card--wide .media-card__cover {
    aspect-ratio: 16 / 9;
}

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

.media-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 0;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    color: rgba(37, 27, 23, 0.55);
}

.media-card__body {
    display: grid;
    gap: 0.75rem;
    padding: 1.2rem;
}

.media-card__body h2,
.media-card__body h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(201, 107, 59, 0.1);
    color: #9f522b;
    font-size: 0.82rem;
    font-weight: 700;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: var(--muted);
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.feature-band__item {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.46);
}

.feature-band--detail {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.44);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.feature-band__number {
    margin: 0 0 0.35rem;
    font-family: "Fraunces", serif;
    font-size: 2.8rem;
    color: var(--accent);
}

.detail-main,
.watch-main {
    display: grid;
    gap: 1.2rem;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.player-card--gated {
    position: relative;
    overflow: visible;
    background: #05070d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(7, 11, 20, 0.22);
}

.player-card--has-preroll {
    background: #11070d;
}

.player-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    background:
        radial-gradient(circle at top, rgba(193, 44, 70, 0.22), transparent 42%),
        linear-gradient(180deg, #17080c 0%, #090c14 100%);
}

.player-stage.is-hidden {
    display: none;
}

.player-stage__cover,
.player-stage [data-player-frame],
.player-stage [data-player-frame] iframe {
    width: 100%;
    height: 100%;
}

.player-stage__cover {
    object-fit: cover;
}

.player-stage__cover--cinema {
    filter: saturate(0.88) contrast(0.92);
}

.player-stage__cover--muted {
    opacity: 0.22;
    transform: scale(1.05);
    filter: blur(18px) saturate(0.78);
}

.player-card iframe,
.player-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.player-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(18, 11, 9, 0.88), rgba(10, 12, 18, 0.98));
    color: var(--muted);
}

.player-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.6rem);
    color: #fffaf4;
}

.player-shell--ready {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 6, 8, 0.2), rgba(28, 13, 17, 0.5) 58%, rgba(4, 6, 10, 0.94));
}

.player-shell--ad {
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(9, 7, 12, 0.18), rgba(9, 13, 21, 0.92));
}

.player-shell__eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 249, 242, 0.76);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-lockup {
    display: grid;
    gap: 1rem;
    justify-items: center;
    width: min(100%, 38rem);
    padding: clamp(1.1rem, 3vw, 2rem);
    border-radius: calc(var(--radius-xl) - 0.2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.player-lockup h2,
.player-ad-card h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

.player-lockup__title {
    max-width: 14ch;
    line-height: 1.08;
}

.player-lockup p,
.player-ad-card p {
    margin: 0;
    color: rgba(255, 250, 244, 0.88);
    line-height: 1.65;
}

.player-lockup__action {
    position: relative;
    z-index: 2;
    min-height: 3.25rem;
    min-width: min(100%, 15rem);
}

body.player-modal-open {
    overflow: hidden;
    background: #020305;
}

body.player-modal-open .site-header,
body.player-modal-open .site-footer,
body.player-modal-open .detail-copy,
body.player-modal-open .detail-side,
body.player-modal-open .watch-side,
body.player-modal-open .episode-nav {
    opacity: 0;
    pointer-events: none;
}

.player-modal {
    position: fixed;
    inset: 0;
    z-index: 6200;
    display: grid;
    place-items: stretch;
    padding: 0;
}

.player-modal.is-hidden {
    display: none;
}

.player-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(167, 31, 57, 0.12), transparent 28%),
        rgba(2, 4, 8, 0.96);
    backdrop-filter: blur(20px);
    animation: player-modal-fade 0.24s ease both;
}

.player-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100dvh;
    padding:
        max(1.25rem, env(safe-area-inset-top))
        max(1.25rem, env(safe-area-inset-right))
        max(1.25rem, env(safe-area-inset-bottom))
        max(1.25rem, env(safe-area-inset-left));
    isolation: isolate;
    animation: player-modal-rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.player-modal__controls {
    position: absolute;
    top: clamp(0.75rem, 1.6vw, 1rem);
    right: clamp(0.75rem, 1.6vw, 1rem);
    z-index: 4;
    display: flex;
    align-items: center;
}

.player-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(12, 15, 22, 0.96);
    color: #fffaf4;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.player-modal__close-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
}

.player-modal__countdown {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 250, 244, 0.82);
    font-size: 0.86rem;
    text-align: center;
}

.player-modal__close:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.player-modal__panel {
    position: relative;
    display: grid;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    width: min(94vw, 860px);
    max-height: min(88dvh, 780px);
    margin: auto;
    padding: 1.05rem 1.05rem 1.1rem;
    overflow: auto;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(9, 11, 16, 0.98), rgba(5, 7, 12, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
}

.player-modal__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.player-modal__panel--text {
    background:
        radial-gradient(circle at top, rgba(135, 32, 53, 0.18), transparent 32%),
        linear-gradient(180deg, #090b11 0%, #04060a 100%);
}

.player-modal__media {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 12, 18, 0.96), rgba(5, 7, 12, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.player-modal__video-frame,
.player-modal__video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
    border-radius: 18px;
}

.player-modal__image {
    display: block;
    width: 100%;
    height: min(58dvh, 520px);
    object-fit: contain;
    object-position: center;
    background: #040507;
    border-radius: 18px;
}

.player-modal__video-player {
    height: min(58dvh, 520px);
    object-fit: contain;
}

.player-modal__media--video,
.player-modal__media--image {
    display: grid;
    place-items: center;
    padding: clamp(0.6rem, 1.8vw, 1rem);
}

.player-modal__media--video::after,
.player-modal__media--image::after {
    display: none;
}

.player-modal__media--text {
    display: grid;
    place-items: center;
    min-height: min(40vh, 360px);
    padding: 1.4rem;
    background:
        radial-gradient(circle at top, rgba(236, 164, 112, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(173, 86, 51, 0.28), rgba(99, 23, 43, 0.38));
}

.player-modal__text-visual {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 0.85rem;
    max-width: min(100%, 29rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    color: #fffaf4;
    backdrop-filter: none;
}

.player-modal__text-kicker {
    color: rgba(255, 242, 229, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.player-modal__text-visual strong {
    font-family: "Fraunces", serif;
    font-size: clamp(1.55rem, 4.1vw, 2.9rem);
    line-height: 0.94;
    text-wrap: balance;
}

.player-modal__text-caption {
    color: rgba(255, 247, 239, 0.86);
    max-width: 25ch;
    margin: 0 auto;
    font-size: clamp(0.96rem, 1.8vw, 1.06rem);
    line-height: 1.6;
    text-wrap: balance;
}

.player-modal__summary {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 0.45rem;
    width: 100%;
    justify-items: center;
    text-align: center;
    padding-inline: clamp(0.4rem, 1vw, 0.9rem);
}

.player-modal__headline {
    margin: 0;
    color: #fffaf4;
    font-family: "Fraunces", serif;
    font-size: clamp(1.02rem, 1.9vw, 1.42rem);
    line-height: 1.04;
    text-wrap: balance;
}

.player-modal__copy {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 247, 239, 0.78);
    font-size: 0.97rem;
    line-height: 1.58;
    text-wrap: balance;
}

.player-modal__footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    width: 100%;
}

.player-modal__cta {
    min-width: min(100%, 16.5rem);
    min-height: 3.2rem;
    padding-inline: 1.5rem;
    background: linear-gradient(135deg, #f14f67, #b21e39);
    box-shadow: 0 18px 38px rgba(148, 21, 48, 0.38);
}

.player-shell__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.chip--inverse {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fffaf4;
}

@keyframes player-modal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes player-modal-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.player-ad-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: stretch;
    width: min(100%, 56rem);
    padding: 1rem;
    border-radius: calc(var(--radius-xl) - 0.2rem);
    background: rgba(7, 10, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.player-ad-card__media {
    overflow: hidden;
    min-height: 13rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.player-ad-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-ad-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(201, 107, 59, 0.4), rgba(131, 26, 54, 0.42));
    color: #fffaf4;
    font-family: "Fraunces", serif;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.player-ad-card__body {
    display: grid;
    gap: 0.9rem;
    align-content: center;
}

.player-ad-card__brand {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd5bc;
}

.player-ad__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    width: min(100%, 56rem);
}

.player-ad__actions .button--ghost {
    color: #fffaf4;
    border-color: rgba(255, 250, 244, 0.26);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.player-ad__cta {
    border-color: rgba(255, 255, 255, 0.18);
}

.player-ad__status {
    color: rgba(255, 250, 244, 0.74);
    font-size: 0.95rem;
}

.player-ad__continue {
    display: none;
}

.player-ad__actions button:disabled,
.player-ad__continue:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.detail-copy,
.search-panel {
    padding: 1.4rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--line);
}

.search-panel select {
    width: clamp(150px, 18vw, 210px);
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.detail-copy--hero {
    background: var(--hero);
}

.side-panel {
    display: grid;
    gap: 0.8rem;
}

.side-panel__title {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.side-panel__links {
    display: grid;
    gap: 0.55rem;
}

.side-panel__links a {
    width: fit-content;
}

.list-card,
.episode-link {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.45rem;
    border-radius: 18px;
    background: transparent;
    border: 0;
    color: var(--muted);
    transition: background 0.2s ease, transform 0.2s ease;
}

.list-card__thumb,
.episode-link__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(232, 177, 91, 0.16);
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 24px rgba(103, 74, 52, 0.12);
}

.list-card__thumb img,
.episode-link__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-card__badge,
.episode-link__badge {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.46rem;
    border-radius: 9px;
    background: rgba(22, 18, 16, 0.84);
    color: #fff8f2;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.list-card__body,
.episode-link__body {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding-top: 0.08rem;
}

.list-card__body strong,
.episode-link__body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.list-card__meta,
.episode-link__meta,
.list-card__sub,
.episode-link__sub {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.episode-link__sub {
    color: rgba(159, 82, 43, 0.92);
    font-weight: 500;
}

.list-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(37, 27, 23, 0.58);
}

.episode-link.is-active,
.list-card:hover,
.episode-link:hover {
    color: var(--text);
    background: rgba(232, 177, 91, 0.12);
    transform: translateY(-1px);
}

.episode-link.is-active {
    background: rgba(232, 177, 91, 0.18);
}

.episode-link.is-active .episode-link__sub {
    color: var(--accent);
    font-weight: 700;
}

.season-grid,
.episodes-list {
    display: grid;
    gap: 1rem;
}

.season-card,
.episode-row {
    display: grid;
    gap: 0.8rem;
}

.season-card h2,
.episode-row h2 {
    margin: 0;
}

.season-card__index,
.episode-row__number {
    margin: 0;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.episode-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: min(100%, 48rem);
    margin-top: 1rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: rgba(247, 239, 226, 0.92);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

.footer-title {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.footer-brand__logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 18px;
}

.footer-links {
    display: grid;
    gap: 0.8rem;
}

.footer-links__title {
    margin: 0;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

.detail-story,
.trust-stack {
    display: grid;
    gap: 1rem;
}

.detail-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card,
.poster-card,
.legal-section,
.cookie-banner {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.detail-card,
.poster-card,
.legal-section {
    padding: 1.4rem;
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.detail-card h2,
.legal-section h2 {
    margin: 0.35rem 0 0.8rem;
    font-family: "Fraunces", serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.detail-card p,
.legal-section p,
.poster-card__body p,
.trust-list,
.trust-card {
    color: var(--muted);
    line-height: 1.72;
}

.trust-list {
    display: grid;
    gap: 0.6rem;
    padding-left: 1.15rem;
    margin: 0;
}

.poster-card {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.poster-card__body {
    display: grid;
    gap: 0.35rem;
}

.poster-card__body strong {
    font-size: 1.1rem;
}

.partner-story {
    display: grid;
    gap: 1rem;
}

.partner-poster-placeholder {
    display: grid;
    place-items: center;
    min-height: 24rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 177, 91, 0.22), rgba(201, 107, 59, 0.14));
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    text-align: center;
    color: rgba(37, 27, 23, 0.72);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
    gap: 1.5rem;
    align-items: start;
}

.legal-content,
.legal-side {
    display: grid;
    gap: 1rem;
}

.trust-card {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(115, 91, 67, 0.08);
}

.trust-card strong,
.trust-card a {
    color: var(--text);
}

.trust-card__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 7000;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 26px;
    background: rgba(37, 27, 23, 0.94);
    color: #fffaf4;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
}

.cookie-banner a {
    color: #fffaf4;
    text-decoration: underline;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__copy {
    max-width: 70ch;
}

.cookie-banner__copy p {
    margin: 0;
    line-height: 1.7;
}

.cookie-banner__title {
    margin-bottom: 0.35rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: end;
}

@media (max-width: 960px) {
    .card-grid,
    .feature-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__grid,
    .detail-layout,
    .watch-layout,
    .legal-layout,
    .detail-story {
        grid-template-columns: 1fr;
    }

    .watch-detail-layout .detail-copy,
    .watch-detail-layout .detail-side,
    .watch-detail-layout .watch-side {
        width: min(92%, 34rem);
        justify-self: center;
    }

    .detail-copy--watch h1 {
        font-size: clamp(1.9rem, 6vw, 3rem);
    }
}

@media (max-width: 780px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-header__panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: var(--radius-lg);
        z-index: 5100;
        background: rgba(255, 248, 238, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-header__panel.is-open {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search input,
    .search-panel input,
    .search-panel select {
        width: 100%;
    }

    .search-panel,
    .episode-row,
    .site-footer__inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .list-card,
    .episode-link {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .button {
        width: 100%;
    }

    .hero-slider__head {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-slide__media,
    .hero-slide__placeholder {
        min-height: 230px;
    }

    .media-card__cover,
    .media-card--wide .media-card__cover {
        aspect-ratio: 16 / 10;
    }

    .player-modal__panel {
        width: min(100%, 34rem);
        max-height: calc(100dvh - 1.8rem);
        padding: 0.95rem;
    }

    .player-modal__video-frame,
    .player-modal__video-player,
    .player-modal__image {
        max-height: min(52dvh, 440px);
    }

    .player-shell__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-ad-card {
        grid-template-columns: 1fr;
    }

    .player-ad__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .player-ad__actions .button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .hero,
    .page-hero {
        padding-top: 2.6rem;
    }

    .hero-slider,
    .hero-card,
    .season-card,
    .side-panel,
    .detail-copy,
    .search-panel {
        padding: 1.1rem;
    }

    .watch-detail-layout .detail-copy,
    .watch-detail-layout .detail-side,
    .watch-detail-layout .watch-side {
        width: min(90%, 30rem);
    }

    .detail-copy--watch {
        padding: 1rem 1.05rem;
        border-radius: var(--radius-lg);
    }

    .detail-copy--watch .eyebrow,
    .watch-detail-layout .side-panel__title {
        font-size: 0.68rem;
    }

    .detail-copy--watch h1 {
        margin-bottom: 0.65rem;
        font-size: clamp(1.65rem, 7.6vw, 2.1rem);
        line-height: 1;
    }

    .detail-copy--watch .meta-row {
        gap: 0.55rem;
        font-size: 0.9rem;
    }

    .detail-copy--watch p:not(.eyebrow) {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .watch-detail-layout .side-panel {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .watch-detail-layout .list-card,
    .watch-detail-layout .episode-link {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.35rem;
    }

    .watch-detail-layout .list-card__body,
    .watch-detail-layout .episode-link__body {
        gap: 0.2rem;
    }

    .watch-detail-layout .list-card__body strong,
    .watch-detail-layout .episode-link__body strong {
        font-size: 0.94rem;
    }

    .watch-detail-layout .list-card__meta,
    .watch-detail-layout .list-card__sub,
    .watch-detail-layout .episode-link__meta,
    .watch-detail-layout .episode-link__sub {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .hero-slider__head h1,
    .hero-slider__head h2 {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    .feature-band--detail {
        grid-template-columns: 1fr;
    }

    .player-stage[data-player-stage="ready"],
    .player-stage[data-player-stage="ad"] {
        aspect-ratio: 4 / 3;
    }

    .player-shell {
        padding: 0.85rem;
    }

    .player-modal {
        padding: 0;
    }

    .player-modal__dialog {
        width: 100vw;
        height: 100svh;
    }

    .player-modal__controls {
        top: 0.85rem;
        right: 0.85rem;
    }

    .player-modal__panel {
        width: min(100%, 24.5rem);
        max-height: calc(100svh - 1.4rem);
        padding: 0.8rem 0.8rem 0.95rem;
        border-radius: 24px;
    }

    .player-modal__media--video,
    .player-modal__media--image {
        padding: 0.55rem;
    }

    .player-modal__video-frame,
    .player-modal__video-player,
    .player-modal__image {
        max-height: min(42svh, 320px);
    }

    .player-modal__media--text {
        min-height: min(38vh, 280px);
        padding: 1rem;
    }

    .player-modal__text-visual strong {
        font-size: clamp(1.4rem, 7.4vw, 2.05rem);
    }

    .player-modal__text-visual {
        max-width: min(100%, 16.75rem);
        gap: 0.7rem;
    }

    .player-modal__text-caption {
        max-width: 20ch;
        font-size: 0.9rem;
    }

    .player-modal__headline {
        font-size: clamp(0.96rem, 5.2vw, 1.2rem);
    }

    .player-modal__copy {
        font-size: 0.9rem;
        max-width: 24ch;
    }

    .player-modal__cta {
        width: 100%;
    }

    .player-lockup {
        width: min(100%, 18rem);
        gap: 0.85rem;
        padding: 0.95rem 0.9rem 1rem;
    }

    .player-lockup h2,
    .player-ad-card h2 {
        font-size: clamp(1.35rem, 7vw, 1.95rem);
    }

    .player-lockup__title {
        max-width: 14ch;
        line-height: 1.05;
    }

    .player-lockup__action {
        width: 100%;
        min-width: 0;
        padding: 0.92rem 1.05rem;
    }

    .player-ad-card__media {
        min-height: 10.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
