:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #1c2430;
  --muted: #667085;
  --line: #e5eaf2;
  --brand: #0f5b78;
  --brand-dark: #123545;
  --accent: #f0b429;
  --accent-2: #2c9f8f;
  --danger: #d64545;
  --radius: 10px;
  --container: 1180px;
  --shadow-soft: 0 14px 38px rgba(24, 38, 56, .08);
  --shadow-card: 0 10px 26px rgba(24, 38, 56, .10);
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(15, 91, 120, .08), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 380px);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(28, 36, 48, .07);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 900; color: var(--brand-dark); white-space: nowrap; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #1787a7); border-radius: 9px; box-shadow: 0 10px 20px rgba(15,91,120,.18); }
.nav { display: flex; justify-content: flex-start; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.nav-link { flex: 0 0 auto; color: var(--muted); font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: var(--brand); border-color: var(--brand); }
.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.search input, select, textarea, .field input { width: 100%; min-height: 42px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); outline: none; box-shadow: 0 8px 20px rgba(24,38,56,.04); }
.search input, .field input, textarea { padding: 0 14px; }
.search input {
  grid-area: 1 / 1 / 2 / 3;
  padding-right: 88px;
}
.search button {
  grid-area: 1 / 2;
  z-index: 1;
  min-width: 72px;
  min-height: 34px;
  margin-right: 4px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover {
  background: var(--brand-dark);
}
textarea { min-height: 150px; padding-top: 12px; resize: vertical; }
select { max-width: 160px; padding: 0 10px; }

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(46px, 7vw, 92px) clamp(20px, 6vw, 82px);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 29, 39, .86), rgba(6, 29, 39, .45) 48%, rgba(6, 29, 39, .12)); }
.hero-copy { position: relative; z-index: 1; width: min(690px, 100%); color: #fff; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: 1.08; letter-spacing: 0; }
.hero p:not(.eyebrow) { max-width: 610px; margin: 22px 0 0; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.8; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.primary, .secondary, .full-button, .danger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.primary { color: #fff; background: linear-gradient(135deg, var(--brand), #1584a1); box-shadow: 0 12px 24px rgba(15,91,120,.18); }
.secondary, .full-button { color: var(--brand-dark); background: #fff; border-color: var(--line); box-shadow: 0 8px 18px rgba(24,38,56,.05); }
.danger { color: #fff; background: var(--danger); }
.primary:hover, .secondary:hover, .full-button:hover, .danger:hover { transform: translateY(-1px); }
.full-button { width: 100%; margin-top: 16px; }

.intro-band, .recommend-section, .latest-movie-section, .category-modules, .feature-section, .library-section, .partner-band, .page, .admin-shell, .footer {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}
.intro-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  padding: 70px 0;
  align-items: start;
}
.recommend-section {
  padding: 52px 0 8px;
}
.recommend-section + .recommend-section {
  padding-top: 36px;
}
.text-link {
  color: var(--brand);
  font-weight: 900;
}
.wide-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
}
.latest-movie-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 52px 0 22px;
}
.category-modules {
  padding-top: 4px;
}
.category-block {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0;
  padding-top: 44px;
}
.category-modules .latest-movie-section {
  width: 100%;
  margin: 0;
}
.movie-block-head {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}
.module-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid var(--line);
}
.module-tabs a:first-child {
  border-left: 0;
}
.module-tabs a:hover,
.module-tabs a.more {
  color: var(--brand);
}
.latest-main,
.weekly-rank {
  min-width: 0;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.block-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}
.module-icon,
.flame-icon {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}
.module-icon {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1aa1be);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(15,91,120,.18);
}
.module-icon::before {
  content: "";
  position: absolute;
}
.module-icon::after {
  content: "";
  position: absolute;
}
.icon-movie::before {
  left: 12px;
  top: 8px;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.icon-movie::after,
.icon-tv::after {
  left: 7px;
  right: 7px;
  bottom: -4px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 999px;
}
.icon-short {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.icon-short::before {
  width: 9px;
  height: 17px;
  left: 11px;
  top: 4px;
  background: #fff;
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 25% 100%, 42% 54%, 0 54%);
}
.icon-tv {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.icon-tv::before {
  inset: 6px 7px 8px;
  border: 2px solid #fff;
  border-radius: 3px;
}
.icon-anime {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.icon-anime::before {
  width: 17px;
  height: 17px;
  left: 6px;
  top: 5px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 68% 56%, 80% 92%, 50% 70%, 20% 92%, 32% 56%, 2% 35%, 38% 34%);
}
.icon-heart {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}
.icon-heart::before {
  width: 17px;
  height: 15px;
  left: 7px;
  top: 7px;
  background: #fff;
  clip-path: path("M8.5 14 C2 9 0 6 0 3.3 C0 1.3 1.4 0 3.2 0 C4.5 0 5.8 .7 6.5 1.8 C7.2 .7 8.5 0 10.8 0 C12.6 0 14 1.3 14 3.3 C14 6 12 9 8.5 14 Z");
}
.icon-variety {
  background: linear-gradient(135deg, #059669, #84cc16);
}
.icon-variety::before {
  width: 16px;
  height: 16px;
  left: 7px;
  top: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
}
.mini-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.mini-tabs button {
  flex: 0 0 auto;
  padding: 0 17px;
  color: #8a93a0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}
.mini-tabs button:last-child {
  border-right: 0;
}
.mini-tabs button.active,
.mini-tabs button:hover {
  color: var(--brand);
}
.latest-poster-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
}
.latest-poster-card {
  min-width: 0;
}
.wide-grid .latest-poster-card,
.latest-poster-row .latest-poster-card {
  display: grid;
  grid-template-rows: auto min-content min-content;
  min-height: 0;
}
.latest-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e9edf3;
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}
.latest-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.latest-poster span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.latest-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  pointer-events: none;
}
.latest-poster span { z-index: 1; }
.latest-poster-card h3 {
  margin: 12px 0 5px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-poster-card p {
  margin: 0;
  overflow: hidden;
  color: #8a93a0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-text-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 22px;
  margin-top: 24px;
  align-items: start;
}
.latest-text-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px dotted #d9dee6;
}
.latest-text-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-text-item em {
  color: #8a93a0;
  font-style: normal;
}
.weekly-rank .block-title {
  min-height: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.weekly-rank ol {
  padding: 16px 0 0;
  margin: 0;
  list-style: none;
  counter-reset: week-rank;
}
.weekly-rank li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px dotted #d9dee6;
  counter-increment: week-rank;
}
.weekly-rank li::before {
  content: counter(week-rank);
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #667085;
  background: #eef1f5;
  border-radius: 3px;
  font-size: 13px;
}
.weekly-rank li:nth-child(-n+3)::before {
  color: #fff;
  background: #ff5a52;
}
.weekly-rank li:nth-child(2)::before {
  background: #ff8a00;
}
.weekly-rank li:nth-child(3)::before {
  background: #f6b800;
}
.weekly-rank a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-rank li span {
  color: #8a93a0;
}
.intro-band h2, .section-title h2, .partner-band h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.intro-band > p { margin: 36px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

.feature-section { padding: 26px 0 72px; }
.section-title { display: flex; justify-content: space-between; align-items: end; min-height: 46px; margin-bottom: 26px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 230px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(28,36,48,.06); }
.service-card span { color: var(--accent-2); font-weight: 900; }
.service-card h3 { margin: 30px 0 12px; font-size: 22px; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.8; }

.stats-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--brand-dark);
  color: #fff;
}
.stats-strip div { min-height: 150px; display: grid; place-items: center; align-content: center; border-right: 1px solid rgba(255,255,255,.14); }
.stats-strip strong { font-size: clamp(34px, 4vw, 54px); }
.stats-strip span { color: rgba(255,255,255,.7); margin-top: 6px; }

