:root {
  --ink: #111112;
  --ink-2: #1b1b1e;
  --wine: #5d5349;
  --crimson: #dfbd83;
  --gold: #e4c68f;
  --ivory: #f5f1e9;
  --muted: #b6b5b2;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.035);
  --font-display: "Georgia", "Times New Roman", "Noto Serif SC", serif;
  --font-ui:
    "Segoe UI", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 34px -18px rgba(0, 0, 0, 0.8);
  --shadow-phone: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      1100px 560px at 82% -10%,
      rgba(228, 198, 143, 0.07),
      transparent 62%
    ),
    radial-gradient(
      900px 500px at 8% 20%,
      rgba(217, 179, 107, 0.06),
      transparent 60%
    ),
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--crimson);
  color: #151515;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: rgba(246, 241, 231, 0.68);
  text-transform: uppercase;
}

.gold-text {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 10, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1288px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.brand-cn {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-en {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  color: #8f887f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.header-search {
  flex: 1;
  max-width: 310px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ivory);
  font-size: 11px;
}

.header-search input::placeholder {
  color: #7d766f;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-picker {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.language-trigger:hover,
.language-trigger.is-open {
  border-color: rgba(217, 179, 107, 0.42);
  background: rgba(217, 179, 107, 0.08);
  color: var(--ivory);
}

.language-chevron {
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}

.language-trigger.is-open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 218px;
  max-height: min(430px, calc(100vh - 88px));
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(31, 25, 30, 0.98),
    rgba(10, 8, 12, 0.99)
  );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  animation: language-menu-in 0.16s var(--ease);
}

.language-menu-label {
  display: block;
  padding: 6px 10px 8px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.language-option:hover,
.language-option.is-active {
  border-color: rgba(217, 179, 107, 0.18);
  background: rgba(217, 179, 107, 0.08);
  color: var(--ivory);
}

.language-option.is-active > svg {
  color: var(--gold);
}

.language-option-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.language-option-copy b {
  font-size: 11px;
  font-weight: 700;
}

.language-option-copy small {
  color: #736b64;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes language-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.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;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 179, 107, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--ivory);
  color: #0a070c;
  font-size: 12px;
  font-weight: 800;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 107, 0.4);
  background: linear-gradient(145deg, #2a1a20, #0e0a0d);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
}

.vip-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
}

/* Art */
.art,
.watch-stage,
.side-thumb,
.continue-thumb,
.login-visual,
.vip-banner-art {
  position: relative;
  overflow: hidden;
}

.art-a {
  background:
    radial-gradient(
      72% 58% at 76% 16%,
      rgba(228, 198, 143, 0.62),
      transparent 62%
    ),
    radial-gradient(
      64% 52% at 18% 82%,
      rgba(217, 179, 107, 0.2),
      transparent 66%
    ),
    linear-gradient(158deg, #21101a 0%, #0b070d 62%, #050407 100%);
}

.art-b {
  background:
    radial-gradient(
      70% 60% at 22% 18%,
      rgba(222, 160, 92, 0.55),
      transparent 62%
    ),
    radial-gradient(
      60% 55% at 82% 86%,
      rgba(120, 28, 58, 0.55),
      transparent 66%
    ),
    linear-gradient(160deg, #1b1110 0%, #0c080b 66%, #050407 100%);
}

.art-c {
  background:
    radial-gradient(
      70% 60% at 72% 20%,
      rgba(84, 140, 124, 0.48),
      transparent 64%
    ),
    radial-gradient(
      56% 50% at 18% 82%,
      rgba(28, 52, 74, 0.62),
      transparent 68%
    ),
    linear-gradient(160deg, #0d1719 0%, #080a0c 68%, #040407 100%);
}

.art-d {
  background:
    radial-gradient(
      70% 58% at 30% 16%,
      rgba(126, 86, 148, 0.48),
      transparent 64%
    ),
    radial-gradient(
      58% 50% at 84% 80%,
      rgba(176, 74, 88, 0.38),
      transparent 68%
    ),
    linear-gradient(160deg, #15101c 0%, #0a080d 66%, #040407 100%);
}

.fig {
  position: absolute;
  left: 64%;
  bottom: -12%;
  width: 60%;
  height: 74%;
  transform: translateX(-50%);
  filter: blur(3.5px);
  opacity: 0.96;
}

.fig::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  width: 36%;
  aspect-ratio: 0.9;
  border-radius: 50% 50% 42% 42% / 55% 55% 45% 45%;
  background: radial-gradient(
    72% 72% at 30% 26%,
    #6a3846 0%,
    #2c1720 46%,
    #0a070c 100%
  );
  box-shadow:
    -10px -6px 26px rgba(228, 198, 143, 0.46),
    inset -6px 0 12px rgba(255, 196, 156, 0.18);
}

.fig::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92%;
  height: 50%;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: radial-gradient(
    70% 60% at 36% 16%,
    #472530 0%,
    #1b0f16 58%,
    #060509 100%
  );
  box-shadow: -15px -9px 30px rgba(228, 198, 143, 0.26);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.055) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.07) 0 1px,
      transparent 1px 2px
    );
  mix-blend-mode: overlay;
}

/* Buttons */
.btn-ivory,
.btn-line,
.btn-crimson,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn-ivory {
  background: var(--ivory);
  color: #0a070c;
}

.btn-line {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-crimson {
  background: linear-gradient(135deg, #dfbd83, #b98f58);
  color: #181511;
  box-shadow: 0 14px 30px -12px rgba(228, 198, 143, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, #e8ce96, #c79a4f);
  color: #1a1206;
  box-shadow: 0 14px 30px -12px rgba(217, 179, 107, 0.4);
}

.btn-ivory:hover,
.btn-line:hover,
.btn-crimson:hover,
.btn-gold:hover {
  transform: translateY(-1px);
}

.btn-ivory:focus-visible,
.btn-line:focus-visible,
.btn-crimson:focus-visible,
.btn-gold:focus-visible,
.icon-round:focus-visible,
.poster-card:focus-visible,
.episode-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Home */
.hero {
  position: relative;
  max-width: 1240px;
  height: 560px;
  margin: 24px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}

.hero > .art {
  position: absolute;
  inset: 0;
}

.hero .fig {
  left: 72%;
  bottom: -16%;
  width: 48%;
  height: 66%;
  filter: blur(6px);
  opacity: 0.72;
}

.hero-content {
  position: absolute;
  left: 56px;
  bottom: 54px;
  width: min(580px, 54%);
  z-index: 2;
  animation: rise 0.8s var(--ease) both;
}

.hero-content h1 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 600;
  color: rgba(246, 241, 231, 0.74);
}

.stars {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.sep {
  opacity: 0.4;
}

.hero-content p {
  max-width: 460px;
  margin: 14px 0 20px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(246, 241, 231, 0.58);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #050407 0%,
      rgba(5, 4, 8, 0.88) 24%,
      rgba(5, 4, 8, 0.24) 58%,
      transparent 80%
    ),
    linear-gradient(
      180deg,
      rgba(5, 4, 8, 0.2),
      transparent 35%,
      rgba(5, 4, 8, 0.55)
    );
}

.hero-side {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.side-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(246, 241, 231, 0.6);
  line-height: 1.4;
  text-align: right;
}

.side-label b {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
}

.side-thumb {
  width: 96px;
  height: 138px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}

.side-thumb .fig,
.continue-thumb .fig {
  left: auto;
  right: 4%;
  bottom: -18%;
  width: 54%;
  height: 112%;
  transform: none;
  background: radial-gradient(
    52% 42% at 50% 30%,
    rgba(25, 20, 21, 0.92),
    rgba(8, 6, 10, 0.45) 58%,
    rgba(5, 4, 8, 0) 80%
  );
  filter: blur(9px);
}

.side-thumb .fig::before,
.side-thumb .fig::after,
.continue-thumb .fig::before,
.continue-thumb .fig::after {
  display: none;
}

.page-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-link {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.continue-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.history-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.history-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 13px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(
      80% 120% at 100% 50%,
      rgba(135, 31, 62, 0.12),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.03);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 179, 107, 0.3);
}

.history-thumb {
  position: relative;
  width: 82px;
  height: 110px;
  overflow: hidden;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
}

.history-thumb .fig {
  display: none;
}

.history-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(7, 6, 10, 0.52);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.history-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy small {
  color: #9a9085;
  font-size: 9px;
}

.history-copy .progress {
  width: 100%;
  height: 3px;
  margin-top: 5px;
}

.history-chevron {
  color: #71685f;
}

.continue-card:hover {
  border-color: rgba(217, 179, 107, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.continue-thumb {
  width: 168px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.continue-info {
  flex: 1;
  min-width: 0;
}

.continue-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.continue-sub {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.continue-play {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ivory);
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.poster-card {
  flex: 0 0 168px;
  display: block;
  transition: transform 0.25s var(--ease);
}

.poster-card:hover {
  transform: translateY(-4px);
}

.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-card);
}

.poster .fig {
  left: auto;
  right: 4%;
  bottom: -18%;
  width: 54%;
  height: 112%;
  transform: none;
  background: radial-gradient(
    52% 42% at 50% 30%,
    rgba(25, 20, 21, 0.92),
    rgba(8, 6, 10, 0.45) 58%,
    rgba(5, 4, 8, 0) 80%
  );
  filter: blur(9px);
}

.poster .fig::before,
.poster .fig::after {
  display: none;
}

.poster-gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      118deg,
      transparent 52%,
      rgba(255, 235, 220, 0.07) 60%,
      transparent 68%
    ),
    linear-gradient(180deg, transparent 46%, rgba(5, 4, 8, 0.55) 100%);
}

.poster-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 6, 10, 0.62);
  color: var(--ivory);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

.poster-rating {
  position: absolute;
  right: 9px;
  bottom: 9px;
  font-size: 9px;
  font-weight: 800;
  color: var(--gold);
}

.poster-title {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Listing */
.listing-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.listing-head h1 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
}

.listing-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-count {
  margin-left: 12px;
  color: var(--gold);
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 30px;
}

.filter-chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: #cfc7bb;
  font-size: 11px;
  font-weight: 600;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: rgba(217, 179, 107, 0.45);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 24px 18px;
}

.poster-grid .poster-card {
  width: 100%;
  flex: none;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}

/* Watch page */
.watch-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 84px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: stretch;
}

.watch-stage-wrap {
  min-height: 700px;
  padding: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 80% at 50% 50%, #0e0a10, #050407);
}

.watch-stage {
  width: min(330px, 100%);
  aspect-ratio: 9 / 16;
  max-height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-phone);
}

.watch-stage .fig {
  left: 66%;
  bottom: -12%;
  width: 58%;
  height: 76%;
  filter: blur(9px);
  opacity: 0.72;
}

.video-el {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.video-el.is-visible {
  opacity: 1;
}

.has-video.video-started .fig {
  opacity: 0.18;
}

.watch-stage .grain {
  z-index: 2;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(4, 3, 6, 0.62),
    transparent 28%,
    transparent 56%,
    rgba(4, 3, 6, 0.88)
  );
}

.stage-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-round {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 6, 10, 0.42);
  color: var(--ivory);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.stage-title {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.stage-title span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.stage-title small {
  font-size: 9px;
  color: rgba(246, 241, 231, 0.62);
}

.play-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.1);
  color: var(--ivory);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(228, 198, 143, 0.3);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.play-center.is-playing {
  opacity: 0;
}

.watch-stage:hover .play-center.is-playing {
  opacity: 1;
}

.stage-loading,
.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.stage-loading {
  color: rgba(246, 241, 231, 0.76);
  font-size: 10px;
  background: rgba(5, 4, 8, 0.45);
  backdrop-filter: blur(4px);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lock-overlay {
  color: var(--ivory);
  background: rgba(5, 4, 8, 0.76);
  backdrop-filter: blur(8px);
}

.lock-overlay > svg {
  color: var(--gold);
}

.lock-overlay h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.lock-overlay p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.lock-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-actions .btn-crimson,
.lock-actions .btn-line {
  width: 100%;
  padding: 11px 14px;
  font-size: 11px;
}

.unlock-all-link {
  margin-top: 2px;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.unlock-all-link:disabled,
.lock-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.seek-range {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.seek-range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.seek-range::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(246, 241, 231, 0.12);
}

.seek-range::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.seek-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
}

.ctrl-icon {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.stage-error {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 62px;
  z-index: 7;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(228, 198, 143, 0.4);
  border-radius: 8px;
  background: rgba(228, 198, 143, 0.12);
  color: #f0d3a0;
  font-size: 9px;
  line-height: 1.5;
}

.stage-rail {
  position: absolute;
  right: 12px;
  bottom: 100px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage-rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--ivory);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.stage-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
}

.stage-progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.stage-progress i {
  display: block;
  height: 100%;
  background: var(--ivory);
  transition: width 0.4s linear;
}

.stage-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(246, 241, 231, 0.74);
  font-size: 9px;
}

.stage-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-badge {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 3;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(8, 6, 10, 0.45);
  color: rgba(246, 241, 231, 0.64);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.watch-panel {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0a080c;
}

.watch-panel h1 {
  margin: 9px 0 9px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.watch-panel > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: #cfc7bb;
  font-size: 9px;
  font-weight: 700;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.panel-head span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.episode-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #cfc7bb;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.episode-btn.selected {
  border-color: transparent;
  background: var(--ivory);
  color: #0a070c;
}

.episode-btn.locked {
  color: #6f6862;
}

.episode-btn.locked:hover {
  border-color: rgba(217, 179, 107, 0.4);
  color: var(--gold);
}

.panel-cta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
}

.panel-cta .btn-crimson,
.panel-cta .btn-line {
  width: 100%;
}

.unlocked-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: 1px solid rgba(217, 179, 107, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panel-actions {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.panel-actions button:hover {
  color: var(--ivory);
}

/* Store */
.store-page,
.vip-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 24px 90px;
}

.store-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.store-head h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
}

.wallet-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(217, 179, 107, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #171019, #0b080d);
}

.wallet-glow {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 179, 107, 0.3),
    transparent 70%
  );
  filter: blur(8px);
}

.balance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.05;
}

.balance svg {
  color: var(--gold);
}

.wallet-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 22px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.pack-card.selected {
  border-color: rgba(217, 179, 107, 0.6);
  background: linear-gradient(
    160deg,
    rgba(217, 179, 107, 0.1),
    rgba(255, 255, 255, 0.02)
  );
}

.pack-coins {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.pack-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.pack-price {
  margin-top: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.pack-best {
  position: absolute;
  top: -8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e8ce96, #c79a4f);
  color: #1a1206;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pay-section {
  margin-top: 34px;
}

.section-note {
  color: var(--muted);
  font-size: 9px;
}

.pay-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: #cfc7bb;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pay-method.active {
  border-color: rgba(217, 179, 107, 0.6);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold);
}

.fine-print {
  margin: 16px 0 0;
  color: #6f6862;
  font-size: 9px;
  line-height: 1.7;
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checkout-summary span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-summary strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ivory);
}

.checkout-btn {
  min-width: 180px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.form-message.success {
  border-color: rgba(84, 180, 140, 0.4);
  background: rgba(84, 180, 140, 0.08);
  color: #9fe0c4;
}

.form-message.error {
  border-color: rgba(228, 198, 143, 0.4);
  background: rgba(228, 198, 143, 0.08);
  color: #f0d3a0;
}

/* VIP */
.vip-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  border: 1px solid rgba(217, 179, 107, 0.26);
  border-radius: var(--radius-lg);
  background: #0c090e;
}

.vip-banner-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
}

.vip-banner-art .fig {
  left: 55%;
  bottom: -10%;
  width: 64%;
  height: 86%;
  filter: blur(6px);
  opacity: 0.78;
}

.vip-banner-glow {
  position: absolute;
  right: -60px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 179, 107, 0.2),
    transparent 70%
  );
  filter: blur(14px);
}

.vip-banner-copy {
  position: relative;
  z-index: 2;
  padding: 40px 44px;
  width: 58%;
}

