:root {
  --color-rose: #e11d48;
  --color-rose-dark: #be123c;
  --color-orange: #f97316;
  --color-amber: #f59e0b;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-line: #e5e7eb;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.18);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 25px rgba(225, 29, 72, 0.28);
  font-size: 15px;
}

.brand-text {
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-rose);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-rose);
  border-radius: 99px;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  font-weight: 700;
}

.mobile-nav-link.is-active {
  color: var(--color-rose);
  background: #ffe4e6;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #ffe4e6, #fff7ed 45%, #fef3c7);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 244, 244, 0.96) 0%, rgba(255, 248, 237, 0.90) 42%, rgba(255, 255, 255, 0.46) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: -1;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 52px;
  padding: 60px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-rose);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.movie-detail-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1,
.page-hero h1 {
  background: linear-gradient(90deg, #111827, var(--color-rose), var(--color-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 660px;
  margin: 22px 0 0;
  color: #374151;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-badges,
.detail-meta,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-badges span,
.detail-meta span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 228, 230, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #f97316);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.25);
}

.secondary-button {
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.88);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.hero-poster {
  position: relative;
  height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  background: #fff1f2;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.64));
  z-index: 1;
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
}

.search-band {
  width: min(1100px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 10;
}

.home-search-form,
.filter-box {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.home-search-form label,
.filter-box label {
  display: block;
  margin-bottom: 12px;
  color: #374151;
  font-weight: 900;
}

.home-search-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search-form input,
.filter-box input {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
  background: #f9fafb;
}

.home-search-form input:focus,
.filter-box input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.home-search-form button {
  min-width: 120px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  cursor: pointer;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--color-rose);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.movie-card.featured .movie-poster {
  aspect-ratio: 16 / 11;
}

.movie-poster img,
.compact-card img,
.category-cover img,
.ranking-card-poster img {
  transition: transform 0.55s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.category-cover:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.card-rank {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-title {
  display: block;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 8px 0;
  color: #6b7280;
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  margin: 14px 0 0;
  gap: 6px;
}

.movie-tags span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.category-showcase {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(15, 23, 42, 0.82));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #ffffff;
}

.category-tile strong {
  bottom: 46px;
  font-size: 22px;
}

.category-tile small {
  bottom: 22px;
  color: #ffedd5;
  font-weight: 800;
}

.split-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split-panel {
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.dark-panel {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.dark-panel .section-heading h2,
.dark-panel .ranking-row strong {
  color: #ffffff;
}

.dark-panel .section-heading p,
.dark-panel .ranking-row small {
  color: #d1d5db;
}

.light-panel {
  background: #ffffff;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 38px 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
}

.ranking-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  font-weight: 900;
}

.ranking-row img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.ranking-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.ranking-score {
  color: #fbbf24;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 78px;
  padding: 8px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
}

.compact-card img {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.compact-card span {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  color: var(--color-muted);
}

.page-hero {
  position: relative;
  padding: 86px max(16px, calc((100% - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.24), transparent 32%),
    linear-gradient(120deg, #fff1f2, #fff7ed 48%, #fef3c7);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.filter-box {
  margin-bottom: 28px;
}

.large-filter {
  padding: 28px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 22px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.category-cover {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
}

.category-cover span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.92);
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 4px 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  color: var(--color-muted);
  line-height: 1.75;
}

.ranking-page-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.ranking-card-poster {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff1f2;
}

.ranking-card-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  font-weight: 900;
}

.ranking-card-body h2 {
  margin: 4px 0 8px;
}

.ranking-card-body p {
  color: #4b5563;
  line-height: 1.7;
}

.ranking-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-rose);
  font-weight: 900;
}

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.44)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(1.05);
  transform: scale(1.04);
}

.detail-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  background: #1f2937;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fecdd3;
  font-weight: 800;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-one-line {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-tags span {
  color: #ffe4e6;
  background: rgba(225, 29, 72, 0.34);
}

.player-section {
  padding-bottom: 38px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

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

.video-play-button {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12), rgba(0, 0, 0, 0.22));
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-play-button span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  font-size: 28px;
}

.video-shell.is-playing .video-play-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding-top: 38px;
}

.detail-article,
.detail-side {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--color-muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
  margin-top: 30px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

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

.empty-filter-message {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border: 1px dashed #fda4af;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-inner,
  .category-overview-card,
  .detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 540px;
  }

  .hero-content {
    padding: 42px 0 72px;
  }

  .home-search-form div,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .home-search-form button {
    height: 50px;
  }

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

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

  .split-panel,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-inner {
    gap: 24px;
    padding: 44px 0;
  }

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

  .page-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ranking-row {
    grid-template-columns: 32px 50px 1fr;
  }

  .ranking-score {
    display: none;
  }

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

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

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

  .compact-card img {
    width: 58px;
    height: 58px;
  }
}