.library-section { padding: 78px 0; }
.section-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
h1, h2, h3 { letter-spacing: 0; }
h2 { margin: 0; font-size: 34px; }
.filter-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; }
.chip { min-height: 38px; min-width: 58px; padding: 0 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.chip.active, .chip:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.card { min-width: 0; }
.poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper); border-radius: var(--radius); box-shadow: 0 16px 34px rgba(28,36,48,.12); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .poster img { transform: scale(1.04); }
.badge, .score { position: absolute; top: 9px; min-height: 26px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 900; }
.badge { left: 9px; color: #fff; background: var(--brand); }
.score { right: 9px; color: #1d1d1d; background: var(--accent); }
.card h3 { margin: 12px 0 5px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.card p, .muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.channel-page {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 70px;
}
.channel-filters {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}
.channel-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  color: #202b3a;
  background: #f5f6f8;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}
.channel-chip.active,
.channel-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, #ffb22d, #ed2f67);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0 24px;
  color: var(--muted);
  font-size: 15px;
}
.breadcrumb a {
  color: var(--ink);
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 18px;
}
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  color: #263446;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 38px;
  color: var(--muted);
}
.pagination a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.pagination a.disabled {
  color: #a8b0bb;
  pointer-events: none;
}
.channel-card {
  min-width: 0;
}
.channel-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f5f8;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(24,38,56,.09);
}
.channel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.channel-status {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 3px 8px;
  color: #fff;
  background: #df4b4b;
  border-radius: 0 4px 0 4px;
  font-size: 13px;
  font-weight: 700;
}
.channel-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 9px 7px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.66));
  font-size: 13px;
}
.channel-card h3 {
  margin: 10px 0 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-card p {
  margin: 0;
  overflow: hidden;
  color: #8a93a0;
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-hero {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 24px 0 6px;
}

.topic-hero .breadcrumb {
  margin: 0 0 18px;
}

.topic-hero h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
}

.topic-hero p {
  max-width: 780px;
  margin: 0;
  color: #536173;
  font-size: 16px;
  line-height: 1.8;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 56px;
  align-items: start;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.topic-card .channel-poster {
  border-radius: 6px;
}

.topic-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.28;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topic-card h3 a {
  color: inherit;
}

.topic-card p {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: #7b8796;
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topic-layout .weekly-rank {
  position: sticky;
  top: 86px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.topic-layout .weekly-rank .block-title h2 {
  margin: 0;
  font-size: 20px;
}

.partner-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 48px;
  margin-bottom: 68px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: var(--radius);
}
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 34px 0 46px; color: var(--muted); border-top: 1px solid var(--line); }
.footer strong { color: var(--brand-dark); font-size: 20px; }
.footer-links { display: flex; gap: 22px; font-weight: 800; color: var(--brand); }
.site-footer {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: #8a93a0;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.site-footer a {
  color: var(--brand);
}

.page { padding: 26px 0 56px; }
.layout { width: min(1180px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.sidebar { display: grid; gap: 18px; position: sticky; top: 92px; }
.panel {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(229,234,242,.95);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(24, 38, 56, .06);
}
.synopsis-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.synopsis-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.stat-row strong { color: var(--ink); }
.notice { padding: 12px; border: 1px solid #f3d58b; background: #fff7dc; border-radius: var(--radius); color: #805b00; }
.success { color: #16855a; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.detail-content { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-poster { width: 100%; border-radius: 10px; box-shadow: 0 20px 46px rgba(28,36,48,.16); }
.detail-main h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.2;
}
.detail-info {
  color: #566170;
  font-size: 15px;
  line-height: 1.68;
}
.detail-info p {
  margin: 0;
}
.detail-info strong {
  color: #566170;
  font-weight: 500;
}
.detail-info-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
}
.detail-info-line span {
  display: inline-flex;
  align-items: center;
}
.detail-info-line span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 10px;
  background: #d7d7d7;
}
.detail-info em {
  color: #ff0000;
  font-style: normal;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 4px;
}
.detail-watch {
  display: inline-flex;
  width: 138px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}
.detail-watch span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-radius: 3px;
}
.detail-watch-primary {
  color: #ff5a00;
}
.detail-watch-fast {
  color: #ff4b73;
}
.detail-watch:hover {
  background: #fff8f6;
  transform: translateY(-1px);
}
.detail-sections {
  grid-column: 1;
  display: grid;
  gap: 16px;
  margin-top: 18px;
  min-width: 0;
  width: 100%;
}
.detail-rank {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  padding: 2px 0 0;
  background: #fff;
}
.detail-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  border-bottom: 1px solid #edf0f4;
}
.detail-rank-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}
.detail-rank-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
}
.detail-rank-head a span {
  font-size: 26px;
  line-height: 1;
}
.detail-rank-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.detail-rank-list li {
  border-bottom: 1px solid #edf0f4;
}
.detail-rank-list a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  color: #000;
}
.detail-rank-list .is-featured a {
  grid-template-columns: 34px 76px minmax(0, 1fr) auto;
  min-height: 124px;
}
.rank-num {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #9fa3a7;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
}
.detail-rank-list li:nth-child(1) .rank-num {
  background: #ff0d3b;
}
.detail-rank-list li:nth-child(2) .rank-num {
  background: #ff8a13;
}
.detail-rank-list li:nth-child(3) .rank-num {
  background: #ffc400;
}
.detail-rank-list img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.rank-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.rank-body strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-body em {
  overflow: hidden;
  color: #8e949c;
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000;
  font-size: 16px;
  white-space: nowrap;
}
.detail-rank-list li:first-child .rank-hot {
  color: #ff1d1d;
}
.rank-hot i {
  width: 12px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 50% 50% 55% 55%;
  transform: rotate(-18deg);
}
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.meta-item { padding: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; }
.meta-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px 12px;
  margin-top: 10px;
}
.episode-grid a {
  min-width: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 10px;
  color: #0d2033;
  background: #f4f8fc;
  border: 1px solid #dfe7f0;
  border-radius: 7px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.episode-grid a:hover,
.episode-grid a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(15,91,120,.18);
}
.guess-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.detail-sections .panel-head {
  margin-bottom: 16px;
}
.detail-sections .panel-head h2 {
  font-size: 24px;
}
.detail-sections .panel-head span {
  font-size: 16px;
}
.guess-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 4px;
  margin-top: 22px;
}
.guess-card {
  min-width: 0;
}
.guess-card h3 {
  margin: 8px 0 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guess-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.player-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.player-main {
  display: grid;
  min-width: 0;
  gap: 18px;
}
.player-side {
  display: grid;
  align-content: start;
  gap: 18px;
}
.play-rank-panel {
  min-width: 0;
}
.play-rank-head {
  min-height: auto;
  margin-bottom: 10px;
}
.play-rank-head h2 {
  font-size: 22px;
}
.play-rank-list a {
  min-height: 46px;
}
.player-screen { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: #000; color: #fff; border-radius: var(--radius); }
.player-screen strong { font-size: clamp(20px, 4vw, 42px); }
#realPlayer,
.player-screen > video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  grid-area: 1 / 1;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000;
}
.player-screen.is-portrait,
.player-screen.vertical-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-screen.is-portrait > video,
.player-screen.vertical-center > video {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.player-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background: #000;
  pointer-events: none;
}
.player-loading.hidden {
  display: none;
}
.player-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255,255,255,.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: player-spin .8s linear infinite;
}
.player-loading strong {
  padding: 6px 12px;
  font-size: 15px;
  background: rgba(0,0,0,.46);
  border-radius: 999px;
}
@keyframes player-spin {
  to { transform: rotate(360deg); }
}
.custom-player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 36px 42px minmax(90px, 1fr) 42px auto 36px;
  gap: 6px;
  align-items: center;
  min-height: 52px;
  padding: 18px 12px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72) 36%, rgba(0,0,0,.86));
  border-top: 0;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.custom-player-controls button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  cursor: pointer;
}
.custom-player-controls button:hover {
  background: rgba(255,255,255,.16);
}
.custom-player-controls input {
  width: 100%;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}
