:root {
  --bg: #f8f7f3;
  --surface: #fffdfa;
  --surface-soft: #f2efe9;
  --text: #24232b;
  --muted: #78736e;
  --line: #e7e1d9;
  --pink: #ec5d79;
  --pink-dark: #d84c69;
  --pink-text: #b83e5b;
  --schedule-updated: #b83e5b;
  --schedule-updated-bg: #fff3f5;
  --schedule-updated-border: #f3d2da;
  --schedule-pending: #696a72;
  --cyan: #5e8db6;
  --blue-soft: #edf4f7;
  --shadow: 0 8px 24px rgba(54, 45, 47, 0.06);
  --shadow-hover: 0 12px 30px rgba(54, 45, 47, 0.11);
  --radius: 8px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

/* Keep viewport restoration instant; deliberate UI scrolling opts in via JS. */
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(94, 141, 182, 0.48);
  outline-offset: 3px;
}

.section-shell,
.header-shell,
.search-panel,
.footer-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  height: 64px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.brand-mark {
  font-family: "STKaiti", "KaiTi", serif;
  color: var(--pink-text);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  height: 64px;
  gap: 28px;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  color: #4f5360;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 3px;
  background: var(--pink);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--pink-text); }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 22px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-account [hidden] { display: none !important; }
.text-button,
.account-link {
  min-height: 44px;
  padding: 0 13px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #4f5360;
  font-size: 14px;
  font-weight: 650;
}
.text-button:hover,
.account-link:hover { background: var(--surface-soft); color: var(--pink-text); }

.search-panel {
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.search-panel[hidden] { display: none; }
.search-panel label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #dfe2e9;
  border-radius: 6px;
  background: #fff;
}
.search-row input:focus { background: var(--surface); border-color: var(--cyan); outline: 0; box-shadow: 0 0 0 3px rgba(93, 143, 245, 0.14); }
.search-row button,
.primary-button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  color: white;
  font-weight: 750;
  box-shadow: none;
}

main { overflow: clip; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 10px;
  padding-top: 18px;
}

