:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fef2f2;
  --orange: #ea580c;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #9333ea;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #ef4444 55%, var(--orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.3);
  font-size: 16px;
}

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

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--red), #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--gray-800);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 16%),
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.16), transparent 14%),
    linear-gradient(120deg, #b91c1c 0%, #dc2626 45%, #ef4444 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 48px;
}

.hero-copy h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p,
.inner-hero p,
.detail-copy p {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  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-light {
  background: #ffffff;
  color: var(--red);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.25);
}

.btn-dark {
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.28);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-bubble {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: softPulse 5s ease-in-out infinite;
}

.bubble-one {
  width: 128px;
  height: 128px;
  top: 70px;
  left: 48px;
}

.bubble-two {
  width: 190px;
  height: 190px;
  right: 9%;
  top: 115px;
  animation-delay: 0.8s;
}

.bubble-three {
  width: 96px;
  height: 96px;
  left: 34%;
  bottom: 80px;
  animation-delay: 1.6s;
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.38;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.16;
  }
}

.hero-showcase {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(127, 29, 29, 0.35);
  backdrop-filter: blur(12px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.34);
}

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

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

.hero-movie-copy {
  margin-top: -92px;
  position: relative;
  z-index: 2;
  padding: 116px 22px 22px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64), transparent);
}

.hero-movie-copy span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.hero-movie-copy h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-movie-copy p {
  margin: 0;
  color: var(--gray-200);
}

.text-link-light {
  display: inline-flex;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hero-control,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.52);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}

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

.feature-grid div {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red-soft), #fff7ed);
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong {
  color: var(--red);
  font-size: 24px;
  line-height: 1.1;
}

.feature-grid span {
  margin-top: 8px;
  color: var(--gray-600);
}

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

.soft-bg {
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--gray-900);
  line-height: 1.15;
}

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

.section-link {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid,
.featured-grid,
.category-grid,
.overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.movie-card-wide .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.play-float {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h2,
.movie-card-body h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.28;
}

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

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

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

.card-meta {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.mini-tags {
  margin-top: 10px;
}

.mini-tags span,
.detail-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 700;
}

.category-card,
.overview-main {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong,
.category-card small,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-icon {
  position: relative;
  z-index: 2;
  font-size: 36px;
}

.category-card strong {
  margin-top: 12px;
  font-size: 24px;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.category-card em {
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.from-red {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.from-orange {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.from-blue {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.from-purple {
  background: linear-gradient(135deg, #9333ea, #dc2626);
}

.from-green {
  background: linear-gradient(135deg, #16a34a, #0f766e);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.meta-card,
.story-card,
.filter-panel,
.overview-card {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-panel h2,
.meta-card h2,
.story-card h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
}

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

.rank-list,
.ranking-page-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rank-row:hover {
  background: var(--red-soft);
  transform: translateX(3px);
}

.rank-no {
  color: var(--red);
  font-weight: 900;
  font-size: 18px;
}

.rank-row img {
  width: 58px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-800);
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--gray-900);
}

.rank-copy small {
  color: var(--gray-500);
}

.rank-arrow {
  color: var(--red);
  font-size: 28px;
}

.inner-hero {
  padding: 84px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(120deg, #991b1b, #dc2626, #f97316);
}

.inner-hero p {
  max-width: 760px;
}

.category-hero.from-red,
.ranking-hero {
  background: linear-gradient(120deg, #991b1b, #dc2626, #f97316);
}

.category-hero.from-orange {
  background: linear-gradient(120deg, #9a3412, #ea580c, #f59e0b);
}

.category-hero.from-blue {
  background: linear-gradient(120deg, #1d4ed8, #2563eb, #7c3aed);
}

.category-hero.from-purple {
  background: linear-gradient(120deg, #6d28d9, #9333ea, #dc2626);
}

.category-hero.from-green {
  background: linear-gradient(120deg, #166534, #16a34a, #0f766e);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-900);
  background: #ffffff;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.empty-message {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--gray-600);
  background: var(--gray-100);
  text-align: center;
}

.empty-message.is-visible {
  display: block;
}

.overview-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.overview-main {
  min-height: 210px;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
}

.overview-main span {
  font-size: 36px;
}

.overview-main h2 {
  margin: 14px 0 8px;
  font-size: 26px;
}

.overview-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.overview-links {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.overview-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-700);
  font-weight: 700;
}

.overview-links a:hover {
  color: var(--red);
}

.detail-hero {
  padding: 54px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(120deg, #111827, #7f1d1d 48%, #dc2626);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1));
}

.big-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.38);
  font-size: 34px;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.detail-copy .eyebrow {
  margin-bottom: 14px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-body {
  background: #ffffff;
}

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

.story-card,
.meta-card {
  padding: 26px;
}

.story-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-card dt {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.meta-card dd {
  margin: -10px 0 0;
  color: var(--gray-900);
  font-weight: 750;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

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

.site-footer p {
  color: var(--gray-300);
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--gray-300);
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  text-align: center;
}

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

@media (max-width: 1080px) {
  .hero-inner,
  .detail-grid,
  .two-column,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 64px 0;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .nav-wrap {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 8px;
  }

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

  .brand-text small {
    font-size: 11px;
  }

  .hero-inner {
    min-height: auto;
    gap: 28px;
    padding: 48px 0;
  }

  .hero-copy p,
  .inner-hero p,
  .detail-copy p {
    font-size: 16px;
  }

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

  .hero-poster,
  .hero-poster img {
    min-height: 285px;
  }

  .hero-movie-copy h2 {
    font-size: 22px;
  }

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

  .inner-hero {
    padding: 56px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .dense-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .overview-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .movie-card-body h2,
  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p,
  .mini-tags {
    display: none;
  }

  .card-meta {
    font-size: 12px;
  }

  .detail-hero {
    padding: 32px 0;
  }

  .player-card {
    border-radius: 18px;
  }

  .big-play {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .story-card,
  .meta-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .dense-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .overview-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
