:root {
  --bg-base: #0a0c11;
  --bg-surface: #12151d;
  --bg-elevated: #191d28;
  --bg-card: #141822;
  --bg-player: #05060a;

  --accent: #ff2d63;
  --accent-hover: #ff5580;
  --accent-soft: rgba(255, 45, 99, 0.13);
  --accent-ring: rgba(255, 45, 99, 0.4);
  --accent-2: #ffb02e;
  --accent-2-soft: rgba(255, 176, 46, 0.14);
  --secondary: #7b5cff;
  --info: #37d3c2;

  --text-primary: #f4f5f8;
  --text-secondary: #a7adbe;
  --text-muted: #6c7285;
  --text-on-accent: #1a0409;

  --border: #242936;
  --border-subtle: #1b1f29;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;

  --container: 1320px;
  --header-h: 66px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STZhongsong", Georgia, serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% -8%, rgba(255, 45, 99, 0.16), transparent 70%),
    radial-gradient(620px 400px at 92% 4%, rgba(123, 92, 255, 0.14), transparent 72%),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 176, 46, 0.07), transparent 70%);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1em;
}

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

li {
  margin-bottom: 0.45em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 46px 0 6px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(19px, 2.2vw, 24px);
}

.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-ring);
}

.section-title small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translateY(2px);
}

.section-desc {
  margin: 10px 0 0;
  max-width: 78ch;
  color: var(--text-secondary);
  font-size: 14px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.section-more:hover {
  color: var(--text-primary);
  border-color: var(--accent-ring);
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6a45);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 45, 99, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 45, 99, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.tag-accent {
  color: #ffd0dd;
  background: var(--accent-soft);
  border-color: rgba(255, 45, 99, 0.28);
}

.tag-gold {
  color: #ffdfa3;
  background: var(--accent-2-soft);
  border-color: rgba(255, 176, 46, 0.3);
}

.tag-info {
  color: #b6f1ea;
  background: rgba(55, 211, 194, 0.12);
  border-color: rgba(55, 211, 194, 0.28);
}

.adult-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #ff2d63, #b3104a);
  box-shadow: 0 4px 12px rgba(255, 45, 99, 0.3);
}

/* ---------- Top notice ---------- */
.topbar {
  background: linear-gradient(90deg, rgba(255, 45, 99, 0.16), rgba(123, 92, 255, 0.12) 55%, rgba(255, 176, 46, 0.1));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
}

.topbar-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd0dd;
  font-weight: 600;
}

.topbar-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.topbar-track span {
  display: inline-block;
  padding-left: 100%;
  animation: topbar-scroll 28s linear infinite;
}

@keyframes topbar-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.topbar-links {
  display: none;
  gap: 14px;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(8, 10, 14, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #7b5cff 70%, #ffb02e);
  box-shadow: 0 8px 22px rgba(255, 45, 99, 0.35);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

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

.nav-link {
  position: relative;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: #fff;
  background: var(--accent-soft);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

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

.search-form {
  position: relative;
  display: none;
}

.search-form svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 210px;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 13.5px;
  transition: width var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.search-form.is-inline {
  display: block;
}

.search-form.is-inline .search-input {
  display: block;
  width: 100%;
  min-width: 220px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  width: 250px;
  border-color: var(--accent-ring);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  box-shadow: 0 -5px 0 var(--text-primary), 0 5px 0 var(--text-primary);
}

.mobile-nav {
  display: none;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-search {
  display: flex;
  margin: 12px 0 6px;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 22px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.hero-viewport {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 440px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-base) 2%, rgba(10, 12, 17, 0.92) 34%, rgba(10, 12, 17, 0.46) 68%, rgba(10, 12, 17, 0.78) 100%),
    linear-gradient(0deg, rgba(10, 12, 17, 0.95), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 46px clamp(20px, 5vw, 60px);
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffd0dd;
  background: rgba(255, 45, 99, 0.16);
  border: 1px solid rgba(255, 45, 99, 0.3);
}

.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 45, 99, 0.22);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #ffd7a8;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-meta .score {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 17px;
}

.hero-desc {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-controls {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(12, 14, 20, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.hero-arrow svg {
  width: 16px;
  height: 16px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 60px);
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 26px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}

.hero-dot.is-active {
  width: 44px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Intro strip ---------- */
.intro-strip {
  margin-top: 18px;
  padding: clamp(16px, 2.4vw, 24px) clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(120deg, rgba(255, 45, 99, 0.11), rgba(255, 255, 255, 0.022) 58%, rgba(123, 92, 255, 0.09));
}

.intro-strip h1 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.45;
  letter-spacing: 0.3px;
}

.intro-strip p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 120ch;
}

/* ---------- Quick stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-subtle);
}

.stat b {
  display: block;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, #ffb6c9 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Filter chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-ring);
  transform: translateY(-1px);
}

.chip.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #ff6a45);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 45, 99, 0.3);
}

/* ---------- Schedule ---------- */
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.day-tab em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 5px;
}

.day-tab.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 45, 99, 0.9), rgba(255, 106, 69, 0.9));
  border-color: transparent;
}

