

:root {

  --bg-base: #0f1117;
  --bg-surface: #181b24;
  --bg-elevated: #1f2330;

  --accent: #f5c518;
  --accent-hover: #ffd53d;
  --accent-muted: rgba(245, 197, 24, 0.12);

  --secondary: #ff6b6b;
  --info: #4ecdc4;

  --text-primary: #f0f1f5;
  --text-secondary: #a0a5b5;
  --text-muted: #62687a;

  --border: #2a2f3d;
  --border-subtle: #222633;

  --bg-player: #080a0e;

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

  --on-accent: #0f1117;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 26px;
  --header-h: 64px;
  --max-w: 1320px;
  --gutter: 24px;
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, 0.85);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html { -webkit-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;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% 0 auto 0;
  height: 520px;
  background:
    radial-gradient(60% 100% at 22% 0%, rgba(245, 197, 24, 0.10), transparent 70%),
    radial-gradient(50% 90% at 82% 0%, rgba(78, 205, 196, 0.07), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: 0.2px; }
p { margin: 0; }
kbd {
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 4px var(--accent);
  border-radius: 6px;
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b3140; border-radius: 8px; border: 2px solid var(--bg-base); }
::-webkit-scrollbar-thumb:hover { background: #3a4254; }
::-webkit-scrollbar-track { background: transparent; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: 960px; }

main { display: block; position: relative; z-index: 1; }

.section { margin-block: clamp(36px, 4.6vw, 60px); }
.section--tight { margin-block: 28px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sec-head__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(245, 197, 24, 0.25));
  flex: none;
}
.sec-sub { font-size: 12.5px; color: var(--text-muted); padding-left: 14px; }
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  flex: none;
}
.sec-more:hover { color: var(--accent); border-color: rgba(245, 197, 24, 0.32); background: var(--accent-muted); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 17, 23, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { background: rgba(13, 15, 20, 0.92); border-bottom-color: var(--border); }
.site-header.is-transparent { background: linear-gradient(180deg, rgba(8, 10, 14, 0.9), transparent); border-bottom-color: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent), #ffb01f 62%, #ff8a3d);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -1px;
  box-shadow: 0 8px 20px -8px rgba(245, 197, 24, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-4deg);
  transition: transform var(--dur) var(--ease);
}
.logo:hover .logo-mark { transform: rotate(0deg) scale(1.04); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 17px; letter-spacing: 0.6px; }
.logo-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 9px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.main-nav a.is-active { color: var(--text-primary); font-weight: 600; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.8);
}

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

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  min-width: 190px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(24, 27, 36, 0.7);
  color: var(--text-muted);
  font-size: 13px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search-trigger:hover { border-color: #3d455a; color: var(--text-secondary); background: var(--bg-surface); }
.search-trigger span { flex: 1; text-align: left; }

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-surface); border-color: var(--border); }
.icon-btn .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 2px var(--bg-base);
}
.icon-btn.is-current { color: var(--accent); }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.35), rgba(15, 17, 23, 0.9));
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-block: 48px 36px;
}
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 13px; color: var(--text-primary); letter-spacing: 0.6px; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(2px); }
.footer-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }
.footer-note strong { color: var(--text-secondary); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--accent); }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.4px;
}

.mobile-tabbar { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -12px rgba(245, 197, 24, 0.9);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 14px 32px -12px rgba(245, 197, 24, 1); }

