:root {
  color-scheme: dark;
  --bg: #090807;
  --text: #fff9f1;
  --gold: #ffca4a;
  --line: #52412a;
  --muted: #d2c8ba;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(92%, 1560px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top { background: #050504; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.top-inner { min-height: 75px; display: flex; align-items: center; gap: clamp(14px, 2vw, 33px); }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand img { height: clamp(37px, 4.4vw, 61px); width: auto; }
.brand span { font: 700 clamp(17px, 2vw, 29px)/.85 var(--serif); }
.brand strong { display: block; color: var(--gold); font: italic 700 1.53em/.85 var(--serif); }
#desktop-categories { display: flex; flex: 1; align-items: center; justify-content: space-evenly; gap: 3px; flex-wrap: wrap; }
#desktop-categories button, .mobile-nav button, .mobile-selection button {
  background: transparent; border: 0; border-radius: 999px; color: var(--text); padding: 8px 11px; font-size: clamp(12px, 1.15vw, 17px); font-weight: 750; white-space: nowrap;
}
#desktop-categories button:hover, .mobile-nav button:hover { color: var(--gold); }
#desktop-categories button[aria-pressed="true"], .mobile-nav button[aria-pressed="true"], .mobile-selection button {
  background: var(--gold); color: #121008;
}
.search { flex: 0 1 275px; position: relative; min-width: 120px; }
.search input { width: 100%; border-radius: 999px; border: 1px solid var(--gold); padding: 10px 35px 10px 15px; background: #080706; color: var(--text); }
.search input::placeholder { color: #d5cdc2; }
.search-icon { position: absolute; pointer-events: none; right: 15px; top: 50%; width: 15px; height: 15px; border: 2px solid var(--text); border-radius: 50%; translate: 0 -58%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--text); right: -5px; bottom: -2px; rotate: 48deg; }
.account-link { color: var(--gold); font-size: 14px; font-weight: 750; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
.menu, .mobile-nav, .mobile-selection { display: none; }

.hero { isolation: isolate; position: relative; min-height: clamp(340px, 22.5vw, 430px); display: flex; align-items: center; border-bottom: 1px solid var(--line); overflow: hidden; background: #050403; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 29%; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-art-image { width: 100%; height: 100%; object-fit: cover; object-position: 58% 14%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#050403 0%,#050403 29%,rgba(5,4,3,.96) 33%,rgba(5,4,3,.68) 41%,rgba(5,4,3,.18) 52%,transparent 64%,transparent 90%,rgba(5,4,3,.44) 100%);
}
.hero-copy { padding: 22px 4.9% 20px; }
.hero-brand { font: 700 clamp(20px, 2vw, 29px)/1.2 var(--serif); color: var(--gold); margin-bottom: 6px; }
.hero h1 { font: 700 clamp(38px, 3.7vw, 66px)/.99 var(--serif); letter-spacing: -.034em; max-width: 11.5em; text-shadow: 0 2px 15px #0007; }
.hero h1 strong { color: var(--gold); display: block; }
.hero-description { font: clamp(19px, 1.8vw, 28px)/1.14 var(--serif); margin: 10px 0 19px; max-width: 23em; text-wrap: balance; }
.watch { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; font-weight: 800; white-space: nowrap; background: #090705bb; }
.watch:hover { color: #131006; background: var(--gold); }
.hero .watch { min-height: 47px; padding: 6px 28px; font-size: clamp(16px, 1.6vw, 23px); }
.hero-controls { display: flex; align-items: center; gap: 4px; margin-top: 13px; }
.hero-dot { display: grid; place-items: center; width: 22px; height: 28px; padding: 0; border: 0; background: transparent; }
.hero-dot::before { content: ""; height: 9px; width: 9px; border-radius: 999px; background: #aaa39a; }
.hero-dot[aria-pressed="true"]::before { width: 17px; background: var(--gold); }
.hero-pause, .hero-arrow { display: grid; place-items: center; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: #050403d9; color: var(--gold); }
.hero-pause { width: 28px; height: 28px; margin-left: 5px; font-size: 12px; }
.hero-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 39px; height: 39px; font-size: 31px; line-height: 1; padding-bottom: .1em; }
.hero-arrow.prev { left: 3%; }
.hero-arrow.next { right: 3%; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.play { width: 0; height: 0; border-top: .43em solid transparent; border-bottom: .43em solid transparent; border-left: .69em solid currentColor; }

.catalog { padding-block: 9px 38px; }
.catalog h2 { font: 700 clamp(27px, 2.5vw, 39px)/1.12 var(--serif); letter-spacing: -.02em; margin-bottom: 15px; }
.catalog h2::after { content: ""; display: block; width: 3.4em; height: 3px; margin-top: 5px; background: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.15vw, 21px); }
.card {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  align-items: end;
  aspect-ratio: 5 / 8;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0907;
}
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -2; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 28%, rgb(10 8 6 / 20%) 40%, rgb(10 8 6 / 72%) 57%, rgb(10 8 6 / 94%) 81%, #0a0806 100%);
}
.card-copy { display: grid; gap: clamp(4px, 3.1cqi, 8px); padding: clamp(6px, 7cqi, 16px) clamp(6px, 7.5cqi, 18px); }
.card h3 { display: grid; align-content: end; min-block-size: 3lh; font: 700 clamp(12px, 10.3cqi, 27px)/1.04 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.card h3 a, .card p { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { -webkit-line-clamp: 3; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card h3 a:focus-visible { outline-offset: -2px; }
.card p { min-block-size: 2lh; -webkit-line-clamp: 2; font-size: clamp(10px, 7.1cqi, 18px); line-height: 1.13; color: #f4eae0; overflow-wrap: anywhere; }
.card .watch { min-height: clamp(28px, 16.7cqi, 40px); width: 100%; margin-top: clamp(3px, 1.7cqi, 5px); padding: 3px; font-size: clamp(9px, 7.4cqi, 17px); gap: clamp(3px, 3cqi, 8px); }
.empty { color: var(--muted); padding-block: 22px 50px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a:hover, .back:hover { color: var(--gold); }

.inner { padding: 28px 0 48px; min-height: 50vh; }
.inner h1 { font: 700 clamp(33px, 5.5vw, 58px)/1.02 var(--serif); margin: 12px 0; overflow-wrap: anywhere; }
.inner h2 { font: 700 23px/1.1 var(--serif); margin-bottom: 8px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 15px; }
.detail .kicker { color: var(--gold); font-weight: 700; }
.episode-description { color: var(--muted); margin: 14px 0 23px; }
.detail video { display: block; width: min(100%, 980px); max-height: 75vh; background: #000; border: 1px solid var(--line); border-radius: 10px; }
.coming { display: grid; place-items: center; position: relative; min-height: 220px; width: min(100%, 620px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #15110d; }
.coming img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.coming p { position: relative; color: var(--gold); font-weight: 800; }
#panel-body > p { margin-block: 12px 20px; }
.views { max-width: 996px; margin-top: 20px; }
.views dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.views dl > div { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #13100d; }
.views dt { color: var(--muted); font-size: .82rem; }
.views dd { margin: 6px 0 0; color: var(--gold); font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 800; }
.panel-layout { display: grid; grid-template-columns: minmax(205px, 300px) minmax(0, 680px); gap: 16px; margin-top: 24px; align-items: start; }
.panel-box { padding: clamp(14px, 3vw, 28px); min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #13100d; }
.panel-box > .solid:first-child { margin-bottom: 20px; }
.panel-list { padding: 0; margin: 0; list-style: none; }
.panel-list a { display: block; border-top: 1px solid #33291c; padding: 10px 4px; overflow-wrap: anywhere; }
.panel-list a:hover, .panel-list a[aria-current] { color: var(--gold); }
.panel-list small, #editor small { display: block; color: var(--muted); margin-top: 4px; }
#editor { display: grid; gap: 15px; }
#editor label { display: grid; gap: 6px; }
#editor input, #editor textarea { width: 100%; min-width: 0; border: 1px solid #6d5740; border-radius: 7px; background: #0a0806; color: var(--text); padding: 9px 10px; }
#editor .check { grid-template-columns: auto 1fr; align-items: center; }
#editor .check input { width: 17px; height: 17px; accent-color: var(--gold); }
.solid { color: #151007; border: 0; border-radius: 999px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; min-height: 41px; padding: 9px 18px; width: fit-content; }
.solid:hover { background: #ffda7d; }
.feedback, .success { color: var(--gold); }
.feedback:empty { display: none; }
.success a { text-decoration: underline; }
.error { color: #ffb5ac; }
.credentials { max-width: 530px; }
.credentials > .error { margin-block: 14px; }
.auth-form { display: grid; gap: 15px; margin-top: 22px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form input { width: 100%; border: 1px solid #6d5740; border-radius: 7px; background: #0a0806; color: var(--text); padding: 10px; }
.auth-form small, .auth-alternatives small { color: var(--muted); }
.auth-form .watch, .auth-alternatives .watch { width: fit-content; min-height: 40px; padding-inline: 17px; }
.auth-alternatives { display: grid; justify-items: start; gap: 9px; margin-top: 16px; }
.auth-alternatives .back { margin: 0; }
.privacy h2 { margin-top: 23px; }
.privacy p { line-height: 1.5; color: var(--muted); }
.privacy p a { color: var(--gold); text-decoration: underline; }

@media (max-width: 1100px) {
  .hero-copy { padding-left: 5.5%; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .top-inner { min-height: 66px; gap: 16px; }
  #desktop-categories { display: none; }
  .search { margin-left: auto; flex-basis: 36%; }
  .menu { display: grid; gap: 4px; padding: 7px 3px; border: 0; background: transparent; }
  .menu span { display: block; width: 23px; height: 2px; background: var(--gold); border-radius: 2px; }
  .mobile-nav.open { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 0 12px; }
  .mobile-selection { display: block; padding: 7px 0; background: #0c0907; border-bottom: 1px solid var(--line); }
  .mobile-selection button { min-width: 64px; }
  .hero { min-height: clamp(275px, 40vw, 345px); }
  .hero-copy { padding: 20px 0 22px; }
  .hero-art { left: 17%; }
  .hero::before { background: linear-gradient(90deg,#050403 0%,#050403 17%,rgba(5,4,3,.93) 28%,rgba(5,4,3,.66) 42%,rgba(5,4,3,.14) 65%,transparent 82%); }
  .hero h1 { font-size: clamp(30px, 5.5vw, 48px); }
  .hero-description { margin: 10px 0 15px; max-width: 13em; text-wrap: initial; }
  .hero .watch { min-height: 39px; padding-inline: 17px; }
  .hero-arrow { display: none; }
}
@media (max-width: 767px) {
  .hero { min-height: clamp(195px, 29vw, 225px); }
  .hero-copy { padding-block: 8px; }
  .hero-brand { font-size: 16px; margin-bottom: 3px; }
  .hero h1 { font-size: clamp(24px, 4.6vw, 33px); }
  .hero-description { font-size: 15px; margin: 4px 0 6px; }
  .hero .watch { min-height: 34px; font-size: 14px; }
  .hero-controls { margin-top: 3px; }
  .catalog { width: calc(100% - clamp(14px, 4vw, 24px)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { aspect-ratio: 4 / 7; }
}
@media (max-width: 510px) {
  .top-inner { min-height: 58px; gap: 9px; }
  .account-link { font-size: 11px; white-space: normal; text-align: center; }
  .brand { gap: 4px; }
  .brand span { font-size: 15px; }
  .brand img { height: 35px; }
  .search { flex: 1 1 auto; min-width: 80px; max-width: 175px; }
  .search input { font-size: 12px; padding: 8px 25px 8px 8px; }
  .search-icon { right: 10px; width: 11px; height: 11px; }
  .search-icon::after { right: -4px; width: 5px; }
  .hero-art { left: 5%; }
  .hero-art-image { object-position: 60% 14%; }
  .hero::before { background: linear-gradient(90deg,#050403 0%,#050403 5%,rgba(5,4,3,.90) 24%,rgba(5,4,3,.63) 43%,rgba(5,4,3,.18) 72%,transparent 96%),linear-gradient(0deg,#05040355,transparent 48%); }
  .hero-description { max-width: 12em; }
  .cards { gap: 7px; }
  .card { border-radius: 7px; }
  .card .watch { border-width: 1px; }
  .panel-layout { grid-template-columns: minmax(0, 1fr); }
  .panel-layout form { grid-row: 1; }
  .views dl { gap: 7px; }
  .views dl > div { padding: 8px; }
  .footer { flex-wrap: wrap; }
}
