:root {
  color-scheme: dark;
  --background: #100f11;
  --surface: #19171a;
  --raised: #211e23;
  --ink: #f8f3ef;
  --muted: #b3a9ac;
  --gold: #efd095;
  --gold-strong: #e9b96d;
  --gold-ink: #24180d;
  --line: #ffffff18;
  --gutter: clamp(24px, 4.17vw, 64px);
  --shell: 1440px;
  --sans: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --serif: "Noto Serif KR", "Batang", "AppleMyungjo", Georgia, serif;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  background: var(--background);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 280px; scroll-behavior: smooth; }
body { min-width: 280px; margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
span[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
::selection { background: var(--gold); color: var(--gold-ink); }

.site-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: #100f11;
}
.home-notice { background:#251f19; color:var(--ink); }
.home-notice a { display:flex; align-items:center; gap:.7rem; margin:auto; max-width:var(--shell); padding:.55rem var(--gutter); font-size:.9rem; overflow-wrap:anywhere; }
.home-notice strong { flex:none; color:var(--gold); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, var(--shell));
  min-height: 75px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 14px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f7d599;
  border-radius: 8px;
  background: var(--gold-strong);
  color: var(--gold-ink);
}

.brand-mark:empty::before { display: block; width: 15px; height: 16px; margin-left: 1px; background: currentColor; clip-path: polygon(5% 0%, 100% 50%, 5% 100%); content: ""; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 24px; font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.brand-wordmark { display: grid; justify-items: start; gap: 4px; }
.brand-english { color: var(--gold); font: 650 10px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }

.desktop-nav {
  position: absolute;
  inset: 0 auto 0 50%;
  display: flex;
  gap: clamp(24px, 3.2vw, 52px);
  transform: translateX(-50%);
}

.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}

.nav-button:hover, .nav-button[aria-current="page"], .nav-button.is-active, .nav-button.active { color: var(--ink); }
.desktop-nav .nav-button svg { display: none; }

.desktop-nav .nav-button:is([aria-current="page"], .is-active, .active)::after {
  position: absolute;
  right: 4px;
  bottom: -1px;
  left: 4px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gold-strong);
  content: "";
}

