:root {
  color-scheme: dark;
  --canvas: #10151c;
  --ink: #f2f4f3;
  --muted: #a1aeb7;
  --accent: #a9f1d9;
  --panel: #171f28;
  --line: #29343d;
  --sans: Inter, "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12px;
  background: radial-gradient(ellipse at 45% 35%, #313c47, #1b242e 62%, #161d26);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
svg { display: block; width: 19px; height: 19px; flex: 0 0 auto; }
img { display: block; width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tablet {
  position: relative;
  border-radius: 39px;
  width: min(1208px, 100%);
  height: 848px;
  padding: 13px;
  border: 1px solid #53606d;
  background: #070a0e;
  box-shadow: inset 0 0 0 1px #1f252c, inset 0 -1px 0 1px #090b0e, 0 15px 36px #05090e8c;
}

.camera {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid #15212d;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 39%, #263f52, #0b1017 50%);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--canvas);
  border-radius: 26px;
  isolation: isolate;
}

.status {
  flex: 0 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 31px 0;
  color: #edf1f4;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.status div { display: flex; align-items: center; gap: 7px; }
.status svg { width: 15px; height: 15px; }
.status .battery { width: 25px; }
.home-indicator {
  position: absolute;
  height: 4px;
  width: 130px;
  border-radius: 999px;
  left: 50%;
  translate: -50% 0;
  bottom: 7px;
  z-index: 5;
  background: #8d99a1;
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 31px;
  padding: 0 30px;
  flex: 0 0 65px;
  border-bottom: 1px solid #242c343d;
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 11px; }
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 11px;
  color: #152324;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: grid; gap: 1px; }
.brand strong { font-size: 19px; line-height: 1.25; font-weight: 720; letter-spacing: .35px; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .25px; white-space: nowrap; }
.main-nav { display: flex; height: 100%; align-items: stretch; gap: 27px; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #abb6bf;
  font-size: 15px;
  font-weight: 560;
  white-space: nowrap;
  padding: 0 2px;
}
.main-nav a[aria-current] { color: var(--accent); font-weight: 700; }
.main-nav a[aria-current]::after {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 7px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  content: "";
}
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  height: 36px;
  width: 158px;
  border: 1px solid #29343d;
  background: #171e26;
  border-radius: 10px;
  color: #a3b1ba;
}
.search-box svg { width: 15px; height: 15px; }
.search-box input { width: 100%; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.search-box input::placeholder { color: #a0adb6; opacity: 1; }
.search-box:focus-within { border-color: #6eb6a2; }
.icon-button {
  color: #dce6ea;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  padding: 0;
}
.nav-library { border: 1px solid #29343d; background: #171e26; }
.nav-library svg { width: 17px; height: 17px; }

main { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.home { padding: 9px 30px 24px; }

.hero {
  height: 374px;
  position: relative;
  isolation: isolate;
  border: 1px solid #3a454a70;
  border-radius: 22px;
  overflow: hidden;
  background: #121b23;
}
.hero-image {
  position: absolute;
  z-index: -2;
  width: 87%;
  height: 100%;
  right: 0;
  top: 0;
  object-fit: cover;
  object-position: 55% 39%;
  filter: brightness(1.13) saturate(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #111923 1%, #111923f9 14%, #111923d9 26%, #11192386 43%, #0f18232b 61%, transparent 80%),
    linear-gradient(0deg, #070b10d4, transparent 27%);
}
.hero-content {
  width: min(585px, 64%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6px 0 9px 39px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 1.3px;
}
.hero-kicker span:first-child { width: 15px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  margin: 8px 0 13px;
  font: 850 clamp(52px, 5.4vw, 72px)/1.17 var(--serif);
  letter-spacing: 4px;
  color: #fbf8f1;
  text-wrap: nowrap;
  text-shadow: 0 4px 20px #04080d5c;
}
.hero-meta, .film-meta { display: flex; align-items: center; gap: 9px; color: #c8d2d7; font-size: 14px; }
.hero-meta i, .film-meta i { height: 3px; width: 3px; border-radius: 50%; background: #81939c; flex: 0 0 auto; }
.format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff52;
  border-radius: 4px;
  height: 19px;
  color: #edf3f6;
  font: 700 11px/1 var(--sans);
  padding: 0 5px;
  letter-spacing: .3px;
}
.hero-synopsis { color: #dee5e9; font-size: 15px; line-height: 1.75; margin: 14px 0 24px; }
.actions { display: flex; align-items: center; gap: 11px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  min-height: 43px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 690;
  white-space: nowrap;
}
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--accent); color: #142523; box-shadow: 0 5px 20px #1e605153; }
.button.glass { background: #17232d9c; border: 1px solid #d1e2e74c; color: #edf4f3; }
.button.subtle { background: #1b242e; border: 1px solid #2d3944; color: #e2e9eb; }
.hero-pagination { display: flex; gap: 7px; position: absolute; right: 27px; bottom: 22px; align-items: center; }
.hero-pagination button {
  display: block;
  width: 16px;
  height: 5px;
  padding: 0;
  border-radius: 99px;
  background: #f1f7fb63;
}
.hero-pagination button[aria-pressed="true"] { width: 31px; background: var(--accent); }

.shelf { margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-heading h2 { font-size: 22px; font-weight: 720; letter-spacing: .25px; line-height: 1.4; }
.quiet-button { border: 1px solid #34414b; background: #172028; padding: 5px 10px; border-radius: 7px; color: #b7c6cc; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tile { min-width: 0; display: block; }
.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.86;
  border: 1px solid #e6f0f02a;
  border-radius: 11px;
  background: #26343f;
}
.tile-media img { height: 100%; object-fit: cover; }
.tile-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 43%;
  background: linear-gradient(transparent,#090d1191);
  pointer-events: none;
}
.duration {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  padding: 3px 5px;
  color: #fff;
  border-radius: 4px;
  background: #0a0e13cf;
  font-size: 11px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.tile strong { display: block; margin-top: 7px; color: #f1f5f5; font-size: 16px; line-height: 1.45; letter-spacing: .2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tile small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.campus-banner {
  margin-top: 17px;
  width: 100%;
  min-height: 55px;
  padding: 6px 13px;
  border: 1px solid #2b3a42;
  border-radius: 10px;
  background: linear-gradient(95deg, #1a2b2d, #17212a 58%, #171f28);
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
}
.campus-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #29403e; color: var(--accent); }
.campus-icon svg { width: 17px; height: 17px; }
.campus-banner strong { display: block; color: #e6f3ef; font-size: 14px; line-height: 1.4; font-weight: 710; }
.campus-banner small { display: block; color: #a8bdbf; font-size: 11px; margin-top: 2px; }
.campus-link { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 660; }
.empty { color: var(--muted); grid-column: 1 / -1; min-height: 100px; display: grid; place-items: center; }

.watch { padding: 0 30px 24px; }
.crumbs {
  display: flex;
  align-items: center;
  height: 41px;
  gap: 10px;
  color: #a5b2bd;
  font-size: 13px;
}
.crumbs span[aria-current] { color: #e1eaec; }
.crumbs > span:not([aria-current]) { color: #677682; }
.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.player {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  border: 1px solid #34414c;
  overflow: hidden;
  background: #080b10;
}
.player-image { height: 100%; object-fit: cover; object-position: center; filter: brightness(1.07) saturate(1.04); }
.player::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #060a0ff2 0, #060a0f9d 12%, transparent 36%, transparent 85%, #080d1454 100%);
  pointer-events: none;
}
.now-chapter {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 14px;
  padding: 5px 9px;
  border: 1px solid #e5eef047;
  border-radius: 6px;
  color: #f4f6f5;
  background: #131d28b8;
  font-size: 12px;
  line-height: 1.35;
}
.large-play {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid #e1eae7a6;
  height: 67px;
  width: 67px;
  background: #16212bc0;
  color: #f4f8f7;
  border-radius: 50%;
  box-shadow: 0 5px 27px #00000068;
}
.large-play svg { width: 27px; height: 27px; }
.controls { position: absolute; z-index: 2; inset: auto 15px 9px; }
.scrub-label { height: 13px; display: flex; align-items: center; }
.scrub-label input {
  width: 100%;
  margin: 0;
  height: 4px;
  appearance: none;
  border-radius: 8px;
  background: linear-gradient(to right, var(--accent) var(--progress,17.8%), #e4edf16c var(--progress,17.8%));
  cursor: pointer;
}
.scrub-label input::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.scrub-label input::-moz-range-thumb { border: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.control-row { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.control-row .icon-button { width: 31px; height: 29px; color: white; }
.control-row svg { width: 17px; height: 17px; }
.timecode { color: #edf4f5; font-size: 12px; font-variant-numeric: tabular-nums; }
.time-separator { color: #bfccd1; margin: 0 6px; }
.player-format { margin-left: auto; }

.film-info { margin-top: 18px; }
.info-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.film-info h1 { font-size: 38px; line-height: 1.27; font-weight: 780; letter-spacing: 1.8px; }
.film-meta { margin-top: 6px; color: #acb9c3; font-size: 13px; }
.film-actions .button { min-height: 37px; padding: 0 11px; font-size: 13px; }
.film-actions { gap: 8px; }
.film-synopsis { color: #d2dbe0; margin-top: 15px; max-width: 680px; font-size: 15px; line-height: 1.8; }
.film-credit { margin-top: 12px; display: flex; gap: 13px; align-items: center; font-size: 13px; }
.credit-title { color: #8f9da7; }
.film-credit a { color: var(--accent); }
.chapters {
  padding: 16px;
  border: 1px solid #2b3640;
  border-radius: 16px;
  background: var(--panel);
}
.chapters .section-heading h2, .recommendations .section-heading h2 { font-size: 19px; }
.chapter-count { font-size: 12px; color: var(--muted); }
#chapter-list { display: grid; gap: 9px; margin-top: 15px; }
.chapter-row {
  width: 100%;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr) auto;
  text-align: left;
  align-items: center;
  gap: 10px;
  padding: 8px;
  min-height: 77px;
  background: #202a34;
  border: 1px solid #303c46;
  border-radius: 10px;
}
.chapter-row[aria-current="true"] { border-color: #6baf9f; background: #203633; }
.chapter-row img {
  border-radius: 6px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #edeef028;
}
.chapter-copy { display: grid; gap: 4px; }
.chapter-copy strong { font-size: 14px; white-space: nowrap; }
.chapter-copy small { color: #a8b8c1; font-size: 12px; font-variant-numeric: tabular-nums; }
.playing-label { color: var(--accent); font-size: 11px; font-weight: 600; margin-right: 2px; white-space: nowrap; }
.recommendations { margin-top: 23px; }
.recommendations .tiles { margin-top: 10px; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.recommendations .tile strong { font-size: 14px; }
.recommendations .tile small { font-size: 11px; }

dialog {
  width: min(520px,90vw);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #354651;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 50px #0009;
}
dialog::backdrop { background: #050810b5; }
.dialog-content .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
.toast { position: fixed; z-index: 8; left: 50%; bottom: 30px; translate: -50% 0; border: 1px solid #3b5356; background: #17272a; padding: 9px 13px; border-radius: 8px; color: #eff9f5; white-space: nowrap; }

@media (max-width: 1000px) {
  .navbar { gap: 19px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
  .hero { height: 350px; }
  .chapter-row { grid-template-columns: 77px minmax(0, 1fr); }
  .playing-label { display: none; }
}
@media (max-width: 740px) {
  body { padding: 0; }
  .tablet { padding: 0; height: 100svh; border-radius: 0; border: 0; }
  .screen { border-radius: 0; }
  .status, .nav-tools, .camera, .home-indicator { display: none; }
  .navbar { height: auto; flex: none; flex-wrap: wrap; padding: 12px 15px 5px; gap: 4px 10px; }
  .main-nav { height: 43px; }
  .home, .watch { padding-left: 15px; padding-right: 15px; }
  .hero-content { padding-left: 19px; width: 85%; }
  .hero h1 { font-size: 46px; }
  .hero-image { width: 100%; object-position: 63% 50%; }
  .hero-synopsis br { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-grid { grid-template-columns: 1fr; }
  .chapter-row { grid-template-columns: 100px minmax(0,1fr) auto; }
  .playing-label { display: block; }
}