.hero-carousel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(36, 35, 43, 0.08);
  border-radius: var(--radius);
  background: #d9dce4;
  box-shadow: var(--shadow);
}
.hero-main {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d9dce4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.hero-main.is-active { z-index: 1; opacity: 1; pointer-events: auto; }
.hero-main > img { width: 100%; height: 100%; object-fit: cover; }
.hero-main > img { position: absolute; inset: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 22, 30, 0.92) 0%, rgba(20, 22, 30, 0.64) 32%, rgba(20, 22, 30, 0.12) 68%, transparent 100%), linear-gradient(90deg, rgba(20, 22, 30, 0.24), transparent 65%);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 3.2vw, 42px);
  bottom: clamp(25px, 3vw, 38px);
  width: min(470px, calc(100% - 52px));
  color: white;
}
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--pink-text);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 0.15em;
}
.eyebrow.light { color: #ff9bad; }
.hero-copy h1 {
  margin: 0;
  max-width: 12em;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-copy p {
  display: -webkit-box;
  margin: 12px 0 19px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hero-actions { display: flex; gap: 10px; }
.primary-button,
.ghost-button { display: inline-grid; place-items: center; min-width: 108px; }
.ghost-button {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 750;
  backdrop-filter: blur(10px);
}
.ghost-button[aria-pressed="true"] { background: white; color: var(--pink-text); border-color: white; }

.carousel-controls {
  position: absolute;
  z-index: 5;
  left: clamp(26px, 3.2vw, 42px);
  right: 24px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.carousel-controls[hidden] { display: none; }
.hero-carousel:has(> .hero-slide ~ .hero-slide) .hero-copy,
.has-carousel-controls .hero-copy { bottom: 72px; }
.carousel-arrows { display: flex; gap: 8px; pointer-events: auto; }
.carousel-arrow,
.carousel-dot {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  touch-action: manipulation;
}
.carousel-arrow {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 180ms ease, transform 180ms ease;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-arrow:focus-visible,
.carousel-dot:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.carousel-dots {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 288px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.carousel-dots::-webkit-scrollbar { display: none; }
.carousel-dot { flex-basis: 24px; width: 24px; justify-items: start; }
.carousel-dot::before {
  content: "";
  margin-left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 180ms ease, background 180ms ease;
}
.carousel-dot:hover::before { background: white; }
.carousel-dot[aria-current="true"]::before { background: var(--pink); transform: scale(1.5); }
@media (pointer: coarse) {
  .carousel-dot { flex-basis: 44px; width: 44px; }
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.feature-heading h2 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -0.035em; }
.feature-heading > small { padding-bottom: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.feature-list { min-height: 0; flex: 1; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feature-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.feature-card:hover { border-color: rgba(236, 93, 121, 0.34); background: #fffafb; }
.feature-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; background: #ebe7e1; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.feature-card:hover .feature-thumb img { transform: scale(1.025); }
.feature-badge { position: absolute; right: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 2px 5px; overflow: hidden; border-radius: 3px; background: rgba(36, 35, 43, 0.82); color: white; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.feature-copy { min-width: 0; color: var(--text); }
.feature-copy strong { display: block; overflow: hidden; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.feature-copy small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.feature-copy .feature-hits { color: var(--pink-text); font-weight: 750; }

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--schedule-updated-border);
  border-radius: var(--radius);
  background: #fff9fa;
  color: var(--text);
}
.notice-label { display: flex; align-items: center; gap: 10px; color: var(--pink-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.notice-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fbe7ed; }
.notice-icon svg { width: 21px; height: 21px; }

.content-section,
.news-section { padding-top: 42px; }
.section-heading,
.ranking-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}
.section-heading.compact { margin-bottom: 14px; }
.section-heading h2,
.ranking-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.more-link,
.ranking-heading > a {
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--pink-text);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.heading-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.poster-grid.hot-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.hot-strip::-webkit-scrollbar { height: 6px; }
.hot-strip::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 6px; }
.hot-strip::-webkit-scrollbar-thumb { background: #bc8d98; border-radius: 6px; }
.hot-strip .poster-card:nth-child(n) { display: block; scroll-snap-align: start; }
@media (min-width: 768px) {
  .hot-strip .poster-card:nth-child(n+7) { display: none; }
}
.poster-card { min-width: 0; }
.poster-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid rgba(36, 35, 43, 0.09); border-radius: 6px; background: #ebe7e1; box-shadow: 0 4px 12px rgba(54, 45, 47, 0.04); }
.poster-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.poster-card:hover .poster-cover { border-color: rgba(236, 93, 121, 0.36); box-shadow: var(--shadow-hover); }
.poster-card:hover .poster-cover img { transform: scale(1.035); }
.quality-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(36, 35, 43, 0.82);
  color: white;
  font-size: 10px;
  font-weight: 750;
}
.poster-card h3 { margin: 8px 0 0; overflow: hidden; font-size: 14px; line-height: 1.5; height: 3em; font-weight: 750; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poster-card h3 a:hover { color: var(--pink-text); }
.poster-card p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(280px, 0.78fr);
  align-items: stretch;
  gap: 16px;
  padding-top: 44px;
}
.schedule-panel,
.ranking-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}
.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tabs button {
  min-width: 0;
  min-height: 44px;
  padding-inline: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.day-tabs button[aria-selected="true"] { background: var(--pink); color: white; box-shadow: none; }
.schedule-scroll-area { position: relative; min-width: 0; }
.schedule-scroll-area::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 16px;
  bottom: 0;
  height: 24px;
  background: linear-gradient(transparent, var(--surface));
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.schedule-scroll-area.has-more::after { opacity: 1; }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 96px;
  align-content: start;
  gap: 12px;
  max-height: 316px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 8px 2px 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #bc8d98 var(--surface-soft);
}
.schedule-grid::-webkit-scrollbar { width: 6px; }
.schedule-grid::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 6px; }
.schedule-grid::-webkit-scrollbar-thumb { background: #bc8d98; border-radius: 6px; }
.schedule-grid::-webkit-scrollbar-thumb:hover { background: var(--pink-dark); }
.schedule-card {
  min-width: 0;
  min-height: 95px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid #f0ece7;
  border-radius: 6px;
  background: #fff;
}
.schedule-card img { width: 62px; height: 76px; border-radius: 4px; object-fit: cover; }
.schedule-copy { min-width: 0; }
.schedule-card.is-updated { border-color: var(--schedule-updated-border); background: var(--schedule-updated-bg); }
.schedule-card .schedule-episode { color: var(--schedule-pending); }
.schedule-episode::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.schedule-card.is-updated .schedule-episode { color: var(--schedule-updated); font-weight: 700; }
.schedule-card h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.schedule-card p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.ranking-panel { display: flex; flex-direction: column; min-height: 0; contain: size; }
.ranking-heading { flex: 0 0 auto; align-items: end; gap: 12px; margin-bottom: 14px; }
.ranking-list {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(52px, 1fr);
  min-height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #bc8d98 var(--surface-soft);
  scrollbar-gutter: stable;
}
.ranking-list::-webkit-scrollbar { width: 6px; }
.ranking-list::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 6px; }
.ranking-list::-webkit-scrollbar-thumb { background: #bc8d98; border-radius: 6px; }
.ranking-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid var(--line); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li > span { color: #b4b8c3; font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; }
.ranking-list li:nth-child(-n+3) > span { color: var(--pink-text); }
.ranking-list div { min-width: 0; }
.ranking-list a { display: block; overflow: hidden; font-size: 13px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list a:hover { color: var(--pink-text); }
.ranking-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.category-section { padding-top: 44px; }
.home-content { padding-bottom: 56px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 148px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
}
.news-card > img { width: 100%; height: 100%; object-fit: cover; }
.news-card > span { min-width: 0; display: flex; flex-direction: column; padding: 17px; }
.news-card small { color: var(--pink-text); font-size: 11px; font-weight: 800; }
.news-card strong { margin-top: 7px; display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-card time { margin-top: auto; color: var(--muted); font-size: 11px; }
.news-card:hover { border-color: rgba(236, 93, 121, 0.36); transform: translateY(-2px); box-shadow: var(--shadow); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-shell { min-height: 170px; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, auto); align-content: center; gap: 14px 60px; padding-block: 24px; }
.footer-brand { min-height: 44px; }
.footer-shell > div > p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.footer-shell nav { display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: flex-end; gap: 4px 26px; max-width: 640px; min-width: 0; }
.footer-shell nav a { min-width: 44px; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 500; }
.footer-shell nav a:hover { color: var(--pink-text); }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

[data-module-item][hidden] { display: none !important; }
[data-schedule-panel][hidden] { display: none !important; }

.inner-main { min-height: 70vh; padding-block: 46px 72px; }
.inner-heading { margin-bottom: 24px; }
.inner-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.inner-heading p { margin: 8px 0 0; color: var(--muted); }
.empty-state { padding: 48px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }
.detail-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 34px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; object-fit: cover; }
.detail-copy h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.detail-copy .meta { margin: 12px 0 18px; color: var(--pink-text); font-weight: 700; }
.detail-copy .description { color: #555b69; line-height: 1.8; }
.detail-actions { display: flex; gap: 10px; margin-top: 24px; }
.secondary-button { min-height: 44px; padding: 0 22px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 750; }
.paging { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }
.paging a { min-height: 44px; padding: 0 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--pink-text); font-weight: 700; }
.paging span { color: var(--muted); font-size: 13px; }
.player-stage { min-height: 460px; display: grid; place-content: center; justify-items: center; gap: 18px; border-radius: var(--radius); background: #111522; color: white; text-align: center; }

@media (min-width: 1200px) {
  .hero-main:hover > img { transform: scale(1.018); }
  .hero-main > img { transition: transform 420ms ease; }
}

@media (max-width: 1199px) {
  :root { --shell: min(100% - 36px, 980px); }
  .header-shell { gap: 20px; }
  .main-nav { gap: 18px; }
  .main-nav { gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { flex-shrink: 0; }
  .hero { grid-template-columns: minmax(0, 1fr) 320px; }
  .feature-card { grid-template-columns: 116px minmax(0, 1fr); }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .poster-card:nth-child(n+5) { display: none; }
  .schedule-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { display: none; }
}

@media (max-width: 767px) {
  :root { --shell: calc(100% - 24px); }
  body { font-size: 14px; }
  .site-header { position: relative; }
  .header-shell { height: 100px; min-height: auto; grid-template-columns: 1fr auto; grid-template-rows: 44px 48px; gap: 0; padding-top: 8px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-mark { font-size: 25px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .account-link { display: none; }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 48px;
    gap: 4px;
    margin-inline: -12px;
    padding: 0 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 0 13px; font-size: 13px; }
  .search-panel { padding: 14px 0 18px; }
  .search-row button { padding-inline: 14px; }
  .hero { display: block; padding-top: 14px; }
  .hero-carousel { aspect-ratio: 16 / 9; border-radius: 8px; }
  .hero-main { min-height: 0; }
  .hero-main > img { object-position: 61% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(13, 16, 27, 0.92) 0%, rgba(13, 16, 27, 0.48) 48%, transparent 100%); }
  .hero-copy { left: 16px; bottom: 14px; width: calc(100% - 32px); }
  .hero-carousel:has(> .hero-slide ~ .hero-slide) .hero-copy,
  .has-carousel-controls .hero-copy { bottom: 56px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h1 { max-width: 11em; font-size: clamp(20px, 5.8vw, 24px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy p { display: none; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .primary-button,
  .hero-actions .ghost-button { min-width: 88px; min-height: 44px; padding-inline: 15px; }
  .carousel-controls { left: 16px; right: 16px; bottom: 2px; }
  .carousel-arrows { display: none; }
  .carousel-dots { max-width: 100%; }
  .carousel-dot { flex-basis: 44px; width: 44px; }
  .hero-side {
    display: block;
    margin-top: 10px;
    padding: 12px;
  }
  .feature-heading { align-items: center; margin-bottom: 9px; }
  .feature-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .feature-list::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 88%; min-height: 98px; grid-template-columns: 132px minmax(0, 1fr); scroll-snap-align: start; }
  .content-section,
  .news-section { padding-top: 42px; }
  .section-heading { align-items: center; gap: 10px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 23px; }
  .heading-meta > span { display: none; }
  .more-link { min-height: 44px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .poster-grid.hot-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2.2);
    overflow-x: auto;
    overflow-y: hidden;
    padding-block: 3px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #bc8d98 var(--surface-soft);
  }
  .poster-card:nth-child(n) { display: block; }
  .poster-card h3 { margin-top: 8px; font-size: 14px; }
  .poster-card p { font-size: 12px; }
  .quality-tag { right: 6px; bottom: 6px; }
  .schedule-layout { display: block; padding-top: 44px; }
  .schedule-panel,
  .ranking-panel { padding: 17px 13px; border-radius: 8px; }
  .day-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .schedule-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 88px; gap: 8px; max-height: 284px; }
  .schedule-card { min-height: 84px; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 7px; }
  .schedule-card img { width: 48px; height: 66px; }
  .schedule-card h3 { font-size: 12px; }
  .ranking-panel { margin-top: 14px; contain: none; }
  .ranking-heading h2 { font-size: 23px; }
  .ranking-list { flex: none; grid-auto-rows: 54px; max-height: 270px; }
  .ranking-list li:nth-child(n+6) { display: none; }
  .ranking-list li:nth-child(5) { border-bottom: 0; }
  .home-content .eyebrow { display: none; }
  .ranking-list li { min-height: 54px; }
  .category-section { padding-top: 46px; }
  .home-content { padding-bottom: 36px; }
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card,
  .news-card:last-child { display: grid; min-height: 125px; }
  .news-card > span { padding: 13px; }
  .news-card strong { font-size: 13px; }
  .footer-shell { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 28px; }
  .footer-shell nav { justify-content: flex-start; gap: 4px 18px; }
  .copyright { grid-column: 1; margin-top: 2px; padding-top: 12px; }
  .detail-layout { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .detail-copy h1 { font-size: 25px; }
  .detail-copy .description { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-card { grid-template-columns: 54px minmax(0, 1fr); }
  .schedule-card img { width: 54px; height: 70px; }
}

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

.home-content .category-section .eyebrow { display: none; }
.brand-mark { color: var(--pink); }
.day-tabs button[aria-selected="true"] { background: var(--pink-text); }
.primary-button, .search-row button { background: var(--pink-text); }
img[data-fallback-applied] { object-fit: contain; background: var(--surface-soft); }
.hero-main.is-image-unavailable { background: linear-gradient(135deg, #574c60, #292735); }
.hero-main.is-image-unavailable > img { opacity: 0; }
.site-feedback { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 200; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 8px; background: var(--text); color: white; box-shadow: var(--shadow); font-size: 14px; }
.site-feedback[hidden] { display: none; }
[data-follow]:disabled { cursor: wait; opacity: .65; }

.notice-items { min-width: 0; }
.notice button { border: 0; background: transparent; min-height: 44px; padding: 0; }
.notice-title { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.65; transition: color 160ms ease; }
.notice-title:hover { color: var(--pink-text); }
.notice-actions, .notice-pagination { display: flex; align-items: center; }
.notice-actions { gap: 12px; }
.notice-pagination { gap: 2px; }
.notice-count { min-width: 34px; margin-right: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice-count [data-notice-current] { color: var(--pink-text); font-weight: 650; }
.notice .notice-details { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 94px; padding: 0 12px; border: 1px solid var(--schedule-updated-border); border-radius: 6px; background: var(--surface); color: var(--pink-text); font-size: 12px; font-weight: 650; white-space: nowrap; transition: background 160ms ease, border-color 160ms ease; }
.notice .notice-details:hover { background: #fbe7ed; border-color: #e6adbc; }
.notice-next, .notice-prev { display: grid; place-items: center; width: 44px; border-radius: 6px; color: var(--muted); }
.notice-next:hover, .notice-prev:hover { background: #fbe7ed; color: var(--pink-text); }
.notice-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice button:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; border-radius: 4px; }
[data-notice-item][hidden], [data-notice-body][hidden] { display: none; }
.notice-dialog { width: min(520px, calc(100% - 32px)); max-height: min(82dvh, 680px); padding: 0; border: 1px solid rgba(255, 253, 250, .7); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(36, 25, 34, .2); overflow: hidden; }
.notice-dialog[open] { display: flex; flex-direction: column; }
.notice-dialog::backdrop { background: rgba(26, 22, 30, .4); backdrop-filter: blur(4px); }
.notice-dialog-header { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 20px 0 28px; }
.notice-dialog-label { display: flex; align-items: center; gap: 10px; color: var(--pink-text); font-size: 13px; font-weight: 700; }
.notice-dialog-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--schedule-updated-bg); }
.notice-dialog svg { width: 19px; height: 19px; }
.notice-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: background 180ms ease, color 180ms ease; }
.notice-dialog-close:hover { background: var(--surface-soft); color: var(--text); }
.notice-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 28px; scrollbar-width: thin; scrollbar-color: #bc8d98 transparent; }
.notice-dialog h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.notice-dialog h2:focus { outline: none; }
.notice-dialog-body { margin-top: 16px; color: #625b60; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.notice-dialog-body[hidden] { display: none; }
.notice-dialog-footer { flex: none; display: flex; justify-content: flex-end; padding: 16px 28px 20px; border-top: 1px solid var(--line); }
.notice-dialog-confirm { min-width: 112px; min-height: 44px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--pink-text); color: white; font-size: 14px; font-weight: 650; transition: filter 180ms ease; }
.notice-dialog-confirm:hover { filter: brightness(.94); }
.notice-dialog button:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .notice-dialog[open] { animation: notice-appear 180ms ease-out; }
  @keyframes notice-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 767px) {
  .notice { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; margin-top: 12px; padding: 8px 12px 12px; }
  .notice-label { gap: 8px; font-size: 12px; }
  .notice-icon { width: 30px; height: 30px; border-radius: 8px; }
  .notice-icon svg { width: 18px; height: 18px; }
  .notice-actions { grid-column: 2; grid-row: 1; justify-self: end; gap: 4px; }
  .notice-items { grid-column: 1 / -1; grid-row: 2; }
  .notice .notice-details { min-width: 58px; padding: 0 6px; }
  .notice-prev, .notice-detail-long { display: none; }
  .notice-count { min-width: 28px; margin-right: 0; font-size: 11px; }
  .notice-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 3.3em; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }

  .notice-dialog-header { padding: 14px 12px 0 20px; }
  .notice-dialog-content { padding: 16px 20px 24px; }
  .notice-dialog h2 { font-size: 20px; }
  .notice-dialog-body { font-size: 15px; }
  .notice-dialog-footer { padding: 14px 20px 18px; }
  .notice-dialog-confirm { width: 100%; }
}

/* Homepage client recommendation: dismissal class is set before this card is parsed. */
.client-promo { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 88px; align-items: center; gap: 22px; margin-top: 12px; padding: 20px 64px 20px 24px; border: 1px solid var(--schedule-updated-border); border-radius: var(--radius); background: #fff9fa; }
.client-promo-dismissed .client-promo { display: none; }
.client-promo-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #f9dce5; color: var(--pink-text); }
.client-promo-mark svg { width: 36px; height: 36px; }
.client-promo-copy { min-width: 0; }
.client-promo-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.client-promo-badge { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: #70626a; background: var(--surface); font-size: 10px; line-height: 1.5; white-space: nowrap; }
.client-promo-copy h2 { margin: 0; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.5; }
.client-promo-copy p { margin: 6px 0 0; color: #70626a; font-size: 13px; line-height: 1.7; }
.client-promo-download { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--pink-text); border-radius: 7px; background: var(--pink-text); color: white; font-size: 14px; font-weight: 650; white-space: nowrap; transition: background 160ms ease, border-color 160ms ease; }
.client-promo-download:hover { background: #a63350; border-color: #a63350; }
.client-promo-download svg, .client-promo-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client-promo-arrow { margin-left: 4px; font-size: 16px; }
.client-promo-qr { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.client-promo-qr img { display: block; width: 88px; height: 88px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.client-promo-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.client-promo-close[hidden] { display: none; }
.client-promo-close:hover { background: #fbe7ed; color: var(--pink-text); }
.client-promo a:focus-visible, .client-promo button:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; }
@media (max-width: 767px) {
  .client-promo { grid-template-columns: 44px minmax(0, 1fr); gap: 14px 12px; padding: 18px 16px 16px; }
  .client-promo-mark { width: 44px; height: 44px; border-radius: 12px; }
  .client-promo-mark svg { width: 29px; height: 29px; }
  .client-promo-copy { padding-right: 20px; }
  .client-promo-copy h2 { font-size: 16px; }
  .client-promo-copy p { margin-top: 4px; font-size: 12px; }
  .client-promo-download { grid-column: 1 / -1; }
  .client-promo-qr { display: none; }
  .client-promo-close { top: 3px; right: 3px; }
}
@media (prefers-reduced-motion: reduce) { .client-promo-download { transition: none; } }
