*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-500: #3b82f6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.42), #ffffff 30%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.page-space {
  padding: 32px 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(125, 211, 252, 0.36);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.28);
  font-size: 18px;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sky-600), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--slate-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-600);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--sky-700);
  background: var(--sky-100);
}

.header-search {
  position: relative;
  width: min(260px, 24vw);
}

.search-input,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--slate-700);
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--sky-300);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--sky-50);
}

.search-result-item img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-100);
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-800);
}

.search-result-item span {
  color: var(--slate-500);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sky-50);
  color: var(--sky-700);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
}

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

.mobile-panel-inner {
  display: grid;
  gap: 8px;
  padding: 12px 0 18px;
}

.mobile-search {
  position: relative;
  margin-top: 8px;
}

.home-hero {
  position: relative;
  height: 560px;
  margin-bottom: 44px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-md);
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.52) 44%, rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  height: 100%;
  padding: 52px;
  color: #ffffff;
}

.hero-pills,
.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-pills span,
.detail-pills span {
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-pills span:first-child,
.detail-pills span:first-child {
  background: var(--sky-500);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.hero-summary {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-size: 12px;
  font-style: normal;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.btn-primary,
.btn-ghost,
.text-link,
.section-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  padding: 13px 24px;
  color: #ffffff;
  background: var(--sky-500);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--sky-600);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.36);
}

.btn-ghost {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost.bright {
  color: var(--sky-700);
  border-color: rgba(14, 165, 233, 0.24);
  background: #ffffff;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.search-feature,
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  padding: 28px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-sm);
}

.search-feature h2,
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.search-feature p,
.page-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--slate-600);
  line-height: 1.8;
}

.search-feature form {
  position: relative;
  width: min(440px, 100%);
}

.large-search {
  padding: 15px 18px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-section {
  margin-bottom: 60px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  margin: 0;
  color: var(--slate-500);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.compact-grid {
  gap: 18px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 20px;
  scrollbar-width: thin;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.36);
  box-shadow: var(--shadow-md);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-100);
}

.poster img,
.list-cover img,
.rank-cover img,
.detail-cover img,
.category-cover-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .poster img,
.list-card:hover .list-cover img,
.rank-card:hover .rank-cover img {
  transform: scale(1.07);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.62));
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

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

.movie-card h3,
.list-card h3,
.rank-card h2,
.rank-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.movie-card h3 a,
.list-card h3 a,
.rank-card h2 a,
.rank-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-card a:hover,
.list-card a:hover,
.rank-card a:hover,
.text-link:hover,
.section-more a:hover {
  color: var(--sky-600);
}

.card-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
  color: var(--slate-500);
  font-size: 13px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 210px;
}

.list-cover {
  display: block;
  overflow: hidden;
  background: var(--slate-100);
}

.list-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.list-body p,
.rank-body p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
}

.ranking-item > span,
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.rank-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

.section-more {
  margin-top: 22px;
  text-align: center;
}

.section-more a,
.text-link {
  color: var(--sky-700);
  font-weight: 700;
}

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff, var(--sky-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  color: var(--sky-700);
  font-size: 22px;
  font-weight: 800;
}

.category-tile strong {
  color: var(--slate-700);
  line-height: 1.7;
  font-weight: 500;
}

.category-tile em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky-600);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slim-hero {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), #ffffff);
}

.category-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #075985, var(--sky-500));
}

.category-hero p,
.category-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-cover-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-wall img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: var(--slate-100);
}

.category-overview-body h2 {
  margin: 0 0 10px;
}

.category-overview-body p {
  margin: 0 0 12px;
  color: var(--slate-600);
  line-height: 1.7;
}

.category-overview-body ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--slate-500);
  font-size: 14px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 170px 170px auto;
  gap: 12px;
}

.filter-row button,
.chip-row button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--sky-700);
  background: var(--sky-50);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-row button:hover,
.chip-row button:hover,
.chip-row button.is-active {
  color: #ffffff;
  background: var(--sky-500);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  padding: 52px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  color: var(--slate-500);
  text-align: center;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.rank-main {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.rank-side {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rank-side h2 {
  margin: 0;
  font-size: 22px;
}

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

.mini-list .list-card {
  grid-template-columns: 86px 1fr;
  min-height: 126px;
}

.mini-list .list-body {
  padding: 10px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-md);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 50px rgba(14, 165, 233, 0.32);
  font-size: 36px;
  padding-left: 6px;
}

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

.player-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.player-controls button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
}

.player-controls button:hover {
  background: rgba(14, 165, 233, 0.78);
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.82);
  text-align: center;
}

.detail-info {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: var(--slate-100);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.lead-text {
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
}

.detail-meta dt {
  color: var(--slate-500);
}

.detail-meta dd {
  margin: 0;
  color: var(--slate-700);
}

.large-tags span {
  padding: 8px 12px;
  font-size: 14px;
}

.text-panel {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 2;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--slate-200);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--slate-600);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .home-hero {
    height: 520px;
  }

  .hero-content {
    padding: 36px;
  }

  .search-feature,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ranking-strip,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(280px, 100%);
  }

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

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

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

  .brand-copy small {
    display: none;
  }

  .home-hero {
    height: 520px;
    border-radius: 18px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.88));
  }

  .hero-content {
    justify-content: flex-end;
    padding: 28px 22px 62px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-summary {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .search-feature,
  .page-hero,
  .text-panel,
  .detail-info,
  .filter-panel {
    padding: 18px;
  }

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

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

  .horizontal-scroll {
    grid-auto-columns: 168px;
  }

  .list-card,
  .rank-card,
  .category-overview-card {
    grid-template-columns: 98px 1fr;
    min-height: 146px;
  }

  .list-body p,
  .rank-body p,
  .category-overview-body ul {
    display: none;
  }

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

  .category-cover-wall {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .player-controls {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .player-controls button {
    padding: 8px 10px;
    font-size: 13px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .footer-grid {
    padding: 30px 0;
  }
}