.icon-button, .wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.icon-button:hover { background: #ffffff12; }
.icon-button svg { display: block; width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-toggle .search-label { display: none; }
.wallet-button { padding-inline: 14px; border-color: #e9b96d43; color: var(--gold); font-size: 13px; font-weight: 750; white-space: nowrap; }
.wallet-button:hover { background: #e9b96d19; }
.wallet-button svg { width: 17px; height: 17px; }
.mobile-nav { display: none; }
.site-privacy { max-width: var(--shell); margin: 0 auto; padding: 12px var(--gutter) calc(84px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.site-privacy a, .privacy-page a { color: inherit; text-underline-offset: .2em; }
.privacy-page { max-width: 46rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem; line-height: 1.75; overflow-wrap: anywhere; }
.privacy-page h1 { margin-block: 1.3rem .3rem; font-size: clamp(1.65rem, 5vw, 2.25rem); }
.privacy-page h2 { margin-block: 1.65rem .25rem; font-size: 1.15rem; }
.privacy-page p { margin: .25rem 0; }

.page-shell { width: min(100%, var(--shell)); min-height: calc(100svh - 75px); margin-inline: auto; padding: 30px var(--gutter) 76px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(425px, 41vw, 540px);
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 22px;
  background: linear-gradient(119deg, #1c191a 8%, #36252c 50%, #60514e 100%);
}

.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art { z-index: -2; object-fit: cover; object-position: 62% 42%; background-position: 62% 42%; background-size: cover; background-repeat: no-repeat; }
.hero-art:empty { background-image: url('./assets/hero.webp'); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #120f14f5 0%, #151018e8 18%, #151018b3 34%, #1510182b 65%, transparent 92%),
    linear-gradient(0deg, #120e16ad 0%, transparent 44%);
}

.hero-content { width: min(62%, 710px); padding: clamp(35px, 5.5vw, 78px) clamp(34px, 5vw, 72px) clamp(30px, 4.6vw, 66px); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 760; letter-spacing: .07em; }
.hero .eyebrow::before { width: 18px; height: 1px; background: currentColor; content: ""; }
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { max-width: 590px; margin: 0 0 17px; color: #fff5ed; font-family: var(--serif); font-size: clamp(47px, 5.55vw, 82px); font-weight: 750; letter-spacing: -.08em; line-height: 1.07; text-wrap: balance; word-break: keep-all; text-shadow: 0 4px 34px #120e1670; }
.hero-description { max-width: 445px; margin: 0 0 15px; color: #eee0e4; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.58; word-break: keep-all; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 26px; color: #d1c4c9; font-size: 12px; font-weight: 600; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
}

.primary-button { border-color: #f0cea1; background: var(--gold); color: var(--gold-ink); }
.primary-button:hover { background: #ffe0ae; }
.secondary-button { border-color: #fff5ef43; background: #252027c2; color: var(--ink); }
.secondary-button:hover { background: #403540; }
.secondary-button[aria-pressed="true"] { border-color: #efd09574; color: var(--gold); }
.primary-button svg, .secondary-button svg { width: 18px; height: 18px; }
.hero-actions :is(.primary-button, .secondary-button) { min-height: 48px; padding-inline: 19px; }
.hero-index { position: absolute; right: 26px; bottom: 24px; display: flex; align-items: center; gap: 6px; color: #e1d4d1; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-index button { width: 15px; height: 25px; padding: 0; border: 0; background: transparent; }
.hero-index button::before { display: block; width: 5px; height: 5px; margin: auto; border-radius: 999px; background: #e1d4d18f; content: ""; }
.hero-index button:is(.active, .is-active, [aria-current="true"])::before { width: 15px; background: var(--gold); }

.catalog-section { margin-top: clamp(32px, 4vw, 56px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2, .section-title { margin: 0; font-size: clamp(21px, 2.1vw, 30px); font-weight: 800; letter-spacing: -.055em; line-height: 1.2; }
.section-title h2 { margin: 0; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: 0; line-height: 1.42; }
.text-button { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: var(--gold); font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 16px; height: 16px; }

.category-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 19px;
  padding: 4px 4px 5px;
  margin-inline: -4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 37px; padding: 0 15px; border: 1px solid #ffffff20; border-radius: 999px; background: #ffffff06; color: #e1d7dc; font-size: 13px; font-weight: 650; white-space: nowrap; }
.chip:hover { border-color: #eed2a275; }
.chip:is([aria-pressed="true"], [aria-current="true"], .active, .is-active) { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }

.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 25px clamp(13px, 1.6vw, 24px); }
.poster-grid > .empty-state { grid-column: 1 / -1; }
.poster-card { min-width: 0; }
.poster-link { display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 12px 12px 4px 4px; background: transparent; text-align: left; }
.poster-image { position: relative; isolation: isolate; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #ffffff14; border-radius: 12px; background: linear-gradient(147deg, #44343a, #181118); }
.poster-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; transition: transform 230ms ease; }
.poster-link:hover .poster-image img { transform: scale(1.045); }
.poster-link:has(> .poster-tag) { position: relative; }
.poster-tag { position: absolute; z-index: 1; top: 9px; left: 9px; max-width: calc(100% - 18px); padding: 3px 8px; overflow: hidden; border: 1px solid #ffeadb2e; border-radius: 5px; background: #1b1520db; color: #fff4e6; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 800; }
.poster-tag[data-variant="new"], .poster-tag.new, .poster-tag.hot { border-color: #efd095; background: var(--gold); color: var(--gold-ink); }
.poster-info { display: block; padding: 10px 2px 0; }
.poster-info :is(h3, .poster-title) { display: block; margin: 0 0 3px; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(14px, 1.27vw, 18px); font-weight: 780; letter-spacing: -.035em; line-height: 1.35; }
.poster-info :is(p, .poster-meta) { display: block; margin: 0; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }

.home-page { display: flex; min-width: 0; flex-direction: column; gap: clamp(22px, 3.1vw, 44px); }
.home-browse, #home-feed, .home-shelf, .home-resume { min-width: 0; }
.home-tabs {
  display: flex;
  max-width: 100%;
  gap: clamp(16px, 2.7vw, 36px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 47px;
  padding: 0 3px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 740;
}
.home-tab:hover { color: var(--ink); }
.home-tab[aria-pressed="true"] { color: var(--gold); }
.home-tab[aria-pressed="true"]::after { position: absolute; right: 3px; bottom: 0; left: 3px; height: 2px; border-radius: 2px 2px 0 0; background: var(--gold); content: ""; }
.home-tab:focus-visible { outline-offset: -3px; }
#home-feed { display: grid; gap: clamp(24px, 3.6vw, 46px); padding-top: clamp(18px, 2.7vw, 32px); }
.home-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.home-shelf-heading :is(h1, h2) { margin: 0; font-size: clamp(20px, 2.25vw, 29px); font-weight: 810; letter-spacing: -.045em; line-height: 1.2; word-break: keep-all; }
.home-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.43; }
.home-shelf-heading .text-button { min-height: 36px; align-self: end; padding-inline: 3px; white-space: nowrap; }
.home-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 18px clamp(13px, 1.6vw, 24px); }
.home-strip > .empty-state { grid-column: 1 / -1; }
.home-strip .poster-image { border-radius: 9px; }
.home-rank {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  min-width: 1.48em;
  padding: .19em .25em .15em;
  border: 1px solid #efd09555;
  border-bottom: 0;
  border-left: 0;
  border-top-right-radius: 8px;
  background: linear-gradient(155deg, #4b3824ef, #161215ed 78%);
  color: var(--gold);
  font-size: clamp(21px, 3.05vw, 38px);
  font-weight: 870;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.continue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.resume-card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 87px; padding: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; }
.resume-card:hover { border-color: #efd09564; }
.resume-card img { width: 52px; height: 66px; flex: 0 0 52px; border-radius: 7px; object-fit: cover; }
.resume-card h3, .resume-card strong, .resume-card b { margin: 0; font-size: 14px; font-weight: 760; }
.resume-card p, .resume-card small { display: block; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.resume-icon { display: grid; width: 36px; height: 36px; place-items: center; flex-shrink: 0; margin-left: auto; border: 1px solid #efd09545; border-radius: 50%; color: var(--gold); }
.resume-icon svg { width: 16px; height: 16px; }
.resume-card progress { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 3px; border: 0; color: var(--gold-strong); accent-color: var(--gold-strong); }
.resume-card progress::-webkit-progress-bar { background: #ffffff19; }
.resume-card progress::-webkit-progress-value { background: var(--gold-strong); }

.page-heading { margin: 7px 0 25px; }
.page-heading h1 { margin: 0 0 8px; font-size: clamp(27px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.06em; line-height: 1.25; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.search-field { display: flex; width: min(100%, 580px); align-items: center; gap: 10px; min-height: 49px; margin: 0 0 22px; padding-inline: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.search-field:focus-within { border-color: var(--gold); }
.search-field input { width: 100%; min-width: 0; padding-block: 11px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: var(--muted); }
.empty-state { display: grid; min-height: 170px; place-items: center; place-content: center; gap: 9px; padding: 25px; border: 1px dashed #ffffff26; border-radius: 14px; color: var(--muted); text-align: center; word-break: keep-all; }
.empty-state :is(h2, h3, strong) { margin: 0; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0; font-size: 14px; }

.player-dialog, .sheet-dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
}

.player-dialog { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; background: #0b0a0d; }
.player-dialog::backdrop { background: #0b0a0d; }

.player-shell {
  --watch-gutter: clamp(38px, 7vw, 132px);
  --watch-gap: clamp(18px, 4vw, 64px);
  --watch-height: min(820px, calc(100dvh - 48px), calc((100vw - 2 * var(--watch-gutter) - var(--watch-gap)) * 8 / 9));
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: var(--watch-gap);
  padding-inline: var(--watch-gutter);
  background: radial-gradient(ellipse at 45% 44%, #2b2129 0%, #18141b 47%, #0b0a0d 80%);
}

.player-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, calc(var(--watch-height) * 9 / 16));
  aspect-ratio: 9 / 16;
  grid-area: 1 / 1;
  justify-self: end;
  overflow: hidden;
  touch-action: none;
  border: 1px solid #ffffff20;
  border-radius: 16px;
  background: #09080b;
  box-shadow: 0 14px 70px #050408a3;
}

.player-frame video { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-gradient { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(0deg, #070609ed 0%, #09070dcc 8%, #09070d78 20%, transparent 43%), linear-gradient(180deg, #09070da6 0%, transparent 25%); }
.player-top { position: absolute; z-index: 5; top: 18px; right: 13px; left: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.player-top > * { pointer-events: auto; }
.player-top :is(strong, span, p) { margin: 0; text-shadow: 0 1px 12px #000; font-weight: 750; }
.player-top > span { padding: 5px 8px; border-radius: 5px; background: #100b14aa; font-size: 11px; white-space: nowrap; }
.player-top .icon-button { background: #0d0b146e; }
.player-top .icon-button:hover { background: #0d0b14b0; }
.app-quick { display: none; min-height: 44px; align-items: center; gap: 6px; margin-left: auto; padding: 0 9px; border: 1px solid #efd09552; border-radius: 8px; background: #17111ae8; color: var(--gold); white-space: nowrap; font-size: 11px; font-weight: 750; }
.app-quick:hover { border-color: var(--gold); }
.app-quick svg { width: 15px; height: 15px; }

.player-back {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: clamp(12px, 3vw, 44px);
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #ffffff2b;
  border-radius: 999px;
  background: #141119b8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.player-back:hover { background: #362b3be8; }
.player-frame .player-back { inset: 0 auto 0 0; position: relative; }
.video-tap { position: absolute; z-index: 0; inset: 0; display: grid; width: 100%; height: 100%; place-items: center; padding: 0; border: 0; background: transparent; color: white; }
.video-tap:focus-visible { outline-offset: -5px; }
.video-tap > :is(svg, span) { display: grid; width: 64px; height: 64px; place-items: center; padding: 17px; border: 1px solid #ffffff48; border-radius: 50%; background: #16101bbe; filter: drop-shadow(0 2px 10px #0403058c); }
.video-tap > span svg { width: 100%; height: 100%; }
.video-tap.is-playing > span { opacity: 0; }
.video-tap.is-playing:focus-visible > span { opacity: 1; }
.player-caption { position: absolute; z-index: 1; right: 60px; bottom: max(26%, 144px); left: 14px; width: fit-content; max-width: calc(100% - 75px); margin: 0 auto; padding: 6px 9px; border-radius: 4px; background: #08070bc7; color: #fff; font-size: clamp(13px, 2.1vh, 18px); font-weight: 700; line-height: 1.4; text-align: center; word-break: keep-all; pointer-events: none; }
.player-caption:empty { display: none; }
.media-error { position: absolute; z-index: 2; top: calc(50% + 37px); right: 22px; left: 22px; margin: 0; padding: 8px; border-radius: 6px; background: #100c16c9; color: #fff; font-size: 13px; text-align: center; pointer-events: none; }

.player-overlay { position: absolute; z-index: 2; right: 12px; bottom: 83px; left: 16px; display: flex; align-items: end; justify-content: space-between; gap: 10px; pointer-events: none; }
.player-overlay > * { pointer-events: auto; }
.player-info { min-width: 0; text-shadow: 0 1px 12px #08060c; word-break: keep-all; }
.player-info :is(h1, h2, h3) { margin: 0 0 6px; font-size: clamp(19px, 3.25vh, 29px); font-weight: 820; letter-spacing: -.045em; line-height: 1.23; }
.player-info p { margin: 3px 0 0; color: #e5d7df; font-size: 12px; }
.player-info .eyebrow { margin-bottom: 7px; }
.player-actions { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 9px; }
.player-action { display: grid; min-width: 43px; min-height: 44px; place-items: center; gap: 4px; padding: 0 4px; border: 0; border-radius: 7px; background: transparent; color: white; text-shadow: 0 1px 8px #09070fbb; white-space: nowrap; font-size: 10px; font-weight: 700; }
.player-action:hover { color: var(--gold); }
.player-action svg { width: 23px; height: 23px; filter: drop-shadow(0 1px 7px #0b0713cc); }
.player-action[aria-pressed="true"] { color: var(--gold); }

.player-controls { position: absolute; z-index: 2; right: 12px; bottom: 11px; left: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: white; pointer-events: none; }
.player-controls :is(button, input) { pointer-events: auto; }
.player-controls .timeline { flex: 0 0 100%; width: 100%; height: 22px; margin: 0; accent-color: var(--gold-strong); cursor: pointer; }
.player-controls > div { display: flex; flex: 1; align-items: center; gap: 7px; }
.player-controls button { display: inline-grid; min-width: 34px; min-height: 34px; place-items: center; padding: 0 5px; border: 0; border-radius: 7px; background: #19131d8a; color: white; white-space: nowrap; font-size: 11px; font-weight: 700; }
.player-controls button:hover { background: #ffffff24; }
.player-controls button:disabled { opacity: .35; }
.player-controls button svg { width: 17px; height: 17px; }
.timecode { margin-right: auto; color: #ebdee9; white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; }

.player-side {
  display: flex;
  width: min(100%, 410px);
  max-height: var(--watch-height);
  grid-area: 1 / 2;
  justify-self: start;
  flex-direction: column;
  gap: 16px;
  padding: clamp(14px, 2vw, 25px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #211b24eb;
  box-shadow: 0 16px 45px #05040852;
}

.watch-series, .handoff-summary { display: flex; align-items: center; gap: 13px; }
.watch-series { flex: 0 0 auto; }
.watch-series img, .handoff-summary img { width: 57px; aspect-ratio: 2 / 3; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); object-fit: cover; }
.watch-series div, .handoff-summary div { min-width: 0; }
.watch-series h3, .handoff-summary h3 { margin: 0 0 4px; font-size: clamp(17px, 2.2vw, 24px); letter-spacing: -.04em; line-height: 1.25; word-break: keep-all; }
.watch-series p, .watch-handoff p, .handoff-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.watch-series .eyebrow { margin: 0 0 3px; color: var(--gold); }

.watch-episodes { display: flex; min-height: 87px; flex: 1 1 auto; flex-direction: column; padding-top: 15px; border-top: 1px solid var(--line); }
.watch-episodes-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.watch-episodes-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.watch-episodes-heading span { color: var(--muted); font-size: 11px; white-space: nowrap; }
#desktop-episodes { min-height: 0; flex: 1 1 auto; align-content: start; gap: 6px; padding: 2px; overflow: auto; overscroll-behavior: contain; scrollbar-color: #efd09565 transparent; scrollbar-width: thin; }
#desktop-episodes .episode-button { min-height: 47px; }
#desktop-episodes .episode-button:focus-visible { outline-offset: -2px; }

.watch-handoff { display: grid; flex: 0 0 auto; gap: 6px; padding-top: 13px; border-top: 1px solid var(--line); }
.watch-handoff .secondary-button { width: 100%; min-height: 42px; padding-inline: 9px; color: var(--gold); font-size: 13px; }
.watch-shop { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 6px 12px; border-top: 1px solid var(--line); padding-top: 9px; }
.watch-shop p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; word-break: keep-all; }
.watch-shop a { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; padding: 3px 6px; border-radius: 4px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #efd09570; }
.watch-shop a:hover { color: var(--gold); }

.episode-end {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 44px clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, #0b091099, #0b0910ef 39%, #0b0910ef 61%, #0b0910b0);
  text-align: center;
}

.episode-end h3 { margin: 0; font-size: clamp(18px, 3.8vh, 27px); line-height: 1.25; word-break: keep-all; }
.episode-end p { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.5; word-break: keep-all; }
.episode-end :is(.primary-button, .secondary-button) { width: min(100%, 236px); min-height: 42px; padding-inline: 10px; font-size: 13px; }

.sheet-dialog { position: fixed; inset: 0; width: min(100% - 40px, 470px); max-height: calc(100dvh - 48px); margin: auto; overflow: auto; border: 1px solid #f7e6db26; border-radius: 19px; background: #1d1920; box-shadow: 0 25px 100px #07040aa6; }
.sheet-dialog::backdrop { background: #0a080cc4; backdrop-filter: blur(5px); }
.sheet { padding: 23px; }
.sheet-header { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.sheet-header :is(h1, h2, h3) { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
.sheet-header .icon-button { min-width: 44px; min-height: 44px; }
.sheet-header .eyebrow { margin-bottom: 5px; }
.sheet-content { color: #dfd3dc; line-height: 1.55; }
.sheet-content p { margin: 0 0 14px; }
.sheet-content :is(.primary-button, .secondary-button) { width: 100%; }
.sheet-content > :is(.primary-button, .secondary-button) + :is(.primary-button, .secondary-button) { margin-top: 8px; }
.handoff-summary { margin-bottom: 17px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #100e1366; }
.handoff-summary img { width: 45px; }
.handoff-summary h3 { font-size: 17px; }
.handoff-summary p { margin: 0; color: var(--gold); }
.viewer-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.handoff-url { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--ink); font: inherit; }
.handoff-stage { display: grid; gap: 9px; }
.handoff-stage :is(h3, p) { margin: 0; word-break: keep-all; }
.handoff-stage h3 { font-size: 18px; color: var(--ink); }
.handoff-stage p { color: var(--muted); font-size: 13px; }
.handoff-stage :is(.primary-button, .secondary-button) { min-height: 44px; white-space: normal; }
.handoff-stage .store-status { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.handoff-stage #handoff-status:empty { display: none; }
.episode-list { display: grid; gap: 8px; }
.episode-button { display: grid; min-width: 0; min-height: 58px; grid-template-columns: minmax(2.45rem, max-content) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff7ff08; color: #ece1ea; font-size: 13px; font-weight: 730; line-height: 1.25; text-align: left; }
.episode-button svg { width: 15px; height: 15px; }
.episode-button:hover { border-color: #efd09573; }
.episode-button[aria-current="true"] { border-color: #efd0958a; background: #efd09517; }
.episode-number { color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.episode-name { display: grid; gap: 3px; min-width: 0; }
.episode-name small { color: var(--muted); font-size: 11px; font-weight: 500; }
.episode-status { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 11px; }
.unlock-content { text-align: center; }
.ad-sample { display: grid; place-items: center; overflow: hidden; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(ellipse at center, #35262d, #161318 80%); }
.ad-sample video { display: block; height: min(48dvh, 440px); max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #100f11; }
#unlock-episode { margin: 0 0 10px; font-size: 14px; }
.unlock-content .primary-button:disabled { border-color: var(--line); background: var(--raised); color: var(--muted); cursor: default; }
.episode-end .text-button { min-height: 44px; }
.detail-image { width: 100%; max-height: 255px; aspect-ratio: 16 / 8; margin-bottom: 15px; border-radius: 11px; background: var(--raised); object-fit: cover; object-position: center 28%; }
.detail-content .hero-actions { flex-wrap: nowrap; }
.detail-content .hero-actions > button { min-width: 0; flex: 1 1 0; }

.toast { position: fixed; z-index: 20; right: var(--gutter); bottom: 26px; max-width: min(400px, calc(100% - var(--gutter) * 2)); padding: 12px 16px; border: 1px solid #efd09543; border-radius: 11px; background: #28222b; box-shadow: 0 12px 20px #07040a75; color: #fff0e7; font-size: 13px; line-height: 1.45; }
.player-toast { pointer-events: none; }

@media (max-width: 1000px) {
  .poster-grid, .home-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  :root { --gutter: clamp(15px, 4.3vw, 28px); }
  html { scroll-padding-block: calc(71px + env(safe-area-inset-top)) calc(76px + env(safe-area-inset-bottom)); }

  .site-header { position: sticky; top: 0; padding-top: env(safe-area-inset-top); }
  .header-inner { min-height: 62px; gap: 6px; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
  .brand { min-height: 44px; gap: 7px; }
  .brand-mark { height: 29px; width: 29px; }
  .brand-text { font-size: 21px; }
  .desktop-nav { display: none; }
  .header-actions { min-width: 0; flex: 1 1 auto; margin-left: 0; }
  .search-toggle { min-width: 0; min-height: 44px; flex: 1 1 auto; justify-content: flex-start; gap: 7px; padding-inline: 9px; border-color: #ffffff1c; border-radius: 10px; background: var(--surface); color: #d2c9cd; }
  .search-toggle svg { width: 16px; height: 16px; }
  .search-toggle .search-label { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
  .wallet-button { min-height: 44px; flex: 0 0 auto; padding-inline: 9px; font-size: 12px; }
  .wallet-button svg { width: 15px; height: 15px; }

  .mobile-nav {
    position: fixed;
    z-index: 7;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-evenly;
    gap: 7px;
    padding: 6px var(--gutter) max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid #fff3e923;
    background: #161317f7;
    backdrop-filter: blur(12px);
  }

  .mobile-nav .nav-button { min-width: 48px; min-height: 50px; flex: 1; flex-direction: column; gap: 4px; padding: 4px 2px; border-radius: 9px; font-size: 10px; }
  .mobile-nav .nav-button:is([aria-current="page"], .is-active, .active) { color: var(--gold); }
  .mobile-nav .nav-button svg { width: 21px; height: 21px; }
  .mobile-nav .nav-button:focus-visible { outline-offset: -2px; }

  .page-shell { min-height: calc(100svh - 62px); padding-top: 15px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero { min-height: clamp(415px, 119vw, 560px); border-radius: 15px; }
  .hero-art { object-position: 72% 28%; background-position: 72% 28%; }
  .hero-shade { background: linear-gradient(0deg, #130e17 2%, #1a111ceb 17%, #1b1219b4 34%, #22172345 57%, transparent 76%), linear-gradient(90deg, #26182738, transparent 68%); }
  .hero-content { width: 100%; padding: 28px 19px 31px; }
  .hero h1 { margin-bottom: 9px; font-size: clamp(36px, 10.7vw, 57px); line-height: 1.11; }
  .hero-description { display: -webkit-box; margin-bottom: 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .eyebrow { margin-bottom: 9px; font-size: 11px; }
  .hero-meta { margin-bottom: 16px; font-size: 11px; }
  .hero-actions { gap: 7px; }
  .hero-actions :is(.primary-button, .secondary-button) { min-height: 44px; padding-inline: 13px; font-size: 13px; }
  .hero-index { top: 10px; right: 10px; bottom: auto; padding: 2px 7px; border-radius: 999px; background: #160e1b8f; font-size: 10px; }

  .home-page { gap: 23px; padding-top: 4px; reading-flow: flex-visual; }
  .home-browse { order: -1; }
  .home-tabs { gap: clamp(10px, 4vw, 24px); }
  .home-tab { min-height: 44px; padding-inline: 3px; font-size: 13px; }
  #home-feed { gap: 21px; padding-top: 13px; }
  .home-shelf-heading { gap: 8px; margin-bottom: 8px; }
  .home-shelf-heading :is(h1, h2) { font-size: clamp(19px, 5vw, 25px); }
  .home-shelf-heading .text-button { min-height: 36px; padding: 0; font-size: 11px; }
  .home-shelf-heading .text-button svg { width: 13px; height: 13px; }
  .home-strip {
    --home-card-gap: clamp(8px, 2.3vw, 14px);
    grid-template-columns: none;
    grid-auto-columns: calc((100% - var(--home-card-gap) * 2) / 2.74);
    grid-auto-flow: column;
    gap: var(--home-card-gap);
    margin: -4px calc(-1 * var(--gutter)) -6px;
    padding: 4px var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .home-strip::-webkit-scrollbar { display: none; }
  .home-strip .poster-card { scroll-snap-align: start; }
  .home-strip .poster-image { border-radius: 8px; }
  .home-strip .poster-link:focus-visible { outline-offset: 2px; }
  .home-strip .poster-info :is(h3, .poster-title) { display: -webkit-box; overflow: hidden; overflow-wrap: break-word; word-break: keep-all; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .home-strip .home-rank { font-size: clamp(20px, 5.8vw, 31px); }
  #home-feed:is([data-active-feed="new"], [data-active-feed="popular"]) .home-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 15px var(--home-card-gap); margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .home-resume .continue-grid { grid-template-columns: none; grid-auto-columns: min(86%, 360px); grid-auto-flow: column; gap: 8px; padding: 4px; margin: -4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .home-resume .resume-card { min-height: 70px; scroll-snap-align: start; }
  .home-resume .resume-card:only-child { grid-column: 1 / -1; }
  .home-resume .resume-card img { width: 41px; height: 53px; flex-basis: 41px; }
  .home-feature.hero { min-height: clamp(196px, 54vw, 220px); border-radius: 12px; }
  .home-feature .hero-content { width: 100%; padding: 15px; }
  .home-feature .hero-art { object-position: 72% 39%; background-position: 72% 39%; }
  .home-feature .hero-shade { background: linear-gradient(90deg, #151018ec 0%, #151018a0 50%, #15101822 87%), linear-gradient(0deg, #130e17eb, transparent 71%); }
  .home-feature .hero-content .eyebrow { margin-bottom: 5px; font-size: 10px; }
  .home-feature h1 { margin-bottom: 5px; font-size: clamp(27px, 7.6vw, 41px); }
  .home-feature .hero-description { margin-bottom: 5px; font-size: 12px; -webkit-line-clamp: 1; }
  .home-feature .hero-meta { margin-bottom: 10px; }
  .home-feature .hero-actions { display: grid; max-width: 370px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .home-feature .hero-actions :is(.primary-button, .secondary-button) { min-width: 0; gap: 4px; padding-inline: 5px; white-space: nowrap; font-size: clamp(10px, 3.1vw, 12px); }
  .home-feature .hero-actions svg { width: 13px; height: 13px; }

  .catalog-section { margin-top: 27px; }
  .section-heading { gap: 8px; margin-bottom: 11px; }
  .section-heading p { font-size: 12px; }
  .category-row { margin-bottom: 12px; }
  .chip { min-height: 34px; padding-inline: 12px; font-size: 12px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .poster-image { border-radius: 8px; }
  .poster-tag { top: 5px; left: 5px; max-width: calc(100% - 10px); padding: 2px 5px; font-size: 9px; }
  .poster-info { padding: 6px 1px 0; }
  .poster-info :is(h3, .poster-title) { font-size: 13px; }
  .poster-info :is(p, .poster-meta) { font-size: 10px; }

  .page-heading { margin: 8px 0 19px; }
  .page-heading p { font-size: 13px; }

  .player-shell { grid-template-columns: minmax(0, 1fr); place-items: center; gap: 0; padding: 0; background: #09080b; }
  .player-frame { width: 100%; height: 100%; aspect-ratio: auto; justify-self: center; border: 0; border-radius: 0; }
  .player-frame video { object-fit: cover; }
  .player-back { top: calc(8px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); }
  .player-top { top: calc(8px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); }
  .player-shell > .player-back ~ .player-frame .player-top { left: calc(64px + env(safe-area-inset-left)); }
  .player-top > span:not(#player-episode) { display: none; }
  .app-quick { display: inline-flex; }
  .player-controls { right: calc(12px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); left: calc(12px + env(safe-area-inset-left)); }
  .player-controls button { min-width: 44px; min-height: 44px; }
  .player-overlay { right: calc(12px + env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); left: calc(16px + env(safe-area-inset-left)); }
  .player-caption { bottom: max(25%, calc(152px + env(safe-area-inset-bottom))); }
  .player-side { display: none; }

  .sheet-dialog { inset: auto 0 0; width: min(100%, 540px); max-height: 88dvh; margin: 0 auto; border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .sheet { padding: 16px 17px max(17px, env(safe-area-inset-bottom)); }
  .sheet-header { margin-bottom: 12px; }
  .sheet-header :is(h1, h2, h3) { font-size: 20px; }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (max-width: 340px) {
  .hero-content { padding-inline: 13px; }
  .hero-actions :is(.primary-button, .secondary-button) { gap: 5px; padding-inline: 10px; }
  .home-feature .hero-content { padding-inline: 10px; }
  .home-feature .hero-actions .secondary-button svg { display: none; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-height: 560px) and (min-width: 741px) {
  .player-shell { --watch-height: min(calc(100dvh - 24px), calc((100vw - 2 * var(--watch-gutter) - var(--watch-gap)) * 8 / 9)); }
  .player-frame { width: min(100%, max(278px, calc(var(--watch-height) * 9 / 16))); height: var(--watch-height); aspect-ratio: auto; }
  .player-side { gap: 9px; padding: 12px; }
  .watch-series img { width: 37px; }
  .watch-series h3 { font-size: 17px; }
  .watch-episodes { min-height: 82px; padding-top: 8px; }
  .watch-episodes-heading { margin-bottom: 4px; }
  .watch-handoff { padding-top: 8px; }
  .player-overlay { bottom: 62px; }
  .player-caption { bottom: max(26%, 115px); }
}

@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .player-shell { grid-template-columns: minmax(0, 1fr); place-items: center; gap: 0; padding: 0; background: #09080b; }
  .player-frame { width: min(100%, 460px); height: 100%; aspect-ratio: auto; justify-self: center; border: 0; border-radius: 0; }
  .player-frame video { object-fit: contain; }
  .player-side { display: none; }
  .app-quick { display: inline-flex; }
  .player-top { top: calc(4px + env(safe-area-inset-top)); right: 9px; }
  .player-back { top: calc(4px + env(safe-area-inset-top)); left: calc(9px + env(safe-area-inset-left)); }
  .player-controls { bottom: calc(4px + env(safe-area-inset-bottom)); }
  .player-controls button { min-width: 44px; min-height: 38px; }
  .player-overlay { bottom: calc(63px + env(safe-area-inset-bottom)); }
  .player-actions { gap: 1px; }
  .player-caption { bottom: calc(116px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 740px), (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .player-shell { grid-template-rows: minmax(0, 1fr) auto; }
  .player-side { display: contents; }
  .player-side > :not(.watch-shop) { display: none; }
  .watch-shop { grid-row: 2; grid-column: 1; align-self: end; width: 100%; padding: 0 max(15px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(15px, env(safe-area-inset-left)); background: #171518; }
  .player-frame { min-height: 0; }
}
