:root {
  --color-bg: #f8fafc;
  --color-bg-soft: #f1f5f9;
  --color-panel: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-border: #e2e8f0;
  --color-cyan: #06b6d4;
  --color-cyan-dark: #0891b2;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.1);
  --radius-large: 28px;
  --radius-card: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.34);
  font-size: 18px;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(148, 163, 184, 0.16);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.3);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-category-links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-links a {
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.quick-search {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
}

.quick-search-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-search input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  outline: none;
}

.quick-search input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.quick-search-hint {
  color: #94a3b8;
  font-size: 13px;
}

.quick-search-results {
  width: min(var(--container), calc(100% - 32px));
  max-height: 420px;
  overflow: auto;
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.quick-result-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: #e2e8f0;
}

.quick-result-item:hover {
  background: rgba(148, 163, 184, 0.12);
}

.quick-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e7490, #1e293b);
}

.quick-result-item strong {
  display: block;
  color: #fff;
}

.quick-result-item small {
  color: #94a3b8;
}

.hero-slider {
  position: relative;
  height: 76vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at top left, #155e75, #0f172a 55%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.1)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.05) 50%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 86px;
}

.hero-copy {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
}

.hero-copy > * {
  max-width: 760px;
}

.hero-badges,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-copy p {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  max-width: 680px;
}

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

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--color-cyan);
  color: #fff;
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: var(--color-cyan-dark);
}

.btn-glass,
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: var(--color-text);
  background: #fff;
  border-color: var(--color-border);
}

.btn-block {
  width: 100%;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--color-cyan);
}

.page-section {
  padding: 74px 0;
}

.white-section {
  background: #fff;
}

.dark-section {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
}

.category-section {
  background: linear-gradient(135deg, #ecfeff, #f1f5f9);
}

.intro-strip {
  padding: 44px 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

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

.intro-grid h2,
.section-heading h2,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-grid h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-grid p,
.section-heading p,
.sub-hero p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.intro-stats {
  display: flex;
  gap: 12px;
}

.intro-stats span {
  min-width: 112px;
  padding: 16px;
  border-radius: 18px;
  background: var(--color-bg-soft);
  text-align: center;
  color: var(--color-muted);
}

.intro-stats strong {
  display: block;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1;
}

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

.dark-section .section-heading p,
.dark-section .section-more {
  color: #bae6fd;
}

.dark-section .section-heading h2 {
  color: #fff;
}

.section-more,
.text-link {
  color: var(--color-cyan-dark);
  font-weight: 800;
}

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

.movie-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.dark-section .movie-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

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

.movie-card .poster-wrap img,
.category-overview-card img,
.detail-poster img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 900;
  background: linear-gradient(135deg, #0e7490, #0f172a);
  z-index: 0;
}

.poster-wrap img {
  position: relative;
  z-index: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(6, 182, 212, 0.94);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(244, 63, 94, 0.95);
  font-size: 12px;
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.movie-card-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.dark-section .movie-card-body p,
.dark-section .movie-meta-line span {
  color: #cbd5e1;
}

.tag-row,
.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag,
.genre-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
}

.movie-card--large .poster-wrap {
  aspect-ratio: 16 / 8.5;
}

.movie-card--large .movie-card-body h3 {
  font-size: 25px;
}

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

.rail-item {
  width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.ranking-list,
.latest-list {
  display: grid;
  gap: 14px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: auto 124px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.list-rank {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
}

.horizontal-poster {
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #155e75, #0f172a);
}

.horizontal-poster img {
  width: 124px;
  height: 78px;
  object-fit: cover;
}

.horizontal-info h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.horizontal-info p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #cffafe;
  color: #0e7490;
  font-weight: 900;
  font-size: 12px;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--color-muted);
}

.category-overview-card {
  min-height: 260px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.2));
}

.category-overview-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-overview-card span,
.category-overview-card h2,
.category-overview-card p {
  position: relative;
  z-index: 1;
}

.category-overview-card span {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  font-weight: 900;
}

.category-overview-card p {
  color: #e2e8f0;
}

.sub-hero {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.2), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.sub-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.sub-hero p {
  max-width: 720px;
  color: #cbd5e1;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.filter-title strong {
  font-size: 18px;
}

.filter-title span {
  color: var(--color-muted);
  font-size: 14px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 12px;
}

.filter-controls input,
.filter-controls select,
.search-page-box input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
}

.filter-controls input:focus,
.filter-controls select:focus,
.search-page-box input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.empty-state {
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  color: var(--color-muted);
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #0f172a;
  color: #fff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.68));
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 850px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.detail-meta-grid strong {
  display: block;
  color: #67e8f9;
  font-size: 12px;
}

.tag-row--detail {
  margin-bottom: 24px;
}

.player-section {
  background: #020617;
  color: #fff;
}

.player-section .section-heading p {
  color: #94a3b8;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.76));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.38);
  font-size: 28px;
}

.player-start strong {
  font-size: 24px;
}

.player-start small {
  color: #cbd5e1;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-article,
.detail-side-card,
.search-page-box {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.detail-side-card h2,
.subsection-title {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
}

.detail-side-card dl {
  margin: 0 0 22px;
}

.detail-side-card dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-side-card dd {
  margin: 0 0 12px;
  color: var(--color-text);
}

.search-page-box {
  margin-bottom: 32px;
}

.search-page-box input {
  width: 100%;
}

.search-page-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-page-result {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.search-page-result img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.search-page-result h3 {
  margin: 0 0 4px;
}

.search-page-result p {
  margin: 0;
  color: var(--color-muted);
}

.sitemap-container {
  display: grid;
  gap: 18px;
}

.sitemap-group {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.sitemap-group h2 {
  margin: 0 0 14px;
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group a {
  color: var(--color-cyan-dark);
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0;
}

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

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.footer-brand strong {
  color: #fff;
  font-size: 22px;
}

.footer-brand p,
.footer-copy {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

@media (max-width: 1080px) {
  .movie-grid--four,
  .category-grid,
  .category-overview-grid,
  .sitemap-group ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero-inner {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 68px;
  }

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

  .brand-text small,
  .quick-search-hint {
    display: none;
  }

  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

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

  .intro-grid,
  .section-heading,
  .detail-layout,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .intro-stats {
    flex-wrap: wrap;
  }

  .movie-grid--two,
  .movie-grid--three,
  .movie-grid--four,
  .category-grid,
  .category-overview-grid,
  .sitemap-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .horizontal-card .text-link {
    grid-column: 2 / -1;
  }

  .horizontal-poster,
  .horizontal-poster img {
    width: 96px;
    height: 66px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .quick-search-inner,
  .quick-search-results,
  .footer-inner {
    width: min(100% - 24px, var(--container));
  }

  .page-section {
    padding: 52px 0;
  }

  .hero-slider {
    min-height: 500px;
  }

  .hero-copy p {
    font-size: 15px;
  }

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

  .movie-grid--two,
  .movie-grid--three,
  .movie-grid--four,
  .category-grid,
  .category-overview-grid,
  .sitemap-group ul {
    grid-template-columns: 1fr;
  }

  .rail-item {
    width: 280px;
    flex-basis: 280px;
  }

  .horizontal-card,
  .search-page-result {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .horizontal-card .list-rank {
    position: absolute;
    margin: 8px;
    z-index: 3;
  }

  .horizontal-card .text-link,
  .search-page-result .text-link {
    grid-column: 1 / -1;
  }

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

  .player-start-icon {
    width: 62px;
    height: 62px;
  }

  .player-start strong {
    font-size: 19px;
  }
}
