:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --orange: #f97316;
  --red: #dc2626;
  --green: #16a34a;
  --purple: #9333ea;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700), var(--blue-800));
  box-shadow: var(--shadow-md);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.24);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

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

.brand-text strong {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--blue-100);
  font-size: 0.76rem;
  font-style: normal;
  margin-top: 3px;
}

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

.nav-link,
.nav-dropdown button {
  color: rgb(255 255 255 / 0.9);
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-800);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--gray-700);
}

.dropdown-panel a:hover {
  background: #eff6ff;
  color: var(--blue-700);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-nav input {
  width: 220px;
  border: 1px solid rgb(255 255 255 / 0.22);
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.top-search input::placeholder,
.mobile-nav input::placeholder {
  color: #bfdbfe;
}

.top-search input:focus,
.mobile-nav input:focus {
  background: rgb(255 255 255 / 0.2);
  border-color: rgb(255 255 255 / 0.56);
}

.top-search button,
.mobile-nav button,
.primary-button,
.ghost-button,
.filter-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-nav button {
  padding: 10px 16px;
  color: var(--blue-700);
  background: var(--white);
}

.top-search button:hover,
.mobile-nav button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.12);
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
  animation: fadeIn 0.25s ease;
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.mobile-nav input {
  flex: 1;
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 10%, rgb(96 165 250 / 0.35), transparent 32%),
    radial-gradient(circle at 90% 20%, rgb(14 165 233 / 0.25), transparent 28%),
    linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #1d4ed8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, var(--gray-50), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 76px 0 104px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.55rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

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

.hero-tags a,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #dbeafe;
  padding: 7px 11px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: var(--white);
  background: rgb(255 255 255 / 0.10);
  border: 2px solid rgb(255 255 255 / 0.7);
  backdrop-filter: blur(4px);
}

.primary-button:hover {
  background: #eff6ff;
  box-shadow: var(--shadow-xl);
}

.ghost-button:hover {
  background: rgb(255 255 255 / 0.2);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 28px;
  background: rgb(15 23 42 / 0.38);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide-content {
  padding: 22px;
  background: linear-gradient(180deg, rgb(15 23 42 / 0.72), rgb(15 23 42 / 0.94));
}

.hero-slide-content strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.25;
}

.hero-slide-content p {
  display: -webkit-box;
  margin: 10px 0 16px;
  color: #bfdbfe;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-slide-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
  padding: 0;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.section.cool {
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #f0fdfa);
}

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

.section-heading h1,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading h1 span,
.section-heading h2 span {
  color: #eab308;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  padding: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(0deg, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.16), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-shade span {
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  padding: 8px 14px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--blue-600);
}

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

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  background: #eff6ff;
  color: var(--blue-700);
  padding: 4px 8px;
  font-size: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 0.82rem;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.movie-card-wide:hover {
  transform: translateY(-4px);
}

.wide-cover {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  background: #dbeafe;
}

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

.category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.92rem;
}

.category-card span {
  margin-top: 18px;
  font-weight: 800;
}

.g1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.g2 { background: linear-gradient(135deg, #16a34a, #047857); }
.g3 { background: linear-gradient(135deg, #9333ea, #6d28d9); }
.g4 { background: linear-gradient(135deg, #f97316, #dc2626); }
.g5 { background: linear-gradient(135deg, #ec4899, #be123c); }
.g6 { background: linear-gradient(135deg, #0ea5e9, #0f766e); }
.g7 { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
.g8 { background: linear-gradient(135deg, #64748b, #334155); }
.g9 { background: linear-gradient(135deg, #eab308, #ca8a04); }
.g10 { background: linear-gradient(135deg, #14b8a6, #1e40af); }

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
  padding: 56px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 520px;
}

.filter-box input {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--white);
  padding: 13px 18px;
  color: var(--gray-800);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.filter-box input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgb(59 130 246 / 0.12);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-button.active {
  color: var(--white);
  background: var(--blue-600);
}

.no-results {
  display: none;
  grid-column: 1 / -1;
  border-radius: 18px;
  background: var(--white);
  padding: 38px;
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgb(15 23 42 / 0.96), rgb(30 64 175 / 0.86)),
    var(--detail-cover);
  background-size: cover;
  background-position: center;
  padding: 52px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 0.92rem;
}

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

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

.detail-cover {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-xl);
  background: #dbeafe;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-info .subtitle {
  max-width: 780px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.12rem;
}

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

.detail-meta span {
  border-radius: 999px;
  background: rgb(255 255 255 / 0.13);
  padding: 7px 12px;
}

.player-section {
  padding: 42px 0 0;
  background: #020617;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(0deg, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.2)), var(--player-poster);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0 64px;
}

.content-card,
.side-card {
  border-radius: 22px;
  background: var(--white);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 1.45rem;
  line-height: 1.3;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.side-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: #dbeafe;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

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

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

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

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 0.92rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slider {
    min-height: 480px;
    max-width: 520px;
  }

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

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

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

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

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

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

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text em {
    display: none;
  }

  .hero-inner {
    padding: 54px 0 82px;
  }

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

  .hero-slide img {
    height: 260px;
  }

  .section {
    padding: 46px 0;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 0.95rem;
  }

  .card-body p {
    font-size: 0.84rem;
  }

  .movie-card-wide {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .wide-cover {
    min-height: 136px;
  }

  .detail-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-info h1 {
    font-size: 2rem;
  }

  .detail-info .subtitle {
    font-size: 0.95rem;
  }

  .player-section {
    padding-top: 20px;
  }

  .player-shell {
    border-radius: 16px 16px 0 0;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 1.7rem;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

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

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

  .hero-actions {
    display: grid;
  }

  .hero-tags a {
    font-size: 0.8rem;
  }
}


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

.category-overview-card {
  display: grid;
  gap: 12px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  padding: 7px 11px;
  font-size: 0.86rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

@media (max-width: 720px) {
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}
