:root {
  --page-bg: #fff7fd;
  --text: #172033;
  --muted: #667085;
  --soft: #f8eaff;
  --line: rgba(130, 70, 170, 0.16);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --orange: #f97316;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(84, 30, 120, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.13), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
    linear-gradient(135deg, #fff5fb 0%, #f8f4ff 45%, #eef6ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.96), rgba(59, 130, 246, 0.96));
  color: white;
  box-shadow: 0 16px 44px rgba(86, 43, 137, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde047, #fb923c);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.38);
  font-size: 0.9rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff7cc;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.header-search {
  width: min(310px, 28vw);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 8px 11px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.large-search button,
.filter-clear {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  padding: 8px 14px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde047, #fb923c);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: white;
}

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

.mobile-nav .nav-link {
  display: flex;
  margin: 6px 0;
}

main {
  min-height: 60vh;
}

.hero-section {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(252, 231, 243, 0.96), rgba(243, 232, 255, 0.98), rgba(219, 234, 254, 0.96));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(5px);
  opacity: 0.35;
  z-index: -1;
}

.hero-bg-orb-one {
  width: 300px;
  height: 300px;
  left: -80px;
  top: -90px;
  background: #f472b6;
}

.hero-bg-orb-two {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -150px;
  background: #60a5fa;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 72, 153, 0.18);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p,
.page-hero p {
  max-width: 740px;
  color: #4b5563;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.hero-pills a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(139, 92, 246, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
}

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

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

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 34px rgba(219, 39, 119, 0.26);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-button.full {
  width: 100%;
}

.secondary-button,
.section-more {
  color: #7c3aed;
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(380px, 100%);
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(76, 29, 149, 0.26);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: clamp(30px, 6vw, 72px);
  bottom: 28px;
  display: flex;
  gap: 9px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.home-search-band,
.content-section,
.page-hero,
.detail-top {
  width: min(1220px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 20px 54px rgba(76, 29, 149, 0.09);
}

.home-search-band h2,
.section-head h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(90deg, #ea580c, #db2777, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-search-band p,
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 15px;
  color: var(--text);
}

.large-search button {
  min-height: 46px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.content-section {
  margin-top: 54px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 65px rgba(76, 29, 149, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.year-badge {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.68);
  font-size: 0.76rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.movie-meta-line {
  color: #8b5cf6;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.category-grid,
.category-index-grid {
  display: grid;
  gap: 15px;
}

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

.category-tile,
.category-index-link {
  display: block;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-index-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(76, 29, 149, 0.14);
}

.category-tile strong,
.category-index-link strong {
  display: block;
  color: #7c3aed;
  font-size: 1.08rem;
  margin-bottom: 5px;
}

.category-tile span,
.category-index-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.rank-card,
.side-card,
.detail-info-card,
.player-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.13);
  box-shadow: 0 18px 52px rgba(76, 29, 149, 0.12);
}

.rank-card {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.85), rgba(239, 246, 255, 0.8));
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.18), rgba(96, 165, 250, 0.18));
}

.rank-row span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.rank-row strong,
.rank-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row strong {
  font-size: 0.96rem;
}

.rank-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  margin-top: 34px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(252, 231, 243, 0.96), rgba(243, 232, 255, 0.98), rgba(219, 234, 254, 0.96));
  box-shadow: var(--shadow);
}

.rankings-hero {
  background: linear-gradient(120deg, rgba(255, 237, 213, 0.96), rgba(252, 231, 243, 0.98), rgba(237, 233, 254, 0.96));
}

.category-hero {
  background: linear-gradient(120deg, rgba(236, 253, 245, 0.92), rgba(243, 232, 255, 0.96), rgba(219, 234, 254, 0.96));
}

.page-hero .hero-pills {
  margin-top: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 150px 150px 110px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: white;
}

.filter-clear {
  min-height: 46px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.filter-empty {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.14);
  font-weight: 900;
}

.detail-top {
  margin-top: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #7c3aed;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  background: #050816;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.12), rgba(5, 8, 22, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde047, #fb923c);
  box-shadow: 0 22px 42px rgba(251, 146, 60, 0.28);
  font-size: 1.8rem;
}

.player-overlay strong {
  width: min(90%, 620px);
  font-size: clamp(1.2rem, 2vw, 2rem);
  text-align: center;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.detail-info-card {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-info-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7c3aed;
  background: #f3e8ff;
  font-weight: 900;
  font-size: 0.86rem;
}

.lead-text {
  color: #4b5563;
  font-size: 1.12rem;
  font-weight: 700;
}

.detail-info-card h2 {
  margin: 28px 0 10px;
  font-size: 1.45rem;
}

.detail-info-card p {
  color: #4b5563;
  margin: 0;
}

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

.detail-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 18px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.side-rank-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.side-rank-item {
  display: grid;
  grid-template-columns: 28px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.side-rank-item span {
  color: #db2777;
  font-weight: 900;
}

.side-rank-item img {
  width: 54px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.side-rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-grid .movie-card-compact .movie-card-body p {
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 70px;
  color: white;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin: 8px 0;
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .header-inner {
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-bottom: 88px;
  }

  .hero-poster {
    width: min(310px, 100%);
    justify-self: start;
  }

  .home-search-band,
  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-card,
  .detail-sidebar {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .site-logo span:last-child {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section,
  .page-hero {
    border-radius: 24px;
  }

  .hero-carousel {
    min-height: 690px;
  }

  .hero-slide {
    gap: 28px;
    padding: 28px 22px 84px;
  }

  .home-search-band,
  .large-search,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search-band,
  .large-search,
  .section-head {
    display: grid;
  }

  .large-search {
    border-radius: 22px;
  }

  .large-search input,
  .large-search button {
    min-height: 48px;
  }

  .movie-grid,
  .category-grid,
  .category-index-grid,
  .rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

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

  .detail-info-card {
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .hero-section,
  .home-search-band,
  .content-section,
  .page-hero,
  .detail-top,
  .footer-grid,
  .footer-bottom,
  .mobile-nav {
    width: min(100% - 20px, 1220px);
  }

  .movie-grid,
  .category-grid,
  .category-index-grid,
  .rank-list.wide {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .primary-button,
  .secondary-button,
  .section-more {
    width: 100%;
  }
}