.btn--ghost { border-color: var(--border); color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: #3d455a; background: var(--bg-elevated); }

.btn--soft { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-subtle); }
.btn--soft:hover { border-color: #3d455a; }

.btn--text { height: 32px; padding: 0 10px; color: var(--text-secondary); font-weight: 500; }
.btn--text:hover { color: var(--accent); }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn.is-following { background: var(--accent-muted); color: var(--accent); border-color: rgba(245, 197, 24, 0.42); box-shadow: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.pill:hover { color: var(--text-primary); border-color: #3d455a; }
.pill.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.pill.is-active:hover { color: var(--on-accent); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.chip--accent { color: var(--accent); background: var(--accent-muted); border-color: rgba(245, 197, 24, 0.26); }
.chip--live { color: #ff8f8f; background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.28); }
.chip--info { color: var(--info); background: rgba(78, 205, 196, 0.1); border-color: rgba(78, 205, 196, 0.26); }

.meta { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.divider { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }
.stars { color: var(--accent); letter-spacing: 1px; }
.tabular { font-variant-numeric: tabular-nums; }

.page-head { padding-top: calc(var(--header-h) + 26px); }
.page-head__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}
.page-head__title small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.page-head__desc { margin-top: 8px; color: var(--text-secondary); font-size: 13.5px; max-width: 780px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #3a4050; }

main.page { padding-top: 0; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.grid-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-3 > .card-panel { margin: 0; }

.card { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter var(--dur) var(--ease);
  filter: saturate(1.02);
}
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.15) 38%, transparent 62%);
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card__play i {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.94);
  color: var(--on-accent);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
  transform: scale(0.85);
  transition: transform var(--dur) var(--ease);
}
.card__badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(8, 10, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card__badge--live { color: #fff; background: rgba(255, 107, 107, 0.9); border-color: transparent; }
.card__badge--done { color: var(--text-primary); }
.card__eps {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.95), rgba(8, 10, 14, 0.55) 60%, transparent);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.card__score {
  position: absolute;
  right: 8px; top: 8px;
  height: 21px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(8, 10, 14, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur) var(--ease);
}
.card:hover .card__title { color: var(--accent); }
.card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted); }
.card__meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #3a4050; }
.card__tags { display: flex; gap: 5px; flex-wrap: wrap; }

@media (hover: hover) {
  .card:hover .card__cover img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
  .card:hover .card__play { opacity: 1; }
  .card:hover .card__play i { transform: scale(1); }
  .card:hover .card__cover { border-color: rgba(245, 197, 24, 0.4); }
}

.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute;
  top: 38%;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(24, 27, 36, 0.92);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-pop);
  z-index: 3;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rail-btn:hover { background: var(--bg-elevated); border-color: #3d455a; color: var(--accent); }
.rail-btn--prev { left: -14px; }
.rail-btn--next { right: -14px; }

.hero { padding-top: calc(var(--header-h) + 22px); }
.hero-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: clamp(340px, 38vw, 460px);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  isolation: isolate;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  filter: blur(26px) saturate(1.5) brightness(0.62);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(11, 13, 18, 0.97) 0%, rgba(11, 13, 18, 0.86) 40%, rgba(11, 13, 18, 0.34) 100%),
    radial-gradient(90% 120% at 100% 50%, rgba(245, 197, 24, 0.14), transparent 60%),
    linear-gradient(to top, rgba(11, 13, 18, 0.9), transparent 45%);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
  padding: clamp(24px, 3.4vw, 48px);
  padding-bottom: clamp(48px, 4.4vw, 68px);
}
.hero-copy { flex: 1 1 auto; min-width: 0; max-width: 620px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid rgba(245, 197, 24, 0.32);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-kicker .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.06); }
}
.hero-title {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.hero-jp { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.hero-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 22px;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-next-info { font-size: 12px; color: var(--text-muted); }
.hero-next-info strong { color: var(--accent); font-variant-numeric: tabular-nums; }

.hero-poster {
  flex: none;
  width: clamp(132px, 15vw, 208px);
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: rotate(1.6deg);
  transition: transform 0.5s var(--ease);
}
.hero-poster:hover { transform: rotate(0deg) scale(1.02); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }

.hero-ctrl { position: absolute; left: clamp(24px, 3.4vw, 48px); bottom: 18px; display: flex; align-items: center; gap: 12px; z-index: 4; }
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
  width: 22px; height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero-dot.is-active { width: 40px; background: var(--accent); box-shadow: 0 0 14px rgba(245, 197, 24, 0.7); }
.hero-arrows { position: absolute; right: clamp(20px, 3vw, 40px); bottom: 16px; display: flex; gap: 8px; z-index: 4; }
.hero-arrow {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 19, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-arrow:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; transform: scale(1.06); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.6);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.stat-cell:hover { border-color: var(--border); background: var(--bg-surface); }
.stat-cell strong { font-size: 19px; font-family: var(--font-display); letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.stat-cell span { font-size: 12px; color: var(--text-muted); }
.stat-cell .stat-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-muted); color: var(--accent); flex: none; }

.week-box {
  border-radius: var(--radius-l);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.85), rgba(24, 27, 36, 0.45));
  padding: clamp(16px, 2vw, 24px);
}
.week-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.week-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.week-tabs::-webkit-scrollbar { display: none; }
.week-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.week-tab:hover { color: var(--text-primary); border-color: #3d455a; }
.week-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(245, 197, 24, 0.9);
}
.week-tab .tab-count {
  font-size: 11px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}
