
:root {
  --primary-50: #e6f2f8;
  --primary-100: #cce5f1;
  --primary-600: #006494;
  --primary-700: #004b6f;
  --primary-800: #00324a;
  --secondary-600: #147494;
  --accent-50: #fef9e7;
  --accent-600: #c49c0c;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-900: #212529;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.16);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--neutral-900);
  background: var(--neutral-50);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-900);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--white);
}

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

.brand-text strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--neutral-600);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-600);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(0, 100, 148, 0.16);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--primary-600);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--neutral-100);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
  padding: 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--neutral-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--primary-700), var(--primary-600) 55%, var(--secondary-600));
  padding: clamp(56px, 8vw, 96px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-main h1,
.page-hero h1,
.ranking-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-main p,
.page-hero p,
.ranking-hero p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow,
.ranking-hero .eyebrow {
  color: var(--primary-100);
}

.hero-search {
  max-width: 620px;
  margin-top: 30px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.hero-search button {
  padding: 14px 22px;
  background: var(--white);
  color: var(--primary-700);
}

.hero-search button:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

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

.button-primary,
.button-ghost,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: var(--primary-600);
  box-shadow: var(--shadow-soft);
}

.hero-section .button-primary,
.ranking-hero .button-primary {
  color: var(--primary-700);
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  background: rgba(0, 50, 74, 0.5);
  backdrop-filter: blur(4px);
}

.button-ghost.dark {
  color: var(--primary-700);
  background: var(--primary-50);
}

.button-primary:hover,
.button-ghost:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags a {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.hero-tags a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-feature {
  position: relative;
  min-height: 410px;
}

.hero-slides {
  position: relative;
  min-height: 384px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

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

.hero-poster {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: var(--shadow-strong);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 384px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-copy {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-2xl);
  padding: 24px;
  background: rgba(0, 50, 74, 0.52);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.16;
}

.hero-copy p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-mini-link {
  color: var(--primary-100);
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  justify-content: center;
}

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

.hero-dot.is-active {
  width: 46px;
  background: var(--white);
}

.section-block {
  padding: clamp(42px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--neutral-600);
}

.section-link {
  flex: none;
  min-height: 40px;
  color: var(--primary-600);
  background: var(--primary-50);
}

.tinted {
  background: var(--neutral-100);
}

.gradient-panel {
  background: linear-gradient(90deg, var(--accent-50), var(--primary-50));
}

.movie-grid {
  display: grid;
  gap: 24px;
}

.movie-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--neutral-200);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.duration,
.category-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1;
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
}

.category-badge {
  top: 10px;
  left: 10px;
  background: var(--primary-600);
}

.score-badge {
  top: 10px;
  right: 10px;
  background: var(--accent-600);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--primary-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 2.92em;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 0.92rem;
  line-height: 1.46;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.card-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta {
  margin-top: 13px;
  color: var(--neutral-600);
  font-size: 0.78rem;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-meta span,
.tag-cloud a {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 0.78rem;
  font-weight: 650;
}

.card-tags .card-tag {
  color: var(--primary-700);
  background: var(--primary-100);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-card,
.rank-row {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-card a,
.rank-row {
  display: grid;
  grid-template-columns: 42px 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-card img,
.rank-row img {
  width: 112px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  font-weight: 900;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--neutral-900);
}

.rank-info small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-2xl);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 50, 74, 0.86));
}

.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

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

.category-card strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.category-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.category-card:hover img {
  transform: scale(1.06);
}

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.compact-list,
.mini-stack {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.compact-card img {
  width: 112px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong,
.compact-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card strong {
  color: var(--neutral-900);
  font-size: 0.95rem;
}

.compact-card small {
  margin-top: 4px;
  color: var(--neutral-600);
  font-size: 0.78rem;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-strong);
}

.callout h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.callout p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero,
.ranking-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--primary-700), var(--secondary-600));
  padding: clamp(48px, 7vw, 86px) 0;
}

.compact-hero h1,
.category-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

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

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  border-radius: var(--radius-2xl);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  padding: 0 12px;
}

.filter-controls input {
  width: min(360px, 46vw);
}