.vip-word {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #f1dfb8, #c79a4f 60%, #8e6a2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vip-banner-copy p {
  margin: 0 0 18px;
  color: rgba(246, 241, 231, 0.64);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.vip-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.vip-price strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
}

.vip-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.vip-columns h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.vip-benefits {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.benefit-row svg {
  margin-top: 2px;
  color: var(--gold);
  flex: 0 0 auto;
}

.benefit-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-row b {
  font-size: 12px;
  font-weight: 700;
}

.benefit-row span {
  color: var(--muted);
  font-size: 10px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-plan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
  text-align: left;
  cursor: pointer;
}

.vip-plan.selected {
  border-color: rgba(217, 179, 107, 0.65);
  background: rgba(217, 179, 107, 0.08);
}

.vip-plan div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vip-plan b {
  font-size: 13px;
}

.vip-plan span {
  color: var(--muted);
  font-size: 9px;
}

.plan-price {
  align-items: flex-end;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}

.plan-best {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e8ce96, #c79a4f);
  color: #1a1206;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.vip-plan .plan-best {
  color: #1a1206;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.plan-check {
  color: var(--gold);
}

.vip-checkout {
  width: 100%;
  margin-top: 16px;
}

/* Login */
.login-page {
  max-width: 1160px;
  min-height: 640px;
  margin: 32px auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0a080c;
}

.login-visual {
  min-height: 640px;
}

.login-visual .fig {
  left: 58%;
  bottom: -8%;
  width: 64%;
  height: 82%;
  filter: blur(8px);
  opacity: 0.75;
}

.login-visual-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 3, 6, 0.3),
    transparent 35%,
    rgba(4, 3, 6, 0.82)
  );
}

.login-mark {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
  z-index: 2;
}

.login-mark h2 {
  margin: 12px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: 0.98;
}

.login-mark h2 em {
  font-style: italic;
  color: var(--gold);
}

.login-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 241, 231, 0.7);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-panel {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.login-panel h1 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
}

.login-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: #cfc7bb;
  font-size: 10px;
  font-weight: 700;
}

.field-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.field-input:focus-within {
  border-color: rgba(217, 179, 107, 0.5);
}

.field-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ivory);
  font-size: 12px;
}

.field-eye {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
}

.demo-hint {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 9px;
}

.demo-hint span {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-hint code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-size: 9px;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 4, 8, 0.6);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 30px;
}

.footer-cn {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.footer-en {
  margin-left: 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 10px;
}

.footer-col a:hover {
  color: var(--ivory);
}

.lang-row {
  display: flex;
  gap: 8px;
}

.lang-row span,
.lang-row button {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.lang-row span.active,
.lang-row button.active {
  border-color: rgba(217, 179, 107, 0.4);
  color: var(--gold);
}

.lang-row button:hover {
  border-color: rgba(217, 179, 107, 0.32);
  color: var(--ivory);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  justify-content: space-between;
  color: #6f6862;
  font-size: 9px;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 42px 0 4px;
}

.pagination-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 750;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.pagination-button:hover {
  border-color: rgba(217, 179, 107, 0.34);
  background: rgba(217, 179, 107, 0.07);
  transform: translateY(-1px);
}

.pagination-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.pagination-button.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination-status {
  min-width: 58px;
  color: #8e847a;
  text-align: center;
  font-size: 10px;
  font-weight: 750;
}

html[data-theme="light"] .pagination-button {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 252, 247, 0.72);
  color: #211a18;
}

html[data-theme="light"] .pagination-button:hover {
  border-color: rgba(149, 97, 28, 0.3);
  background: rgba(149, 97, 28, 0.07);
}

html[data-theme="light"] .pagination-status {
  color: #81756a;
}

@media (max-width: 640px) {
  .pagination {
    width: 100%;
    gap: 7px;
    margin-top: 34px;
  }

  .pagination-button {
    flex: 1;
    min-height: 42px;
  }

  .pagination-status {
    min-width: 48px;
  }
}

.listing-page {
  padding-top: 28px;
}

.listing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.listing-controls .filter-row {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.listing-result-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #8d8278;
  font-size: 10px;
  white-space: nowrap;
}

.listing-result-count b {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

html[data-theme="light"] .listing-result-count {
  color: #81756a;
}

html[data-theme="light"] .listing-result-count b {
  color: #95611c;
}

@media (max-width: 640px) {
  .listing-page {
    padding-top: 20px;
  }

  .listing-controls {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 11px;
    margin-bottom: 22px;
  }

  .listing-result-count {
    padding-left: 3px;
  }
}

.account-picker {
  position: relative;
}

.avatar-mini.is-open {
  border-color: rgba(217, 179, 107, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(217, 179, 107, 0.08);
}

.account-menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 90;
  width: min(272px, calc(100vw - 32px));
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(
      100% 70% at 100% 0%,
      rgba(140, 104, 60, 0.16),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(29, 23, 29, 0.99), rgba(9, 8, 12, 0.99));
  box-shadow:
    0 26px 60px -24px rgba(0, 0, 0, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
  animation: account-menu-in 0.18s var(--ease);
}

@keyframes account-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 13px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 179, 107, 0.18);
  border-radius: 12px;
  background: rgba(217, 179, 107, 0.07);
  color: var(--gold);
}

.account-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-summary strong,
.account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary strong {
  color: var(--ivory);
  font-size: 12px;
  font-weight: 750;
}

.account-summary small {
  color: #877d73;
  font-size: 9px;
}

.account-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 3px 8px;
  padding: 10px 11px;
  border: 1px solid rgba(217, 179, 107, 0.13);
  border-radius: 12px;
  background: rgba(217, 179, 107, 0.055);
}

.account-balance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a99d91;
  font-size: 9px;
  font-weight: 700;
}

.account-balance span svg {
  color: var(--gold);
}

.account-balance b {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.account-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.account-links a,
.account-logout {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a49a90;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.account-links a:hover,
.account-logout:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ivory);
}

.account-links a:focus-visible,
.account-logout:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}

.account-logout {
  width: 100%;
  margin-top: 5px;
  color: #dcc08b;
}

.account-logout:hover {
  background: rgba(214, 174, 114, 0.08);
  color: #f2d8aa;
}

html[data-theme="light"] .account-menu {
  border-color: rgba(49, 37, 31, 0.11);
  background:
    radial-gradient(
      100% 70% at 100% 0%,
      rgba(196, 158, 98, 0.08),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(255, 253, 249, 0.99), #f4ede3);
  box-shadow:
    0 24px 54px -26px rgba(75, 51, 36, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .account-avatar {
  border-color: rgba(149, 97, 28, 0.17);
  background: rgba(149, 97, 28, 0.065);
  color: #95611c;
}

html[data-theme="light"] .account-summary strong {
  color: #211a18;
}

html[data-theme="light"] .account-summary small,
html[data-theme="light"] .account-balance span,
html[data-theme="light"] .account-links a {
  color: #81756a;
}

html[data-theme="light"] .account-balance {
  border-color: rgba(149, 97, 28, 0.13);
  background: rgba(149, 97, 28, 0.055);
}

html[data-theme="light"] .account-links {
  border-color: rgba(49, 37, 31, 0.08);
}

html[data-theme="light"] .account-links a:hover {
  background: rgba(49, 37, 31, 0.05);
  color: #211a18;
}

html[data-theme="light"] .account-logout {
  color: #c8a26a;
}

html[data-theme="light"] .account-logout:hover {
  background: rgba(208, 173, 116, 0.07);
  color: #b98f58;
}

@media (max-width: 640px) {
  .account-menu {
    position: fixed;
    top: 64px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-menu {
    animation: none;
  }
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #211a18;
  color: #fffaf3;
  font-size: 11px;
  font-weight: 750;
  transform: translate(-50%, calc(-100% - 20px));
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  transform: translate(-50%, 0);
}

#main-content:focus {
  outline: none;
}

.not-found-page .system-error-icon {
  background: rgba(217, 179, 107, 0.075);
  border-color: rgba(217, 179, 107, 0.22);
  color: var(--gold);
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(10, 7, 12, 0.28);
  color: rgba(255, 250, 243, 0.7);
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(9px);
}

.hero-tags .hero-original {
  border-color: rgba(224, 180, 103, 0.24);
  background: rgba(217, 179, 107, 0.09);
  color: #e6c17d;
}

.poster-card {
  --poster-card-width: 188px;
  width: var(--poster-card-width);
  min-width: var(--poster-card-width);
  max-width: var(--poster-card-width);
  flex: 0 0 var(--poster-card-width);
  min-inline-size: 0;
}

.poster-card .poster-title,
.poster-card .poster-sub {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.poster-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.poster-cover.is-loaded {
  opacity: 1;
}

.poster-gloss {
  z-index: 2;
}

.poster-rank,
.poster-badge,
.poster-rating,
.poster-play,
.poster-episode-pill {
  z-index: 3;
}

.poster-grid .poster-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

@media (max-width: 640px) {
  .poster-card {
    --poster-card-width: 148px;
  }
}

.playback-speed {
  height: 22px;
  padding: 0 3px;
  border: 0;
  border-radius: 5px;
  background: rgba(7, 6, 10, 0.48);
  color: #fffaf3;
  font-size: 8px;
  font-weight: 750;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}

.playback-speed:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.next-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background:
    radial-gradient(
      85% 120% at 100% 50%,
      rgba(190, 154, 98, 0.11),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.03);
}

.next-up-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.next-up-copy span {
  color: #8e8379;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.next-up-copy strong {
  color: var(--ivory);
  font-size: 12px;
  font-weight: 750;
}

.next-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ivory);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.next-up-button:hover {
  border-color: rgba(217, 179, 107, 0.34);
  background: rgba(217, 179, 107, 0.07);
}

.auto-next {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8f847a;
  font-size: 9px;
  cursor: pointer;
}

.auto-next input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--crimson);
}

.next-up-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

html[data-theme="light"] .next-up {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      85% 120% at 100% 50%,
      rgba(202, 160, 100, 0.065),
      transparent 58%
    ),
    rgba(255, 252, 247, 0.68);
}

html[data-theme="light"] .next-up-copy strong {
  color: #211a18;
}

html[data-theme="light"] .next-up-button {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.72);
  color: #211a18;
}

html[data-theme="light"] .auto-next {
  color: #81756a;
}

