:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #fed7aa;
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 20px 50px rgba(249, 115, 22, 0.16);
  --shadow-soft: 0 12px 30px rgba(236, 72, 153, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 46%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(253, 242, 248, 0.95), rgba(254, 252, 232, 0.95));
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.14);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ea580c, #db2777, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ea580c;
  background: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.14);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input,
.hero-search input {
  border: 0;
  outline: 0;
  min-width: 190px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.15);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  padding: 4px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
}

.mobile-nav,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link,
.mobile-cats a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.46), transparent 30%), linear-gradient(135deg, #fb923c, #ec4899 52%, #facc15);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fff7ed, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.34;
  background: #fff;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 70px;
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: 70px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
  padding: 70px 0 110px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-media {
  order: 2;
  position: relative;
  border-radius: 34px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.26);
  backdrop-filter: blur(8px);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 36px -18px -18px 36px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.22);
  z-index: -1;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-content {
  order: 1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(124, 45, 18, 0.28);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
  background: #fff7ed;
}

.hero-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #ea580c, #ec4899);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.24);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.ghost-btn.light {
  color: #9a3412;
  border-color: rgba(251, 146, 60, 0.4);
  background: #fff;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.2);
}

.small-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

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

.section-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.section-more {
  margin-left: auto;
  min-height: 40px;
  color: #ea580c;
  background: #fff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.12);
}

.category-overview-section,
.container {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

.category-card,
.category-preview,
.story-card,
.detail-side,
.rank-panel,
.player-shell {
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.category-card {
  padding: 18px;
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.category-posters {
  display: flex;
  height: 112px;
  margin-bottom: 16px;
}

.category-posters img {
  width: 33.333%;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.category-posters img + img {
  margin-left: -18px;
}

.category-card h3,
.movie-card h3,
.rank-panel h2,
.story-card h2,
.detail-side h2,
.category-preview h2 {
  margin: 0;
}

.category-card p,
.category-preview p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.11);
  transition: all 0.35s ease;
}

.movie-card:hover {
  border-color: #fdba74;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 64%);
  transition: opacity 0.3s ease;
}

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #f97316, #ec4899);
}

.year-badge {
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.68);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.3s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #ea580c;
}

.card-body p {
  min-height: 48px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.compact-card .card-body p {
  min-height: 42px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.wide-band {
  padding: 54px 0;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.88));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
}

.rank-panel {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 104px;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rank-panel-head a {
  color: #ea580c;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) auto;
  grid-template-areas: "num img title score" "num img info score";
  align-items: center;
  gap: 0 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: all 0.25s ease;
}

.rank-row:hover {
  background: #fff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.13);
  transform: translateX(2px);
}

.rank-number {
  grid-area: num;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.rank-row img {
  grid-area: img;
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  grid-area: title;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  grid-area: info;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row strong {
  grid-area: score;
  color: #ea580c;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #7c2d12;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 17px;
  transition: all 0.25s ease;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #f97316, #ec4899);
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.18);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.sub-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.34), transparent 28%), linear-gradient(135deg, #fb923c, #ec4899 55%, #facc15);
}

.sub-hero span {
  display: inline-flex;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.sub-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.category-preview-list {
  display: grid;
  gap: 26px;
}

.category-preview {
  padding: 24px;
}

.category-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-search {
  display: flex;
  gap: 8px;
  width: min(620px, 100%);
  margin: 28px auto 0;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
}

.hero-search input {
  flex: 1;
}

.search-results-section {
  min-height: 520px;
}

.detail-page {
  background: linear-gradient(180deg, #fff7ed, #fff 45%, #fff7ed);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  padding-bottom: 16px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding-top: 24px;
}

.detail-poster {
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.detail-info .hero-label {
  color: #9a3412;
  background: #fff;
  text-shadow: none;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 900;
  background: #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.09);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #f97316;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.play-cover strong {
  max-width: min(720px, calc(100% - 40px));
  font-size: clamp(22px, 3vw, 38px);
  text-align: center;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.story-card,
.detail-side {
  padding: 28px;
}

.story-card h2,
.detail-side h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.story-card p {
  color: #374151;
  font-size: 17px;
  line-height: 2;
  margin: 0 0 26px;
}

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.detail-side dd {
  margin: -8px 0 2px;
  font-weight: 900;
  color: #7c2d12;
}

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

.site-footer {
  margin-top: 40px;
  background: linear-gradient(90deg, #fff7ed, #fdf2f8, #fefce8);
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-links a,
.footer-cat-grid a {
  color: #7c2d12;
  font-weight: 800;
}

.footer-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.footer-bottom {
  padding: 18px 16px 26px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

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

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

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

  .split-section,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    min-height: 68px;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 120px;
  }

  .hero-media {
    order: 1;
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  .category-grid,
  .movie-grid,
  .feature-grid,
  .compact-grid,
  .two-col-grid,
  .large-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .detail-info {
    text-align: center;
  }

  .detail-meta,
  .detail-tags {
    justify-content: center;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, var(--max));
  }

  .category-grid,
  .movie-grid,
  .feature-grid,
  .compact-grid,
  .two-col-grid,
  .large-rank-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-more {
    margin-left: 0;
  }

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

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-media {
    padding: 10px;
    border-radius: 24px;
  }

  .hero-media img {
    border-radius: 18px;
  }

  .sub-hero {
    min-height: 280px;
    padding: 58px 16px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 30px 44px minmax(0, 1fr);
    grid-template-areas: "num img title" "num img info" "num img score";
  }

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