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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #9333ea, #db2777);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
  font-size: 14px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  background: #eff6ff;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  width: min(410px, 38vw);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
}

.header-search button {
  flex: 0 0 auto;
  height: 34px;
  margin-right: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.search-panel.open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-item:hover {
  background: #f3f4f6;
}

.search-item img {
  width: 56px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
}

.search-item strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.search-item span {
  display: block;
  font-size: 13px;
  color: #6b7280;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 84px 0 120px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #172554 0%, #581c87 54%, #831843 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.28), transparent 35%), radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.22), transparent 35%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.34;
}

.hero-glow-a {
  top: 72px;
  left: 8%;
  width: 280px;
  height: 280px;
  background: #3b82f6;
}

.hero-glow-b {
  right: 8%;
  bottom: 72px;
  width: 360px;
  height: 360px;
  background: #ec4899;
}

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

.hero-stage {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 19px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  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, #2563eb, #7c3aed);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost.light {
  color: #2563eb;
  background: #ffffff;
  border-color: transparent;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1.5deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-play,
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
}

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.active {
  background: #ffffff;
}

main {
  overflow: hidden;
}

.lifted-grid {
  position: relative;
  z-index: 4;
  margin-top: -88px;
  margin-bottom: 72px;
}

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

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

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

.section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-head a {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 800;
}

.warm-panel {
  width: min(1180px, calc(100% - 32px));
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.white-panel {
  width: 100%;
  padding: 56px max(16px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

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

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
  transition: opacity 0.25s ease;
}

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

.card-region,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-play {
  z-index: 4;
  width: 46px;
  height: 46px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-body {
  padding: 14px;
}

.large-card .card-body {
  padding: 22px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: #1f2937;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.4s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(124, 58, 237, 0.78));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
}

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

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

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

.cta-panel {
  padding: 54px 28px;
  border-radius: 30px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto;
  color: #e0e7ff;
}

.cta-actions {
  justify-content: center;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  position: relative;
  margin-bottom: 50px;
  padding: 72px 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #6d28d9, #be185d);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.small-hero {
  padding: 58px 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 36px;
}

.stacked-posters {
  position: relative;
  height: 270px;
}

.stacked-posters img {
  position: absolute;
  width: 170px;
  height: 235px;
  border: 6px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.stacked-posters img:nth-child(1) {
  right: 155px;
  top: 22px;
  transform: rotate(-8deg);
}

.stacked-posters img:nth-child(2) {
  right: 72px;
  top: 0;
  z-index: 2;
}

.stacked-posters img:nth-child(3) {
  right: 0;
  top: 35px;
  transform: rotate(8deg);
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}

.category-overview-card a {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 220px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
  background: #111827;
}

.category-covers img {
  width: 100%;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card div:last-child {
  padding: 28px;
}

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

.category-overview-card p {
  margin: 0 0 22px;
  color: #6b7280;
}

.category-overview-card span {
  color: #2563eb;
  font-weight: 850;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 220px 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-bar label {
  display: grid;
  gap: 6px;
}

.filter-bar span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.mini-rank h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

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

.detail-main {
  padding-bottom: 40px;
}

.detail-hero {
  position: relative;
  padding: 74px 0 98px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(88, 28, 135, 0.75));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #dbeafe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
}

.player-section {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  margin-bottom: 46px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 76px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.34);
  font-size: 30px;
}

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

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

.detail-content,
.detail-side {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.detail-content {
  padding: 30px;
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 25px;
}

.detail-content p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #f3f4f6;
}

.detail-meta-grid strong {
  color: #6b7280;
  font-size: 13px;
}

.detail-meta-grid span,
.detail-meta-grid a {
  color: #111827;
  font-weight: 800;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.prev-next a {
  padding: 14px;
  border-radius: 16px;
  color: #2563eb;
  background: #eff6ff;
  font-weight: 800;
}

.detail-side {
  padding: 22px;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-list a:hover {
  background: #f3f4f6;
}

.side-list img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.side-list span {
  color: #1f2937;
  font-weight: 800;
}

.related-section {
  margin-bottom: 70px;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
  padding: 48px 0 34px;
}

.site-footer .footer-logo,
.site-footer h3 {
  color: #ffffff;
}

.site-footer p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  text-align: center;
}

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    gap: 12px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 84px;
  }

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

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

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

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

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

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

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

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

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

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

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

  .warm-panel {
    padding: 20px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .page-hero {
    padding: 48px 0;
  }

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

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

  .player-overlay span {
    width: 70px;
    height: 70px;
  }
}