@media (max-width: 640px) {
  .next-up {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .playback-speed {
    height: 24px;
  }
}

html[data-theme="light"] .not-found-page .system-error-icon {
  background: rgba(149, 97, 28, 0.075);
  border-color: rgba(149, 97, 28, 0.2);
  color: #95611c;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero {
    height: 500px;
    margin-left: 24px;
    margin-right: 24px;
  }

  .hero-content {
    left: 42px;
    bottom: 42px;
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-stage-wrap {
    min-height: 640px;
  }

  .wallet-row {
    grid-template-columns: 1fr;
  }

  .vip-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-page {
    grid-template-columns: 1fr;
    margin: 24px;
  }

  .login-visual {
    min-height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 14px;
  }

  .header-search {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 18px;
    background: rgba(7, 6, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .hero {
    height: 460px;
  }

  .hero-content {
    width: min(520px, 76%);
  }

  .hero-side {
    right: 28px;
    bottom: 28px;
  }

  .side-thumb {
    width: 78px;
    height: 112px;
  }

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

  .vip-banner {
    height: auto;
    min-height: 300px;
  }

  .vip-banner-copy {
    width: 100%;
    padding: 32px;
  }

  .vip-banner-art {
    opacity: 0.55;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .login-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    justify-content: center;
    font-size: 0;
  }

  .login-btn svg {
    width: 16px;
    height: 16px;
  }

  .coin-pill {
    padding: 6px 9px;
    font-size: 11px;
  }

  .brand-cn {
    font-size: 23px;
  }

  .brand-en {
    display: none;
  }

  .vip-mini {
    display: none;
  }

  .hero {
    height: 430px;
    margin: 16px 16px 0;
    border-radius: 20px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 28px;
    width: auto;
  }

  .hero-content h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-content p {
    display: none;
  }

  .hero-side {
    display: none;
  }

  .hero-actions .btn-ivory,
  .hero-actions .btn-line {
    padding: 11px 17px;
    font-size: 11px;
  }

  .page-content,
  .listing-page,
  .watch-page,
  .store-page,
  .vip-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    margin-top: 32px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .continue-thumb {
    width: 120px;
    height: 84px;
  }

  .continue-title {
    font-size: 19px;
  }

  .poster-card {
    flex-basis: 142px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .poster-title {
    font-size: 16px;
  }

  .listing-head {
    padding-top: 8px;
  }

  .watch-stage-wrap {
    min-height: 0;
    padding: 16px;
  }

  .watch-stage {
    width: min(300px, 100%);
  }

  .watch-panel {
    padding: 22px;
  }

  .episode-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .store-head h1 {
    font-size: 34px;
  }

  .balance {
    font-size: 46px;
  }

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

  .checkout-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-btn {
    width: 100%;
  }

  .vip-word {
    font-size: 58px;
  }

  .login-page {
    margin: 16px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .login-visual {
    min-height: 220px;
  }

  .login-mark {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .login-mark h2 {
    font-size: 40px;
  }

  .login-panel {
    padding: 32px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Library */
.library-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.library-head h1 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
}

.library-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.library-tabs {
  display: flex;
  gap: 4px;
}

.library-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.library-tabs button.active {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.library-tabs button span {
  color: var(--gold);
  font-size: 9px;
}

.library-toolbar > .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}

.library-item:hover {
  border-color: rgba(217, 179, 107, 0.35);
}

.library-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 142px;
  height: 92px;
  overflow: hidden;
  border-radius: 11px;
}

.library-copy {
  flex: 1;
  min-width: 0;
}

.library-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.library-sub {
  margin: 4px 0 11px;
  color: var(--muted);
  font-size: 10px;
}

.library-progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.library-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.library-play {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.library-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.library-empty-icon {
  color: var(--gold);
}

.library-empty h1,
.library-empty h2 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.library-empty p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.library-loading {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 640px) {
  .library-page {
    padding: 30px 16px 70px;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-tabs {
    width: 100%;
  }

  .library-tabs button {
    flex: 1;
    justify-content: center;
  }

  .library-thumb {
    width: 108px;
    height: 76px;
  }
}

/* Streaming discovery refresh */
body {
  background:
    radial-gradient(
      1100px 620px at 78% -14%,
      rgba(228, 198, 143, 0.07),
      transparent 62%
    ),
    radial-gradient(
      900px 560px at 4% 24%,
      rgba(197, 143, 76, 0.06),
      transparent 64%
    ),
    #111112;
}

.site-header {
  background: rgba(8, 7, 10, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.065);
}

.header-inner {
  max-width: 1328px;
  padding: 12px 24px;
  gap: 20px;
}

.brand-cn {
  font-size: 29px;
}

.brand-en {
  color: #b4a99a;
}

.main-nav {
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.main-nav a {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: #938b81;
}

.main-nav a:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
  color: #151515;
  background: var(--gold);
  border: 0;
}

.header-search {
  max-width: 340px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.coin-pill,
.login-btn,
.vip-mini,
.language-trigger {
  min-height: 34px;
}

.hero--streaming {
  max-width: 1328px;
  width: calc(100% - 48px);
  height: 560px;
  margin: 18px auto 0;
  display: flex;
  align-items: flex-end;
  padding: 52px;
  border-radius: 32px;
  background: #111112;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center 28%;
  background-size: cover;
  transform: scale(1.015);
}

.hero--streaming .grain {
  z-index: -2;
}

.hero--streaming .vignette {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #060508 0%,
      rgba(6, 5, 8, 0.94) 28%,
      rgba(6, 5, 8, 0.48) 58%,
      rgba(6, 5, 8, 0.1) 100%
    ),
    linear-gradient(0deg, rgba(6, 5, 8, 0.94) 0%, transparent 48%),
    linear-gradient(180deg, rgba(6, 5, 8, 0.38), transparent 28%);
}

.hero-art.has-cover .fig,
.hero-poster.has-cover .fig,
.poster.has-cover .fig,
.continue-thumb.has-cover .fig {
  display: none;
}

.hero--streaming .hero-content {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(620px, calc(100% - 250px));
  z-index: 3;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(246, 241, 231, 0.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(12, 9, 14, 0.4);
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e4c68f;
  box-shadow:
    0 0 0 4px rgba(228, 198, 143, 0.13),
    0 0 16px rgba(228, 198, 143, 0.68);
}

.hero--streaming .hero-content h1 {
  max-width: 680px;
  margin: 16px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-weight: 800;
}

.hero--streaming .hero-meta {
  gap: 10px;
  color: rgba(246, 241, 231, 0.74);
  font-size: 11px;
}

.hero--streaming .hero-content > p {
  display: -webkit-box;
  max-width: 560px;
  margin: 14px 0 20px;
  overflow: hidden;
  color: rgba(246, 241, 231, 0.66);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero--streaming .hero-actions {
  align-items: center;
  gap: 9px;
}

.btn-hero-play {
  padding: 13px 24px;
  color: #181511;
  background: linear-gradient(135deg, #e8c687, #b98f58);
  box-shadow: 0 16px 38px -15px rgba(223, 189, 131, 0.75);
}

.hero-progress {
  width: min(360px, 72%);
  display: grid;
  grid-template-columns: auto minmax(50px, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: rgba(246, 241, 231, 0.52);
  font-size: 9px;
  font-weight: 700;
}

.hero-progress > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-progress > i {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-progress > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4c68f, #e7bf78);
}

.hero-poster {
  position: absolute;
  right: 48px;
  top: 50%;
  z-index: 3;
  width: 194px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.95);
  transform: translateY(-48%) rotate(2deg);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.hero-poster:hover {
  border-color: rgba(217, 179, 107, 0.55);
  transform: translateY(-50%) rotate(0) scale(1.025);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 4, 8, 0.9) 100%);
}

.hero-poster .fig {
  left: 62%;
  bottom: -18%;
  width: 78%;
  height: 112%;
  filter: blur(8px);
}

.hero-poster-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-poster-copy > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero-poster-copy > strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-poster-copy > small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(246, 241, 231, 0.62);
  font-size: 9px;
}

.discover-bar {
  position: relative;
  z-index: 4;
  max-width: 1328px;
  width: calc(100% - 48px);
  min-height: 58px;
  margin: 14px auto 0;
  padding: 9px 12px 9px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(18, 14, 20, 0.72);
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.discover-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-right: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.discover-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.discover-links::-webkit-scrollbar {
  display: none;
}

.discover-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #b0a79c;
  font-size: 10px;
  font-weight: 700;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.discover-links a:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.055);
}

.discover-links a:first-child {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.075);
}

.discover-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 10px;
  color: #91887e;
  font-size: 9px;
  font-weight: 700;
}

.discover-more:hover {
  color: var(--gold);
}

.page-content {
  max-width: 1328px;
  padding: 0 24px 94px;
}

.section {
  margin-top: 52px;
}

.continue-section {
  margin-top: 38px;
}

.section-head {
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-kicker {
  color: #8d8277;
  font-size: 8px;
}

.section-kicker svg {
  color: #d9b36b;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding-bottom: 3px;
}

.continue-card {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  gap: 22px;
  padding: 12px 22px 12px 12px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 22px;
  background:
    radial-gradient(
      80% 140% at 100% 50%,
      rgba(140, 104, 60, 0.15),
      transparent 58%
    ),
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );
}

.continue-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 320px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(228, 198, 143, 0.13),
    transparent 68%
  );
  pointer-events: none;
}

.continue-thumb {
  width: 142px;
  height: 178px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
}

.continue-thumb .fig {
  width: 72%;
  height: 100%;
}

.continue-thumb .continue-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(8, 6, 10, 0.58);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.continue-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}

.continue-now {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.continue-title {
  margin: 7px 0 5px;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.continue-sub {
  margin-bottom: 15px;
}

.continue-info .progress {
  width: min(440px, 100%);
  height: 4px;
}

.continue-next {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #cfc6bb;
  font-size: 10px;
  font-weight: 700;
}

.rail {
  gap: 21px;
  padding: 4px 2px 10px;
}

.poster-card {
  flex-basis: 188px;
}

.poster-card:hover {
  transform: translateY(-5px);
}

.poster {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 34px -21px rgba(0, 0, 0, 0.9);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.poster-card:hover .poster {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.96);
}

.poster .fig {
  right: -12%;
  bottom: -9%;
  width: 96%;
  height: 102%;
  filter: blur(2.5px);
  opacity: 0.88;
}

.poster .fig::before {
  display: block;
  top: 5%;
  width: 32%;
  background: radial-gradient(
    72% 72% at 30% 24%,
    rgba(93, 83, 73, 0.96) 0%,
    rgba(25, 20, 21, 0.98) 48%,
    rgba(8, 6, 10, 0.98) 100%
  );
  box-shadow:
    -9px -5px 24px rgba(228, 198, 143, 0.34),
    inset -7px 0 12px rgba(255, 196, 156, 0.12);
}

.poster .fig::after {
  display: block;
  width: 94%;
  height: 54%;
  background: radial-gradient(
    68% 64% at 36% 12%,
    rgba(58, 51, 45, 0.96) 0%,
    rgba(25, 20, 21, 0.98) 58%,
    rgba(6, 5, 9, 0.99) 100%
  );
  box-shadow: -14px -7px 26px rgba(228, 198, 143, 0.18);
}

.poster-gloss {
  background:
    linear-gradient(180deg, rgba(5, 4, 8, 0.02) 30%, rgba(5, 4, 8, 0.78) 100%),
    linear-gradient(
      118deg,
      transparent 54%,
      rgba(255, 235, 220, 0.055) 64%,
      transparent 73%
    );
}

.poster-rank {
  position: absolute;
  left: 10px;
  top: 7px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.93);
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

.ranked-card .poster-badge {
  left: auto;
  right: 9px;
}

.poster-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(228, 198, 143, 0.9);
  color: #151515;
  font-size: 7px;
  font-weight: 700;
}

.poster-like-count {
  position: absolute;
  top: 34px;
  right: 9px;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.68);
  color: #efc5a1;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.poster-rating {
  right: 10px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.52);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 6, 10, 0.52);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.9);
  backdrop-filter: blur(10px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.poster-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-episode-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.55);
  color: rgba(246, 241, 231, 0.82);
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.poster-title {
  margin-top: 11px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.poster-sub {
  margin-top: 4px;
  color: #91887e;
}

.listing-page {
  max-width: 1328px;
  padding: 46px 24px 94px;
}

.listing-head {
  position: relative;
}

.listing-head::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.11),
    transparent 72%
  );
}

.listing-head h1 {
  font-family: var(--font-ui);
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.filter-row {
  gap: 7px;
  margin: 22px 0 30px;
}

.filter-chip {
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.025);
}

.filter-chip:hover,
.filter-chip.active {
  color: #151515;
  border-color: var(--gold);
  background: var(--gold);
}

.poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 28px 20px;
}