.custom-player-controls span {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
}
.admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 36px 0 70px; }
.admin-menu { display: grid; gap: 8px; align-content: start; position: sticky; top: 92px; }
.admin-menu button { min-height: 42px; text-align: left; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; }
.admin-menu button.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 700; background: #f0f5f8; }
.table td:last-child {
  white-space: nowrap;
}
.link-danger {
  margin-left: 10px;
  padding: 0;
  color: #d93b3b;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.link-danger:hover {
  text-decoration: underline;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.field-wide { grid-column: 1 / -1; }
.config-form { display: grid; gap: 18px; }
.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 14px;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.switch-field span { margin: 0; }
.switch-field input { width: 20px; height: 20px; accent-color: var(--brand); }
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.check-pill {
  display: inline-flex;
  cursor: pointer;
}
.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  color: var(--muted);
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 700;
}
.check-pill input:checked + span {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(11, 108, 134, .16);
}
.collect-source-card + .collect-source-card {
  margin-top: 18px;
}
.source-summary + .source-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-note {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--muted);
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.test-output {
  min-height: 120px;
  margin: 18px 0 0;
  padding: 14px;
  overflow: auto;
  color: #335168;
  white-space: pre-wrap;
  background: #f5f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-wrap { overflow-x: auto; }
.log-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.log-list li { padding: 10px 12px; background: #f0f5f8; border-radius: 4px; color: var(--muted); }
.admin-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}
.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.section-subhead h2 { margin: 0; font-size: 24px; }
.source-stat-card { margin-bottom: 14px; }

@media (max-width: 980px) {
  .topbar-inner, .intro-band, .latest-movie-section, .layout, .detail, .player-page, .admin-shell { grid-template-columns: 1fr; }
  .detail-rank {
    grid-column: auto;
    grid-row: auto;
    margin-top: 8px;
  }
  .detail-sections {
    grid-column: auto;
  }
  .nav { justify-content: flex-start; }
  .service-grid, .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .latest-poster-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .latest-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guess-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guess-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar, .admin-menu { position: static; }
  .topbar-inner {
    align-items: stretch;
  }

  .search {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    padding: 12px 0;
  }

  .topbar-inner {
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    max-height: 82px;
    overflow: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
  }

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

  .nav-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 32px;
    padding: 0 9px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
    border-bottom-width: 2px;
  }

  .search {
    width: 100%;
  }

  .search input {
    min-height: 44px;
  }

  .hero { min-height: 620px; padding: 38px 18px; }
  .hero h1 { font-size: 40px; }
  .intro-band, .recommend-section, .latest-movie-section, .category-modules, .feature-section, .library-section, .partner-band, .page, .admin-shell, .footer, .site-footer, .layout { width: calc(100% - 24px); }
  .channel-page { width: calc(100% - 24px); padding-top: 20px; }
  .channel-filter-row {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    padding-bottom: 0;
  }
  .channel-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
    max-width: calc(50vw - 22px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .breadcrumb {
    margin: 18px 0;
  }
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .channel-card h3 {
    font-size: 14px;
  }
  .channel-card p,
  .channel-meta,
  .channel-status {
    font-size: 12px;
  }
  .detail-content {
    order: 1;
    grid-template-columns: 1fr;
  }
  .detail-sections {
    order: 2;
  }
  .detail-rank {
    order: 3;
    margin-top: 0;
  }
  .detail-poster {
    max-width: 260px;
  }
  .service-grid, .stats-strip, .meta-grid, .form-grid { grid-template-columns: 1fr; }
  .admin-search-form { grid-template-columns: 1fr; }
  .detail-info {
    font-size: 15px;
    line-height: 1.68;
  }
  .detail-info-line {
    display: block;
  }
  .detail-info-line span {
    display: inline;
  }
  .detail-info-line span + span::before {
    display: none;
  }
  .detail-actions {
    gap: 10px;
    margin-top: 18px;
  }
  .detail-watch {
    width: min(138px, 100%);
    min-height: 42px;
    font-size: 18px;
  }
  .detail-rank-head {
    min-height: 52px;
  }
  .detail-rank-head h2 {
    font-size: 22px;
  }
  .detail-rank-head a,
  .rank-hot {
    font-size: 15px;
  }
  .detail-rank-list a {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .detail-rank-list .is-featured a {
    grid-template-columns: 34px 72px minmax(0, 1fr) auto;
    min-height: 118px;
  }
  .rank-num {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .detail-rank-list img {
    width: 72px;
  }
  .rank-body strong {
    font-size: 16px;
  }
  .rank-body em {
    font-size: 13px;
  }
  .section-head, .partner-band, .footer { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .guess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .guess-text-grid { grid-template-columns: 1fr; }
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .panel {
    padding: 16px;
  }
  .custom-player-controls {
    grid-template-columns: 32px 38px minmax(56px, 1fr) 38px auto 32px;
    gap: 4px;
    min-height: 58px;
    padding: 22px 8px 7px;
  }
  .custom-player-controls input {
    grid-column: 1 / -1;
    order: -1;
  }
  .custom-player-controls span {
    justify-self: end;
    font-size: 11px;
  }
  .custom-player-controls button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    font-size: 15px;
  }
  .recommend-section {
    padding-top: 34px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-title h2,
  .library-section h2 {
    font-size: 30px;
  }

  .movie-block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .module-tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    row-gap: 8px;
    padding-bottom: 0;
  }

  .module-tabs a {
    min-height: 32px;
    padding: 0 12px;
    font-size: 14px;
  }

  .mini-tabs {
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .mini-tabs button {
    padding: 0 12px;
    min-height: 32px;
  }

  .latest-poster-row,
  .latest-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .latest-movie-section {
    display: block;
    padding-bottom: 0;
  }

  .latest-main {
    width: 100%;
  }

  .latest-text-item {
    min-height: 34px;
    font-size: 14px;
  }

  .weekly-rank {
    display: none !important;
  }

  .weekly-rank li {
    min-height: 36px;
    font-size: 14px;
  }

  .filter-row {
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .card h3,
  .latest-poster-card h3 {
    font-size: 14px;
  }

  .card p,
  .latest-poster-card p {
    font-size: 12px;
  }

  .partner-band {
    padding: 28px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

.hero-carousel {
  position: relative;
  width: min(var(--container), calc(100% - 36px));
  min-height: 0;
  margin: 18px auto 0;
  overflow: hidden;
  padding: 28px 36px 34px;
  color: #fff;
  background: #071f2a;
  border-radius: 18px;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,.12);
}

.carousel-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 72px);
  min-height: 436px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(.85);
  transform: scale(1.08);
  opacity: .42;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 30, .94), rgba(5, 22, 30, .74) 52%, rgba(5, 22, 30, .48)),
    linear-gradient(0deg, rgba(5, 22, 30, .52), rgba(5, 22, 30, 0) 44%);
}

.carousel-content,
.carousel-poster,
.carousel-arrow,
.carousel-dots {
  position: relative;
  z-index: 1;
}

.carousel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.carousel-head h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.carousel-cover-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.carousel-cover-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  transition: transform .45s ease;
  will-change: transform;
}

.carousel-cover-card {
  flex: 0 0 calc((100% - 88px) / 5);
  min-width: 0;
}

.carousel-cover-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.carousel-cover-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.carousel-cover-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.7));
  pointer-events: none;
}

