:root {
  --bg: #f5f8ff;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --blue-soft: #dbeafe;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, #e0f2fe 0, transparent 28rem), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 1.32rem;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  padding: 10px 16px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #eff6ff;
  border: 0;
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 46%, #0891b2);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.26), transparent 24rem), radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.24), transparent 28rem);
  pointer-events: none;
}

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

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

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

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 1.12rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.ghost-button {
  color: var(--primary);
  background: #eff6ff;
}

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

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86));
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search input::placeholder {
  color: #bfdbfe;
}

.hero-search button {
  border: 0;
  cursor: pointer;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

.hero-dot.active {
  background: #fff;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.section {
  padding: 72px 0;
}

.section.compact-section {
  padding-top: 36px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.section-heading span {
  color: var(--primary);
  font-weight: 850;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.75));
  opacity: 0.82;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.83rem;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.movie-meta span:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin-left: 2px;
  content: "";
  background: #94a3b8;
  border-radius: 999px;
}

.movie-card h2 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.38;
}

.movie-card h2 a:hover {
  color: var(--primary);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.62));
}

.category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

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

.category-card p {
  margin: 0;
  color: #dbeafe;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: #0f172a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.3rem;
}

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

.mini-movie {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mini-movie:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.mini-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #0f172a;
  background: #bfdbfe;
  border-radius: 11px;
  font-weight: 900;
}

.mini-movie img {
  width: 74px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-movie strong {
  display: block;
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-movie small {
  color: #94a3b8;
}

.page-hero {
  padding: 76px 0;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-reset {
  min-height: 44px;
  padding: 0 18px;
  color: var(--primary);
  cursor: pointer;
  background: #eff6ff;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.detail-hero {
  padding: 62px 0 48px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-copy p {
  max-width: 800px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 7px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.player-section {
  padding: 48px 0 28px;
}

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

.video-shell video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  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.42;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.14), rgba(2, 6, 23, 0.86));
}

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

.play-trigger {
  position: relative;
  z-index: 2;
  display: inline-grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.36);
  font-size: 1.5rem;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: min(420px, calc(100% - 36px));
  padding: 10px 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 14px;
}

.content-card {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: #334155;
}

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

.related-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.related-card strong {
  display: block;
  padding: 12px 12px 4px;
  line-height: 1.35;
}

.related-card span {
  display: block;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 55%, #1e3a8a);
}

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

.footer-logo .brand-text {
  color: #fff;
  background: linear-gradient(90deg, #93c5fd, #67e8f9);
  background-clip: text;
  -webkit-background-clip: text;
}

.footer-brand p {
  max-width: 480px;
  margin: 16px 0 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
}

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

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

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

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

.footer-bottom p {
  margin: 0;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-poster,
.detail-cover {
  animation: floatUp 8s ease-in-out infinite;
}

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

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

  .feature-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero,
  .hero-slider {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.active {
    position: relative;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 44px 0 94px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }

  .hero-controls {
    bottom: 24px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

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

  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 300px;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

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

  .movie-card.compact {
    display: grid;
    grid-template-columns: 116px 1fr;
  }

  .movie-card.compact .movie-poster {
    height: 100%;
  }

  .page-hero,
  .detail-hero {
    padding: 52px 0;
  }
}