.week-tab.is-active .tab-count { background: rgba(15, 17, 23, 0.16); }
.week-today-hint { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.week-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
  min-height: 428px;
  align-content: start;
}
.week-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.week-row::before {
  content: "";
  position: absolute;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
  transition: height var(--dur) var(--ease);
}
.week-row.is-updated::before { height: 26px; }
.week-row.is-pending { opacity: 0.6; }
.week-row:hover { background: var(--bg-surface); border-color: var(--border); opacity: 1; }
.week-cover {
  width: 42px; height: 58px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.week-cover img { width: 100%; height: 100%; object-fit: cover; }
.week-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.week-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur) var(--ease);
}
.week-row:hover .week-name { color: var(--accent); }
.week-sub { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); }
.week-ep { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.week-ep b { font-size: 13px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.week-ep span { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.week-row.is-updated .week-ep b { color: var(--accent); }

.quarter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quarter-bar .quarter-now {
  height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.genre-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 35, 48, 0.85), rgba(24, 27, 36, 0.55));
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.genre-tile__ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: hsl(var(--hue) 68% 52% / 0.22);
  border: 1px solid hsl(var(--hue) 68% 60% / 0.42);
  color: hsl(var(--hue) 90% 76%);
  transition: transform var(--dur) var(--ease);
}
.genre-tile__name { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.genre-tile__count { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .genre-tile:hover { transform: translateY(-3px); border-color: hsl(var(--hue) 70% 55% / 0.5); }
  .genre-tile:hover .genre-tile__ic { transform: scale(1.06); }
  .genre-tile:hover .genre-tile__name { color: var(--text-primary); }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.72);
  border: 1px solid var(--border-subtle);
}
.filter-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label { font-size: 12px; color: var(--text-muted); margin-right: 2px; }
.filter-bar .sep { width: 1px; height: 20px; background: var(--border-subtle); }

.select {
  height: 32px;
  padding: 0 30px 0 11px;
  border-radius: 9px;
  background: var(--bg-elevated) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a5b5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.select:hover { border-color: #3d455a; }
.select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 22px 0 16px;
}
.toolbar__count { font-size: 13px; color: var(--text-muted); }
.toolbar__count b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; align-items: center; gap: 8px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
  transition: all var(--dur) var(--ease);
}
.pager a:hover { color: var(--text-primary); border-color: #3d455a; }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pager .is-gap { background: none; border-color: transparent; color: var(--text-muted); }
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.5);
  border: 1px solid var(--border-subtle);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rank-item:hover { background: var(--bg-surface); border-color: var(--border); transform: translateX(2px); }
.rank-no {
  flex: none;
  width: 36px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no { color: var(--accent); text-shadow: 0 0 18px rgba(245, 197, 24, 0.45); }
.rank-cover { width: 46px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rank-name { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item:hover .rank-name { color: var(--accent); }
.rank-meter { height: 4px; border-radius: 99px; background: #232838; overflow: hidden; max-width: 260px; }
.rank-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(245, 197, 24, 0.55), var(--accent)); }
.rank-val { flex: none; text-align: right; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.rank-val b { color: var(--accent); font-weight: 700; }

.detail-hero {
  position: relative;
  margin-top: var(--header-h);
  padding-block: clamp(24px, 3vw, 40px) 8px;
  overflow: hidden;
}
.detail-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.detail-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(34px) saturate(1.45) brightness(0.5);
  transform: scale(1.2);
}
.detail-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.72) 0%, rgba(15, 17, 23, 0.92) 55%, var(--bg-base) 100%);
}
.detail-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-pop);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; }
.detail-title { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; margin-bottom: 6px; }
.detail-jp { font-size: 13px; color: var(--text-muted); letter-spacing: 0.8px; margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9px;
  background: var(--accent-muted);
  border: 1px solid rgba(245, 197, 24, 0.3);
}
.detail-score b { font-size: 19px; color: var(--accent); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.detail-score span { font-size: 11px; color: var(--text-muted); }

.detail-summary {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.detail-summary.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.summary-toggle { color: var(--accent); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.summary-toggle:hover { color: var(--accent-hover); }

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 16px 0 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-fact { font-size: 12.5px; color: var(--text-muted); }
.detail-fact b { color: var(--text-secondary); font-weight: 500; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.ep-box {
  border-radius: var(--radius-l);
  border: 1px solid var(--border-subtle);
  background: rgba(24, 27, 36, 0.5);
  padding: clamp(16px, 2vw, 22px);
}
.ep-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ep-box__title { font-size: 16px; font-weight: 700; }
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  min-height: 120px;
  align-content: start;
}
.ep-cell {
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur) var(--ease);
}
.ep-cell:hover { color: var(--text-primary); border-color: #3d455a; background: var(--bg-surface); }
.ep-cell.is-new { color: var(--accent); border-color: rgba(245, 197, 24, 0.35); background: var(--accent-muted); }
.ep-cell.is-current {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 700;
}
.ep-cell.is-locked { color: var(--text-muted); opacity: 0.45; pointer-events: none; background: transparent; }
.ep-cell .ep-lock { font-size: 10px; }

.rec-tabs { display: flex; gap: 8px; margin-bottom: 16px; }

body.is-watch { background: var(--bg-player); }
body.is-watch::before { display: none; }

.watch-wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 18px) var(--gutter) 0;
}
.watch-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.watch-title { font-size: clamp(17px, 2vw, 21px); font-weight: 700; }
.watch-title span { color: var(--text-secondary); font-weight: 400; font-size: 0.82em; margin-left: 8px; }
.watch-title-row .meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.player-shell { display: flex; align-items: center; gap: 14px; }
.player-stage {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid #1a1e28;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1);
}
.player-stage img.player-poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.player-veil { position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 45%, transparent, rgba(0, 0, 0, 0.55)); }
.player-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.player-play {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.95);
  color: var(--on-accent);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(245, 197, 24, 0.14);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.player-play:hover { transform: scale(1.06); background: var(--accent-hover); }
