:root {
  --sky-50: #eff9ff;
  --sky-100: #dff4ff;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --amber-50: #fff8e7;
  --amber-100: #ffefc2;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --green-500: #22c55e;
  --purple-500: #8b5cf6;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 30px rgba(2, 132, 199, 0.12);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #ffffff 0%, rgba(239, 249, 255, 0.60) 48%, rgba(255, 248, 231, 0.70) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  background: linear-gradient(90deg, rgba(239, 249, 255, 0.95), rgba(255, 248, 231, 0.95), rgba(239, 249, 255, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.10);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 198px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-400), var(--amber-400));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.26);
}

.brand-text {
  display: grid;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-700, #0369a1);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.14));
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gray-800);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(14, 165, 233, 0.56);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.header-search button,
.primary-btn,
.secondary-btn,
.filter-bar button,
.player-start,
.search-action {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.header-search button,
.primary-btn,
.filter-bar button,
.search-action {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.22);
}

.header-search button {
  padding: 11px 18px;
  white-space: nowrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
}

.secondary-btn {
  color: var(--gray-800);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-bar button:hover,
.player-start:hover,
.search-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.10);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.28), transparent 28%), radial-gradient(circle at 80% 18%, rgba(251, 191, 36, 0.30), transparent 30%), linear-gradient(135deg, rgba(239, 249, 255, 0.95), rgba(255, 248, 231, 0.88));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(45deg, rgba(2, 132, 199, 0.18) 25%, transparent 25%), linear-gradient(-45deg, rgba(245, 158, 11, 0.16) 25%, transparent 25%);
  background-size: 70px 70px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--sky-700, #0369a1);
  background: rgba(14, 165, 233, 0.12);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--gray-600);
  font-size: 18px;
}

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

.hero-search {
  max-width: 580px;
  margin-top: 32px;
  padding: 10px;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
}

.hero-search button {
  min-width: 112px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chips a,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--gray-700);
  border: 1px solid rgba(14, 165, 233, 0.14);
  font-weight: 700;
}

.hero-chips a {
  padding: 8px 13px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-chips a:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.16));
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: end;
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  backdrop-filter: blur(14px);
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4.2;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.20);
}

.hero-poster img,
.poster img,
.detail-poster img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info {
  padding: 10px 0 8px;
}

.hero-info h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.hero-info p {
  color: var(--gray-600);
  margin: 0 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-pill {
  padding: 6px 10px;
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: -18px;
  top: 34px;
  display: grid;
  gap: 12px;
}

.stat-card {
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--sky-600);
}

.stat-card span {
  color: var(--gray-500);
  font-size: 13px;
}

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

.section {
  padding: 72px 0;
}

.section.compact-section {
  padding: 42px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-heading p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  max-width: 760px;
}

.section-more {
  color: var(--sky-700, #0369a1);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 165, 233, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, 0.48));
}

.score {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--red-500));
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title:hover {
  color: var(--sky-600);
}

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 9px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--gray-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 255, 0.78));
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -42px;
  top: -42px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 68%);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.16);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 2;
  color: var(--gray-600);
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
  color: var(--sky-600);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.10);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--sky-500));
}

.rank-cover {
  display: block;
  overflow: hidden;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

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

.page-hero {
  margin: 38px 0 26px;
  padding: 42px;
  border-radius: var(--radius-2xl);
  background: radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.20), transparent 28%), linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 231, 0.72));
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: var(--shadow-soft);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 130px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-bar button,
.search-action {
  min-height: 44px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--gray-600);
  border: 1px dashed rgba(14, 165, 233, 0.32);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin: 36px 0 70px;
}

.breadcrumb {
  margin-top: 26px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-600);
  font-weight: 800;
}

.detail-title {
  padding: 28px 0 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.player-section,
.content-panel,
.side-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 165, 233, 0.10);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 168px;
  min-height: 56px;
  color: var(--white);
  font-size: 17px;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 20px 48px rgba(14, 165, 233, 0.34);
}

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

.content-panel {
  margin-top: 24px;
  padding: 30px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.content-panel p {
  color: var(--gray-700);
  margin: 0 0 20px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.side-panel-body {
  padding: 22px;
}

.side-panel-body dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-panel-body dt {
  color: var(--gray-500);
}

.side-panel-body dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(14, 165, 233, 0.10);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.related-card .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.related-card strong {
  display: block;
  padding: 12px;
  line-height: 1.35;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 165, 233, 0.10);
}

.search-result-card img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.search-result-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.search-result-card p {
  color: var(--gray-600);
  margin: 0 0 12px;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-inner p {
  color: var(--gray-600);
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

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

.footer-links.compact a {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.copyright {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--gray-500);
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-card] {
  animation: fadeIn 0.32s ease both;
}

@media (max-width: 1080px) {
  .header-search {
    min-width: 240px;
  }

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

  .hero-stage {
    min-height: 520px;
  }

  .hero-stats {
    right: 18px;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 68px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

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

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

  .main-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }

  .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0;
    gap: 26px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 44px;
  }

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

  .hero-poster {
    aspect-ratio: 16 / 10;
  }

  .hero-stats {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 42px 88px 1fr;
  }

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

  .filter-bar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 610px;
  }

  .hero-slide {
    padding: 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-result-card {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-cover {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }

  .content-panel {
    padding: 22px;
  }
}
