:root {
  color-scheme: light;
  --paper: #f1ebe0;
  --paper-soft: #faf7f0;
  --ink: #171411;
  --ink-soft: #27211c;
  --red: #bd352a;
  --red-dark: #8e211c;
  --gold: #bc8b43;
  --line: rgba(23, 20, 17, .18);
  --muted: #6f665e;
  --cream: #fffaf0;
  --shell: min(1420px, calc(100% - 72px));
  --shadow: 0 30px 80px rgba(35, 20, 10, .18);
}

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

html { scroll-behavior: smooth; }

body,
h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul { margin: 0; }

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.section-shell,
.header-shell,
.hero-shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--red);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--cream);
  background: rgba(23, 20, 17, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand > span { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; letter-spacing: .02em; }
.brand small { color: #b8ada1; font-size: 8px; font-weight: 700; letter-spacing: .18em; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(16px, 2.4vw, 38px);
}

.main-nav a {
  position: relative;
  padding: 29px 0 25px;
  color: #d8d0c7;
  font-size: 12px;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
}

.menu-toggle > span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--cream);
  transition: .2s ease;
}

.hero {
  position: relative;
  min-height: 810px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 71% 35%, rgba(189, 53, 42, .19), transparent 31%),
    linear-gradient(120deg, #1b1713 0%, #171411 54%, #221814 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 710px);
  width: 1px;
  background: rgba(255,255,255,.12);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
  min-height: 810px;
  padding-block: 100px;
}

.hero-copy { position: relative; z-index: 4; max-width: 680px; }

