:root {
    --bg: #f7efe2;
    --bg-soft: #fff8ee;
    --surface: rgba(255, 251, 246, 0.84);
    --surface-strong: rgba(249, 242, 232, 0.94);
    --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;
}

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

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);
    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;
    letter-spacing: -0.04em;
}

.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--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;
    letter-spacing: -0.05em;
}

.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;
    letter-spacing: -0.04em;
}

.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;
    letter-spacing: -0.04em;
}

.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);
    letter-spacing: -0.04em;
}

.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);
}

.media-card__cover {
    display: block;
    min-height: 250px;
    background: linear-gradient(135deg, rgba(232, 177, 91, 0.24), rgba(201, 107, 59, 0.12));
}

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

.media-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 250px;
    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 iframe,
.player-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.player-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
}

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

.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: fit-content;
    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);
    letter-spacing: -0.04em;
}

.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;
}

.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;
}

.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;
    }
}

@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 {
        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: 112px 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 (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;
    }

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

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