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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 220;
  padding: 0.68rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 130;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.86);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .site-header {
    background: rgba(255, 255, 255, 0.86);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
}

.brand-name {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  padding: 0.48rem 0.66rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a.is-active {
  color: var(--gold);
  background: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.subs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.78rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s;
}

.subs-chip:hover {
  background: var(--surface-3);
}

.subs-chip b {
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.18s, border-color 0.18s;
}

.icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-line);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
}

.nav-toggle .bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.hero {
  position: relative;
  padding: clamp(2.2rem, 5.4vw, 4rem) 0 clamp(1.6rem, 3.6vw, 2.6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -34% -14% auto;
  height: 700px;
  background:
    radial-gradient(58% 58% at 20% 32%, rgba(247, 181, 60, 0.2), transparent 70%),
    radial-gradient(48% 48% at 80% 16%, rgba(61, 220, 151, 0.13), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(62% 52% at 50% 0, #000 8%, transparent 76%);
  mask-image: radial-gradient(62% 52% at 50% 0, #000 8%, transparent 76%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.hero h1 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.85rem, 4vw, 3.05rem);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.74rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}

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

.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: clamp(1.5rem, 3.6vw, 2.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 1.26rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.hero-figure {
  position: relative;
  margin: 0;
  max-width: 430px;
  margin-inline: auto;
}

.hero-frame {
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow-2);
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 9px);
}

.hero-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(9, 11, 17, 0.88);
  color: #f4f7ff;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(8px);
}

.hero-tag--a {
  top: 24px;
  left: -12px;
}

.hero-tag--b {
  right: -8px;
  bottom: 30px;
}

.hero-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.22);
}

.featured {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
  margin-top: clamp(1.8rem, 4.4vw, 3rem);
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(247, 181, 60, 0.14), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow-2);
}

.featured-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--surface-3);
}

.featured-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-score {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.74);
  color: #ffd98a;
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

.featured-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.18rem 0.58rem;
  border-radius: 7px;
  background: rgba(247, 181, 60, 0.94);
  color: #201404;
  font-size: 0.76rem;
  font-weight: 800;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: clamp(0.4rem, 1.6vw, 1.1rem);
}

.featured-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.featured-meta {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.featured-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.thumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.thumbs img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.thumbs-label {
  font-size: 0.76rem;
  color: var(--text-mute);
}

.section {
  position: relative;
  padding: clamp(2rem, 4.6vw, 3.2rem) 0;
}

.section-head {
  max-width: 74ch;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section-desc + .section-desc {
  margin-top: 0.6rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.chip {
  padding: 0.44rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-on {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 240px;
  padding: 0.46rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: border-color 0.18s;
}

.search-box:focus-within {
  border-color: var(--gold-line);
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--text-mute);
}

.search-box input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 0.9rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.poster-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.24s var(--ease), border-color 0.24s, box-shadow 0.24s;
}

.poster-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-2);
}

.poster-card[hidden] {
  display: none;
}

.poster-media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-3);
}

.poster-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.55s var(--ease);
}

.poster-card:hover .poster-media img {
  transform: scale(1.045);
}

.poster-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(5, 7, 12, 0.9), transparent);
  pointer-events: none;
}

.poster-score {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.12rem 0.44rem;
  border-radius: 7px;
  background: rgba(5, 7, 12, 0.72);
  color: #ffd98a;
  font-size: 0.77rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

.poster-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  padding: 0.14rem 0.46rem;
  border-radius: 6px;
  background: rgba(247, 181, 60, 0.92);
  color: #201404;
  font-size: 0.71rem;
  font-weight: 800;
}

.poster-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.82rem 0.9rem 0.95rem;
}

.poster-body h3 {
  font-size: 0.98rem;
}

.poster-meta {
  font-size: 0.74rem;
  color: var(--text-mute);
}