.eyebrow,
.section-label {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #e28a71; }

.hero h1 {
  margin-top: 25px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(56px, 5.6vw, 91px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.08;
}

.hero-lead {
  max-width: 610px;
  margin-top: 30px;
  color: #c5bab0;
  font-size: 15px;
  line-height: 2;
}

.hero-topics {
  max-width: 640px;
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--coral);
  color: #dbc1ad;
  font-size: 12px;
  line-height: 1.85;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: #d04235; }
.button-ink { color: var(--cream); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); }
.button-ink:hover { color: var(--ink); background: var(--cream); }

.poster-stage {
  position: relative;
  min-height: 610px;
  perspective: 1200px;
}

.poster {
  position: absolute;
  overflow: hidden;
  border: 6px solid #e8dfd1;
  background: #28211c;
  box-shadow: 0 35px 90px rgba(0,0,0,.5);
}

.poster img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.poster-one { top: 35px; left: 3%; z-index: 2; width: 31%; height: 500px; transform: rotate(-5deg); }
.poster-two { top: 0; left: 31%; z-index: 3; width: 32%; height: 550px; transform: rotate(2deg); }
.poster-three { top: 47px; right: 3%; z-index: 2; width: 30%; height: 500px; transform: rotate(5deg); }
.poster-four { right: 29%; bottom: 0; z-index: 4; width: 24%; height: 300px; transform: rotate(-2deg); }

.poster-stamp {
  position: absolute;
  right: 0;
  bottom: 35px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  width: 190px;
  padding: 18px 20px;
  color: var(--ink);
  background: #e7d1a7;
  border: 1px solid rgba(0,0,0,.2);
  transform: rotate(-3deg);
}

.poster-stamp span { color: var(--red-dark); font-size: 11px; font-weight: 800; }
.poster-stamp strong { margin-top: 2px; font-size: 20px; }

.ticker {
  overflow: hidden;
  color: var(--cream);
  background: var(--red);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 22px;
  padding: 16px 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.ticker-track i { width: 5px; height: 5px; background: #f1c6ab; transform: rotate(45deg); }

.channel-heading h2,
.drama-intro h2,
.ranking-heading h2,
.series-heading h2,
.watch-copy h2 {
  margin-top: 18px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.12;
}

.comic-channel {
  padding: 130px 0 150px;
  color: var(--cream);
  background: var(--red-dark);
}

.comic-channel .section-label { color: #efb995; }

.channel-heading,
.series-heading {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: end;
  gap: 70px;
}

.channel-heading > p,
.series-heading > p { padding-bottom: 12px; color: #d8bcb0; font-size: 14px; line-height: 2; }

.ticket-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 58px;
}

.ticket-card {
  position: relative;
  overflow: hidden;
  background: #f5ede0;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ticket-card::before,
.ticket-card::after {
  position: absolute;
  top: 59%;
  z-index: 3;
  width: 22px;
  height: 22px;
  content: "";
  background: var(--red-dark);
  border-radius: 50%;
}

.ticket-card::before { left: -11px; }
.ticket-card::after { right: -11px; }
.ticket-card:hover { z-index: 4; transform: translateY(-12px); box-shadow: 0 25px 70px rgba(25, 5, 5, .35); }
.ticket-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; filter: saturate(.9); }
.ticket-card > div { min-height: 210px; padding: 24px 22px 28px; border-top: 1px dashed rgba(23,20,17,.35); }
.ticket-card small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.ticket-card h3 { margin-top: 8px; font-family: "Songti SC", serif; font-size: 23px; line-height: 1.35; }
.ticket-card p { margin-top: 12px; color: var(--muted); font-size: 12px; }

.drama-channel { padding: 150px 0; background: var(--paper-soft); }

.drama-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.drama-intro { grid-column: 1 / 6; padding: 20px 42px 20px 0; }
.drama-intro > p:not(.section-label) { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 2; }
.genre-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.genre-pills span { padding: 8px 12px; border: 1px solid var(--line); color: #554b43; font-size: 10px; }

.drama-feature {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 420px;
  color: var(--cream);
  background: var(--ink);
}

.drama-feature figure { min-height: 420px; overflow: hidden; }
.drama-feature img { width: 100%; height: 100%; object-fit: cover; }
.drama-feature > div { display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; }
.drama-feature small { color: #dd8b77; font-size: 10px; }
.drama-feature h3 { margin-top: 10px; font-family: "Songti SC", serif; font-size: 35px; line-height: 1.3; }
.drama-feature p { margin-top: 16px; color: #aaa097; font-size: 13px; }

.mini-drama-grid {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2px;
}

.mini-drama-grid article { position: relative; min-height: 290px; overflow: hidden; background: var(--ink); }
.mini-drama-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.mini-drama-grid article:hover img { transform: scale(1.04); }
.mini-drama-grid article::after { position: absolute; inset: 30% 0 0; content: ""; background: linear-gradient(transparent, rgba(15,11,8,.93)); }
.mini-drama-grid article > div { position: absolute; right: 22px; bottom: 20px; left: 22px; z-index: 2; color: #fff; }
.mini-drama-grid small { color: #eab093; font-size: 9px; }
.mini-drama-grid h3 { margin-top: 4px; font-size: 20px; }

.ranking-section { padding: 150px 0; color: var(--cream); background: var(--ink); }
.ranking-section .section-label { color: #e4977e; }
.ranking-heading { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 60px; }
.ranking-heading > p { padding-bottom: 14px; color: #8e857c; font-size: 12px; }

.ranking-board {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 60px;
  margin-top: 58px;
}

.ranking-preview { position: sticky; top: 110px; height: 680px; overflow: hidden; background: #342b25; }
.ranking-preview::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; }
.ranking-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .2s ease, transform .45s ease; }
.ranking-preview img.is-changing { opacity: .35; transform: scale(1.025); }

.ranking-list { list-style: none; border-top: 1px solid rgba(255,255,255,.17); }
.ranking-list li { border-bottom: 1px solid rgba(255,255,255,.17); }
.ranking-list button {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 102px;
  padding: 18px 8px;
  color: #b8afa7;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, padding .2s ease;
}

.ranking-list button:hover,
.ranking-list li.is-active button { padding-left: 18px; color: #fff; background: linear-gradient(90deg, rgba(189,53,42,.2), transparent); }
.ranking-list span { color: #d87560; font-family: "Times New Roman", serif; font-size: 18px; }
.ranking-list b { font-family: "Songti SC", serif; font-size: 25px; font-weight: 600; }
.ranking-list small { color: #827970; font-size: 10px; white-space: nowrap; }

.series-section { padding: 150px 0; background: #d9c2a4; }
.series-heading > p { color: #5e5044; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.series-grid article { position: relative; min-width: 0; background: var(--ink); overflow: hidden; box-shadow: 0 15px 38px rgba(39,25,14,.14); }
.series-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; transition: transform .45s ease; }
.series-grid article:hover img { transform: scale(1.045); }
.series-grid article > div { min-height: 92px; padding: 17px 16px; color: var(--cream); }
.series-grid small { color: #d39279; font-size: 9px; }
.series-grid h3 { margin-top: 3px; overflow: hidden; font-size: 16px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

.watch-section { padding: 135px 0; background: var(--paper-soft); }

.watch-card {
  display: grid;
  grid-template-columns: auto 1.2fr .8fr;
  align-items: center;
  gap: 48px;
  padding: 65px;
  color: var(--cream);
  background:
    linear-gradient(115deg, rgba(189,53,42,.2), transparent 45%),
    var(--ink);
  box-shadow: var(--shadow);
}

.watch-mark {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.04);
  transform: rotate(-3deg);
}

.watch-mark img { width: 98px; height: 98px; object-fit: contain; }
.watch-copy h2 { font-size: clamp(46px, 4.3vw, 69px); }
.watch-copy > p:not(.section-label) { margin-top: 22px; color: #aaa097; font-size: 13px; line-height: 2; }
.text-link { display: inline-flex; gap: 12px; margin-top: 24px; color: #f2c2aa; font-size: 12px; font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.watch-keywords { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.watch-keywords span { padding: 9px 12px; color: #c6bcb3; border: 1px solid rgba(255,255,255,.14); font-size: 10px; }

.site-footer { padding: 85px 0 28px; color: var(--cream); background: #0d0b09; }
.footer-top { display: grid; grid-template-columns: .8fr 1.2fr .7fr; align-items: start; gap: 70px; padding-bottom: 58px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 22px; }
.footer-brand span { color: #766d65; font-size: 8px; letter-spacing: .14em; }
.footer-top > p { color: #91877f; font-size: 12px; line-height: 2; }
.footer-top nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.footer-top nav a { color: #b5aca4; font-size: 11px; }
.footer-top nav a:hover { color: #ef9c7d; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; color: #625b55; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  background: var(--red);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: .25s ease;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid #e45a45; outline-offset: 4px; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 48px, 1100px); }
  .hero-shell { grid-template-columns: .9fr 1.1fr; }
  .poster-stage { min-height: 540px; }
  .poster-one { height: 430px; }
  .poster-two { height: 470px; }
  .poster-three { height: 430px; }
  .poster-four { height: 250px; }
  .ticket-row { grid-template-columns: repeat(3, 1fr); }
  .ticket-card:nth-child(n+4) { display: grid; grid-template-columns: .75fr 1fr; }
  .ticket-card:nth-child(n+4) img { height: 100%; aspect-ratio: auto; }
  .ticket-card:nth-child(4) { grid-column: 1 / 2; }
  .ticket-card:nth-child(5) { grid-column: 2 / 4; }
  .series-grid { grid-template-columns: repeat(4, 1fr); }
  .watch-card { grid-template-columns: auto 1fr; }
  .watch-keywords { grid-column: 1 / 3; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 36px); }
  .header-shell { min-height: 72px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 22px 18px;
    background: rgba(23,20,17,.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: .22s ease;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav a { padding: 18px 8px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
  .main-nav a::after { display: none; }

  .hero { min-height: auto; }
  .hero-shell { grid-template-columns: 1fr; min-height: auto; padding: 100px 0 80px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 780px; font-size: clamp(53px, 9vw, 76px); }
  .poster-stage { width: min(720px, 100%); min-height: 590px; margin: 0 auto; }
  .poster-one { width: 30%; height: 450px; }
  .poster-two { left: 32%; width: 34%; height: 500px; }
  .poster-three { width: 30%; height: 450px; }
  .poster-four { right: 26%; width: 25%; height: 265px; }

  .channel-heading,
  .series-heading,
  .ranking-heading { grid-template-columns: 1fr; gap: 28px; }
  .ticket-row { grid-template-columns: repeat(2, 1fr); }
  .ticket-card:nth-child(n) { display: block; grid-column: auto; }
  .ticket-card:nth-child(n) img { height: auto; aspect-ratio: 3 / 4; }
  .ticket-card:last-child { grid-column: 1 / 3; display: grid; grid-template-columns: .72fr 1fr; }
  .ticket-card:last-child img { height: 100%; aspect-ratio: auto; }

  .drama-intro { grid-column: 1 / 13; padding-right: 0; }
  .drama-feature { grid-column: 1 / 13; }
  .mini-drama-grid { grid-template-columns: repeat(2, 1fr); }
  .ranking-board { grid-template-columns: .75fr 1.25fr; gap: 28px; }
  .ranking-preview { height: 570px; }
  .ranking-list button { grid-template-columns: 46px 1fr; }
  .ranking-list small { grid-column: 2; white-space: normal; }
  .series-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > p { grid-column: 1 / 3; grid-row: 2; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  body { line-height: 1.65; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 17px; }
  .brand small { letter-spacing: .1em; }

  .hero-shell { padding: 76px 0 56px; gap: 45px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 58px); }
  .hero-lead { margin-top: 24px; font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .poster-stage { min-height: 430px; }
  .poster { border-width: 3px; }
  .poster-one { top: 25px; left: 0; width: 34%; height: 330px; }
  .poster-two { left: 31%; width: 38%; height: 370px; }
  .poster-three { top: 30px; right: 0; width: 34%; height: 330px; }
  .poster-four { right: 24%; width: 30%; height: 190px; }
  .poster-stamp { right: 0; bottom: 0; width: 148px; padding: 12px 14px; }
  .poster-stamp strong { font-size: 15px; }
  .ticker-track { justify-content: flex-start; overflow: hidden; }

  .comic-channel,
  .drama-channel,
  .ranking-section,
  .series-section,
  .watch-section { padding: 90px 0; }
  .channel-heading h2,
  .drama-intro h2,
  .ranking-heading h2,
  .series-heading h2,
  .watch-copy h2 { font-size: clamp(40px, 11vw, 52px); }
  .ticket-row { grid-template-columns: 1fr; gap: 16px; }
  .ticket-card,
  .ticket-card:last-child { display: grid; grid-template-columns: .78fr 1fr; grid-column: auto; }
  .ticket-card:nth-child(n) img { height: 100%; min-height: 310px; aspect-ratio: auto; }
  .ticket-card > div { min-height: 310px; padding: 26px 20px; }
  .ticket-card::before,
  .ticket-card::after { top: 50%; }
  .ticket-card h3 { font-size: 20px; }

  .drama-layout { display: block; }
  .drama-feature { display: block; margin-top: 45px; }
  .drama-feature figure { min-height: 270px; }
  .drama-feature > div { padding: 28px 22px; }
  .drama-feature h3 { font-size: 28px; }
  .mini-drama-grid { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .mini-drama-grid article { min-height: 230px; }
  .mini-drama-grid h3 { font-size: 15px; }

  .ranking-board { grid-template-columns: 1fr; }
  .ranking-preview { position: relative; top: auto; height: 460px; }
  .ranking-list button { min-height: 90px; }
  .ranking-list b { font-size: 20px; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 38px; }
  .series-grid article > div { min-height: 82px; padding: 14px 12px; }
  .series-grid h3 { font-size: 14px; }

  .watch-card { grid-template-columns: 1fr; gap: 30px; padding: 34px 24px; }
  .watch-mark { width: 100px; height: 100px; }
  .watch-mark img { width: 76px; height: 76px; }
  .watch-keywords { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-top > p { grid-column: auto; grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

/* The two user-supplied selection sheets stay intact on disk. Each work is
   displayed through a CSS crop so the original image is never redrawn. */
.poster-crop {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #201b17;
}

.poster-crop.source-a { aspect-ratio: 2 / 3; }
.poster-crop.source-b { aspect-ratio: 3 / 4; }

.poster-crop > img {
  position: absolute;
  display: block;
  max-width: none;
  min-height: 0;
  margin: 0;
  object-fit: fill;
  transform-origin: center;
}

.poster-crop.source-a > img { width: 400%; height: 200%; }
.crop-a-1 > img { top: 0; left: 0; }
.crop-a-2 > img { top: 0; left: -100%; }
.crop-a-3 > img { top: 0; left: -200%; }
.crop-a-4 > img { top: 0; left: -300%; }
.crop-a-5 > img { top: -100%; left: 0; }
.crop-a-6 > img { top: -100%; left: -100%; }
.crop-a-7 > img { top: -100%; left: -200%; }
.crop-a-8 > img { top: -100%; left: -300%; }

.poster-crop.source-b > img { width: 300%; height: 300%; }
.crop-b-1 > img { top: 0; left: 0; }
.crop-b-2 > img { top: 0; left: -100%; }
.crop-b-3 > img { top: 0; left: -200%; }
.crop-b-4 > img { top: -100%; left: 0; }
.crop-b-5 > img { top: -100%; left: -100%; }
.crop-b-6 > img { top: -100%; left: -200%; }
.crop-b-7 > img { top: -200%; left: 0; }
.crop-b-8 > img { top: -200%; left: -100%; }
.crop-b-9 > img { top: -200%; left: -200%; }

.poster-stage .poster {
  height: auto;
  aspect-ratio: 3 / 4;
}

.poster .poster-crop {
  height: 100%;
  aspect-ratio: auto;
}

.poster .poster-crop > img,
.ticket-card .poster-crop > img,
.drama-feature .poster-crop > img,
.mini-drama-grid .poster-crop > img,
.ranking-preview .poster-crop > img,
.series-grid .poster-crop > img {
  max-width: none;
  min-height: 0;
}

.ticket-card > .poster-crop { width: 100%; }

.drama-feature figure {
  display: grid;
  place-items: center;
  padding: 26px;
  background: #0f0d0b;
}

.drama-feature figure .poster-crop { width: min(100%, 310px); }

.mini-drama-grid article { min-height: 0; }
.mini-drama-grid .poster-crop { height: auto; }

.ranking-preview {
  height: auto;
  min-height: 0;
}

.ranking-preview .poster-crop { width: 100%; }
.ranking-preview .poster-crop.is-changing { opacity: .35; transform: scale(1.018); }

.series-grid { align-items: start; }
.series-grid .poster-crop { height: auto; }

@media (max-width: 620px) {
  .poster-stage { min-height: 390px; }
  .drama-feature figure { min-height: 0; padding: 24px; }
  .ticket-card > .poster-crop { align-self: start; }
  .ranking-preview { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