@media (max-width: 1080px) {
  .hero--streaming {
    height: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 42px;
  }

  .hero-poster {
    right: 34px;
    width: 164px;
  }

  .hero--streaming .hero-content {
    width: min(610px, calc(100% - 205px));
  }

  .discover-bar {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 860px) {
  .hero--streaming {
    height: 500px;
  }

  .hero--streaming .hero-content {
    width: min(540px, calc(100% - 150px));
  }

  .hero--streaming .hero-content h1 {
    font-size: clamp(40px, 7vw, 58px);
  }

  .hero-poster {
    right: 25px;
    width: 138px;
    opacity: 0.9;
  }

  .discover-label {
    display: none;
  }

  .continue-card {
    grid-template-columns: 122px minmax(0, 1fr) auto;
  }

  .continue-thumb {
    width: 122px;
    height: 154px;
  }

  .history-rail {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .history-rail::-webkit-scrollbar {
    display: none;
  }

  .history-card {
    flex: 0 0 286px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 11px 15px;
    min-width: 0;
  }

  .brand {
    flex: 0 0 auto;
  }

  .header-actions {
    min-width: 0;
  }

  .header-actions .language-picker {
    display: none;
  }

  .main-nav {
    padding: 0;
    background: transparent;
  }

  .main-nav.is-open {
    padding: 10px 16px 16px;
    background: rgba(8, 7, 10, 0.98);
  }

  .main-nav.is-open a {
    border-radius: 12px;
  }

  .brand-cn {
    font-size: 25px;
  }

  .hero--streaming {
    width: 100%;
    height: 570px;
    margin: 0;
    padding: 26px 20px 30px;
    border-width: 0 0 1px;
    border-radius: 0 0 28px 28px;
  }

  .hero-art {
    background-position: 60% center;
  }

  .hero--streaming .vignette {
    background:
      linear-gradient(
        0deg,
        #07060a 0%,
        rgba(7, 6, 10, 0.88) 28%,
        rgba(7, 6, 10, 0.2) 72%
      ),
      linear-gradient(180deg, rgba(7, 6, 10, 0.45), transparent 28%);
  }

  .hero--streaming .hero-content {
    width: 100%;
  }

  .hero--streaming .hero-content h1 {
    max-width: 92%;
    margin-top: 14px;
    font-size: clamp(36px, 10vw, 47px);
    line-height: 0.96;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero--streaming .hero-content > p {
    max-width: 92%;
    margin: 13px 0 18px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .hero-poster {
    display: none;
  }

  .hero-progress {
    width: 100%;
    margin-top: 16px;
  }

  .btn-hero-play {
    padding: 12px 20px;
  }

  .discover-bar {
    width: calc(100% - 24px);
    min-height: 52px;
    margin: 11px auto 0;
    padding: 7px 8px;
    border-radius: 16px;
  }

  .discover-links a {
    padding: 8px 10px;
  }

  .discover-more {
    display: none;
  }

  .page-content,
  .listing-page {
    padding-left: 15px;
    padding-right: 15px;
  }

  .continue-section {
    margin-top: 34px;
  }

  .section {
    margin-top: 42px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .continue-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 15px;
    padding: 10px;
    border-radius: 18px;
  }

  .history-card {
    flex-basis: 274px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .history-thumb {
    width: 76px;
    height: 102px;
  }

  .continue-thumb {
    width: 104px;
    height: 142px;
  }

  .continue-title {
    margin-top: 5px;
    font-size: 20px;
  }

  .continue-next {
    display: none;
  }

  .poster-card {
    flex-basis: 148px;
  }

  .rail {
    gap: 15px;
  }

  .poster-title {
    font-size: 15px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 12px;
  }

  .listing-page {
    padding-top: 28px;
  }

  .listing-head h1 {
    font-size: 38px;
  }

  .filter-row {
    margin-top: 18px;
  }
}

/* Immersive secondary pages */
.btn-crimson {
  border-color: transparent;
  background: linear-gradient(135deg, #e8c687, #b98f58);
  color: #181511;
  box-shadow: 0 16px 38px -15px rgba(223, 189, 131, 0.68);
}

.btn-line {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.watch-page {
  position: relative;
  max-width: 1328px;
  padding: 28px 24px 88px;
  isolation: isolate;
}

.watch-ambient {
  position: absolute;
  z-index: -1;
  top: -100px;
  left: 5%;
  width: 70%;
  height: 580px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 45% 50%,
      rgba(126, 94, 54, 0.22),
      transparent 60%
    ),
    radial-gradient(
      circle at 75% 35%,
      rgba(216, 164, 99, 0.08),
      transparent 52%
    );
  filter: blur(30px);
  pointer-events: none;
}

.watch-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
}

.watch-stage-wrap {
  position: relative;
  min-height: 738px;
  padding: 32px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 30px;
  background:
    radial-gradient(72% 70% at 50% 44%, rgba(93, 70, 45, 0.2), transparent 60%),
    radial-gradient(
      54% 44% at 50% 100%,
      rgba(217, 179, 107, 0.06),
      transparent 68%
    ),
    linear-gradient(165deg, #0e0b11, #07060a 72%);
}

.watch-stage-wrap::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 23px;
  pointer-events: none;
}

.watch-stage {
  width: min(354px, 100%);
  max-height: 674px;
  border-color: rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 64px 100px -42px rgba(0, 0, 0, 0.98),
    0 0 0 7px rgba(255, 255, 255, 0.025);
}

.watch-stage.has-cover .fig {
  opacity: 0;
}

.watch-stage .stage-vignette {
  background:
    linear-gradient(180deg, rgba(4, 3, 6, 0.62), transparent 25%),
    linear-gradient(0deg, rgba(4, 3, 6, 0.92), transparent 38%);
}

.watch-panel {
  min-width: 0;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 30px;
  background:
    radial-gradient(
      100% 65% at 100% 0%,
      rgba(126, 94, 54, 0.12),
      transparent 55%
    ),
    linear-gradient(160deg, rgba(21, 16, 23, 0.96), rgba(9, 8, 12, 0.98));
}

.watch-title-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watch-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(217, 179, 107, 0.15);
  border-radius: 999px;
  background: rgba(217, 179, 107, 0.06);
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.watch-panel h1 {
  margin: 11px 0 7px;
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.watch-episode-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  color: #9f958a;
  font-size: 9px;
}

.watch-episode-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.watch-episode-line span:first-child {
  border-color: rgba(223, 189, 131, 0.26);
  background: rgba(223, 189, 131, 0.08);
  color: #f6e7c9;
}

.watch-panel > p {
  display: -webkit-box;
  margin-bottom: 15px;
  overflow: hidden;
  color: #a79e94;
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  padding: 5px 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #b5aca1;
}

.panel-head {
  margin: 24px 0 12px;
  font-size: 12px;
}

.episode-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.episode-btn {
  position: relative;
  height: 41px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.episode-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ivory);
}

.episode-btn.selected {
  background: linear-gradient(135deg, #e8c687, #b98f58);
  box-shadow: 0 10px 24px -13px rgba(223, 189, 131, 0.8);
  color: #181511;
}

.episode-btn.locked {
  color: #756e68;
}

.panel-cta {
  gap: 9px;
  margin-top: 23px;
}

.panel-cta .btn-crimson,
.panel-cta .btn-line {
  min-height: 44px;
  border-radius: 13px;
}

.unlocked-pill {
  min-height: 44px;
  border-color: rgba(217, 179, 107, 0.22);
  border-radius: 13px;
  background: rgba(217, 179, 107, 0.06);
}

.panel-actions {
  margin-top: 22px;
  padding-top: 18px;
}

.stage-rail button.is-active {
  color: var(--gold);
}

.panel-actions button.is-active {
  color: var(--gold);
}

.stage-rail button:disabled,
.panel-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.store-page,
.vip-page {
  max-width: 1328px;
  padding: 42px 24px 96px;
}

.store-head {
  margin-bottom: 28px;
}

.store-head .icon-round {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.store-head h1 {
  margin-top: 5px;
  font-family: var(--font-ui);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.wallet-row {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.wallet-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border-color: rgba(217, 179, 107, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%) 0
      0 / 18px 18px,
    radial-gradient(
      95% 85% at 100% 0%,
      rgba(220, 172, 92, 0.2),
      transparent 52%
    ),
    linear-gradient(145deg, #171119, #09080c);
  box-shadow: 0 26px 54px -28px rgba(0, 0, 0, 0.95);
}

.wallet-card::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: 25px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(217, 179, 107, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(217, 179, 107, 0.025),
    0 0 0 26px rgba(217, 179, 107, 0.016);
}

.wallet-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.balance {
  position: relative;
  z-index: 1;
  margin-top: 19px;
  font-family: var(--font-ui);
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.balance svg {
  width: 24px;
  height: 24px;
}

.wallet-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  color: #9d9388;
}

.pack-grid {
  gap: 13px;
}

.pack-card {
  min-height: 230px;
  padding: 24px 13px;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background:
    radial-gradient(
      80% 70% at 50% 4%,
      rgba(255, 255, 255, 0.055),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.025);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.pack-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.pack-card.selected {
  border-color: rgba(234, 198, 128, 0.65);
  background:
    radial-gradient(
      80% 70% at 50% 0%,
      rgba(220, 174, 92, 0.2),
      transparent 58%
    ),
    linear-gradient(
      160deg,
      rgba(217, 179, 107, 0.085),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow: inset 0 0 0 1px rgba(217, 179, 107, 0.06);
}

.pack-coins {
  font-family: var(--font-ui);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.pack-label {
  margin-top: 4px;
}

.pack-price {
  margin-top: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 179, 107, 0.15);
  border-radius: 999px;
  background: rgba(217, 179, 107, 0.06);
  font-size: 12px;
}

.pack-selected {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  color: #100d12;
}

.pack-best {
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
}

.pay-shell {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.024);
}

.pay-shell .section-head {
  align-items: center;
  margin-bottom: 15px;
}

.pay-shell .section-head h2 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pay-methods {
  gap: 9px;
}

.pay-method {
  min-height: 44px;
  padding: 10px 17px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.pay-method.active {
  border-color: rgba(217, 179, 107, 0.45);
  background: rgba(217, 179, 107, 0.08);
}

.checkout-bar {
  margin-top: 18px;
  padding: 18px 20px 18px 24px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(
      60% 120% at 0% 50%,
      rgba(126, 94, 54, 0.13),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.03);
}

.checkout-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkout-summary > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checkout-summary small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #9b9186;
  font-size: 9px;
}

.checkout-summary strong {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.checkout-btn {
  min-width: 210px;
  min-height: 46px;
  border-radius: 13px;
}

.vip-banner {
  height: 370px;
  border-color: rgba(217, 179, 107, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(
      60% 95% at 88% 12%,
      rgba(217, 179, 107, 0.2),
      transparent 58%
    ),
    linear-gradient(140deg, #181018, #08070b 70%);
}

.vip-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.045), transparent 26%),
    repeating-linear-gradient(
      135deg,
      transparent 0 26px,
      rgba(255, 255, 255, 0.012) 26px 27px
    );
  pointer-events: none;
}

.vip-banner-copy {
  width: 64%;
  padding: 43px 46px;
}

.vip-word {
  margin: 5px 0 8px;
  font-family: var(--font-ui);
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.vip-banner-copy p {
  max-width: 620px;
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.65;
}

.vip-hero-points {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vip-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #bab0a4;
  font-size: 8px;
  font-weight: 700;
}

.vip-hero-points svg {
  color: var(--gold);
}

.vip-price strong {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 800;
}

.vip-columns {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  margin-top: 24px;
}

.vip-columns h2 {
  font-family: var(--font-ui);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.vip-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-content: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.022);
}

.vip-benefits h2 {
  grid-column: 1 / -1;
  margin-bottom: 5px;
}

.benefit-row {
  min-height: 134px;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015)
  );
}

.benefit-row svg {
  box-sizing: content-box;
  padding: 9px;
  border: 1px solid rgba(217, 179, 107, 0.15);
  border-radius: 11px;
  background: rgba(217, 179, 107, 0.055);
}

.benefit-row b {
  font-size: 13px;
  line-height: 1.3;
}

.benefit-row span {
  margin-top: 5px;
  line-height: 1.55;
}

.vip-plans {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  background:
    radial-gradient(
      80% 60% at 100% 0%,
      rgba(217, 179, 107, 0.09),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.025);
}

.plan-list {
  gap: 9px;
}

.vip-plan {
  min-height: 74px;
  padding: 16px 17px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.vip-plan.selected {
  border-color: rgba(217, 179, 107, 0.5);
  background: rgba(217, 179, 107, 0.075);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 107, 0.04);
}

.plan-price strong {
  font-family: var(--font-ui);
  font-size: 25px;
  font-weight: 800;
}

.vip-checkout {
  min-height: 48px;
  border-radius: 14px;
}

.login-page {
  max-width: 1240px;
  min-height: 690px;
  margin: 30px auto;
  grid-template-columns: 1.08fr 0.92fr;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 30px;
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.95);
}

.login-visual {
  min-height: 690px;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  pointer-events: none;
}

.login-visual .fig {
  left: 62%;
  bottom: -12%;
  width: 76%;
  height: 96%;
  filter: blur(4px);
  opacity: 0.82;
}

.login-visual-vignette {
  background:
    linear-gradient(0deg, rgba(5, 4, 8, 0.94), transparent 55%),
    linear-gradient(90deg, rgba(5, 4, 8, 0.4), transparent 65%);
}

.login-mark {
  left: 44px;
  right: 44px;
  bottom: 44px;
}

.login-mark h2 {
  font-family: var(--font-ui);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-mark h2 em {
  font-style: normal;
  color: var(--gold);
}

.login-panel {
  padding: 54px 50px;
  background:
    radial-gradient(
      90% 60% at 100% 0%,
      rgba(126, 94, 54, 0.12),
      transparent 58%
    ),
    #0b090d;
}

.login-back {
  margin-bottom: 44px;
}

.login-panel h1 {
  margin: 10px 0 7px;
  font-family: var(--font-ui);
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.login-sub {
  margin-bottom: 30px;
  line-height: 1.7;
}

.field {
  margin-bottom: 17px;
}

.field-input {
  min-height: 50px;
  padding: 12px 15px;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.field-input:focus-within {
  border-color: rgba(223, 189, 131, 0.52);
  box-shadow: 0 0 0 3px rgba(223, 189, 131, 0.08);
}

.login-submit {
  min-height: 50px;
  margin-top: 9px;
  border-radius: 14px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: -10px 0 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-method-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #92877d;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.auth-method-tabs button.is-active {
  background: rgba(255, 255, 255, 0.105);
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}

.auth-code-row .btn-line {
  min-height: 50px;
  margin-bottom: 17px;
  white-space: nowrap;
}

.auth-form-links {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #bfa77f;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.auth-inline-link:hover {
  color: var(--gold);
}

.auth-social {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.auth-social > span {
  display: block;
  margin-bottom: 10px;
  color: #7f756b;
  font-size: 9px;
  text-align: center;
}

.auth-social > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.auth-social button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ivory);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.auth-social button:hover:not(:disabled) {
  border-color: rgba(217, 179, 107, 0.35);
  background: rgba(217, 179, 107, 0.055);
}

.auth-social button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.auth-social button.is-unconfigured {
  border-color: rgba(223, 189, 131, 0.16);
  color: #81766c;
}

.auth-social button.is-unconfigured:hover {
  border-color: rgba(223, 189, 131, 0.32);
  color: #d9c39b;
}

.auth-debug-code {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(217, 179, 107, 0.32);
  border-radius: 10px;
  background: rgba(217, 179, 107, 0.045);
  color: #e6ca91;
  font-family: var(--font-mono);
  font-size: 10px;
}

.oauth-callback-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.demo-hint {
  margin-top: 20px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.site-footer {
  margin-top: 52px;
  border-top-color: rgba(255, 255, 255, 0.065);
  background:
    radial-gradient(
      60% 100% at 10% 0%,
      rgba(93, 70, 45, 0.08),
      transparent 60%
    ),
    rgba(5, 4, 8, 0.64);
}

.system-error {
  max-width: 720px;
  min-height: 560px;
  margin: 44px auto;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(
      70% 70% at 50% 0%,
      rgba(120, 90, 55, 0.14),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.system-error-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 189, 131, 0.3);
  border-radius: 18px;
  background: rgba(223, 189, 131, 0.09);
  color: #f0d3a0;
}

.system-error h1 {
  margin: 13px 0 9px;
  font-family: var(--font-ui);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.system-error p {
  max-width: 460px;
  margin: 0;
  color: #9f958a;
  font-size: 12px;
  line-height: 1.75;
}

.system-error-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1328px;
  padding: 46px 24px 34px;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 38px;
}

.footer-cn {
  font-size: 29px;
}

.footer-brand p {
  margin-top: 10px;
  line-height: 1.7;
}

.footer-col {
  gap: 10px;
}

.footer-label {
  margin-bottom: 5px;
}

.footer-bottom {
  max-width: 1328px;
  padding: 17px 24px 26px;
}

@media (max-width: 1080px) {
  .watch-stage-wrap {
    min-height: 670px;
  }

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

  .wallet-row {
    grid-template-columns: 310px minmax(0, 1fr);
  }

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

  .pack-card {
    min-height: 150px;
  }

  .vip-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .watch-page {
    padding: 20px 24px 76px;
  }

  .watch-stage-wrap {
    min-height: 610px;
    padding: 24px;
  }

  .watch-stage {
    width: min(330px, 100%);
    max-height: 580px;
  }

  .wallet-row {
    grid-template-columns: 1fr;
  }

  .wallet-card {
    min-height: 205px;
  }

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

  .pack-card {
    min-height: 170px;
  }

  .vip-banner {
    min-height: 350px;
  }

  .vip-banner-copy {
    width: 100%;
    padding: 34px;
  }

  .vip-banner-art {
    opacity: 0.45;
  }

  .login-page {
    grid-template-columns: 1fr;
    margin: 22px;
  }

  .login-visual {
    min-height: 310px;
  }
}

@media (max-width: 640px) {
  .watch-page {
    padding: 1px 0 56px;
  }

  .watch-stage-wrap {
    min-height: 0;
    padding: 18px 16px 24px;
    border-width: 0 0 1px;
    border-radius: 0 0 28px 28px;
  }

  .watch-stage-wrap::before {
    display: none;
  }

  .watch-stage {
    width: min(306px, 100%);
    max-height: none;
    border-radius: 22px;
  }

  .watch-panel {
    margin: 14px;
    padding: 22px;
    border-radius: 24px;
  }

  .watch-panel h1 {
    font-size: 29px;
  }

  .episode-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .episode-btn {
    height: 40px;
  }

  .store-page,
  .vip-page {
    padding: 27px 15px 70px;
  }

  .store-head {
    margin-bottom: 23px;
  }

  .store-head h1 {
    font-size: 36px;
  }

  .wallet-card {
    min-height: 200px;
    padding: 23px;
    border-radius: 23px;
  }

  .balance {
    font-size: 54px;
  }

  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pack-card {
    min-height: 160px;
  }

  .pay-shell {
    padding: 19px;
    border-radius: 21px;
  }

  .pay-shell .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .pay-method {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .checkout-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .checkout-summary {
    justify-content: space-between;
  }

  .checkout-btn {
    width: 100%;
  }

  .vip-banner {
    min-height: 390px;
    border-radius: 25px;
  }

  .vip-banner-copy {
    padding: 28px 23px;
  }

  .vip-word {
    font-size: 66px;
  }

  .vip-hero-points {
    align-items: flex-start;
    flex-direction: column;
  }

  .vip-columns {
    gap: 16px;
  }

  .vip-benefits,
  .vip-plans {
    padding: 19px;
    border-radius: 22px;
  }

  .vip-benefits {
    grid-template-columns: 1fr;
  }

  .benefit-row {
    min-height: 0;
  }

  .login-page {
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .login-visual {
    min-height: 270px;
  }

  .login-mark {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .login-mark h2 {
    font-size: 40px;
  }

  .login-panel {
    padding: 34px 22px 44px;
  }

  .login-back {
    margin-bottom: 30px;
  }

  .login-panel h1 {
    font-size: 38px;
  }

  .footer-inner {
    padding: 34px 16px 26px;
    gap: 26px;
  }

  .footer-bottom {
    padding: 16px 16px 25px;
  }
}

/* Layered glass navigation */
.site-header {
  background: linear-gradient(
    180deg,
    rgba(21, 17, 23, 0.74) 0%,
    rgba(9, 8, 11, 0.58) 100%
  );
  border-bottom-color: rgba(255, 255, 255, 0.085);
  box-shadow:
    0 18px 48px -34px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.site-header::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      52% 180% at 26% -55%,
      rgba(255, 255, 255, 0.12),
      transparent 68%
    ),
    linear-gradient(
      90deg,
      transparent 8%,
      rgba(217, 179, 107, 0.035) 48%,
      transparent 82%
    );
}

.header-inner {
  position: relative;
  z-index: 1;
}

.main-nav {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.022) 48%,
    rgba(217, 179, 107, 0.052)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 12px 28px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.main-nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  transition:
    color 0.24s var(--ease),
    background 0.24s var(--ease),
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.main-nav a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.13),
    transparent 36%,
    transparent 68%,
    rgba(217, 179, 107, 0.08)
  );
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.main-nav a:hover {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.105),
    rgba(255, 255, 255, 0.038)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 18px -14px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.main-nav a:hover::before,
.main-nav a.active::before {
  opacity: 1;
}

.main-nav a.active {
  color: #fffaf1;
  border-color: rgba(255, 244, 224, 0.18);
  background: linear-gradient(
    135deg,
    rgba(255, 248, 235, 0.19),
    rgba(255, 255, 255, 0.06) 48%,
    rgba(217, 179, 107, 0.115)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.19),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 8px 22px -15px rgba(217, 179, 107, 0.38);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.48);
}

.header-search {
  border-color: rgba(255, 255, 255, 0.095);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 28px -24px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  transition:
    border-color 0.24s var(--ease),
    background 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.header-search:focus-within {
  border-color: rgba(217, 179, 107, 0.36);
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(217, 179, 107, 0.075),
    0 12px 32px -24px rgba(217, 179, 107, 0.4);
}

.header-search input::placeholder {
  color: rgba(210, 201, 190, 0.62);
}

.language-trigger,
.coin-pill,
.login-btn,
.vip-mini,
.avatar-mini,
.menu-btn {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 9px 24px -18px rgba(0, 0, 0, 0.9);
  transition:
    color 0.24s var(--ease),
    background 0.24s var(--ease),
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.language-trigger {
  border-color: rgba(255, 255, 255, 0.095);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
}

.coin-pill {
  border-color: rgba(217, 179, 107, 0.27);
  background: linear-gradient(
    135deg,
    rgba(217, 179, 107, 0.145),
    rgba(217, 179, 107, 0.042)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 207, 0.12),
    0 9px 24px -18px rgba(217, 179, 107, 0.25);
}

.login-btn {
  border: 1px solid rgba(255, 248, 236, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 251, 244, 0.84),
    rgba(232, 220, 201, 0.7)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(77, 61, 44, 0.08),
    0 10px 26px -18px rgba(246, 241, 231, 0.35);
}

.vip-mini,
.avatar-mini {
  border-color: rgba(217, 179, 107, 0.24);
  background: linear-gradient(
    145deg,
    rgba(217, 179, 107, 0.13),
    rgba(255, 255, 255, 0.035)
  );
}

.language-trigger:hover,
.coin-pill:hover,
.login-btn:hover,
.vip-mini:hover,
.avatar-mini:hover,
.menu-btn:hover {
  border-color: rgba(231, 202, 150, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px -18px rgba(217, 179, 107, 0.2);
  transform: translateY(-1px);
}

.login-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 253, 248, 0.92),
    rgba(239, 228, 211, 0.8)
  );
}

.main-nav a:focus-visible,
.language-trigger:focus-visible,
.coin-pill:focus-visible,
.login-btn:focus-visible,
.vip-mini:focus-visible,
.avatar-mini:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid rgba(231, 202, 150, 0.72);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .main-nav.is-open {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(
      180deg,
      rgba(23, 19, 25, 0.88),
      rgba(8, 7, 10, 0.82)
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 24px 42px -24px rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    backdrop-filter: blur(30px) saturate(145%);
  }

  .main-nav.is-open a {
    border-color: rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.028);
  }

  .main-nav.is-open a.active {
    border-color: rgba(255, 244, 224, 0.14);
    background: linear-gradient(
      135deg,
      rgba(255, 248, 235, 0.16),
      rgba(217, 179, 107, 0.07)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .language-trigger,
  .coin-pill,
  .login-btn,
  .vip-mini,
  .avatar-mini,
  .menu-btn {
    transition: none;
  }

  .main-nav a:hover,
  .language-trigger:hover,
  .coin-pill:hover,
  .login-btn:hover,
  .vip-mini:hover,
  .avatar-mini:hover,
  .menu-btn:hover {
    transform: none;
  }
}

/* Theme control */
.theme-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: rgba(217, 179, 107, 0.4);
  background: rgba(217, 179, 107, 0.08);
  color: var(--gold);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Warm paper light theme */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #f4efe7;
  --ink-2: #ebe3d8;
  --wine: #a8834f;
  --crimson: #d0ad74;
  --gold: #95611c;
  --ivory: #211a18;
  --muted: #766b61;
  --line: rgba(49, 37, 31, 0.12);
  --surface: rgba(255, 255, 255, 0.68);
  --shadow-card: 0 18px 34px -22px rgba(75, 51, 36, 0.28);
  --shadow-phone: 0 50px 100px -38px rgba(70, 45, 31, 0.36);
}

html[data-theme="light"] body {
  background:
    radial-gradient(
      1100px 600px at 82% -10%,
      rgba(204, 126, 104, 0.16),
      transparent 62%
    ),
    radial-gradient(
      850px 520px at 4% 20%,
      rgba(180, 142, 80, 0.11),
      transparent 65%
    ),
    linear-gradient(180deg, #faf7f1 0%, #f4efe7 58%, #efe8de 100%);
  color: var(--ivory);
}

html[data-theme="light"] ::selection {
  background: #d0ad74;
  color: #fff;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(49, 37, 31, 0.18);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-kicker {
  color: #7c6e62;
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(49, 37, 31, 0.08);
  background: linear-gradient(
    180deg,
    rgba(253, 250, 245, 0.93),
    rgba(246, 240, 231, 0.82)
  );
  box-shadow:
    0 16px 38px -30px rgba(75, 51, 36, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .site-header::before {
  background:
    radial-gradient(
      55% 180% at 28% -60%,
      rgba(255, 255, 255, 0.92),
      transparent 68%
    ),
    linear-gradient(
      90deg,
      transparent 8%,
      rgba(149, 97, 28, 0.035) 48%,
      transparent 82%
    );
}

html[data-theme="light"] .main-nav {
  border-color: rgba(49, 37, 31, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.48)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 9px 22px -19px rgba(75, 51, 36, 0.38);
}

html[data-theme="light"] .main-nav a {
  color: #776c62;
  text-shadow: none;
}

html[data-theme="light"] .main-nav a::before {
  display: none;
}

html[data-theme="light"] .main-nav a:hover {
  border-color: rgba(49, 37, 31, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: #211a18;
  box-shadow: 0 8px 18px -16px rgba(75, 51, 36, 0.38);
}

html[data-theme="light"] .main-nav a.active {
  border-color: #211a18;
  background: linear-gradient(135deg, #2a211e, #171210);
  box-shadow: 0 9px 20px -14px rgba(49, 37, 31, 0.6);
  color: #fffaf3;
  text-shadow: none;
}

html[data-theme="light"] .header-search {
  border-color: rgba(49, 37, 31, 0.11);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.58)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 24px -22px rgba(75, 51, 36, 0.4);
  color: #80746a;
}

html[data-theme="light"] .header-search:focus-within {
  border-color: rgba(149, 97, 28, 0.36);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 3px rgba(149, 97, 28, 0.08),
    0 10px 28px -23px rgba(149, 97, 28, 0.26);
}

html[data-theme="light"] .header-search input {
  color: #211a18;
}

html[data-theme="light"] .header-search input::placeholder {
  color: #988c81;
}

html[data-theme="light"] .language-trigger,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .coin-pill,
html[data-theme="light"] .vip-mini,
html[data-theme="light"] .avatar-mini,
html[data-theme="light"] .menu-btn {
  border-color: rgba(49, 37, 31, 0.11);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.56)
  );
  color: #756a60;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 20px -18px rgba(75, 51, 36, 0.38);
}

html[data-theme="light"] .coin-pill {
  border-color: rgba(149, 97, 28, 0.22);
  background: linear-gradient(135deg, #fff8ea, #f1e2c8);
  color: #875b1d;
}

html[data-theme="light"] .login-btn {
  border-color: #211a18;
  background: linear-gradient(135deg, #302521, #171210);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px -16px rgba(49, 37, 31, 0.55);
  color: #fffaf3;
}

html[data-theme="light"] .login-btn:hover {
  border-color: #211a18;
  background: linear-gradient(135deg, #3b2e28, #211916);
}

html[data-theme="light"] .avatar-mini {
  background: linear-gradient(145deg, #eee1ce, #fffaf1);
  color: #8b5c1e;
}

html[data-theme="light"] .language-trigger:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .coin-pill:hover,
html[data-theme="light"] .vip-mini:hover,
html[data-theme="light"] .avatar-mini:hover,
html[data-theme="light"] .menu-btn:hover {
  border-color: rgba(149, 97, 28, 0.32);
  background: rgba(255, 255, 255, 0.96);
  color: #7f561d;
}

html[data-theme="light"] .language-menu {
  border-color: rgba(49, 37, 31, 0.12);
  background: linear-gradient(145deg, #fffdf9, #f3ece2);
  box-shadow:
    0 20px 48px -26px rgba(75, 51, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .language-menu-label {
  color: #95611c;
}

html[data-theme="light"] .language-option {
  color: #74695f;
}

html[data-theme="light"] .language-option:hover,
html[data-theme="light"] .language-option.is-active {
  border-color: rgba(149, 97, 28, 0.13);
  background: rgba(149, 97, 28, 0.07);
  color: #211a18;
}

html[data-theme="light"] .brand-en {
  color: #8e8175;
}

html[data-theme="light"] .btn-ivory {
  background: #211a18;
  color: #fffaf3;
}

html[data-theme="light"] .btn-line {
  border-color: rgba(49, 37, 31, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: #211a18;
}

html[data-theme="light"] .btn-line:hover {
  border-color: rgba(149, 97, 28, 0.35);
  background: #fffdf9;
}

html[data-theme="light"] .hero--streaming {
  border-color: rgba(49, 37, 31, 0.1);
  box-shadow: 0 44px 90px -50px rgba(78, 50, 34, 0.52);
}

html[data-theme="light"] .hero-content {
  color: #fffaf3;
}

html[data-theme="light"] .hero-kicker {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 12, 15, 0.42);
  color: rgba(255, 250, 243, 0.82);
}

html[data-theme="light"] .hero--streaming .hero-content h1 {
  color: #fffaf3;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] .hero--streaming .hero-meta {
  color: rgba(255, 250, 243, 0.78);
}

html[data-theme="light"] .hero-score {
  color: #f0c878;
}

html[data-theme="light"] .hero--streaming .hero-content > p {
  color: rgba(255, 250, 243, 0.72);
}

html[data-theme="light"] .hero-progress {
  color: rgba(255, 250, 243, 0.62);
}

html[data-theme="light"] .hero-progress > i {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .hero .btn-line {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf3;
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .hero-poster-copy {
  color: #fffaf3;
}

html[data-theme="light"] .hero-poster-copy > span {
  color: #f0c878;
}

html[data-theme="light"] .hero-poster-copy > small {
  color: rgba(255, 250, 243, 0.68);
}

html[data-theme="light"] .discover-bar {
  border-color: rgba(49, 37, 31, 0.09);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: 0 15px 30px -25px rgba(75, 51, 36, 0.38);
}

html[data-theme="light"] .discover-label {
  border-color: rgba(49, 37, 31, 0.1);
  color: #95611c;
}

html[data-theme="light"] .discover-links a {
  color: #776c62;
}

html[data-theme="light"] .discover-links a:hover {
  background: rgba(49, 37, 31, 0.055);
  color: #211a18;
}

html[data-theme="light"] .discover-links a:first-child {
  background: #241d1a;
  color: #fffaf3;
}

html[data-theme="light"] .discover-more,
html[data-theme="light"] .text-link {
  color: #85796e;
}

html[data-theme="light"] .section-kicker svg {
  color: #c8a26a;
}

html[data-theme="light"] .continue-card,
html[data-theme="light"] .history-card {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      80% 120% at 100% 50%,
      rgba(211, 84, 91, 0.09),
      transparent 58%
    ),
    rgba(255, 252, 247, 0.8);
  box-shadow: 0 14px 28px -25px rgba(75, 51, 36, 0.35);
}

html[data-theme="light"] .continue-card:hover,
html[data-theme="light"] .history-card:hover {
  border-color: rgba(149, 97, 28, 0.28);
  background:
    radial-gradient(
      80% 120% at 100% 50%,
      rgba(211, 84, 91, 0.1),
      transparent 58%
    ),
    rgba(255, 254, 251, 0.96);
}

html[data-theme="light"] .continue-now,
html[data-theme="light"] .footer-label {
  color: #95611c;
}

html[data-theme="light"] .continue-sub,
html[data-theme="light"] .history-copy small,
html[data-theme="light"] .poster-sub,
html[data-theme="light"] .section-note,
html[data-theme="light"] .fine-print {
  color: #85796e;
}

html[data-theme="light"] .continue-next {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.64);
  color: #574d46;
}

html[data-theme="light"] .history-chevron {
  color: #a19589;
}

html[data-theme="light"] .filter-chip {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 253, 249, 0.72);
  color: #665b52;
}

html[data-theme="light"] .filter-chip:hover,
html[data-theme="light"] .filter-chip.active {
  border-color: #211a18;
  background: #211a18;
  color: #fffaf3;
}

html[data-theme="light"] .listing-head::after {
  background: linear-gradient(90deg, rgba(49, 37, 31, 0.13), transparent 72%);
}

html[data-theme="light"] .empty-state {
  border-color: rgba(49, 37, 31, 0.16);
  background: rgba(255, 252, 247, 0.54);
}

html[data-theme="light"] .watch-ambient {
  background:
    radial-gradient(
      circle at 45% 50%,
      rgba(193, 73, 76, 0.13),
      transparent 60%
    ),
    radial-gradient(
      circle at 75% 35%,
      rgba(167, 125, 53, 0.08),
      transparent 52%
    );
}

html[data-theme="light"] .watch-stage-wrap {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      72% 70% at 50% 44%,
      rgba(195, 96, 104, 0.11),
      transparent 60%
    ),
    radial-gradient(
      54% 44% at 50% 100%,
      rgba(164, 121, 55, 0.07),
      transparent 68%
    ),
    linear-gradient(165deg, #fffdf9, #f3ece2 76%);
  box-shadow: 0 28px 60px -42px rgba(74, 48, 32, 0.42);
}

html[data-theme="light"] .watch-stage-wrap::before {
  border-color: rgba(49, 37, 31, 0.07);
}

html[data-theme="light"] .watch-stage .icon-round,
html[data-theme="light"] .watch-stage .play-center,
html[data-theme="light"] .watch-stage .stage-rail button {
  color: #fffaf3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.62);
}

html[data-theme="light"] .watch-stage .stage-title {
  color: #fffaf3;
}

html[data-theme="light"] .watch-stage .stage-title small {
  color: rgba(255, 250, 243, 0.66);
}

html[data-theme="light"] .lock-overlay {
  color: #fffaf3;
}

html[data-theme="light"] .lock-overlay > svg {
  color: #e7bf78;
}

html[data-theme="light"] .lock-overlay p {
  color: rgba(255, 250, 243, 0.65);
}

html[data-theme="light"] .lock-overlay .unlock-all-link {
  color: #e7bf78;
}

html[data-theme="light"] .store-head .icon-round {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.74);
  color: #211a18;
}

html[data-theme="light"] .watch-panel {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      100% 65% at 100% 0%,
      rgba(208, 91, 98, 0.08),
      transparent 55%
    ),
    linear-gradient(160deg, rgba(255, 253, 249, 0.96), #f6f0e7);
  box-shadow: 0 24px 54px -42px rgba(74, 48, 32, 0.38);
}

html[data-theme="light"] .watch-score {
  border-color: rgba(149, 97, 28, 0.18);
  background: rgba(149, 97, 28, 0.07);
}

html[data-theme="light"] .watch-episode-line {
  color: #7f7368;
}

html[data-theme="light"] .watch-episode-line span {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .watch-episode-line span:first-child {
  border-color: rgba(200, 39, 80, 0.18);
  background: rgba(208, 173, 116, 0.08);
  color: #c29b5e;
}

html[data-theme="light"] .watch-panel > p,
html[data-theme="light"] .tag-row span,
html[data-theme="light"] .panel-head span:last-child {
  color: #756a60;
}

html[data-theme="light"] .tag-row span,
html[data-theme="light"] .episode-btn {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: #5f554d;
}

html[data-theme="light"] .episode-btn:hover {
  border-color: rgba(149, 97, 28, 0.3);
  color: #211a18;
}

html[data-theme="light"] .episode-btn.selected {
  border-color: transparent;
  background: linear-gradient(135deg, #e6c381, #b98f58);
  color: #fff;
}

html[data-theme="light"] .episode-btn.locked {
  color: #a3988d;
}

html[data-theme="light"] .unlocked-pill {
  border-color: rgba(149, 97, 28, 0.2);
  background: rgba(149, 97, 28, 0.07);
}

html[data-theme="light"] .panel-actions button {
  color: #7c7066;
}

html[data-theme="light"] .panel-actions button:hover,
html[data-theme="light"] .panel-actions button.is-active {
  color: #95611c;
}

html[data-theme="light"] .form-message {
  border-color: rgba(49, 37, 31, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: #5d534b;
}

html[data-theme="light"] .wallet-card {
  color: #fff5e8;
  border-color: rgba(149, 97, 28, 0.25);
  box-shadow: 0 24px 52px -30px rgba(67, 43, 29, 0.48);
}

html[data-theme="light"] .wallet-card .eyebrow,
html[data-theme="light"] .wallet-card .wallet-foot {
  color: rgba(255, 245, 232, 0.62);
}

html[data-theme="light"] .wallet-card .wallet-mark,
html[data-theme="light"] .wallet-card .balance svg,
html[data-theme="light"] .wallet-card .wallet-foot .gold-text {
  color: #e4bb70;
}

html[data-theme="light"] .pack-card {
  border-color: rgba(49, 37, 31, 0.1);
  background:
    radial-gradient(
      80% 70% at 50% 4%,
      rgba(255, 255, 255, 0.8),
      transparent 58%
    ),
    rgba(255, 252, 247, 0.72);
  box-shadow: 0 10px 24px -22px rgba(75, 51, 36, 0.35);
  color: #211a18;
}

html[data-theme="light"] .pack-card:hover {
  border-color: rgba(149, 97, 28, 0.24);
}

html[data-theme="light"] .pack-card.selected {
  border-color: rgba(149, 97, 28, 0.42);
  background:
    radial-gradient(
      80% 70% at 50% 0%,
      rgba(196, 146, 68, 0.18),
      transparent 58%
    ),
    linear-gradient(160deg, #fffaf0, #f4e8d4);
  box-shadow:
    inset 0 0 0 1px rgba(149, 97, 28, 0.05),
    0 16px 32px -26px rgba(149, 97, 28, 0.36);
}

html[data-theme="light"] .pack-selected {
  background: #211a18;
  color: #fffaf3;
}

html[data-theme="light"] .pack-label {
  color: #81756a;
}

html[data-theme="light"] .pack-price {
  border-color: rgba(149, 97, 28, 0.16);
  background: rgba(149, 97, 28, 0.06);
}

html[data-theme="light"] .pay-shell,
html[data-theme="light"] .checkout-bar {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      60% 120% at 0% 50%,
      rgba(204, 90, 90, 0.06),
      transparent 55%
    ),
    rgba(255, 252, 247, 0.7);
  box-shadow: 0 14px 32px -28px rgba(75, 51, 36, 0.3);
}

html[data-theme="light"] .pay-method {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: #655a51;
}

html[data-theme="light"] .pay-method.active {
  border-color: rgba(149, 97, 28, 0.34);
  background: rgba(149, 97, 28, 0.08);
  color: #815719;
}

html[data-theme="light"] .checkout-summary span,
html[data-theme="light"] .checkout-summary small {
  color: #7f7368;
}

html[data-theme="light"] .checkout-summary small {
  background: rgba(49, 37, 31, 0.055);
}

html[data-theme="light"] .vip-banner {
  border-color: rgba(149, 97, 28, 0.22);
  box-shadow: 0 30px 66px -44px rgba(65, 42, 29, 0.52);
}

html[data-theme="light"] .vip-banner-copy {
  color: #fff8ee;
}

html[data-theme="light"] .vip-banner .gold-text {
  color: #e0b669;
}

html[data-theme="light"] .vip-banner-copy p,
html[data-theme="light"] .vip-price {
  color: rgba(255, 248, 238, 0.68);
}

html[data-theme="light"] .vip-price strong {
  color: #e0b669;
}

html[data-theme="light"] .vip-hero-points span {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 248, 238, 0.76);
}

html[data-theme="light"] .vip-hero-points svg {
  color: #e0b669;
}

html[data-theme="light"] .vip-benefits,
html[data-theme="light"] .vip-plans {
  border-color: rgba(49, 37, 31, 0.09);
  background: rgba(255, 252, 247, 0.7);
  box-shadow: 0 16px 34px -30px rgba(75, 51, 36, 0.32);
}

html[data-theme="light"] .benefit-row {
  border-color: rgba(49, 37, 31, 0.09);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.84),
    rgba(255, 250, 243, 0.58)
  );
}

html[data-theme="light"] .benefit-row svg {
  border-color: rgba(149, 97, 28, 0.14);
  background: rgba(149, 97, 28, 0.06);
}

html[data-theme="light"] .benefit-row span,
html[data-theme="light"] .vip-plan span {
  color: #81756a;
}

html[data-theme="light"] .vip-plan {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: #211a18;
}

html[data-theme="light"] .vip-plan.selected {
  border-color: rgba(149, 97, 28, 0.38);
  background: rgba(149, 97, 28, 0.08);
  box-shadow: inset 0 0 0 1px rgba(149, 97, 28, 0.04);
}

html[data-theme="light"] .login-page {
  border-color: rgba(49, 37, 31, 0.1);
  background: #fffdf9;
  box-shadow: 0 36px 76px -46px rgba(72, 47, 32, 0.42);
}

html[data-theme="light"] .login-visual::after {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] .login-mark {
  color: #fffaf3;
}

html[data-theme="light"] .login-mark h2 em {
  color: #e3b96d;
}

html[data-theme="light"] .login-mark .eyebrow,
html[data-theme="light"] .login-play {
  color: rgba(255, 250, 243, 0.74);
}

html[data-theme="light"] .login-panel {
  background:
    radial-gradient(
      90% 60% at 100% 0%,
      rgba(204, 87, 94, 0.07),
      transparent 58%
    ),
    #fffdf9;
}

html[data-theme="light"] .poster-rating {
  color: #f0c878;
}

html[data-theme="light"] .login-back,
html[data-theme="light"] .login-sub {
  color: #7b6f65;
}

html[data-theme="light"] .field > span {
  color: #5d534b;
}

html[data-theme="light"] .field-input {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.84);
  color: #8c8075;
}

html[data-theme="light"] .field-input input {
  color: #211a18;
}

html[data-theme="light"] .field-input:focus-within {
  border-color: rgba(210, 45, 84, 0.42);
  box-shadow: 0 0 0 3px rgba(210, 45, 84, 0.07);
}

html[data-theme="light"] .demo-hint {
  border-color: rgba(49, 37, 31, 0.13);
  background: rgba(246, 239, 229, 0.7);
  color: #796e64;
}

html[data-theme="light"] .demo-hint code {
  background: rgba(49, 37, 31, 0.06);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(49, 37, 31, 0.08);
  background:
    radial-gradient(
      60% 100% at 10% 0%,
      rgba(197, 108, 102, 0.06),
      transparent 60%
    ),
    rgba(244, 238, 229, 0.84);
}

html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-col span,
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-en,
html[data-theme="light"] .footer-bottom {
  color: #81756a;
}

html[data-theme="light"] .lang-row span,
html[data-theme="light"] .lang-row button {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.54);
  color: #766b61;
}

html[data-theme="light"] .lang-row span.active,
html[data-theme="light"] .lang-row button.active {
  border-color: rgba(149, 97, 28, 0.32);
  background: rgba(149, 97, 28, 0.07);
  color: #875b1d;
}

html[data-theme="light"] .system-error {
  border-color: rgba(49, 37, 31, 0.1);
  background:
    radial-gradient(
      70% 70% at 50% 0%,
      rgba(202, 83, 93, 0.08),
      transparent 58%
    ),
    rgba(255, 252, 247, 0.7);
}

html[data-theme="light"] .system-error p {
  color: #7b6f65;
}

@media (max-width: 860px) {
  html[data-theme="light"] .main-nav.is-open {
    border-color: rgba(49, 37, 31, 0.1);
    background: linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.98),
      rgba(246, 240, 231, 0.98)
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 22px 38px -24px rgba(75, 51, 36, 0.34);
  }

  html[data-theme="light"] .main-nav.is-open a {
    border-color: rgba(49, 37, 31, 0.08);
    background: rgba(255, 255, 255, 0.48);
  }

  html[data-theme="light"] .main-nav.is-open a.active {
    border-color: #211a18;
    background: #211a18;
    color: #fffaf3;
  }
}

/* Mobile compatibility pass */
@media (max-width: 860px) {
  .main-nav.is-open {
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .main-nav.is-open::-webkit-scrollbar {
    display: none;
  }

  .main-nav.is-open a {
    flex: 0 0 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-nav-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-bottom: 6px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: #9c9389;
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
  }

  .mobile-nav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ivory);
    font-size: 12px;
  }

  .mobile-nav-search input::placeholder {
    color: #847b72;
  }

  .mobile-nav-search:focus-within {
    border-color: rgba(217, 179, 107, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(217, 179, 107, 0.07);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  a,
  button,
  input {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand {
    min-height: 38px;
    align-items: center;
  }

  .theme-toggle,
  .coin-pill,
  .login-btn,
  .avatar-mini,
  .menu-btn {
    min-height: 38px;
  }

  .theme-toggle,
  .login-btn,
  .avatar-mini,
  .menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero--streaming {
    min-width: 0;
  }

  .hero--streaming .hero-content {
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero--streaming .hero-content h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 43px);
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
  }

  .hero--streaming .hero-meta {
    min-width: 0;
    gap: 7px 9px;
  }

  .hero--streaming .hero-content > p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-actions .btn-ivory,
  .hero-actions .btn-line {
    min-height: 44px;
  }

  .footer-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-brand,
  .footer-col,
  .lang-row,
  .footer-bottom {
    min-width: 0;
  }

  .lang-row {
    flex-wrap: wrap;
  }
}

@media (min-width: 861px) {
  .mobile-nav-search {
    display: none;
  }
}

@media (max-width: 860px) {
  html[data-theme="light"] .mobile-nav-search {
    border-color: rgba(49, 37, 31, 0.11);
    background: rgba(255, 255, 255, 0.62);
    color: #7b6f65;
  }

  html[data-theme="light"] .mobile-nav-search input {
    color: #211a18;
  }

  html[data-theme="light"] .mobile-nav-search input::placeholder {
    color: #988c81;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-actions {
    gap: 5px;
  }

  .hero--streaming {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero--streaming .hero-content h1 {
    font-size: clamp(32px, 9.7vw, 38px);
  }
}

/* Experience polish */
.app-main > * {
  animation: page-enter 0.38s var(--ease) both;
}

.theme-toggle svg {
  animation: theme-icon-enter 0.24s var(--ease);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes theme-icon-enter {
  from {
    opacity: 0;
    transform: rotate(-22deg) scale(0.72);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.site-header,
.main-nav,
.header-search,
.language-trigger,
.theme-toggle,
.coin-pill,
.login-btn,
.avatar-mini,
.vip-mini,
.menu-btn,
.discover-bar,
.history-card,
.filter-chip,
.watch-stage-wrap,
.watch-panel,
.pack-card,
.pay-shell,
.checkout-bar,
.vip-benefits,
.vip-plans,
.vip-plan,
.login-page,
.login-panel,
.field-input,
.site-footer,
.library-item,
.library-tabs {
  transition:
    color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.library-page {
  max-width: 1328px;
  padding: 42px 24px 96px;
}

.library-head {
  position: relative;
}

.library-head::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 25px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
}

.library-head h1 {
  margin: 8px 0;
  font-family: var(--font-ui);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.library-head p {
  color: #9b9187;
  font-size: 12px;
  line-height: 1.7;
}

.library-toolbar {
  margin: 22px 0 27px;
  padding: 0;
  border: 0;
}

.library-tabs {
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.library-tabs button {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  color: #91877d;
}

.library-tabs button:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ivory);
}

.library-tabs button.active {
  border: 0;
  background: rgba(255, 255, 255, 0.11);
  color: var(--ivory);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px -16px rgba(0, 0, 0, 0.75);
}

.library-tabs button:focus-visible,
.library-toolbar > .text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 28px 20px;
}

.library-list {
  gap: 11px;
}

.library-item {
  min-height: 138px;
  gap: 17px;
  padding: 10px 16px 10px 10px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(
      70% 120% at 100% 50%,
      rgba(137, 30, 60, 0.1),
      transparent 56%
    ),
    rgba(255, 255, 255, 0.028);
}

.library-item:hover {
  border-color: rgba(217, 179, 107, 0.3);
  background:
    radial-gradient(
      70% 120% at 100% 50%,
      rgba(137, 30, 60, 0.12),
      transparent 56%
    ),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.library-thumb {
  width: 86px;
  height: 118px;
  border-radius: 13px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px -19px rgba(0, 0, 0, 0.82);
}

.library-thumb .fig {
  left: auto;
  right: -8%;
  bottom: -12%;
  width: 94%;
  height: 106%;
  transform: none;
  filter: blur(4px);
}

.library-thumb.has-cover .fig {
  display: none;
}

.library-copy {
  display: flex;
  flex-direction: column;
}

.library-title {
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-sub {
  margin: 5px 0 14px;
  color: #91877d;
  font-size: 10px;
}

.library-progress {
  width: min(480px, 100%);
  height: 3px;
  background: rgba(255, 255, 255, 0.11);
}

.library-play {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ivory);
}

.library-empty {
  min-height: 330px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(146, 34, 65, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.025);
}

.library-empty-icon {
  box-sizing: content-box;
  padding: 12px;
  border: 1px solid rgba(217, 179, 107, 0.16);
  border-radius: 16px;
  background: rgba(217, 179, 107, 0.055);
}

.library-empty h1,
.library-empty h2 {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.library-empty p {
  max-width: 420px;
  line-height: 1.7;
}

.library-skeleton,
.skeleton-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.skeleton-poster,
.skeleton-line,
.skeleton-action {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.skeleton-poster {
  aspect-ratio: 2 / 3;
}

.skeleton-poster::after,
.skeleton-line::after,
.skeleton-action::after,
.skeleton-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 26%,
    rgba(255, 255, 255, 0.09) 48%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: skeleton-shine 1.5s ease-in-out infinite;
}

@keyframes skeleton-shine {
  to {
    transform: translateX(100%);
  }
}

.page-skeleton {
  max-width: 1328px;
  margin: 0 auto;
  padding: 24px;
}

.skeleton-hero {
  position: relative;
  height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 13px;
  padding: 50px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.045);
}

.skeleton-line {
  height: 12px;
}

.skeleton-line-short {
  width: 150px;
  border-radius: 999px;
}

.skeleton-title {
  width: min(560px, 76%);
  height: 60px;
  border-radius: 12px;
}

.skeleton-copy {
  width: min(460px, 66%);
  height: 10px;
}

.skeleton-copy.is-shorter {
  width: min(330px, 50%);
}

.skeleton-action {
  width: 126px;
  height: 42px;
  margin-top: 8px;
  border-radius: 999px;
}

.skeleton-section {
  margin-top: 46px;
}

.skeleton-heading {
  width: 190px;
  height: 30px;
  margin-bottom: 18px;
}

html[data-theme="light"] .library-head::after {
  background: linear-gradient(90deg, rgba(49, 37, 31, 0.13), transparent 70%);
}

html[data-theme="light"] .library-head p,
html[data-theme="light"] .library-sub {
  color: #81756a;
}

html[data-theme="light"] .library-tabs {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .library-tabs button {
  color: #74695f;
}

html[data-theme="light"] .library-tabs button:hover {
  background: rgba(49, 37, 31, 0.05);
  color: #211a18;
}

html[data-theme="light"] .library-tabs button.active {
  background: #211a18;
  color: #fffaf3;
  box-shadow: 0 9px 20px -15px rgba(49, 37, 31, 0.52);
}

html[data-theme="light"] .library-item {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      70% 120% at 100% 50%,
      rgba(204, 84, 91, 0.075),
      transparent 56%
    ),
    rgba(255, 252, 247, 0.72);
}

html[data-theme="light"] .library-item:hover {
  border-color: rgba(149, 97, 28, 0.27);
  background:
    radial-gradient(
      70% 120% at 100% 50%,
      rgba(204, 84, 91, 0.08),
      transparent 56%
    ),
    rgba(255, 254, 251, 0.94);
}

html[data-theme="light"] .library-progress {
  background: rgba(49, 37, 31, 0.1);
}

html[data-theme="light"] .library-play {
  border-color: rgba(49, 37, 31, 0.11);
  background: rgba(255, 255, 255, 0.68);
  color: #211a18;
}

html[data-theme="light"] .library-empty {
  border-color: rgba(49, 37, 31, 0.1);
  background:
    radial-gradient(
      60% 90% at 50% 0%,
      rgba(205, 84, 93, 0.07),
      transparent 62%
    ),
    rgba(255, 252, 247, 0.66);
}

html[data-theme="light"] .skeleton-poster,
html[data-theme="light"] .skeleton-line,
html[data-theme="light"] .skeleton-action,
html[data-theme="light"] .skeleton-hero {
  background: rgba(49, 37, 31, 0.07);
}

html[data-theme="light"] .skeleton-poster::after,
html[data-theme="light"] .skeleton-line::after,
html[data-theme="light"] .skeleton-action::after,
html[data-theme="light"] .skeleton-hero::after {
  background: linear-gradient(
    100deg,
    transparent 26%,
    rgba(255, 255, 255, 0.46) 48%,
    transparent 70%
  );
}

@media (max-width: 860px) {
  .library-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

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

  .skeleton-hero {
    height: 500px;
    padding: 36px;
  }
}

@media (max-width: 640px) {
  .library-page {
    padding: 28px 15px 72px;
  }

  .library-head h1 {
    font-size: 38px;
  }

  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .library-toolbar > .text-link {
    align-self: flex-end;
    padding: 6px 2px;
  }

  .library-item {
    min-height: 122px;
    gap: 13px;
    padding: 9px 11px 9px 9px;
    border-radius: 17px;
  }

  .library-thumb {
    width: 74px;
    height: 102px;
  }

  .library-title {
    font-size: 16px;
  }

  .library-play {
    width: 34px;
    height: 34px;
  }

  .library-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .page-skeleton {
    padding: 0 15px 65px;
  }

  .skeleton-hero {
    height: 560px;
    padding: 25px 20px 30px;
    border-radius: 0 0 28px 28px;
  }

  .skeleton-title {
    width: 88%;
    height: 48px;
  }

  .skeleton-copy {
    width: 84%;
  }

  .skeleton-section {
    margin-top: 36px;
  }

  .skeleton-rail {
    display: flex;
    overflow: hidden;
  }

  .skeleton-rail .skeleton-poster {
    flex: 0 0 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-main > *,
  .theme-toggle svg,
  .skeleton-poster::after,
  .skeleton-line::after,
  .skeleton-action::after,
  .skeleton-hero::after {
    animation: none !important;
  }
}

/* Account center */
.avatar-mini.has-image,
.account-avatar.has-image {
  background-position: center;
  background-size: cover;
}

.avatar-mini.has-image {
  border-color: rgba(217, 179, 107, 0.35);
}

.account-page {
  width: min(1328px, 100%);
  margin: 0 auto;
  padding: 42px 24px 96px;
}

.account-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.account-heading h1 {
  margin: 7px 0 8px;
  font-family: var(--font-ui);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.account-heading p {
  color: #9b9187;
  font-size: 12px;
  line-height: 1.7;
}

.account-refresh {
  flex: 0 0 auto;
  min-height: 36px;
  margin-bottom: 3px;
}

.account-refresh:disabled {
  opacity: 0.45;
  cursor: wait;
}

.account-loading,
.account-gate {
  min-height: 440px;
}

.account-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9b9187;
  font-size: 12px;
}

.account-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(
      55% 80% at 50% 0%,
      rgba(148, 35, 66, 0.16),
      transparent 68%
    ),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.account-gate-icon {
  box-sizing: content-box;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid rgba(217, 179, 107, 0.2);
  border-radius: 18px;
  background: rgba(217, 179, 107, 0.065);
  color: var(--gold);
}

.account-gate h1 {
  margin: 9px 0 7px;
  font-family: var(--font-ui);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.account-gate p {
  max-width: 480px;
  margin-bottom: 22px;
  color: #93897f;
  font-size: 12px;
  line-height: 1.75;
}

.account-hero-card {
  position: relative;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: 27px 29px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    radial-gradient(
      70% 160% at 100% 0%,
      rgba(152, 40, 69, 0.22),
      transparent 58%
    ),
    radial-gradient(
      48% 130% at 0% 100%,
      rgba(217, 179, 107, 0.1),
      transparent 64%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 30px 70px -55px rgba(0, 0, 0, 0.9);
}

.account-hero-card::after {
  content: "";
  position: absolute;
  top: -110px;
  right: 13%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(217, 179, 107, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.account-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-portrait {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 179, 107, 0.28);
  border-radius: 25px;
  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 255, 255, 0.17),
      transparent 40%
    ),
    linear-gradient(145deg, #a8834f, #2b251f 65%, #171017);
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 36px -25px rgba(0, 0, 0, 0.9);
  color: #fff7e9;
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 800;
}

.account-kicker {
  color: #af9f8e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.account-identity h2 {
  max-width: 560px;
  overflow: hidden;
  margin: 5px 0 7px;
  font-family: var(--font-ui);
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b0a397;
  font-size: 11px;
}

.account-identity small {
  display: block;
  margin-top: 7px;
  color: #786f68;
  font-size: 9px;
}

.account-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.account-actions .btn-line {
  min-height: 40px;
}

.account-logout-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(222, 87, 116, 0.17);
  border-radius: 999px;
  background: rgba(222, 87, 116, 0.055);
  color: #e4c99a;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.account-logout-button:hover {
  border-color: rgba(222, 87, 116, 0.3);
  background: rgba(222, 87, 116, 0.11);
  color: #f2dcb4;
}

.account-logout-button:focus-visible,
.account-stat a:focus-visible,
.account-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 14px 0;
}

.account-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}

.account-stat-icon,
.account-panel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 179, 107, 0.14);
  background: rgba(217, 179, 107, 0.055);
  color: var(--gold);
}

.account-stat-icon {
  width: 37px;
  height: 37px;
  border-radius: 12px;
}

.account-stat-icon.vip,
.account-panel-icon.vip {
  border-color: rgba(223, 163, 90, 0.23);
  background: rgba(223, 163, 90, 0.08);
  color: #e2ac63;
}

.account-stat > div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.account-stat small {
  overflow: hidden;
  color: #847a71;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-stat strong {
  overflow: hidden;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stat > a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #756b63;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.account-stat > a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
}

.account-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.78fr);
  gap: 14px;
  margin-top: 14px;
}

.account-panel,
.account-activity {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.026);
}

.account-profile-panel {
  padding: 23px;
}

.account-panel-head > div,
.account-activity-head > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.account-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.account-panel h2,
.account-activity h2,
.account-membership h2 {
  margin: 1px 0 4px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.account-panel p,
.account-activity p,
.account-membership p {
  color: #887e75;
  font-size: 10px;
  line-height: 1.6;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 13px;
  margin-top: 23px;
}

.account-form .field:first-child {
  grid-column: span 2;
}

.account-form .field {
  margin: 0;
}

.account-select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ivory);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.account-select option {
  background: #1d171d;
  color: #fffaf3;
}

.account-form .field-input.is-readonly {
  background: rgba(255, 255, 255, 0.018);
}

.account-form .field-input.is-readonly input {
  color: #8f857c;
}

.account-form .field-input > svg:last-child {
  color: #756b63;
}

.account-field-note {
  display: block;
  margin-top: 6px;
  color: #756c64;
  font-size: 8px;
  line-height: 1.5;
}

.account-form-footer {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 3px;
}

.account-form-footer .btn-crimson {
  min-width: 128px;
  min-height: 42px;
  gap: 7px;
  font-size: 10px;
}

.account-form-footer .btn-crimson:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.account-save-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b8178;
  font-size: 9px;
  line-height: 1.5;
}

.account-save-status.success {
  color: #77bf9e;
}

.account-save-status.error {
  color: #e4c99a;
}

.account-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-membership {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(217, 179, 107, 0.17);
  border-radius: 23px;
  background:
    radial-gradient(
      90% 130% at 100% 0%,
      rgba(196, 133, 50, 0.2),
      transparent 56%
    ),
    linear-gradient(145deg, rgba(53, 40, 22, 0.88), rgba(27, 19, 18, 0.92));
}

.account-membership::after {
  content: "VIP";
  position: absolute;
  right: 13px;
  bottom: -17px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-ui);
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.account-membership > * {
  position: relative;
  z-index: 1;
}

.account-membership .eyebrow {
  margin-top: 13px;
  color: #d7b881;
}

.account-membership h2 {
  max-width: 280px;
  margin: 5px 0 7px;
  color: #fff8eb;
  font-size: 23px;
}

.account-membership p {
  min-height: 32px;
  margin-bottom: 16px;
  color: #b9aa96;
}

.account-membership .btn-line {
  min-height: 37px;
  border-color: rgba(241, 209, 156, 0.25);
  background: rgba(255, 255, 255, 0.045);
  color: #f0d7aa;
}

.account-vip-note {
  display: block;
  margin: -7px 0 13px;
  color: #d5a06e;
  font-size: 8px;
}

.account-security {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  padding: 19px;
}

.account-security > div {
  min-width: 0;
}

.account-security .account-logout-button {
  grid-column: span 2;
  width: 100%;
  margin-top: 16px;
}

.account-session-list {
  grid-column: span 2;
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.account-session {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.account-session.is-current {
  border-color: rgba(217, 179, 107, 0.2);
  background: rgba(217, 179, 107, 0.045);
}

.account-session-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9b36b;
}

.account-session > div {
  min-width: 0;
  flex: 1;
}

.account-session strong,
.account-session small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-session strong {
  color: #ded6cb;
  font-size: 10px;
  font-weight: 600;
}

.account-session strong em {
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(217, 179, 107, 0.14);
  color: #dfbc78;
  font-size: 7px;
  font-style: normal;
}

.account-session small {
  margin-top: 3px;
  color: #776f67;
  font-size: 8px;
}

.account-session > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8e8277;
  cursor: pointer;
}

.account-session > button:hover:not(:disabled) {
  border-color: rgba(223, 189, 131, 0.24);
  background: rgba(223, 189, 131, 0.075);
  color: #f0d3a0;
}

.account-session-empty {
  margin: 0;
  color: #7c736a;
  font-size: 9px;
}

.account-activity {
  margin-top: 14px;
  padding: 22px;
}

.account-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-activity-head .text-link {
  flex: 0 0 auto;
  margin-top: 7px;
}

.account-transactions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.account-transaction {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.account-transaction-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #a59689;
}

.account-transaction-mark.is-credit {
  background: rgba(217, 179, 107, 0.065);
  color: var(--gold);
}

.account-transaction > div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.account-transaction strong,
.account-transaction small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-transaction strong {
  color: #c8beb5;
  font-size: 10px;
  font-weight: 700;
}

.account-transaction small {
  color: #726960;
  font-size: 8px;
}

.account-transaction b {
  color: #b59892;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 760;
}

.account-transaction b.is-credit {
  color: var(--gold);
}

.account-activity-empty {
  min-height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #776e66;
}

.account-activity-empty svg {
  color: #8f7d68;
}

.spin {
  animation: account-spin 0.9s linear infinite;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-theme="light"] .account-heading {
  border-color: rgba(49, 37, 31, 0.1);
}

html[data-theme="light"] .account-heading p,
html[data-theme="light"] .account-loading,
html[data-theme="light"] .account-gate p,
html[data-theme="light"] .account-panel p,
html[data-theme="light"] .account-activity p {
  color: #81756a;
}

html[data-theme="light"] .account-gate {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(55% 80% at 50% 0%, rgba(190, 77, 87, 0.1), transparent 68%),
    rgba(255, 252, 247, 0.7);
}

html[data-theme="light"] .account-gate-icon {
  border-color: rgba(149, 97, 28, 0.2);
  background: rgba(149, 97, 28, 0.07);
  color: #95611c;
}

html[data-theme="light"] .account-hero-card {
  border-color: rgba(49, 37, 31, 0.09);
  background:
    radial-gradient(
      70% 160% at 100% 0%,
      rgba(196, 158, 98, 0.12),
      transparent 58%
    ),
    radial-gradient(
      48% 130% at 0% 100%,
      rgba(149, 97, 28, 0.08),
      transparent 64%
    ),
    linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(246, 239, 230, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 60px -52px rgba(75, 51, 36, 0.42);
}

html[data-theme="light"] .account-kicker,
html[data-theme="light"] .account-identity p,
html[data-theme="light"] .account-identity small,
html[data-theme="light"] .account-stat small,
html[data-theme="light"] .account-field-note,
html[data-theme="light"] .account-transaction small {
  color: #7e7166;
}

html[data-theme="light"] .account-stat,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-activity {
  border-color: rgba(49, 37, 31, 0.09);
  background: rgba(255, 252, 247, 0.72);
}

html[data-theme="light"] .account-stat strong,
html[data-theme="light"] .account-panel h2,
html[data-theme="light"] .account-activity h2 {
  color: #211a18;
}

html[data-theme="light"] .account-select {
  border-color: rgba(49, 37, 31, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: #211a18;
}

html[data-theme="light"] .account-select option {
  background: #fffaf3;
  color: #211a18;
}

html[data-theme="light"] .account-form .field-input.is-readonly {
  background: rgba(49, 37, 31, 0.035);
}

html[data-theme="light"] .account-activity-head,
html[data-theme="light"] .account-transaction {
  border-color: rgba(49, 37, 31, 0.08);
}

html[data-theme="light"] .account-transaction-mark {
  background: rgba(49, 37, 31, 0.045);
  color: #81756a;
}

html[data-theme="light"] .account-transaction strong {
  color: #4f443b;
}

html[data-theme="light"] .account-transaction b {
  color: #8d625e;
}

html[data-theme="light"] .account-transaction b.is-credit {
  color: #95611c;
}

@media (max-width: 960px) {
  .account-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .account-page {
    padding: 29px 15px 76px;
  }

  .account-heading {
    align-items: flex-start;
  }

  .account-heading h1 {
    font-size: 40px;
  }

  .account-hero-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
  }

  .account-actions {
    width: 100%;
  }

  .account-actions > * {
    flex: 1;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .account-form .field:first-child,
  .account-form-footer {
    grid-column: span 1;
  }

  .account-side,
  .account-transactions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .account-identity {
    align-items: flex-start;
    gap: 14px;
  }

  .account-portrait {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    font-size: 28px;
  }

  .account-identity h2 {
    font-size: 25px;
  }

  .account-stat {
    padding: 12px;
  }

  .account-stat-icon {
    width: 33px;
    height: 33px;
  }

  .account-stat > a {
    display: none;
  }

  .account-profile-panel,
  .account-activity {
    padding: 18px;
  }

  .account-actions {
    flex-direction: column;
  }

  .account-actions > * {
    width: 100%;
  }

  .account-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

/* Search suggestions */
.search-shell {
  position: relative;
  overflow: visible;
}

.search-shell:focus-within {
  z-index: 130;
}

.search-spinner {
  flex: 0 0 auto;
  color: var(--gold);
  animation: search-spin 0.8s linear infinite;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 140;
  width: min(380px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 110px));
  overflow-y: auto;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 19px;
  background:
    radial-gradient(
      100% 80% at 100% 0%,
      rgba(151, 37, 68, 0.17),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(29, 23, 29, 0.99), rgba(9, 8, 12, 0.99));
  box-shadow:
    0 28px 64px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  animation: account-menu-in 0.18s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 179, 107, 0.22) transparent;
}

.search-suggestion-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-suggestion-group + .search-suggestion-group {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.search-suggestion-label {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  color: #81766c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-suggestion-category,
.search-suggestion-drama {
  min-width: 0;
  display: flex;
  align-items: center;
  border-radius: 12px;
  color: inherit;
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}

.search-suggestion-category {
  min-height: 43px;
  gap: 9px;
  padding: 6px 9px;
}

.search-suggestion-category > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.search-suggestion-category strong,
.search-suggestion-category small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-category strong {
  color: #cdc1b5;
  font-size: 10px;
  font-weight: 720;
}

.search-suggestion-category small {
  color: #766c64;
  font-size: 8px;
}

.search-suggestion-category > svg {
  flex: 0 0 auto;
  color: #756b62;
}

.search-result-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 179, 107, 0.13);
  border-radius: 9px;
  background: rgba(217, 179, 107, 0.055);
  color: var(--gold);
}

.search-suggestion-category:hover,
.search-suggestion-category.is-active,
.search-suggestion-drama:hover,
.search-suggestion-drama.is-active {
  background: rgba(255, 255, 255, 0.065);
}

.search-suggestion-category:focus-visible,
.search-suggestion-drama:focus-visible,
.search-view-all:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}

.search-suggestion-drama {
  min-height: 57px;
  gap: 10px;
  padding: 6px 8px;
}

.search-result-thumb {
  width: 34px;
  height: 45px;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 16px -11px rgba(0, 0, 0, 0.9);
}

.search-result-thumb .fig {
  right: -15%;
  bottom: -8%;
  left: auto;
  width: 100%;
  height: 105%;
  transform: none;
  filter: blur(3px);
}

.search-result-thumb.has-cover .fig {
  display: none;
}

.search-result-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.search-result-copy strong,
.search-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  color: #e1d7cc;
  font-size: 11px;
  font-weight: 730;
}

.search-result-copy small {
  color: #80756c;
  font-size: 8px;
}

.search-result-rating {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(217, 179, 107, 0.12);
  border-radius: 999px;
  color: #c4a978;
  font-size: 8px;
  font-weight: 750;
}

.search-suggestion-empty {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #887d73;
  font-size: 9px;
  text-align: center;
}

.search-suggestion-empty svg {
  color: #a18d72;
}

.search-view-all {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0 0 11px 11px;
  color: #b9a58a;
  font-size: 9px;
  font-weight: 700;
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease);
}

.search-view-all:hover {
  background: rgba(217, 179, 107, 0.055);
  color: #ead3a9;
}

html[data-theme="light"] .search-suggestions {
  border-color: rgba(49, 37, 31, 0.11);
  background:
    radial-gradient(
      100% 80% at 100% 0%,
      rgba(196, 158, 98, 0.08),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(255, 253, 249, 0.99), #f4ede3);
  box-shadow:
    0 24px 58px -25px rgba(75, 51, 36, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .search-suggestion-group + .search-suggestion-group,
html[data-theme="light"] .search-view-all {
  border-color: rgba(49, 37, 31, 0.08);
}

html[data-theme="light"] .search-suggestion-label,
html[data-theme="light"] .search-suggestion-category small,
html[data-theme="light"] .search-result-copy small,
html[data-theme="light"] .search-suggestion-empty {
  color: #81756a;
}

html[data-theme="light"] .search-suggestion-category strong,
html[data-theme="light"] .search-result-copy strong {
  color: #2b211d;
}

html[data-theme="light"]
  :is(
    .search-suggestion-category:hover,
    .search-suggestion-category.is-active,
    .search-suggestion-drama:hover,
    .search-suggestion-drama.is-active
  ) {
  background: rgba(49, 37, 31, 0.055);
}

html[data-theme="light"] .search-result-icon {
  border-color: rgba(149, 97, 28, 0.14);
  background: rgba(149, 97, 28, 0.06);
  color: #95611c;
}

html[data-theme="light"] .search-result-rating {
  border-color: rgba(149, 97, 28, 0.13);
  color: #95611c;
}

html[data-theme="light"] .search-view-all {
  color: #7e633a;
}

html[data-theme="light"] .search-view-all:hover {
  background: rgba(149, 97, 28, 0.06);
  color: #67481e;
}

@media (max-width: 860px) {
  .mobile-nav-search.search-shell {
    display: flex;
  }

  .mobile-nav-search.search-shell .search-suggestions {
    position: static;
    width: 100%;
    max-height: min(52dvh, 430px);
    margin-top: 7px;
    animation: none;
  }
}

@media (max-width: 480px) {
  .search-suggestions {
    padding: 7px;
    border-radius: 16px;
  }

  .search-suggestion-drama {
    min-height: 54px;
  }

  .search-result-thumb {
    width: 31px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-spinner,
  .search-suggestions {
    animation: none;
  }
}

/* Recommendation rail */
.recommendation-section {
  position: relative;
}

.recommendation-head {
  align-items: flex-start;
}

.section-note {
  max-width: 540px;
  margin: 1px 0 0;
  color: #81766d;
  font-size: 10px;
  line-height: 1.65;
}

.recommendation-basis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -3px 0 13px;
  color: #756c64;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recommendation-basis b {
  padding: 4px 8px;
  border: 1px solid rgba(217, 179, 107, 0.14);
  border-radius: 999px;
  background: rgba(217, 179, 107, 0.055);
  color: #bda77f;
  font-size: 8px;
  font-weight: 750;
}

.recommendation-rail {
  position: relative;
}

.recommendation-rail::before {
  content: "";
  position: absolute;
  inset: -11px -13px -8px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(217, 179, 107, 0.025),
    transparent 42%,
    rgba(153, 37, 68, 0.04)
  );
  pointer-events: none;
}

html[data-theme="light"] .section-note,
html[data-theme="light"] .recommendation-basis {
  color: #81756a;
}

html[data-theme="light"] .recommendation-basis b {
  border-color: rgba(149, 97, 28, 0.14);
  background: rgba(149, 97, 28, 0.06);
  color: #7e633a;
}

@media (max-width: 640px) {
  .recommendation-head {
    gap: 10px;
  }

  .section-note {
    max-width: 90%;
  }
}

/* Membership renewal controls */
.account-membership-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.account-renewal-cancel,
.account-renewal-resume {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.account-renewal-cancel {
  border: 1px solid rgba(231, 115, 139, 0.2);
  background: rgba(231, 115, 139, 0.055);
  color: #e2cb9d;
}

.account-renewal-cancel:hover {
  border-color: rgba(231, 115, 139, 0.34);
  background: rgba(231, 115, 139, 0.11);
  color: #f3dfba;
}

.account-renewal-resume {
  border: 1px solid rgba(217, 179, 107, 0.22);
  background: rgba(217, 179, 107, 0.07);
  color: #dfc28e;
}

.account-renewal-resume:hover {
  border-color: rgba(217, 179, 107, 0.36);
  background: rgba(217, 179, 107, 0.13);
  color: #f4ddb7;
}

.account-renewal-cancel:disabled,
.account-renewal-resume:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-renewal-cancel:focus-visible,
.account-renewal-resume:focus-visible,
.account-renewal-confirm button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.account-renewal-confirm {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.account-renewal-confirm strong {
  display: block;
  color: #f2ddd0;
  font-size: 10px;
}

.account-renewal-confirm p {
  min-height: 0;
  margin: 5px 0 10px;
  color: #a99b8d;
  font-size: 8px;
  line-height: 1.55;
}

.account-renewal-confirm > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-renewal-confirm button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #baafa3;
  font-size: 8px;
  font-weight: 720;
  cursor: pointer;
}

.account-renewal-confirm button:first-child {
  border-color: rgba(231, 115, 139, 0.2);
  background: rgba(231, 115, 139, 0.08);
  color: #eaa5b3;
}

.account-renewal-message {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #b9aa96;
  font-size: 8px;
  line-height: 1.5;
}

.account-renewal-message.success {
  color: #99caaf;
}

.account-renewal-message.error {
  color: #f09aab;
}

html[data-theme="light"] .account-renewal-confirm {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(49, 37, 31, 0.035);
}

html[data-theme="light"] .account-renewal-confirm strong {
  color: #332820;
}

html[data-theme="light"] .account-renewal-confirm p {
  color: #776b61;
}

html[data-theme="light"] .account-renewal-cancel,
html[data-theme="light"] .account-renewal-resume {
  color: #805967;
}

@media (max-width: 480px) {
  .account-membership-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-membership-actions > * {
    width: 100%;
  }
}

/* Notification center */
.notification-picker {
  position: relative;
}

.notification-trigger {
  width: 36px;
  height: 36px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: #a89d93;
  cursor: pointer;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.notification-trigger:hover,
.notification-trigger.is-open {
  border-color: rgba(217, 179, 107, 0.34);
  background: rgba(217, 179, 107, 0.09);
  color: var(--gold);
}

.notification-trigger:focus-visible,
.notification-head button:focus-visible,
.notification-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #151116;
  border-radius: 999px;
  background: #d92f58;
  color: #fff;
  font-size: 7px;
  font-weight: 850;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 150;
  width: min(370px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(
      100% 70% at 100% 0%,
      rgba(151, 37, 68, 0.16),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(29, 23, 29, 0.99), rgba(9, 8, 12, 0.99));
  box-shadow:
    0 28px 64px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  animation: account-menu-in 0.18s var(--ease);
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notification-head > div {
  min-width: 0;
}

.notification-head strong,
.notification-head small {
  display: block;
}

.notification-head strong {
  color: var(--ivory);
  font-size: 12px;
  font-weight: 780;
}

.notification-head small {
  margin-top: 3px;
  color: #7f756c;
  font-size: 8px;
}

.notification-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(217, 179, 107, 0.13);
  border-radius: 999px;
  background: rgba(217, 179, 107, 0.055);
  color: #bca57e;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.notification-head button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.notification-list {
  max-height: min(430px, calc(100dvh - 170px));
  overflow-y: auto;
  padding: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 179, 107, 0.2) transparent;
}

.notification-item {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover,
.notification-item.is-unread:hover {
  background: rgba(255, 255, 255, 0.055);
}

.notification-item.is-unread {
  background: rgba(217, 179, 107, 0.035);
}

.notification-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 179, 107, 0.17);
  border-radius: 10px;
  background: rgba(217, 179, 107, 0.065);
  color: var(--gold);
}

.notification-icon.is-read {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: #81766d;
}

.notification-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding-right: 10px;
}

.notification-copy strong {
  color: #d7ccc1;
  font-size: 10px;
  font-weight: 750;
}

.notification-copy small {
  color: #857b72;
  font-size: 8px;
  line-height: 1.55;
}

.notification-copy time {
  color: #665e57;
  font-size: 7px;
}

.notification-unread-dot {
  width: 6px;
  height: 6px;
  position: absolute;
  top: 15px;
  right: 11px;
  border-radius: 50%;
  background: #df4167;
  box-shadow: 0 0 10px rgba(223, 65, 103, 0.55);
}

.notification-state {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7b7168;
  font-size: 9px;
  text-align: center;
}

.notification-state svg {
  color: #9f8b70;
}

html[data-theme="light"] .notification-trigger {
  border-color: rgba(49, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: #74695f;
}

html[data-theme="light"] .notification-trigger:hover,
html[data-theme="light"] .notification-trigger.is-open {
  border-color: rgba(149, 97, 28, 0.24);
  background: rgba(149, 97, 28, 0.075);
  color: #95611c;
}

html[data-theme="light"] .notification-badge {
  border-color: #fffaf3;
}

html[data-theme="light"] .notification-menu {
  border-color: rgba(49, 37, 31, 0.11);
  background:
    radial-gradient(
      100% 70% at 100% 0%,
      rgba(196, 158, 98, 0.08),
      transparent 58%
    ),
    linear-gradient(145deg, rgba(255, 253, 249, 0.99), #f4ede3);
  box-shadow:
    0 24px 58px -25px rgba(75, 51, 36, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .notification-head,
html[data-theme="light"] .notification-item {
  border-color: rgba(49, 37, 31, 0.08);
}

html[data-theme="light"] .notification-head strong,
html[data-theme="light"] .notification-copy strong {
  color: #2b211d;
}

html[data-theme="light"] .notification-head small,
html[data-theme="light"] .notification-copy small {
  color: #81756a;
}

html[data-theme="light"] .notification-item.is-unread {
  background: rgba(149, 97, 28, 0.045);
}

@media (max-width: 640px) {
  .notification-trigger {
    width: 34px;
    height: 34px;
  }

  .notification-menu {
    position: fixed;
    top: 64px;
    right: 12px;
  }
}

.library-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.library-toolbar-actions .text-link {
  white-space: nowrap;
}

.library-clear-history {
  color: #ef837f;
}

.library-item-link {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 17px;
  border-radius: inherit;
}

.library-list,
.library-item {
  min-width: 0;
  width: 100%;
}

.library-item {
  box-sizing: border-box;
}

.library-title {
  overflow-wrap: anywhere;
}

.library-delete {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(239, 131, 127, 0.2);
  border-radius: 12px;
  background: rgba(239, 131, 127, 0.055);
  color: #d98d88;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.library-delete:hover {
  border-color: rgba(239, 131, 127, 0.36);
  background: rgba(239, 131, 127, 0.11);
  color: #ffb0aa;
}

.library-delete:disabled {
  opacity: 0.5;
  cursor: wait;
}

.library-delete:focus-visible,
.library-action-message button:focus-visible {
  outline: 2px solid rgba(217, 179, 107, 0.75);
  outline-offset: 3px;
}

.library-action-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(217, 179, 107, 0.18);
  border-radius: 14px;
  background: rgba(217, 179, 107, 0.055);
  color: #d8c7aa;
  font-size: 11px;
}

.library-action-message button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(217, 179, 107, 0.22);
  border-radius: 9px;
  background: rgba(217, 179, 107, 0.08);
  color: #e7c78d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.library-action-message button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.library-spin {
  animation: spin 0.8s linear infinite;
}

.stage-rail .stage-like-count {
  color: rgba(245, 238, 228, 0.68);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .library-clear-history,
html[data-theme="light"] .library-delete {
  color: #a54a46;
}

html[data-theme="light"] .library-delete {
  border-color: rgba(165, 74, 70, 0.16);
  background: rgba(165, 74, 70, 0.045);
}

html[data-theme="light"] .library-delete:hover {
  border-color: rgba(165, 74, 70, 0.3);
  background: rgba(165, 74, 70, 0.08);
  color: #87332f;
}

html[data-theme="light"] .library-action-message {
  border-color: rgba(149, 97, 28, 0.15);
  background: rgba(149, 97, 28, 0.055);
  color: #6e5c49;
}

html[data-theme="light"] .library-action-message button {
  border-color: rgba(149, 97, 28, 0.2);
  background: rgba(149, 97, 28, 0.075);
  color: #8a5a19;
}

.advanced-search-panel {
  border: 1px solid rgba(245, 238, 228, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%),
    rgba(16, 14, 13, 0.72);
  overflow: hidden;
}

.advanced-search-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  color: rgba(247, 242, 234, 0.9);
}

.advanced-search-panel > summary::-webkit-details-marker {
  display: none;
}

.advanced-search-panel > summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.advanced-search-panel > summary small {
  color: rgba(247, 242, 234, 0.48);
  font-size: 10px;
}

.advanced-search-panel[open] > summary {
  border-bottom: 1px solid rgba(245, 238, 228, 0.09);
}

.advanced-search-panel form {
  padding: 16px;
}

.advanced-search-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
}

.advanced-search-field {
  display: grid;
  gap: 6px;
}

.advanced-search-field > span {
  color: rgba(247, 242, 234, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-search-field input,
.advanced-search-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(245, 238, 228, 0.12);
  border-radius: 11px;
  background: rgba(245, 238, 228, 0.045);
  color: rgba(247, 242, 234, 0.9);
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.advanced-search-field input:focus,
.advanced-search-field select:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.advanced-search-field select option {
  background: #171412;
  color: #f7f2ea;
}

.advanced-search-keyword {
  grid-column: span 1;
}

.advanced-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.advanced-search-spacer {
  flex: 1;
}

.advanced-original-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 242, 234, 0.7);
  font-size: 11px;
}

.advanced-original-toggle input {
  accent-color: var(--accent);
}

.advanced-search-actions .btn-line,
.advanced-search-actions .btn-crimson {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 11px;
}

html[data-theme="light"] .advanced-search-panel {
  border-color: rgba(72, 49, 30, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), transparent 54%),
    rgba(249, 245, 238, 0.92);
}

html[data-theme="light"] .advanced-search-panel > summary {
  color: #3a2c22;
}

html[data-theme="light"] .advanced-search-panel > summary small,
html[data-theme="light"] .advanced-search-field > span {
  color: rgba(58, 44, 34, 0.5);
}

html[data-theme="light"] .advanced-search-panel[open] > summary {
  border-bottom-color: rgba(72, 49, 30, 0.1);
}

html[data-theme="light"] .advanced-search-field input,
html[data-theme="light"] .advanced-search-field select {
  border-color: rgba(72, 49, 30, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: #372a21;
}

html[data-theme="light"] .advanced-search-field select option {
  background: #fffaf2;
  color: #372a21;
}

html[data-theme="light"] .advanced-original-toggle {
  color: rgba(58, 44, 34, 0.72);
}

.watch-cast {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.watch-cast > span {
  color: rgba(245, 238, 228, 0.42);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-cast > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.watch-cast a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid rgba(245, 238, 228, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(247, 242, 234, 0.78);
  font-size: 10px;
}

.watch-cast a small {
  color: rgba(247, 242, 234, 0.42);
  font-size: 8px;
}

.watch-cast a:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--accent);
}

html[data-theme="light"] .watch-cast > span {
  color: rgba(58, 44, 34, 0.4);
}

html[data-theme="light"] .watch-cast a {
  border-color: rgba(72, 49, 30, 0.13);
  color: rgba(58, 44, 34, 0.76);
}

@media (max-width: 640px) {
  .library-toolbar-actions {
    gap: 10px;
  }

  .library-item-link {
    gap: 13px;
  }

  .library-delete {
    width: 40px;
    padding-inline: 0;
  }

  .library-delete span {
    display: none;
  }

  .library-action-message {
    align-items: flex-start;
  }

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

  .advanced-search-keyword {
    grid-column: 1 / -1;
  }

  .advanced-search-actions {
    flex-wrap: wrap;
  }

  .advanced-search-spacer {
    display: none;
  }

  .advanced-search-actions .btn-line,
  .advanced-search-actions .btn-crimson {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .advanced-search-grid {
    grid-template-columns: 1fr;
  }

  .advanced-search-keyword {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-menu {
    animation: none;
  }

  .library-spin {
    animation: none;
  }
}
