:root {
  --golden-50: #fffbeb;
  --golden-100: #fef3c7;
  --golden-300: #fcd34d;
  --golden-400: #fbbf24;
  --golden-500: #f59e0b;
  --golden-600: #d97706;
  --golden-700: #b45309;
  --golden-800: #92400e;
  --sunshine-50: #fff9f0;
  --sunshine-100: #fff3e0;
  --sunshine-500: #ffa726;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ead7b3;
  --paper: #ffffff;
  --warm: #fff7ed;
  --shadow: 0 4px 14px rgba(251, 191, 36, 0.32);
  --shadow-lg: 0 12px 30px rgba(245, 158, 11, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--golden-50), #ffffff 42%, var(--sunshine-50));
  font-family: -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 {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1280px;
  height: 66px;
  padding: 0 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.brand-text {
  font-size: 22px;
}

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

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #ffffff;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
  margin-left: auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.top-search input,
.mobile-search input,
.wide-search input,
.inline-filter input,
.filter-row input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 12px;
  outline: none;
}

.top-search input {
  height: 34px;
  padding: 0 12px;
}

.top-search button,
.mobile-search button,
.wide-search button,
.inline-filter button,
.search-page-form button,
.filter-row button {
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(180, 83, 9, 0.25);
}

.top-search button {
  height: 34px;
  padding: 0 14px;
}

.nav-toggle {
  display: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.nav-strip {
  background: rgba(180, 83, 9, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-strip-inner {
  display: flex;
  gap: 10px;
  max-width: 1280px;
  padding: 8px 24px;
  margin: 0 auto;
  overflow-x: auto;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 5px 12px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.mobile-panel {
  padding: 10px 20px 18px;
  background: var(--golden-600);
}

.mobile-panel .nav-link {
  display: block;
  padding: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.mobile-search input {
  height: 42px;
  padding: 0 12px;
}

.mobile-search button {
  padding: 0 16px;
}

.page-main {
  padding-top: 106px;
}

.hero-shell {
  position: relative;
  min-height: 690px;
  color: #ffffff;
  background: #1f1304;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  min-height: 690px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.18)), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

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

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

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--golden-100);
  font-size: 14px;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 12px;
  color: var(--golden-300);
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: var(--golden-800);
  font-size: 12px;
  font-weight: 800;
  background: var(--golden-100);
  border-radius: 999px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: relative;
  display: block;
  max-width: 410px;
  margin-left: auto;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.hero-control-row {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 34px;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  background: var(--golden-400);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quick-links a {
  padding: 8px 13px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.section-wrap {
  max-width: 1280px;
  padding: 42px 24px;
  margin: 0 auto;
}

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

.section-head h2,
.rank-panel h2,
.content-card h2,
.player-section h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p,
.rank-panel p,
.search-band p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.section-head > a,
.text-link {
  color: var(--golden-700);
  font-weight: 900;
}

.search-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.wide-search,
.inline-filter,
.search-page-form {
  display: flex;
  gap: 12px;
}

.wide-search input,
.inline-filter input,
.search-page-form input {
  height: 52px;
  padding: 0 16px;
}

.wide-search button,
.inline-filter button,
.search-page-form button {
  padding: 0 22px;
}

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.13);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--golden-100), var(--sunshine-100));
}

.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-corner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 999px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--golden-700);
}

.card-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c4a08;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  background: var(--golden-50);
  border-radius: 999px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.feature-panel,
.rank-panel,
.filter-card,
.content-card,
.category-overview-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-panel,
.rank-panel,
.filter-card {
  padding: 24px;
}

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

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff, var(--golden-50));
  border-radius: 16px;
}

.compact-card img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  font-size: 15px;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.compact-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  border-radius: 10px;
}

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

.category-tile {
  display: block;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, var(--sunshine-100));
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
}

.inner-main {
  min-height: 70vh;
}

.page-hero {
  max-width: 1280px;
  padding: 70px 24px 30px;
  margin: 0 auto;
}

.small-hero h1,
.ranking-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.breadcrumb {
  color: #855a12;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--golden-700);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 18px;
}

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

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-row input {
  flex: 1 1 280px;
  height: 44px;
  padding: 0 14px;
}

.filter-row button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--golden-800);
  background: var(--golden-100);
  box-shadow: none;
}

.filter-row button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
}

.category-grid-list,
.search-grid,
.ranking-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ranking-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-800), var(--golden-500));
  border-radius: 0 0 34px 34px;
  box-shadow: var(--shadow-lg);
}

.ranking-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-hero-item {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.24);
}

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

.rank-hero-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 70%);
}

.rank-hero-item span,
.rank-hero-item strong,
.rank-hero-item em {
  position: absolute;
  z-index: 1;
  left: 20px;
}

.rank-hero-item span {
  top: 18px;
  padding: 6px 10px;
  font-weight: 900;
  background: var(--golden-500);
  border-radius: 999px;
}

.rank-hero-item strong {
  right: 20px;
  bottom: 46px;
  font-size: 24px;
}

.rank-hero-item em {
  right: 20px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.detail-main {
  padding-top: 106px;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46)), var(--detail-image);
  background-position: center;
  background-size: cover;
}

.detail-wrap {
  position: relative;
  max-width: 1280px;
  padding: 78px 24px 56px;
  margin: 0 auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-info .btn {
  margin-top: 22px;
}

.player-section {
  scroll-margin-top: 120px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.3), rgba(0, 0, 0, 0.72));
  border: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.player-overlay strong {
  font-size: 22px;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 16px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.next-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.next-links a {
  padding: 10px 16px;
  color: var(--golden-800);
  font-weight: 900;
  background: var(--golden-100);
  border-radius: 999px;
}

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

.site-footer {
  color: #fff7ed;
  background: linear-gradient(135deg, var(--golden-800), #3b2204);
  margin-top: 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  max-width: 1280px;
  padding: 42px 24px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 247, 237, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  color: rgba(255, 247, 237, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-bottom {
  padding: 16px 24px;
  color: rgba(255, 247, 237, 0.68);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.is-hidden-card {
  display: none !important;
}

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

  .category-grid-list,
  .search-grid,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .top-search,
  .nav-strip {
    display: none;
  }

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

  .page-main,
  .detail-main {
    padding-top: 66px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 44px;
    padding-bottom: 96px;
  }

  .hero-poster {
    max-width: 270px;
    margin: 0;
  }

  .hero-control-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-band,
  .footer-inner,
  .detail-content,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 220px;
  }

  .category-overview-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero-shell,
  .hero-slide {
    min-height: 720px;
  }

  .section-wrap,
  .page-hero,
  .detail-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-head,
  .wide-search,
  .inline-filter,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .recommend-grid,
  .related-grid,
  .category-grid-list,
  .search-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-summary {
    font-size: 13px;
  }

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

  .compact-card {
    grid-template-columns: 30px 54px 1fr;
  }

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