.carousel-cover-poster span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.carousel-cover-card h2 {
  margin: 12px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-cover-card.active .carousel-cover-poster {
  border-color: rgba(240, 180, 41, .8);
  box-shadow: 0 22px 48px rgba(0,0,0,.34), 0 0 0 2px rgba(240,180,41,.22);
}

.carousel-cover-card:hover img {
  transform: scale(1.04);
}

.carousel-content {
  max-width: 720px;
}

.carousel-content h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

.carousel-content p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.8;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.movie-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}

.carousel-poster {
  display: block;
  width: min(280px, 30vw);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(0,0,0,.38);
}

.carousel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

.carousel-dots {
  position: absolute;
  left: 36px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

.carousel-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255,255,255,.35);
  border: 0;
  border-radius: 999px;
}

.carousel-dots button.active {
  background: var(--accent);
}

@media (max-width: 980px) {
  .topic-layout {
    grid-template-columns: 1fr;
    max-width: calc(100% - 28px);
  }

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

  .topic-layout .weekly-rank {
    position: static;
  }

  .carousel-cover-row {
    gap: 16px;
  }
  .carousel-cover-card {
    flex-basis: calc((100% - 48px) / 4);
  }
}

.seo-landing-section {
  margin-top: 28px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.seo-link-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.seo-link-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.seo-link-card strong {
  font-size: 18px;
}

.seo-link-card span {
  color: var(--muted);
  line-height: 1.7;
}

.related-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-search-list a {
  padding: 9px 13px;
  color: var(--brand-dark);
  text-decoration: none;
  background: rgba(15, 91, 120, .08);
  border: 1px solid rgba(15, 91, 120, .16);
  border-radius: 8px;
}

.related-search-list a:hover {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 680px) {
  .topic-hero {
    max-width: calc(100% - 24px);
    padding-top: 18px;
  }

  .topic-hero h1 {
    font-size: 28px;
  }

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

  .topic-card h3 {
    min-height: 40px;
    font-size: 15px;
  }

  .hero-carousel {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 12px;
    padding: 18px 16px 22px;
    border-radius: 14px;
  }

  .carousel-head {
    margin-bottom: 16px;
  }

  .carousel-head h1 {
    font-size: 24px;
  }

  .carousel-cover-row {
    gap: 14px;
  }

  .carousel-cover-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .carousel-cover-card h2 {
    font-size: 15px;
  }

  .primary,
  .secondary,
  .full-button,
  .danger {
    min-height: 42px;
    padding: 0 16px;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-dots {
    left: 16px;
    bottom: 28px;
  }
}