.poster-desc {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.81rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.38rem 0.76rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.sub-btn:hover {
  color: var(--gold);
  border-color: var(--gold-line);
}

.sub-btn.is-on {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.sub-btn svg {
  width: 14px;
  height: 14px;
}

.poster-tag {
  padding: 0.12rem 0.46rem;
  border-radius: 6px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.grid-note {
  margin-top: 1.15rem;
  padding: 0.85rem 1.05rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-mute);
  font-size: 0.84rem;
}

.grid-note code {
  padding: 0.06rem 0.32rem;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--gold);
  font-size: 0.8rem;
}

.daytabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.daytab {
  flex: none;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.daytab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.daytab.is-on {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}

.daypanel[hidden] {
  display: none;
}

.episode-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.episode-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}

.episode-row:hover {
  border-color: var(--gold-line);
}

.ep-time {
  min-width: 48px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.episode-row img {
  width: 46px;
  height: 69px;
  object-fit: cover;
  border-radius: 8px;
}

.ep-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ep-info b {
  font-size: 0.95rem;
  font-weight: 700;
}

.ep-info span {
  color: var(--text-mute);
  font-size: 0.8rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.rank-row:hover {
  border-color: var(--gold-line);
  background: var(--surface-2);
}

.rank-no {
  width: 34px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank-row:nth-child(-n + 3) .rank-no {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-row img {
  width: 58px;
  height: 87px;
  object-fit: cover;
  border-radius: 9px;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.rank-info b {
  font-size: 0.98rem;
}

.rank-info span {
  color: var(--text-mute);
  font-size: 0.8rem;
}

.rank-score {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 108px;
}

.rank-score b {
  color: var(--gold);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.rank-score i {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: var(--grad-gold);
}

.rank-row:nth-child(1) .rank-score i {
  width: 98%;
}

.rank-row:nth-child(2) .rank-score i {
  width: 97%;
}

.rank-row:nth-child(3) .rank-score i {
  width: 96%;
}

.rank-row:nth-child(4) .rank-score i {
  width: 95%;
}

.rank-row:nth-child(5) .rank-score i {
  width: 94%;
}

.rank-row:nth-child(6) .rank-score i {
  width: 93%;
}

.rank-row:nth-child(7) .rank-score i {
  width: 92%;
}

.rank-row:nth-child(8) .rank-score i {
  width: 91%;
}

.mine-empty {
  padding: 1.6rem 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-mute);
  font-size: 0.9rem;
  text-align: center;
}

.mine-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 0.9rem;
}

.mine-list[hidden] {
  display: none;
}

.mine-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mine-card img {
  width: 54px;
  height: 81px;
  object-fit: cover;
  border-radius: 8px;
}

.mine-card b {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.mine-actions {
  margin-top: 1rem;
}

.mine-actions .btn {
  padding: 0.56rem 1.05rem;
  font-size: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.1rem, 3vw, 1.8rem);
  align-items: start;
}

.player-shell {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #05070c;
  cursor: pointer;
}

.player-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.player-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(9, 11, 17, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.player-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.player-bar {
  position: absolute;
  inset: auto 0 0;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem 0.55rem;
  background: linear-gradient(to top, rgba(5, 7, 12, 0.92), transparent);
}

.player-bar i {
  display: block;
  width: 38%;
  height: 4px;
  border-radius: 3px;
  background: var(--grad-gold);
}

.player-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.85rem 0 0.75rem;
}

.player-head h3 {
  font-size: 1rem;
}

.player-head h3 span {
  color: var(--text-mute);
  font-size: 0.82rem;
  font-weight: 500;
}

.player-quality {
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 0.73rem;
  font-weight: 700;
}

.lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.line:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
}

.line.is-on {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
}

.line:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.tag {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.tag--ok {
  background: var(--jade-soft);
  color: var(--jade);
}

.tag--warn {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag--down {
  background: var(--rose-soft);
  color: var(--rose);
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.42rem;
}

.ep {
  padding: 0.46rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.ep:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.ep.is-on {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.phone {
  width: min(176px, 100%);
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface-3);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.4;
  object-fit: cover;
  border-radius: 19px;
}

.phone-caption {
  color: var(--text-mute);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1rem;
}

.feature {
  position: relative;
  padding: 1.35rem 1.3rem 1.45rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  transition: border-color 0.22s, transform 0.22s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.7;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin-bottom: 0.45rem;
  font-size: 1.01rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 82ch;
}

.faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--gold-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease), margin 0.2s;
}

.faq details[open] summary {
  color: var(--gold);
}

.faq details[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.faq-body {
  padding: 0 1.05rem 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding: clamp(1.6rem, 4.2vw, 2.8rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 12% 0, rgba(247, 181, 60, 0.2), transparent 62%),
    var(--surface);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

.cta p {
  max-width: 56ch;
  margin: 0.75rem auto 1.4rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.site-footer {
  margin-top: clamp(1.8rem, 4.4vw, 3rem);
  padding: clamp(1.9rem, 4vw, 2.8rem) 0 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 0.7rem;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.footer-col h3 {
  margin-bottom: 0.7rem;
  color: var(--text-mute);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.footer-col a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.18s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
  margin-top: clamp(1.5rem, 3.6vw, 2.2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.78rem;
}

.to-top {
  position: fixed;
  right: 1.05rem;
  bottom: 1.2rem;
  z-index: 140;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-dim);
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease), color 0.18s;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-2px);
}

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

.to-top svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 150;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translate(-50%, 150%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  .section > .shell > .section-head,
  .section > .shell > .poster-grid,
  .section > .shell > .daytabs,
  .section > .shell > .rank-list,
  .section > .shell > .feature-grid,
  .section > .shell > .split,
  .section > .shell > .faq,
  .section > .shell > .grid-note {
    animation: fade-up both;
    animation-timeline: view();
    animation-range: entry 4% cover 22%;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-figure {
    max-width: 360px;
  }

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

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

  .phone-wrap {
    flex-direction: row;
    justify-content: center;
  }

  .phone-caption {
    max-width: 24ch;
    text-align: left;
  }

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

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 auto;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.85rem 1.4rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-dim);
  }

  .subs-chip {
    display: none;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.7rem;
  }

  .hero-tag--a {
    left: 2px;
  }

  .hero-tag--b {
    right: 0;
  }

  .rank-score {
    width: 78px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(var(--shell), 100% - 1.7rem);
  }

  .brand-sub {
    display: none;
  }

  .featured {
    padding: 0.65rem;
  }

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

  .poster-body {
    padding: 0.68rem 0.72rem 0.8rem;
  }

  .poster-body h3 {
    font-size: 0.9rem;
  }

  .poster-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.77rem;
  }

  .poster-foot {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .search-box {
    min-width: 100%;
  }

  .episode-row {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
  }

  .ep-time {
    display: none;
  }

  .episode-row img {
    width: 40px;
    height: 60px;
  }

  .rank-row {
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
  }

  .rank-no {
    width: 26px;
    font-size: 0.95rem;
  }

  .rank-row img {
    width: 46px;
    height: 69px;
  }

  .rank-score i {
    display: none;
  }

  .rank-info span {
    font-size: 0.75rem;
  }

  .mine-list {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    flex-direction: column;
  }

  .phone-caption {
    max-width: none;
    text-align: center;
  }

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

  .footer-bottom {
    justify-content: flex-start;
  }
}
