:root {
  color-scheme: dark;
  --brand: #ff8a1f;
  --brand-soft: #ffb457;
  --brand-deep: #d9640a;
  --accent: #22c98a;
  --accent-soft: #6ee7b7;
  --link: #ffb457;

  --bg: #0b0908;
  --bg-alt: #100d0b;
  --surface: #16120f;
  --surface-2: #1d1815;
  --surface-3: #251e19;
  --line: #322820;
  --line-strong: #463829;

  --text: #f5efe9;
  --text-soft: #cbbfb4;
  --text-mute: #9a8d81;

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, .75);
  --shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(255, 138, 31, .28), 0 18px 50px -22px rgba(255, 138, 31, .45);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --wrap: 1200px;
  --header-h: 68px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --brand: #e2700c;
    --brand-soft: #b95a05;
    --brand-deep: #a44a04;
    --accent: #0f9b6c;
    --accent-soft: #0b7a55;
    --link: #b95a05;
    --bg: #fdfaf6;
    --bg-alt: #f6f0e8;
    --surface: #ffffff;
    --surface-2: #fbf6ef;
    --surface-3: #f3ece2;
    --line: #e6dccf;
    --line-strong: #d6c9b8;
    --text: #24190f;
    --text-soft: #5b4a3a;
    --text-mute: #83725f;
    --shadow-sm: 0 1px 2px rgba(58, 40, 22, .08);
    --shadow-md: 0 14px 32px -18px rgba(58, 40, 22, .3);
    --shadow-lg: 0 34px 70px -34px rgba(58, 40, 22, .35);
    --glow: 0 0 0 1px rgba(226, 112, 12, .2), 0 18px 44px -24px rgba(226, 112, 12, .35);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --brand: #e2700c;
  --brand-soft: #b95a05;
  --brand-deep: #a44a04;
  --accent: #0f9b6c;
  --accent-soft: #0b7a55;
  --link: #b95a05;
  --bg: #fdfaf6;
  --bg-alt: #f6f0e8;
  --surface: #ffffff;
  --surface-2: #fbf6ef;
  --surface-3: #f3ece2;
  --line: #e6dccf;
  --line-strong: #d6c9b8;
  --text: #24190f;
  --text-soft: #5b4a3a;
  --text-mute: #83725f;
  --shadow-sm: 0 1px 2px rgba(58, 40, 22, .08);
  --shadow-md: 0 14px 32px -18px rgba(58, 40, 22, .3);
  --shadow-lg: 0 34px 70px -34px rgba(58, 40, 22, .35);
  --glow: 0 0 0 1px rgba(226, 112, 12, .2), 0 18px 44px -24px rgba(226, 112, 12, .35);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #ff8a1f;
  --brand-soft: #ffb457;
  --brand-deep: #d9640a;
  --accent: #22c98a;
  --accent-soft: #6ee7b7;
  --link: #ffb457;
  --bg: #0b0908;
  --bg-alt: #100d0b;
  --surface: #16120f;
  --surface-2: #1d1815;
  --surface-3: #251e19;
  --line: #322820;
  --line-strong: #463829;
  --text: #f5efe9;
  --text-soft: #cbbfb4;
  --text-mute: #9a8d81;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, .75);
  --shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(255, 138, 31, .28), 0 18px 50px -22px rgba(255, 138, 31, .45);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 30rem at 16% -8%, rgba(255, 138, 31, .16), transparent 62%),
    radial-gradient(44rem 26rem at 90% 2%, rgba(34, 201, 138, .11), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  object-position: center;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: .4em;
}

:not(pre) > code {
  padding: .15em .4em;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: .9em;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: color-mix(in srgb, var(--brand) 42%, transparent);
  color: var(--text);
}

.wrap {
  width: min(var(--wrap), 100% - 2.75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--brand);
  color: #1a1005;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
  color: #1a1005;
}

.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 120;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--accent));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--wrap), 100% - 2.75rem);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.05rem;
}

.brand__sub {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.site-nav {
  margin-left: .5rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list li + li {
  margin-top: 0;
}

.site-nav__link {
  display: block;
  padding: .42rem .68rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.search {
  margin-left: auto;
  position: relative;
  flex: 0 1 260px;
}

.search__input {
  width: 100%;
  height: 38px;
  padding: 0 2.2rem 0 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  transition: border-color .2s ease, background .2s ease;
}

.search__input::placeholder {
  color: var(--text-mute);
}

.search__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.search__icon {
  position: absolute;
  left: .72rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}

.search__clear {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
}

.search.has-value .search__clear {
  display: grid;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}

.theme-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.theme-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font: inherit;
  font-size: .76rem;
  line-height: 1;
  padding: .4rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.theme-switch__btn:hover {
  color: var(--text);
}

.theme-switch__btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
  padding: clamp(1.5rem, 3.5vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

.feature-panel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.feature-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, .12) 0%, rgba(8, 6, 5, .5) 46%, rgba(8, 6, 5, .93) 100%),
    linear-gradient(90deg, rgba(8, 6, 5, .72), transparent 58%);
}

.feature-panel__body {
  padding: clamp(1.1rem, 2.4vw, 2rem);
  width: 100%;
}

.feature-panel__flag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  margin-bottom: .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #1a1005;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.feature-panel h1,
.feature-panel h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  color: #fff;
  line-height: 1.18;
}

