* {
  box-sizing: border-box;
}

:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #eff8ff;
  --text: #111827;
  --muted: #667085;
  --line: #dbeafe;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --shadow: 0 18px 48px rgba(37, 99, 235, 0.14);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.22);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #eef8ff 46%, #ffffff 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 234, 254, 0.72);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

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

.brand-text strong,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: #475467;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--blue);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 6px 8px 6px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.82);
}

.search-pill input,
.big-search input,
.local-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-pill button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.search-pill button {
  width: 34px;
  height: 34px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #344054;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 24px 22px;
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  color: #344054;
  font-weight: 700;
}

.mobile-link.muted {
  color: #667085;
  font-weight: 600;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(14, 116, 144, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 55%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 88px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-kickers,
.detail-tags,
.movie-tags,
.hero-meta,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kickers span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-kickers span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-kickers span:first-child {
  background: rgba(37, 99, 235, 0.92);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-stats {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero-meta span,
.detail-stats span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-btn,
.glass-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 50px;
  padding: 0 26px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.24);
}

.primary-btn:hover,
.glass-btn:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
}

.glass-btn {
  min-height: 50px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #ffffff;
}

.section-block {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.category-panel h2,
.rank-side h2,
.movie-article h2,
.related-section h2,
.site-footer h2,
.final-cta h2 {
  margin: 0 0 10px;
  color: #182230;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-heading p,
.category-panel p,
.final-cta p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

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

.small-grid,
.category-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(219, 234, 254, 0.74);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-strong);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card.small .poster-wrap,
.movie-card.rail-card .poster-wrap {
  aspect-ratio: 4 / 3;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.type-badge,
.year-badge {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.type-badge {
  left: 12px;
  background: rgba(37, 99, 235, 0.88);
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-tags {
  min-height: 26px;
  margin-bottom: 10px;
}

.movie-tags span {
  padding: 4px 9px;
  color: var(--blue);
  background: #dbeafe;
  font-size: 12px;
}

.movie-info strong {
  color: #182230;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
  color: var(--blue);
}

.movie-info small {
  display: -webkit-box;
  min-height: 43px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: #667085;
  font-size: 12px;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soft-band {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.74), rgba(207, 250, 254, 0.54));
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.8);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.category-tile {
  min-height: 170px;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile strong {
  position: relative;
  display: block;
  margin-bottom: 8px;
  color: #182230;
  font-size: 24px;
}

.category-tile em {
  position: relative;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #dbeafe;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.category-tile small {
  position: relative;
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.category-glow {
  position: absolute;
  inset: auto -50px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  opacity: 0.2;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.rail .movie-card {
  width: 310px;
  flex: 0 0 310px;
  scroll-snap-align: start;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 72px;
  padding: 44px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.page-hero {
  color: #ffffff;
  padding: 92px 0;
}

.gradient-hero,
.category-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #1d4ed8, #0891b2);
}

.category-panels {
  display: grid;
  gap: 24px;
  padding: 64px 0;
}

.category-panel {
  padding: 28px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e0f2fe;
}

.compact-card img {
  width: 82px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #dbeafe;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  color: #182230;
  line-height: 1.35;
}

.compact-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.local-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  padding: 10px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  font-weight: 800;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 112px 1fr 70px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(219, 234, 254, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  background: #dbeafe;
}

.rank-main strong,
.rank-main small,
.rank-main em {
  display: block;
}

.rank-main strong {
  margin-bottom: 4px;
  color: #182230;
  font-size: 18px;
}

.rank-main small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-main em {
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
}

.rank-side,
.content-card {
  border: 1px solid rgba(219, 234, 254, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.rank-side {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.big-search {
  display: flex;
  max-width: 680px;
  gap: 12px;
  margin-top: 30px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.big-search input {
  padding: 0 18px;
  color: #ffffff;
}

.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.big-search button {
  min-width: 120px;
  padding: 12px 22px;
}

.detail-hero {
  min-height: 620px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  padding: 42px 0 74px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.crumbs a:hover {
  color: #ffffff;
}

.detail-title-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: end;
  gap: 36px;
}

.detail-cover {
  width: 260px;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  object-fit: cover;
  background: #dbeafe;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
  max-width: 880px;
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.detail-main {
  padding: 52px 0 76px;
}

.watch-panel {
  margin-top: -120px;
  margin-bottom: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: transparent;
  overflow: hidden;
}

.player-overlay.is-hidden {
  display: none;
}

.player-cover,
.player-mask {
  position: absolute;
  inset: 0;
}

.player-cover {
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.02);
}

.player-mask {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.38));
}

.player-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.player-text {
  position: relative;
  z-index: 2;
  margin-top: 132px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.movie-article {
  padding: 32px;
}

.movie-article p {
  color: #344054;
  font-size: 16px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.info-list div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e0f2fe;
}

.info-list dt {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  color: #182230;
  font-weight: 900;
}

.related-section {
  margin-top: 48px;
}

.site-footer {
  color: #475467;
  background: #ffffff;
  border-top: 1px solid #dbeafe;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #667085;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-tags {
  flex-direction: row;
  flex-wrap: wrap;
}

.footer-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
}

.footer-bottom {
  padding: 18px 16px;
  color: #667085;
  text-align: center;
  border-top: 1px solid #eef4ff;
}

.tone-blue .category-glow,
.tone-blue.category-panel {
  --tone-a: #2563eb;
  --tone-b: #06b6d4;
}

.tone-cyan .category-glow,
.tone-cyan.category-panel {
  --tone-a: #0891b2;
  --tone-b: #22d3ee;
}

.tone-purple .category-glow,
.tone-purple.category-panel {
  --tone-a: #7c3aed;
  --tone-b: #c084fc;
}

.tone-orange .category-glow,
.tone-orange.category-panel {
  --tone-a: #ea580c;
  --tone-b: #f97316;
}

.tone-green .category-glow,
.tone-green.category-panel {
  --tone-a: #16a34a;
  --tone-b: #22c55e;
}

.tone-pink .category-glow,
.tone-pink.category-panel {
  --tone-a: #db2777;
  --tone-b: #f472b6;
}

.tone-amber .category-glow,
.tone-amber.category-panel {
  --tone-a: #d97706;
  --tone-b: #f59e0b;
}

.tone-indigo .category-glow,
.tone-indigo.category-panel {
  --tone-a: #4f46e5;
  --tone-b: #818cf8;
}

.tone-violet .category-glow,
.tone-violet.category-panel {
  --tone-a: #6d28d9;
  --tone-b: #a78bfa;
}

.tone-teal .category-glow,
.tone-teal.category-panel {
  --tone-a: #0d9488;
  --tone-b: #2dd4bf;
}

.tone-slate .category-glow,
.tone-slate.category-panel {
  --tone-a: #475569;
  --tone-b: #94a3b8;
}

.tone-rose .category-glow,
.tone-rose.category-panel {
  --tone-a: #e11d48;
  --tone-b: #fb7185;
}

.category-glow {
  background: linear-gradient(135deg, var(--tone-a, var(--blue)), var(--tone-b, var(--cyan)));
}

.category-hero.tone-blue,
.category-hero.tone-cyan,
.category-hero.tone-purple,
.category-hero.tone-orange,
.category-hero.tone-green,
.category-hero.tone-pink,
.category-hero.tone-amber,
.category-hero.tone-indigo,
.category-hero.tone-violet,
.category-hero.tone-teal,
.category-hero.tone-slate,
.category-hero.tone-rose {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--tone-a, #2563eb), var(--tone-b, #06b6d4));
}

[data-local-hidden="true"] {
  display: none;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
  }

  .search-pill {
    width: 220px;
  }

  .card-grid,
  .small-grid,
  .category-list,
  .category-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .rank-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .search-pill {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: 600px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .section-heading.with-action,
  .final-cta,
  .category-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .small-grid,
  .category-list,
  .category-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-title-grid {
    grid-template-columns: 160px 1fr;
  }

  .detail-cover {
    width: 160px;
    border-radius: 20px;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .small-grid,
  .category-list,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .rail .movie-card {
    width: 260px;
    flex-basis: 260px;
  }

  .rank-row {
    grid-template-columns: 44px 82px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 82px;
    height: 64px;
  }

  .rank-score {
    grid-column: 1 / -1;
    width: auto;
    height: 42px;
  }

  .detail-title-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 190px;
  }

  .watch-panel {
    margin-top: -70px;
  }

  .movie-article {
    padding: 22px;
  }

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