:root {
  --page-bg: #fff7ed;
  --card-bg: rgba(255, 255, 255, 0.94);
  --text: #25212b;
  --muted: #6f6877;
  --soft: #fff1e8;
  --orange: #f97316;
  --pink: #ec4899;
  --gold: #fbbf24;
  --shadow: 0 22px 70px rgba(122, 53, 18, 0.14);
  --soft-shadow: 0 14px 36px rgba(124, 45, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 0, rgba(236, 72, 153, 0.16), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f7 48%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(124, 45, 18, 0.08);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--gold));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.desktop-nav a,
.mobile-nav a,
.quick-links a,
.footer-links a {
  border-radius: 999px;
  color: #5f5664;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #ea580c;
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #9a3412;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 11px 14px;
  background: #fff7ed;
  text-align: center;
  font-weight: 700;
}

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

main {
  min-height: 68vh;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  height: 74vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.03);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 15, 0.82) 0%, rgba(12, 10, 15, 0.58) 45%, rgba(12, 10, 15, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 10, 15, 0.62) 0%, transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-kicker,
.section-head span,
.rank-panel-head span,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.detail-tags,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5f5664;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-link,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-box button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.22);
}

.primary-btn:hover,
.search-box button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.28);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.search-strip,
.content-section,
.detail-layout,
.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.search-strip {
  position: relative;
  z-index: 6;
  margin-top: -48px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 999px;
  background: #fffaf5;
  color: var(--text);
  padding: 0 18px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-links {
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 13px;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.quick-links a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

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

.section-head h2,
.rank-panel-head h2,
.side-card h2,
.detail-card h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  margin: 10px 0 0;
}

.section-link {
  color: #fff;
  min-height: 42px;
  background: linear-gradient(90deg, #fb923c, #ec4899);
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.20);
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.movie-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
  opacity: 0.82;
}

.card-badge,
.play-dot {
  position: absolute;
  z-index: 3;
}

.card-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #ea580c;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  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: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span {
  min-height: 24px;
  padding: 4px 8px;
  background: #fff7ed;
  color: #9a3412;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 23px;
  padding: 3px 8px;
  background: #fdf2f8;
  color: #be185d;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.22);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(2px);
}

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

.rank-panel,
.side-card,
.detail-card,
.filter-panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-no {
  font-size: 18px;
  font-weight: 950;
  color: #f97316;
  text-align: center;
}

.rank-item img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy strong {
  font-size: 14px;
}

.rank-copy small {
  color: var(--muted);
  font-size: 12px;
}

.rank-score {
  color: #be185d;
  font-weight: 950;
}

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

.page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.3), transparent 18rem),
    linear-gradient(120deg, #f97316, #ec4899, #fbbf24);
  color: #fff;
  overflow: hidden;
}

.page-hero > div {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.soft-hero {
  background: linear-gradient(120deg, #fb923c, #f472b6, #fcd34d);
}

.rank-hero {
  background: linear-gradient(120deg, #111827, #9a3412, #ec4899);
}

.search-hero {
  background: linear-gradient(120deg, #7c2d12, #db2777, #fb923c);
}

.tone-warm {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

.tone-pink {
  background: linear-gradient(135deg, #ec4899, #fb7185);
}

.tone-dark {
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.tone-soft {
  background: linear-gradient(135deg, #fb7185, #facc15);
}

.tone-gold {
  background: linear-gradient(135deg, #f59e0b, #eab308);
}

.tone-fire {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.tone-rose {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.tone-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tone-purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.tone-green {
  background: linear-gradient(135deg, #16a34a, #65a30d);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.empty-state {
  text-align: center;
  padding: 42px 16px;
  color: var(--muted);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 280px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.75;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card-body span {
  font-size: 40px;
}

.category-card-body h2 {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.category-card-body p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.detail-main {
  padding: 34px 0 0;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: #ea580c;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f1117;
  box-shadow: 0 28px 70px rgba(12, 10, 15, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #0f1117;
}

.player-cover {
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: #111827;
  overflow: hidden;
}

.player-cover.is-hidden {
  display: none;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 46px rgba(236, 72, 153, 0.34);
  font-size: 34px;
}

.player-cover strong {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  text-align: left;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-head {
  padding: 26px 0 10px;
}

.detail-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-meta span {
  background: #fff;
  color: #7c2d12;
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

.detail-card {
  padding: 26px;
  margin-top: 18px;
}

.detail-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.detail-card p {
  margin: 0;
  color: #4d4455;
  font-size: 16px;
}

.accent-card {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.detail-tags {
  gap: 9px;
}

.detail-tags a {
  background: linear-gradient(90deg, #ffedd5, #fdf2f8);
  color: #9a3412;
}

.related-section {
  width: 100%;
  padding-top: 30px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 14px;
  background: #fed7aa;
}

.full-btn {
  width: 100%;
}

.site-footer {
  margin-top: 78px;
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12, #be185d);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.footer-links a {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

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

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

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

@media (max-width: 760px) {
  .hero-carousel {
    min-height: 560px;
    height: auto;
  }

  .hero-content {
    min-height: 560px;
  }

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

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

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

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

  .rank-item {
    grid-template-columns: 34px 64px 1fr;
  }

  .rank-score {
    display: none;
  }

  .page-hero {
    min-height: 260px;
  }

  .play-orb {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .search-strip,
  .content-section,
  .detail-layout,
  .footer-inner,
  .mobile-nav,
  .page-hero > div {
    width: min(100% - 24px, var(--max-width));
  }

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

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

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

  .movie-card figure {
    aspect-ratio: 16 / 9;
  }

  .category-card {
    min-height: 240px;
  }

  .detail-card {
    padding: 20px;
  }
}