.feature-panel h1 em,
.feature-panel h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd7a6, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-panel__desc {
  margin-top: .7rem;
  max-width: 58ch;
  color: #e2d7cc;
  font-size: .95rem;
  line-height: 1.75;
}

.feature-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
  color: #cdbfb2;
  font-size: .82rem;
}

.feature-panel__meta li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .16rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #f0e7dd;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill--score {
  border-color: rgba(255, 193, 105, .5);
  background: rgba(255, 193, 105, .16);
  color: #ffc169;
  font-weight: 800;
}

.feature-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #1a1005;
  box-shadow: var(--glow);
}

.btn--primary:hover {
  color: #1a1005;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
  color: #f4ece4;
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: #ffd7a6;
}

.btn--subs[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent-soft);
}

.btn--sm {
  padding: .5rem .95rem;
  font-size: .82rem;
}

.hero__side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(.75rem, 1.6vw, 1.1rem);
}

.side-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  isolation: isolate;
}

.side-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 6, 5, .1) 30%, rgba(8, 6, 5, .9));
}

.side-card__body {
  padding: .95rem 1rem;
  width: 100%;
}

.side-card__kicker {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand);
  text-transform: uppercase;
}

.side-card h2,
.side-card h3 {
  margin: .3rem 0 .25rem;
  font-size: 1.02rem;
  color: #fff;
}

.side-card p {
  color: #cfc2b5;
  font-size: .8rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}

.quick-stats__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .62rem .85rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.quick-stats__label {
  font-size: .8rem;
  color: var(--text-mute);
}

.quick-stats__num {
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 800;
  color: var(--brand);
}

.section {
  padding: clamp(1.75rem, 4vw, 3rem) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.section__title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.section__desc {
  width: 100%;
  color: var(--text-mute);
  font-size: .88rem;
}

.section__more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
}

.section__more:hover {
  color: var(--brand-soft);
}

.banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1080 / 300;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.3rem 1.15rem .85rem;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 4, .84));
  color: #f3ece4;
  font-size: .86rem;
  font-weight: 600;
}

.week {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  overflow: hidden;
}

.week__tabs {
  display: flex;
  gap: .3rem;
  padding: .55rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  scrollbar-width: thin;
}

.week__tab {
  flex: 0 0 auto;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.week__tab:hover {
  color: var(--brand);
}

.week__tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand);
}

.week__tab small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-mute);
}

.week__panel {
  padding: .35rem .35rem .55rem;
}

.week__panel[hidden] {
  display: none;
}

.ep-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .62rem .8rem;
  border-radius: var(--r-sm);
  transition: background .18s ease;
}

.ep-row + .ep-row {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.ep-row:hover {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
}

.ep-row__time {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand);
}

.ep-row__name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-row__sub {
  display: block;
  margin-top: .1rem;
  font-size: .76rem;
  color: var(--text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-row__tags {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .16rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 42%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.tag--warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 42%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}

.tag--brand {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.grid {
  display: grid;
  gap: clamp(.75rem, 1.6vw, 1.15rem);
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poster {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.poster:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.poster__media {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.poster:hover .poster__media img {
  transform: scale(1.05);
}

.poster__info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem .7rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 4, .9));
  color: #f6efe7;
}

.poster__title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster__meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .22rem;
  font-size: .72rem;
  color: #cdbfb2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster__score {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .12rem .42rem;
  border-radius: 999px;
  background: rgba(6, 5, 4, .76);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffc169;
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.poster__flag {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .12rem .42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #1a1005;
  font-size: .7rem;
  font-weight: 800;
}

.empty {
  display: none;
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--text-mute);
  font-size: .9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.empty.is-on {
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  box-shadow: var(--shadow-md);
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__body {
  padding: .95rem 1rem 1.1rem;
}

.card__kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
}

.card h3 {
  margin: .35rem 0 .45rem;
  font-size: 1rem;
  line-height: 1.45;
}

.card p {
  color: var(--text-soft);
  font-size: .87rem;
  line-height: 1.72;
}

.rank {
  display: grid;
  gap: .55rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: rank;
}

.rank li {
  counter-increment: rank;
  margin: 0;
}

.rank__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .68rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rank__link:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  transform: translateX(2px);
  color: var(--text);
}

.rank__link::before {
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 800;
}

.rank li:nth-child(-n + 3) .rank__link::before {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #1a1005;
}

.rank__title {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank__sub {
  display: block;
  margin-top: .1rem;
  font-size: .75rem;
  color: var(--text-mute);
}

.rank__score {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 800;
  color: var(--brand);
}

.champion {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface));
  margin-bottom: .8rem;
}

.champion__media {
  aspect-ratio: 520 / 360;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.champion__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champion__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand);
  text-transform: uppercase;
}

.champion h3 {
  margin: .3rem 0 .35rem;
  font-size: 1.15rem;
}