.day-tab.is-active em {
  color: rgba(255, 255, 255, 0.8);
}

.schedule-shell {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
  padding: 14px;
}

.day-panel {
  display: none;
}

.day-panel.is-active {
  display: block;
}

.day-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-height: 372px;
  align-content: start;
}

.day-row {
  display: grid;
  grid-template-columns: 52px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 14px 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid transparent;
  border-left: 3px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.day-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--accent);
  transform: translateX(3px);
}

.day-row.is-new {
  border-left-color: var(--accent);
}

.day-row.is-pending {
  opacity: 0.62;
}

.day-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.day-thumb {
  width: 46px;
  height: 69px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.day-main {
  min-width: 0;
}

.day-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-name:hover {
  color: var(--accent-hover);
}

.day-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.day-ep {
  font-size: 12.5px;
  color: #ffd0dd;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 45, 99, 0.24);
}

.day-ep.is-wait {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

/* ---------- Poster grid ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.45s var(--ease), filter var(--dur) var(--ease);
}

.card:hover .card-thumb img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.card-corner {
  position: absolute;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: calc(100% - 18px);
}

.card-corner .tag {
  backdrop-filter: blur(6px);
  background: rgba(10, 12, 17, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10.5px;
  padding: 1px 7px;
}

.card-corner .tag-live {
  background: linear-gradient(135deg, var(--accent), #b3104a);
  border-color: transparent;
}

.card-play {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 30px 10px 9px;
  font-size: 11.5px;
  color: #fff;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.55) 55%, transparent);
}

.card-play span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-play i {
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 45, 99, 0.45);
  transform: scale(0.75);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.card:hover .card-play i {
  transform: scale(1);
  opacity: 1;
}

.card-play svg {
  width: 11px;
  height: 11px;
}

.card-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.card:hover .card-title {
  color: var(--accent-hover);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.card-meta em {
  font-style: normal;
  color: var(--accent-2);
  font-weight: 700;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* ---------- Rank board ---------- */
.rank-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 15px 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.rank-no {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rank-item:nth-child(1) .rank-no {
  background: linear-gradient(160deg, #fff1b8, #ffb02e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-item:nth-child(2) .rank-no {
  background: linear-gradient(160deg, #f4f7ff, #b9c6de);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-item:nth-child(3) .rank-no {
  background: linear-gradient(160deg, #ffd6b0, #d08b52);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-thumb {
  width: 44px;
  height: 66px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.rank-main {
  min-width: 0;
}

.rank-name {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-name:hover {
  color: var(--accent-hover);
}

.rank-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-value {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.rank-value b {
  display: block;
  font-size: 15px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.rank-columns {
  display: grid;
  gap: 10px;
}

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 15px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-ring);
  background: linear-gradient(155deg, rgba(255, 45, 99, 0.14), rgba(255, 255, 255, 0.02));
}

.cat-tile b {
  font-size: 15px;
  font-weight: 700;
}

.cat-tile span {
  font-size: 12px;
  color: var(--text-muted);
}

.cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 45, 99, 0.24);
  color: #ff9fb8;
  font-size: 15px;
  font-weight: 800;
}

/* ---------- Topic cards ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.topic-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.topic-card:hover img {
  transform: scale(1.05);
}

.topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.94), rgba(5, 6, 10, 0.35) 55%, transparent);
}

.topic-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 16px 18px;
}

.topic-body b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.topic-body span {
  font-size: 12.5px;
  color: #ffd0dd;
}

/* ---------- Article / prose ---------- */
.prose {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  padding: clamp(20px, 3vw, 34px);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-primary);
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 22px 0 9px;
  font-size: 16.5px;
  color: #ffdbe4;
}

.prose p {
  margin: 0 0 1em;
}

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

.prose a {
  color: var(--accent-hover);
  border-bottom: 1px solid rgba(255, 85, 128, 0.4);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--accent);
}

.toc {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 45, 99, 0.06);
  border: 1px solid rgba(255, 45, 99, 0.2);
  font-size: 13.5px;
}

.toc b {
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 1px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 24px;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.toc a {
  color: var(--text-secondary);
  border: 0;
}

.toc a:hover {
  color: var(--accent-hover);
}

.callout {
  margin: 18px 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(255, 176, 46, 0.08);
  border: 1px solid rgba(255, 176, 46, 0.26);
  border-left: 3px solid var(--accent-2);
  font-size: 14px;
  color: #ffe6bd;
}

.callout b {
  color: var(--accent-2);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.faq-item[open] {
  border-color: rgba(255, 45, 99, 0.34);
  background: rgba(255, 45, 99, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

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

.faq-item summary::before {
  content: "Q";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff6a45);
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 18px 17px 52px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 44px 0 26px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

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

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent-hover);
}

.footer-disclaimer {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 21, 29, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-hover);
}

.breadcrumb span.sep {
  color: #3a4051;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  margin-top: 20px;
  padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(560px 260px at 8% 0%, rgba(255, 45, 99, 0.2), transparent 70%),
    radial-gradient(520px 260px at 96% 10%, rgba(123, 92, 255, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
}

.page-hero p {
  margin: 14px 0 0;
  max-width: 82ch;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ---------- Watch page ---------- */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.player-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-player);
  box-shadow: var(--shadow-lg);
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 45%, #161a24, #05060a 72%);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.player-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.9);
}

.player-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.player-play {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 40px rgba(255, 45, 99, 0.5);
  transition: transform var(--dur) var(--ease);
}

.player-play:hover {
  transform: scale(1.07);
}

.player-note {
  font-size: 12.5px;
  color: #cfd4e0;
  background: rgba(5, 6, 10, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.player-title {
  font-size: 15px;
  font-weight: 600;
}

.player-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

.ep-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.ep-panel h2 {
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ep-panel h2 small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  min-height: 240px;
  align-content: start;
}

.ep-btn {
  height: 40px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.ep-btn:hover {
  color: #fff;
  border-color: var(--accent-ring);
  background: rgba(255, 45, 99, 0.12);
}

.ep-btn.is-current {
  background: linear-gradient(135deg, var(--accent), #ff6a45);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 45, 99, 0.34);
}

.ep-btn.is-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.ep-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ep-nav .btn {
  flex: 1;
}

/* ---------- Detail bits ---------- */
.detail-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.detail-poster {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
}

.detail-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.detail-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-facts b {
  color: var(--accent-2);
  font-size: 15px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- Misc ---------- */
.hidden {
  display: none !important;
}

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

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}

.results-count b {
  color: var(--accent-2);
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 768px) {
  .container {
    padding: 0 26px;
  }

  .section {
    padding-top: 56px;
  }

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

  .rank-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 10px 16px;
  }

  .detail-head {
    grid-template-columns: 210px minmax(0, 1fr);
    padding: 24px;
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

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

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

@media (min-width: 1024px) {
  .search-form {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-slide {
    min-height: 468px;
  }

  .topbar-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (min-width: 1180px) {
  .main-nav {
    display: flex;
  }

  .section {
    padding-top: 64px;
  }

  .hero-slide {
    min-height: 500px;
  }

  .poster-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .poster-grid.is-library {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .poster-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 559px) {
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-slide {
    min-height: 400px;
  }

  .hero-content {
    padding: 28px 20px 60px;
  }

  .hero-controls {
    right: 14px;
    bottom: 14px;
  }

  .hero-dots {
    left: 20px;
    bottom: 20px;
  }

  .hero-desc {
    -webkit-line-clamp: 2;
    font-size: 13.5px;
  }

  .hero-actions .btn {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
  }

  .day-row {
    grid-template-columns: 44px 40px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  .day-thumb {
    width: 40px;
    height: 60px;
  }

  .day-ep {
    display: none;
  }

  .rank-item {
    grid-template-columns: 30px 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 12px;
  }

  .rank-thumb {
    width: 38px;
    height: 57px;
  }

  .toc ol {
    columns: 1;
  }

  .card-title {
    font-size: 13.5px;
  }
}

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