@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #100e12;
  --panel: #19161c;
  --ink: #fbf5ee;
  --muted: #bdb2b9;
  --line: #ffffff1c;
  --red: #fa544e;
  --warm: #f5c59e;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .36; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; display: block; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.wrap { width: min(100% - 112px, 1360px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 3; background: #100e12f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; gap: clamp(26px, 5vw, 78px); min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font: 800 clamp(.87rem, 1.6vw, 1.2rem)/1.1 var(--display); letter-spacing: .045em; }
.brand img { border-radius: 7px; background: #282029; }
nav { display: flex; gap: clamp(18px, 2.9vw, 42px); align-self: stretch; white-space: nowrap; }
nav a { display: grid; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 600; position: relative; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--red); }
.tools { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.search { display: flex; gap: 10px; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #ffffff09; }
.search:focus-within { border-color: var(--warm); }
.search input { width: clamp(88px, 11vw, 172px); border: 0; outline: 0; height: 40px; background: transparent; color: var(--ink); font-size: .88rem; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #ffffff08; flex: 0 0 auto; }
.icon-button:hover:not(:disabled), .icon-button[aria-pressed=true] { color: var(--red); border-color: #fa544e73; background: #fa544e18; }
.hero { isolation: isolate; position: relative; min-height: clamp(480px, 43vw, 648px); display: grid; align-items: stretch; overflow: hidden; background: #1e1117; }
.hero-media { position: absolute; z-index: -1; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 44%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#110c12 0%,#110c12f5 15%,#130e14bb 38%,#130e1433 64%,#100e120f 90%),linear-gradient(0deg,#100e12 0%,#100e1288 14%,transparent 49%),linear-gradient(180deg,#100e124d,transparent 27%); }
.hero-layout { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; padding-block: 40px 82px; }
.hero-content { max-width: 565px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--warm); font-size: .81rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; }
.eyebrow span { width: 19px; height: 2px; background: var(--red); }
.hero h1 { font: 800 clamp(3.5rem,7.5vw,7.1rem)/.98 var(--display); letter-spacing: -.055em; margin: 15px 0 14px; text-wrap: balance; }
.hero-name { margin: 0 0 14px; font-size: clamp(1.05rem,1.65vw,1.32rem); font-weight: 700; color: #ffe0ca; max-width: 490px; line-height: 1.5; }
.hero-data { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #e4d7da; font-size: .86rem; }
.hero-data > span + span::before { content: "·"; margin-right: 10px; color: #e3b697; }
.hero-description { max-width: 490px; color: #d2c4ca; margin: 15px 0 24px; line-height: 1.72; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; gap: 9px; padding: 0 17px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff0e; color: var(--ink); font-size: .88rem; font-weight: 700; }
.button:hover { background: #ffffff20; }
.button.primary { color: #190c10; border-color: var(--red); background: var(--red); }
.button.primary:hover { background: #ff7770; }
.button svg { width: 17px; height: 17px; }
.hero-selector { display: flex; gap: 6px; position: absolute; bottom: 24px; left: 0; }
.hero-selector button { border: 0; background: transparent; padding: 12px 1px; }
.hero-selector button span { display: block; width: 17px; height: 3px; border-radius: 3px; background: #d2c4ca65; }
.hero-selector button[aria-pressed=true] span { width: 36px; background: var(--red); }
.main-content { padding-block: 12px 62px; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
h2 { margin: 4px 0 0; font: 700 clamp(1.8rem,3.1vw,2.65rem)/1.22 var(--display); letter-spacing: -.022em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 7px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: .875rem; }
.filter:hover { color: var(--ink); border-color: #ffffff60; }
.filter[aria-pressed=true] { color: #ffb6aa; border-color: #fa544e61; background: #fa544e19; }
.films { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.film-card, .episode-card { text-align: left; min-width: 0; padding: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.film-card:hover, .episode-card:hover { border-color: #fa544e91; }
.card-art { position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 16/9; background: #2a2027; }
.card-art::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#110d13a8); pointer-events: none; }
.card-art img { height: 100%; width: 100%; object-fit: cover; transition: transform .22s ease; }
.film-card:hover img, .episode-card:hover img { transform: scale(1.045); }
.card-tag, .card-play { position: absolute; z-index: 1; background: #100e12e8; }
.card-tag { top: 11px; left: 11px; border-radius: 4px; padding: 4px 8px; font-size: .77rem; font-weight: 700; color: #ffe4d4; }
.card-play { right: 12px; bottom: 12px; border: 1px solid #ffffff54; width: 36px; height: 36px; border-radius: 100%; display: grid; place-items: center; }
.card-play svg { width: 15px; height: 15px; }
.card-text { padding: 12px 14px 14px; display: grid; gap: 3px; }
.card-title { font-weight: 700; overflow-wrap: anywhere; }
.card-sub { color: var(--muted); font-size: .84rem; }
.empty { padding: 26px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.sponsor { margin-block: 32px; padding: 18px 23px; min-height: 95px; display: flex; align-items: center; gap: 16px; border: 1px solid #ae7d7645; border-radius: 9px; background: radial-gradient(ellipse at 93% 3%,#66373b55,transparent 65%),#20171e; }
.sponsor img { width: 66px; height: 48px; border-radius: 5px; object-fit: cover; }
.sponsor-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #e1a68d55; border-radius: 50%; color: #ffbe99; flex: 0 0 auto; }
.sponsor strong { display: block; line-height: 1.4; }
.sponsor small { display: block; color: var(--muted); font-size: .84rem; }
.sponsor .button { margin-left: auto; }
.sponsor-label { color: var(--warm); font-size: .77rem; font-weight: 800; letter-spacing: .08em; }
.carousel-controls { display: flex; gap: 7px; }
.episode-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); overflow: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; gap: 18px; padding: 4px 3px 9px; margin: -4px -3px 0; scrollbar-width: thin; scrollbar-color: #55434c transparent; }
.episode-card { scroll-snap-align: start; }
footer { border-top: 1px solid var(--line); background: #120f14; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; }
.youtube-link { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.youtube-link:hover { color: var(--ink); }
dialog { padding: 0; border: 1px solid #ffffff31; width: min(900px,calc(100% - 28px)); max-height: calc(100% - 28px); border-radius: 12px; background: #171318; color: var(--ink); overflow: auto; }
dialog::backdrop { background: #09060be0; backdrop-filter: blur(5px); }
.watch-body { padding: clamp(12px,2.6vw,24px); }
.watch-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.watch-header h2 { font-size: clamp(1.4rem,4vw,2.1rem); }
.player { background: #080709; border-radius: 8px; overflow: hidden; }
.player iframe, .player video { display: block; width: 100%; aspect-ratio: 16/9; min-height: 200px; border: 0; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 14px; }
.watch-meta strong { margin-right: auto; }
.watch-attribution { margin: 0 0 12px; color: var(--muted); font-size: .875rem; }
.watch-attribution a { text-decoration: underline; text-underline-offset: 3px; }
.watch-episodes { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-sponsor { margin-block: 18px 0; }
.notice { position: fixed; z-index: 4; right: 24px; bottom: 24px; color: var(--ink); background: #351f2b; border: 1px solid #ffffff38; border-radius: 8px; padding: 12px 16px; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .topbar-inner { gap: 24px; }
  nav { gap: 20px; }
  .episode-strip { grid-auto-columns: calc((100% - 36px) / 3); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { min-height: 60px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand { font-size: .92rem; }
  .brand img { width: 32px; height: 32px; }
  .tools { gap: 6px; }
  .search { padding: 0 7px; gap: 4px; }
  .search input { width: clamp(70px, 17vw, 120px); height: 34px; }
  .tools svg { width: 16px; height: 16px; }
  .tools .icon-button { width: 36px; height: 36px; }
  nav { flex: 0 0 100%; height: 41px; order: 3; gap: 22px; }
  .hero { min-height: 520px; }
  .hero-layout { justify-content: flex-end; padding-bottom: 65px; }
  .hero-media img { height: 77%; object-position: 65% 28%; }
  .hero-media::after { background: linear-gradient(0deg,#100e12 2%,#100e12 24%,#100e12ba 48%,#100e120a 83%),linear-gradient(90deg,#100e125a,transparent 92%); }
  .hero h1 { font-size: clamp(2.8rem,10vw,4.5rem); }
  .hero-description { margin: 12px 0 16px; font-size: .94rem; line-height: 1.5; }
  .section-top { align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; gap: 12px; }
  .films { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .card-text { padding: 8px 9px 10px; }
  .card-title { font-size: .91rem; }
  .card-tag { top: 6px; left: 6px; }
  .card-play { right: 7px; bottom: 7px; width: 28px; height: 28px; }
  .episode-strip { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .sponsor { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .sponsor .button { margin-left: 0; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
.hero-media { left: 23%; }
.hero-media::after { background: linear-gradient(90deg,#1e1117 0%,#1c1019e5 10%,#160e1590 31%,#130d1420 59%,#100e1230 100%),linear-gradient(0deg,#100e12 0%,#100e1299 17%,transparent 52%),linear-gradient(180deg,#100e1250,transparent 26%); }
.hero { background: linear-gradient(114deg,#1c1119,#25151b 44%,#160e16); }
@media (max-width: 700px) {
  .hero-media { left: 0; }
  .hero-media::after { background: linear-gradient(0deg,#100e12 2%,#100e12 24%,#100e12ba 48%,#100e120a 83%),linear-gradient(90deg,#100e125a,transparent 92%); }
}