.empty-state {
  margin: 22px 0 0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--neutral-600);
  background: var(--neutral-100);
}

.category-overview-grid {
  display: grid;
  gap: 26px;
  padding: 56px 0 76px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.category-overview-body {
  padding: clamp(22px, 4vw, 36px);
}

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.category-overview-body p {
  color: var(--neutral-600);
}

.category-overview-body .section-link {
  margin-top: 18px;
}

.ranking-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
}

.ranking-feature {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: rgba(0, 50, 74, 0.44);
  box-shadow: var(--shadow-strong);
}

.ranking-feature img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.ranking-feature span {
  display: block;
  padding: 20px;
}

.ranking-feature strong,
.ranking-feature small {
  display: block;
}

.ranking-feature strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.ranking-feature small {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.rank-row {
  grid-template-columns: 42px 112px minmax(0, 1fr) auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-medium);
}

.rank-score {
  color: var(--accent-600);
  font-weight: 900;
}

.detail-page {
  padding: 28px 0 72px;
}

.detail-breadcrumb {
  margin-bottom: 18px;
  color: var(--neutral-600);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-info-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-strong);
}

.play-icon::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  content: "";
  transform: translate(-45%, -50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--primary-700);
}

.play-overlay strong {
  font-size: 1.05rem;
}

.detail-info-card,
.side-card {
  padding: clamp(22px, 4vw, 32px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.category-pill {
  flex: none;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-weight: 800;
}

.detail-meta {
  margin: 18px 0 28px;
}

.story-block {
  margin-top: 28px;
}

.story-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.story-block p {
  margin: 0 0 14px;
  color: var(--neutral-700);
  font-size: 1.02rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
}

.tag-cloud a:hover {
  color: var(--primary-700);
  background: var(--primary-100);
}

.detail-side {
  position: sticky;
  top: 100px;
}

.related-block {
  padding-bottom: 0;
}

.search-page-form {
  max-width: 680px;
}

[data-card][hidden] {
  display: none;
}

.site-footer {
  color: var(--neutral-300);
  background: var(--neutral-900);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 1fr));
  gap: 36px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 480px;
  color: var(--neutral-500);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--neutral-500);
}

.site-footer a:hover {
  color: var(--primary-100);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--container));
  margin: 34px auto 0;
  border-top: 1px solid var(--neutral-700);
  padding: 22px 0;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .ranking-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .hero-feature {
    min-height: 360px;
  }

  .hero-slides {
    min-height: 340px;
  }

  .hero-poster img {
    min-height: 340px;
  }

  .movie-grid.four-col,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .hero-section,
  .page-hero,
  .ranking-hero {
    padding: 42px 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    min-height: 220px;
    max-height: 260px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero-feature,
  .hero-slides {
    min-height: 480px;
  }

  .hero-search,
  .mobile-search,
  .filter-panel,
  .section-head,
  .callout {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button,
  .mobile-search button {
    width: 100%;
  }

  .hero-actions,
  .callout-actions {
    align-items: stretch;
  }

  .button-primary,
  .button-ghost {
    width: 100%;
  }

  .movie-grid.four-col,
  .category-grid,
  .rank-grid,
  .split-sections,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover img {
    min-height: 220px;
  }

  .filter-controls,
  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }

  .rank-row,
  .rank-card a {
    grid-template-columns: 34px 96px minmax(0, 1fr);
  }

  .rank-row .rank-score {
    grid-column: 3;
  }

  .rank-card img,
  .rank-row img,
  .compact-card img {
    width: 96px;
    height: 58px;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-title-row {
    display: block;
  }

  .category-pill {
    display: inline-flex;
    margin-top: 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-main h1,
  .page-hero h1,
  .ranking-hero h1 {
    font-size: 2.05rem;
  }

  .hero-search {
    background: transparent;
    padding: 0;
  }

  .hero-search input,
  .hero-search button {
    min-height: 48px;
  }

  .hero-feature,
  .hero-slides {
    min-height: 440px;
  }

  .card-body {
    padding: 14px;
  }

  .rank-row,
  .rank-card a {
    gap: 10px;
  }
}