.player-badge-tr {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 8px;
}
.player-chip {
  height: 26px;
  padding: 0 10px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 7px;
  font-size: 11.5px;
  color: #e9ebf1;
  background: rgba(8, 10, 14, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 55%, transparent);
  color: #fff;
}
.pc-bar { position: relative; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); margin-bottom: 10px; }
.pc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px rgba(245, 197, 24, 0.7); }
.pc-bar b {
  position: absolute; top: 50%; left: 34%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.22);
}
.pc-row { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #dfe2ea; }
.pc-row .pc-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #fff; opacity: 0.9; }
.pc-row .pc-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.pc-row .pc-time { font-variant-numeric: tabular-nums; color: #c3c8d4; }
.pc-row .pc-spacer { margin-left: auto; }
.pc-skip {
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
}
.pc-skip:hover { background: var(--accent-hover); }

.ep-nav {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid #232838;
  background: rgba(24, 27, 36, 0.9);
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease);
}
.ep-nav:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.ep-nav.is-disabled { opacity: 0.32; pointer-events: none; }

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 7, 11, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 5;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.overlay-card {
  width: min(430px, 100%);
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, #1d2130, #14161e);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
  text-align: center;
}
.overlay-card h3 { font-size: 17px; margin-bottom: 8px; }
.overlay-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.overlay-card .overlay-actions { display: flex; gap: 10px; justify-content: center; }
.overlay-time { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown-ring {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(245, 197, 24, 0.32);
  border-top-color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  animation: spin 5s linear infinite;
  font-variant-numeric: tabular-nums;
}
@keyframes spin { to { transform: rotate(360deg) } }
.countdown-ring span { animation: spin 5s linear infinite reverse; }

.watch-body { max-width: 1100px; margin: 22px auto 0; padding-inline: var(--gutter); }
.watch-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.55);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}
.info-strip__main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.info-strip__cover { width: 52px; height: 72px; border-radius: 8px; overflow: hidden; flex: none; border: 1px solid var(--border-subtle); }
.info-strip__cover img { width: 100%; height: 100%; object-fit: cover; }
.info-strip h2 { font-size: 15px; margin-bottom: 4px; }
.info-strip p { font-size: 12.5px; color: var(--text-muted); }

.watch-ep-box {
  border-radius: var(--radius-l);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 23, 31, 0.8);
  padding: 18px;
  min-height: 190px;
}
.watch-ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.watch-ep {
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  transition: all var(--dur) var(--ease);
}
.watch-ep:hover { color: var(--text-primary); border-color: #3d455a; }
.watch-ep.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.watch-ep.is-locked { opacity: 0.4; color: var(--text-muted); background: transparent; pointer-events: none; }

.watch-foot-nav { display: flex; gap: 10px; margin-top: 16px; }
.watch-foot-nav .btn { flex: 1; }

.accordion {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(24, 27, 36, 0.45);
  overflow: hidden;
  margin-top: 18px;
}
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.accordion__btn:hover { background: rgba(255, 255, 255, 0.03); }
.accordion__btn .acc-ic { transition: transform var(--dur) var(--ease); color: var(--text-muted); }
.accordion.is-open .acc-ic { transform: rotate(180deg); }
.accordion__body { display: none; padding: 0 18px 18px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; }
.accordion.is-open .accordion__body { display: block; }

.demo-bar {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(245, 197, 24, 0.32);
  background: rgba(245, 197, 24, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.demo-bar__label { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.4px; }
.demo-bar .btn--soft { height: 30px; font-size: 12.5px; padding: 0 12px; }

.tab-line { display: flex; gap: 6px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tab-line::-webkit-scrollbar { display: none; }
.tab-line button {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.tab-line button:hover { color: var(--text-primary); }
.tab-line button.is-active { color: var(--text-primary); font-weight: 600; }
.tab-line button.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.list-row:hover { background: var(--bg-surface); border-color: var(--border-subtle); }
.list-row + .list-row { margin-top: 4px; }
.list-row__cover { width: 54px; height: 76px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); }
.list-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.list-row__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.list-row__title { font-size: 14.5px; font-weight: 500; }
.list-row__title:hover { color: var(--accent); }
.list-row__sub { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.progress { height: 3px; border-radius: 99px; background: #232838; overflow: hidden; max-width: 340px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, rgba(245, 197, 24, 0.6), var(--accent)); border-radius: 99px; }
.list-row__action { flex: none; display: flex; align-items: center; gap: 8px; }

.notif-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.5);
  border: 1px solid var(--border-subtle);
}
.notif-row.is-unread { border-color: rgba(245, 197, 24, 0.3); background: linear-gradient(90deg, rgba(245, 197, 24, 0.07), rgba(24, 27, 36, 0.5) 40%); }
.notif-ic {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-muted);
  color: var(--accent);
}
.notif-main { min-width: 0; flex: 1; }
.notif-main h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.notif-main h3 .new-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex: none; }
.notif-main p { font-size: 12.5px; color: var(--text-muted); }
.notif-time { font-size: 11.5px; color: var(--text-muted); flex: none; font-variant-numeric: tabular-nums; }

.search-box { display: flex; gap: 10px; align-items: center; }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-field:focus-within { border-color: rgba(245, 197, 24, 0.5); box-shadow: 0 0 0 4px var(--accent-muted); }
.search-field input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-primary);
  font-size: 15px;
}
.search-field input::placeholder { color: var(--text-muted); }

