:root {
  --bg: #fff7fb;
  --bg-soft: #f6f8ff;
  --card: rgba(255, 255, 255, 0.88);
  --text: #202433;
  --muted: #687086;
  --line: rgba(148, 163, 184, 0.25);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --shadow: 0 22px 55px rgba(101, 85, 143, 0.14);
  --shadow-hover: 0 28px 70px rgba(101, 85, 143, 0.22);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f0f8ff 0%, #fff7fb 42%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.94), rgba(239, 246, 255, 0.94), rgba(250, 245, 255, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.10);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
}

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

.nav-link,
.nav-dropdown > a,
.mobile-panel a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-dropdown > a:hover,
.nav-link.is-active,
.nav-dropdown > a.is-active {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.14);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: 260px;
  transform: translateX(-50%) translateY(8px);
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: linear-gradient(90deg, #fff1f2, #eff6ff);
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #475569;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 52px 0 34px;
  background: linear-gradient(135deg, #fff1f2 0%, #eff6ff 48%, #faf5ff 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
  animation: floatBlob 12s ease-in-out infinite;
}

.blob-one {
  top: 32px;
  left: 7%;
  width: 240px;
  height: 240px;
  background: #fecdd3;
}

.blob-two {
  right: 8%;
  top: 70px;
  width: 270px;
  height: 270px;
  background: #bfdbfe;
  animation-delay: -3s;
}

.blob-three {
  left: 45%;
  bottom: -70px;
  width: 300px;
  height: 300px;
  background: #f5d0fe;
  animation-delay: -6s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -20px, 0) scale(1.08);
  }
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: 38px;
  align-items: center;
  padding: 48px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.10);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 22px;
  color: #5b6476;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff1f2, #ffedd5);
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.22);
}

.btn-light,
.section-more {
  color: #4b5563;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(100, 116, 139, 0.12);
}

.btn-primary:hover,
.btn-light:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 12px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(30, 41, 59, 0.22);
  transform: rotate(2deg);
}

.hero-poster img {
  transition: transform 0.45s ease;
}

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

.hero-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35);
}

.hero-dots {
  position: absolute;
  left: 48px;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-stats {
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 92px;
  border-radius: 28px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stats-grid strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  padding: 58px 0;
}

.soft-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4), rgba(255, 255, 255, 0.8));
}

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

.section-heading h2,
.page-hero h1,
.player-section h2,
.content-card h2,
.side-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 241, 242, 0.72));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.35s ease;
}

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

.category-tile:hover::after,
.category-card:hover::after {
  transform: scale(1.35);
}

.category-tile span,
.category-card-title {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 900;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.category-tile em {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-card-links a {
  overflow: hidden;
  color: #334155;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe, #f3e8ff);
}

.poster-frame img {
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
  background: rgba(15, 23, 42, 0.28);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.35);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.movie-title,
.rank-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--red);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card-body p,
.rank-main p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.page-hero {
  padding: 70px 0 56px;
  background: linear-gradient(135deg, #fff1f2, #eff6ff, #faf5ff);
}

.category-hero {
  background: linear-gradient(135deg, #fff7ed, #eff6ff, #fdf2f8);
}

.search-hero {
  background: linear-gradient(135deg, #fdf2f8, #eff6ff, #f5f3ff);
}

.ranking-hero {
  background: linear-gradient(135deg, #fff1f2, #fffbeb, #eff6ff);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 220px));
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.wide-filter {
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  color: #1f2937;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(236, 72, 153, 0.38);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 58px minmax(0, 1fr) 90px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-heat {
  justify-self: end;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

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

.compact-rank .rank-item {
  grid-template-columns: 88px 46px minmax(0, 1fr);
}

.compact-rank .rank-heat {
  display: none;
}

.detail-hero {
  padding: 52px 0;
  background: linear-gradient(135deg, #fff1f2, #eff6ff, #faf5ff);
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 12px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  box-shadow: var(--shadow-hover);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-lead {
  max-width: 780px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.player-section {
  padding-top: 48px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.30);
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #030712;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.66));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer strong {
  font-size: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.40);
}

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

.detail-content-section {
  padding-top: 18px;
}

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

.content-card,
.side-card {
  margin-bottom: 22px;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
}

.content-card p,
.side-card dd {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 18px 0 22px;
}

.side-card dt {
  color: var(--muted);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  padding: 46px 0 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 800;
  background: #fff;
  box-shadow: 0 10px 28px rgba(100, 116, 139, 0.10);
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-poster,
  .detail-poster {
    width: min(420px, 100%);
    justify-self: center;
  }

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

  .compact-rank {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 800px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 30px;
  }

  .stats-grid,
  .movie-grid,
  .category-grid,
  .category-card-grid,
  .filter-panel,
  .wide-filter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 82px 42px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }
}

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

  .brand {
    font-size: 18px;
  }

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

  .hero-section {
    padding-top: 28px;
  }

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

  .hero-slide {
    gap: 24px;
    padding: 24px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-dots {
    left: 24px;
    bottom: 22px;
  }

  .content-section {
    padding: 42px 0;
  }

  .rank-item {
    gap: 12px;
    padding: 12px;
  }

  .rank-cover {
    border-radius: 14px;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }
}