.champion p {
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.7;
}

.player {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.player__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060504;
  overflow: hidden;
}

.player__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .6rem;
  justify-items: center;
  background: radial-gradient(circle at center, rgba(6, 5, 4, .35), rgba(6, 5, 4, .78));
  color: #f4ece4;
  text-align: center;
  padding: 1rem;
}

.player__play {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #1a1005;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(255, 138, 31, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.player__play:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 12px rgba(255, 138, 31, .22);
}

.player__title {
  font-size: .95rem;
  font-weight: 700;
}

.player__note {
  font-size: .78rem;
  color: #c3b6a9;
}

.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .8rem;
  color: var(--text-mute);
}

.player__bar strong {
  color: var(--text);
}

.lines {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-left: auto;
}

.line-chip {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .26rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text-soft);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.line-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.line-chip[data-health="degraded"]::before {
  background: var(--warn);
}

.line-chip[data-health="down"]::before {
  background: var(--danger);
}

.line-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-3));
  color: var(--brand);
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: .4rem;
  margin-top: .8rem;
  padding: 0;
  list-style: none;
}

.episodes li {
  margin: 0;
}

.ep-btn {
  width: 100%;
  padding: .45rem .2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.ep-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  color: var(--brand);
}

.ep-btn[aria-current="true"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #1a1005;
}

.player__side {
  display: grid;
  gap: .7rem;
  align-content: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: .9rem 1rem;
}

.panel__title {
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .55rem;
}

.panel p {
  font-size: .84rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.panel p + p {
  margin-top: .45rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1.4vw, .9rem);
}

.gallery figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery figcaption {
  padding: .55rem .75rem;
  font-size: .78rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.faq {
  display: grid;
  gap: .6rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
}

.faq summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .94rem;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--brand);
  font-weight: 800;
  line-height: 1;
  transition: transform .22s ease;
}

.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--brand) 20%, var(--surface-3));
}

.faq summary:hover {
  color: var(--brand);
}

.faq__body {
  padding: 0 1rem .95rem;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.8;
}

.notice {
  display: flex;
  gap: .75rem;
  padding: .9rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.75;
}

.notice__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--brand);
  font-size: .74rem;
  font-weight: 800;
}

dialog {
  width: min(440px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(6, 5, 4, .68);
  backdrop-filter: blur(3px);
}

.dialog__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.dialog__head h2 {
  font-size: 1rem;
  margin-right: auto;
}

.dialog__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-soft);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
}

.dialog__close:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.dialog__body {
  padding: 1rem 1.1rem 1.15rem;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.dialog__body strong {
  color: var(--text);
}

.dialog__actions {
  display: flex;
  gap: .55rem;
  margin-top: .9rem;
}

.hero__intro {
  max-width: 78ch;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.hero__intro h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  letter-spacing: -.02em;
}

.hero__intro p {
  margin-top: .5rem;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.8;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__chips li {
  margin: 0;
}

.pill--solid {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-soft);
}

.btn--soft {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--soft:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.grid--play {
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: start;
}

.grid--about {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.prose-p {
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.85;
}

.prose-p + .prose-p {
  margin-top: .7rem;
}

.editor {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .9rem;
}

.editor img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.editor span {
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.dialog__hint {
  margin-top: .5rem;
  color: var(--text-mute);
  font-size: .82rem;
}

.section__head--spaced {
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 1.4rem;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.footer__brand p {
  margin-top: .7rem;
  max-width: 40ch;
  color: var(--text-mute);
  font-size: .86rem;
  line-height: 1.8;
}

.footer__title {
  margin-bottom: .7rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin: 0 0 .45rem;
}

.footer__list a {
  color: var(--text-soft);
  font-size: .86rem;
}

.footer__list a:hover {
  color: var(--brand);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: .78rem;
}

.footer__bottom code {
  font-family: var(--font-mono);
  color: var(--text-soft);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease, color .2s ease;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 124px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding-block: .5rem;
    row-gap: .5rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: .5rem .9rem 1rem;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open {
    display: block;
    animation: slideDown .22s ease both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
  }

  .site-nav__link {
    padding: .65rem .75rem;
    border-radius: var(--r-sm);
    font-size: .93rem;
  }

  .nav-toggle {
    display: block;
  }

  .search {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .header-tools {
    margin-left: auto;
  }

  .feature-panel {
    min-height: 380px;
  }

  .grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--play,
  .grid--about {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  .ep-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .5rem .6rem;
  }

  .ep-row__tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .champion {
    grid-template-columns: minmax(0, 1fr);
  }

  .champion__media {
    aspect-ratio: 16 / 9;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-switch__btn {
    padding: .4rem .46rem;
    font-size: .7rem;
  }

  .brand__sub {
    display: none;
  }
}

@media (max-width: 520px) {
  .wrap,
  .site-header__inner {
    width: min(var(--wrap), 100% - 1.6rem);
  }

  .hero__side {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--3,
  .grid--4,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player__play {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .to-top,
  .progress,
  .player__play,
  .week__tabs {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before {
    display: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