.auth-wrap { max-width: 420px; margin: 0 auto; padding-top: calc(var(--header-h) + 48px); }
.auth-card {
  padding: 26px;
  border-radius: var(--radius-l);
  background: linear-gradient(170deg, rgba(31, 35, 48, 0.92), rgba(20, 23, 31, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
}
.auth-card h1 { font-size: 21px; margin-bottom: 6px; text-align: center; }
.auth-card .auth-sub { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  background: rgba(12, 14, 19, 0.7);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus { border-color: rgba(245, 197, 24, 0.55); box-shadow: 0 0 0 3px var(--accent-muted); }
.auth-alt { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-muted); font-size: 11.5px; }
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.oauth-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.auth-note { margin-top: 18px; font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.7; }

.prose { max-width: 820px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.9; }
.prose h2 { font-size: 18px; color: var(--text-primary); margin: 32px 0 10px; }
.prose h3 { font-size: 15px; color: var(--text-primary); margin: 22px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 14px; padding-left: 2px; }
.prose li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: rgba(245, 197, 24, 0.6); }
.prose a { color: var(--accent); }
.prose strong { color: var(--text-primary); }
.card-panel {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(24, 27, 36, 0.55);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.sitemap-group { margin-bottom: 30px; }
.sitemap-group h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sitemap-group h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); }
.sitemap-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.sitemap-links a { font-size: 13px; color: var(--text-secondary); padding: 6px 0; display: flex; align-items: center; gap: 7px; }
.sitemap-links a::before { content: "›"; color: var(--text-muted); }
.sitemap-links a:hover { color: var(--accent); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-l);
  border: 1px dashed var(--border);
  background: rgba(24, 27, 36, 0.35);
}
.empty-state__ic {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.empty-state h3 { font-size: 15px; }
.empty-state p { font-size: 13px; color: var(--text-muted); max-width: 380px; }
.empty-state .empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, #1a1e28 30%, #232838 50%, #1a1e28 70%); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 120% 0 } to { background-position: -80% 0 } }

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(29, 33, 45, 0.97);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  color: var(--text-primary);
  animation: toastIn 0.28s var(--ease);
}
.toast .toast-ic { color: var(--accent); flex: none; display: grid; place-items: center; }
.toast.is-out { animation: toastOut 0.24s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) } }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 11, 0.66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.drawer-mask.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 84vw);
  z-index: 201;
  background: #14161e;
  border-right: 1px solid var(--border);
  transform: translateX(-102%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer nav { display: flex; flex-direction: column; gap: 3px; }
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.drawer nav a:hover, .drawer nav a.is-active { background: var(--bg-surface); color: var(--text-primary); }
.drawer nav a.is-active { color: var(--accent); }
.drawer__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-subtle); }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 12vh, 140px) 16px 16px;
  background: rgba(6, 7, 11, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal__panel {
  width: min(620px, 100%);
  border-radius: 16px;
  background: #15181f;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: translateY(-8px) scale(0.99);
  transition: transform var(--dur) var(--ease);
}
.search-modal.is-open .search-modal__panel { transform: none; }
.search-modal__input { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); }
.search-modal__input input { flex: 1; height: 30px; border: 0; background: none; outline: none; color: var(--text-primary); font-size: 15px; }
.search-modal__hint { padding: 8px 16px; font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); display: flex; gap: 12px; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
}
.search-result:hover, .search-result.is-hover { background: var(--bg-surface); }
.search-result img { width: 34px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.search-result__main { min-width: 0; flex: 1; }
.search-result__main b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result__main span { font-size: 11.5px; color: var(--text-muted); }
.search-empty { padding: 26px 16px; text-align: center; font-size: 13px; color: var(--text-muted); }

.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  height: 58px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(15, 17, 23, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: space-around;
}
.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 10px;
}
.mobile-tabbar a.is-active { color: var(--accent); }

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: rgba(78, 205, 196, 0.07);
  border: 1px solid rgba(78, 205, 196, 0.22);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.notice-bar svg { color: var(--info); flex: none; margin-top: 2px; }
.notice-bar--warn { background: rgba(245, 197, 24, 0.07); border-color: rgba(245, 197, 24, 0.24); }
.notice-bar--warn svg { color: var(--accent); }

.layout-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.side-panel { border-radius: var(--radius-l); border: 1px solid var(--border-subtle); background: rgba(24, 27, 36, 0.5); padding: 16px; }
.side-panel h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-panel h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.side-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.side-mini + .side-mini { border-top: 1px solid var(--border-subtle); }
.side-mini img { width: 38px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; }
.side-mini b { font-size: 13px; font-weight: 500; display: block; line-height: 1.4; }
.side-mini span { font-size: 11px; color: var(--text-muted); }

@media (max-width: 1199px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .grid-cards--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-note-col { display: none; }
  .layout-cols { grid-template-columns: minmax(0, 1fr); }
  .detail-head { grid-template-columns: 180px minmax(0, 1fr); }
  .week-panel { min-height: 468px; }
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .search-trigger { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .hero-poster { display: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 58px; }

  body { font-size: 14px; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .grid-cards--5, .grid-cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .genre-tile { padding: 12px 6px; }
  .genre-tile__ic { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
  .genre-tile__count { display: none; }

  main { padding-bottom: 68px; }

  .mobile-tabbar { display: flex; }
  .site-footer { margin-bottom: 0; }

  .sec-title { font-size: 18px; }
  .sec-sub { display: none; }
  .sec-more { font-size: 12px; }

  .hero { padding-top: calc(var(--header-h) + 14px); }
  .hero-stage { min-height: 0; border-radius: 20px; }
  .hero-inner { display: block; padding: 20px 18px 26px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 13px; -webkit-line-clamp: 3; margin-bottom: 16px; }
  .hero-jp { display: none; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-ctrl { position: static; padding: 0 18px 16px; justify-content: space-between; }
  .hero-arrows { display: none; }
  .hero-actions .btn { flex: 1; min-width: 130px; }

  .stat-strip { gap: 8px; }
  .stat-cell { padding: 10px 12px; gap: 9px; }
  .stat-cell strong { font-size: 16px; }
  .stat-cell span { font-size: 11px; }
  .stat-cell .stat-ic { width: 26px; height: 26px; }

  .week-box { padding: 14px 12px; border-radius: 16px; }
  .week-tab { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .week-row { padding: 8px 8px 8px 11px; }
  .week-cover { width: 36px; height: 50px; }
  .week-name { font-size: 13px; }
  .week-sub { font-size: 10.5px; }

  .detail-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .detail-poster { width: 122px; }
  .detail-title { font-size: 21px; }
  .detail-actions .btn { flex: 1; min-width: 120px; }

  .player-shell { gap: 0; }
  .ep-nav { display: none; }
  .watch-wrap { padding-top: calc(var(--header-h) + 10px); }
  .player-play { width: 58px; height: 58px; }
  .watch-foot-nav { display: flex; }
  .pc-row { font-size: 11px; gap: 10px; }

  .page-head { padding-top: calc(var(--header-h) + 16px); }
  .filter-bar { padding: 11px 12px; gap: 8px; }
  .filter-bar .sep { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px; padding-block: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .list-row { padding: 10px; gap: 10px; }
  .list-row__cover { width: 46px; height: 64px; }
  .list-row__action .btn span { display: none; }

  .rank-item { gap: 10px; padding: 10px 12px; }
  .rank-no { width: 26px; font-size: 17px; }
  .rank-cover { width: 38px; height: 54px; }
  .rank-meter { display: none; }

  .auth-wrap { padding-top: calc(var(--header-h) + 24px); }
  .auth-card { padding: 20px; }

  .info-strip { grid-template-columns: minmax(0, 1fr); }
  .watch-ep-grid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }

  .toast-host { bottom: 74px; }
}

@media (max-width: 420px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards--5, .grid-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

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

:root {
  --cover-w: 208px;
  --cover-h: 312px;
  --radius-card: 14px;
  --shadow-card: 0 6px 18px rgba(0, 0, 0, .34);
  --shadow-lift: 0 16px 38px rgba(0, 0, 0, .5);
  --line: 1px solid var(--border-subtle);
}

.grid-cards,
.grid-cards--5,
.grid-cards--4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--cover-w));
  justify-content: space-between;
  gap: 26px 18px;
}

.card {
  width: var(--cover-w);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card__cover {
  width: var(--cover-w);
  height: var(--cover-h);
  aspect-ratio: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card__cover img {
  width: var(--cover-w);
  height: var(--cover-h);
  object-fit: cover;
  object-position: center 22%;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}

.card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
  letter-spacing: .1px;
}

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

.card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.card__tags span {
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .05);
  border: var(--line);
}

@media (hover: hover) {
  .card:hover .card__cover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
  .card:hover .card__cover img {
    transform: scale(1.05);
    filter: saturate(1.08) brightness(1.03);
  }
  .card:hover .card__title {
    color: var(--accent);
  }
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}

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

.rail .card {
  flex: 0 0 var(--cover-w);
  scroll-snap-align: start;
}

.week-cover,
.week-cover img {
  width: 42px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.rank-cover,
.rank-cover img {
  width: 56px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
}

.side-mini img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.search-result img {
  width: 40px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}

.list-row__cover,
.list-row__cover img {
  width: 52px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.info-strip__cover,
.info-strip__cover img {
  width: 68px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-poster {
  width: 192px;
  height: 288px;
  aspect-ratio: auto;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  border: var(--line);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
}

.hero-poster img {
  width: 192px;
  height: 288px;
  object-fit: cover;
}

.detail-poster {
  width: 220px;
  height: 330px;
  aspect-ratio: auto;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  border: var(--line);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
}

.detail-poster img {
  width: 220px;
  height: 330px;
  object-fit: cover;
}

.avatar,
.u-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--accent), #ff8a3d);
  color: var(--on-accent);
  font-size: 20px;
  font-weight: 800;
}

.sec-title {
  position: relative;
  padding-left: 13px;
  letter-spacing: .2px;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.section {
  padding: 34px 0;
}

.section--tight {
  padding: 26px 0;
}

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

.sec-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .1px;
}

.btn {
  border-radius: 11px;
  letter-spacing: .2px;
  transition: transform .16s var(--ease), background .2s var(--ease),
    color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

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

.btn--primary {
  box-shadow: 0 8px 22px rgba(245, 197, 24, .22);
}

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(245, 197, 24, .3);
}

.btn--ghost:hover {
  border-color: rgba(245, 197, 24, .5);
  background: var(--accent-muted);
}

.pill,
.chip {
  border-radius: 999px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.pill:hover {
  border-color: rgba(245, 197, 24, .45);
  color: var(--text-primary);
}

.tab-line {
  display: flex;
  gap: 4px;
  border-bottom: var(--line);
}

.tab-line button {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 9px 9px 0 0;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.tab-line button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background .2s var(--ease);
}

.tab-line button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .04);
}

.tab-line button.is-active {
  color: var(--accent);
}

.tab-line button.is-active::after {
  background: var(--accent);
}

.week-row {
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

@media (hover: hover) {
  .week-row:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    transform: translateX(2px);
  }
}

.rank-item {
  border-radius: 12px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

@media (hover: hover) {
  .rank-item:hover {
    background: var(--bg-elevated);
    transform: translateX(3px);
  }
}

.list-row {
  border-radius: 12px;
  transition: background .18s var(--ease);
}

@media (hover: hover) {
  .list-row:hover {
    background: var(--bg-elevated);
  }
}

.card-panel {
  border-radius: var(--radius-card);
  border: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent 60%), var(--bg-surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.card-panel:hover {
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.genre-tile,
.quarter-bar .pill,
.stat-cell {
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

@media (hover: hover) {
  .genre-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 197, 24, .4);
  }
  .stat-cell:hover {
    background: var(--bg-elevated);
  }
}

.ep-cell {
  border-radius: 10px;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

@media (hover: hover) {
  .ep-cell:hover:not(.is-locked) {
    background: var(--accent-muted);
    border-color: rgba(245, 197, 24, .45);
    transform: translateY(-1px);
  }
}

.watch-ep {
  border-radius: 9px;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.watch-ep.is-current {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 700;
}

.player-controls {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0), rgba(8, 10, 14, .92) 42%);
  backdrop-filter: blur(6px);
}

.pc-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.pc-bar__fill {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb545);
}

.pc-knob {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, .22);
}

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

.page-head__title {
  letter-spacing: .3px;
}

.notice-bar {
  border-radius: 12px;
  border: 1px solid rgba(78, 205, 196, .22);
  background: rgba(78, 205, 196, .08);
}

.notice-bar--warn {
  border-color: rgba(245, 197, 24, .28);
  background: rgba(245, 197, 24, .1);
}

.empty-state {
  border-radius: var(--radius-card);
  border: 1px dashed var(--border);
  padding: 44px 20px;
  text-align: center;
  color: var(--text-muted);
}

.pager button {
  border-radius: 9px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.pager button.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.sitemap-links a,
.prose a {
  transition: color .16s var(--ease);
}

.sitemap-links a:hover,
.prose a:hover {
  color: var(--accent);
}

.auth-card {
  border-radius: 18px;
  border: var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.field input,
.field select {
  border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.field input:focus,
.field select:focus {
  border-color: rgba(245, 197, 24, .55);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .14);
}

.search-field {
  border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search-field:focus-within {
  border-color: rgba(245, 197, 24, .5);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .12);
}

.site-header {
  backdrop-filter: blur(14px) saturate(1.15);
  transition: background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 17, 23, .92);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
}

.mobile-tabbar {
  backdrop-filter: blur(14px);
  border-top: var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.hero-stage {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
}

.hero-title {
  letter-spacing: .5px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.hero-desc {
  max-width: 56ch;
  line-height: 1.85;
  color: rgba(240, 241, 245, .82);
}

.stat-strip {
  border-radius: var(--radius-card);
  border: var(--line);
  background: var(--bg-surface);
}

.week-box {
  border-radius: var(--radius-card);
  border: var(--line);
  background: var(--bg-surface);
}

.detail-head {
  border-radius: 18px;
  border: var(--line);
  background: var(--bg-surface);
  padding: 22px;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}

.notif-row {
  border-radius: 12px;
  transition: background .18s var(--ease);
}

@media (hover: hover) {
  .notif-row:hover {
    background: var(--bg-elevated);
  }
}

.notif-row.is-unread {
  background: rgba(245, 197, 24, .05);
  box-shadow: inset 3px 0 0 var(--accent);
}

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

::selection {
  background: rgba(245, 197, 24, .28);
  color: #fff;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: #2c3242;
  border-radius: 99px;
  border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4256;
}

.u-dim { color: var(--text-secondary); }
.u-accent { color: var(--accent); }
.u-notewrap { color: var(--text-secondary); }
.u-fs-14 { font-size: 14px; }
.u-fs-135 { font-size: 13.5px; }
.u-lh-18 { line-height: 1.8; }
.u-lh-19 { line-height: 1.9; }
.u-wide { max-width: none; font-size: 13.5px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mt-0 { margin-top: 0; }
.u-mt-6 { margin-top: 6px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-pl-0 { padding-left: 0; }
.u-row { padding: 8px 0; }
.u-minw { min-width: 0; }
.u-full { flex: 1 1 100%; }
.u-ai-start { align-items: flex-start; }
.u-center-mt-12 { text-align: center; margin-top: 12px; }
.u-center-mt-18 { text-align: center; margin-top: 18px; }
.u-w-0 { width: 0%; }
.u-left-0 { left: 0%; }
.u-h-18 { font-size: 18px; margin-bottom: 4px; }
.u-h-15 { font-size: 15px; margin-bottom: 6px; }
.u-h-15-8 { font-size: 15px; margin-bottom: 8px; }
.u-h-15-10 { font-size: 15px; margin-bottom: 10px; }
.u-h-15-12 { font-size: 15px; margin-bottom: 12px; }
.u-h-14 { font-size: 14px; margin-bottom: 10px; }
.u-h-sm { font-size: 16px; margin-bottom: 10px; }
.u-panel-h {
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.u-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-muted);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.u-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.u-note-sm {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.u-row-7 { display: flex; flex-wrap: wrap; gap: 7px; }
.u-row-8 { display: flex; flex-wrap: wrap; gap: 8px; }
.u-row-10 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.u-row-8-mt-12 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.u-inline-5 { display: inline-flex; gap: 5px; }
.u-stack-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.u-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.u-check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.u-check {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.u-tiny-accent {
  font-size: 12.5px;
  color: var(--accent);
}
.u-tabs-tight {
  border-bottom: 0;
  margin-bottom: 14px;
}
.u-tabs-flat {
  border-bottom: 0;
  margin: 0;
}
.u-grid-1auto { grid-template-columns: minmax(0, 1fr) auto; }
.u-btn-flush {
  padding-left: 0;
  margin-top: 6px;
}
.u-btn-flush-10 {
  margin-top: 10px;
  padding-left: 0;
}
.u-flush-top {
  border-top: 0;
  padding-top: 0;
  margin: 0;
}
.u-flush-right {
  border-right: 0;
  padding-right: 0;
}
.u-mt-12-center { margin-top: 12px; text-align: center; }

.list-row__cover--sm,
.list-row__cover--sm img {
  width: 38px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

@media (max-width: 1199px) {
  :root {
    --cover-w: 182px;
    --cover-h: 273px;
  }
  .hero-poster {
    width: 168px;
    height: 252px;
  }
  .hero-poster img {
    width: 168px;
    height: 252px;
  }
}

@media (max-width: 991px) {
  :root {
    --cover-w: 162px;
    --cover-h: 243px;
  }
  .detail-poster,
  .detail-poster img {
    width: 190px;
    height: 285px;
  }
  .section {
    padding: 28px 0;
  }
}

@media (max-width: 767px) {
  :root {
    --cover-w: 138px;
    --cover-h: 207px;
  }
  .grid-cards,
  .grid-cards--5,
  .grid-cards--4 {
    grid-template-columns: repeat(auto-fill, var(--cover-w));
    justify-content: space-between;
    gap: 20px 12px;
  }
  .hero-poster {
    display: none;
  }
  .detail-head {
    padding: 16px;
  }
  .section {
    padding: 24px 0;
  }
  .sec-head {
    margin-bottom: 14px;
  }
}

@media (max-width: 420px) {
  :root {
    --cover-w: 116px;
    --cover-h: 174px;
  }
  .card__title {
    font-size: 13px;
  }
  .card__tags span {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__cover,
  .card__cover img,
  .card__title,
  .week-row,
  .rank-item,
  .list-row,
  .ep-cell,
  .btn,
  .tab-line button {
    transition: none !important;
    transform: none !important;
  }
}
