:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-600: #dc2626;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.25);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: white;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb923c;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--slate-900);
}

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

.mobile-link {
  padding: 10px 8px;
  color: #e2e8f0;
  border-radius: 10px;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #fb923c;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.32), transparent 28%), linear-gradient(135deg, #0f172a 0%, #7c2d12 52%, #7f1d1d 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: center;
  padding: 74px 0 60px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-kicker {
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid rgba(251, 146, 60, 0.75);
  border-radius: 999px;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 13px;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--red-600));
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button.light {
  color: var(--orange-600);
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.08);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.poster-glow {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-500), var(--red-600));
  opacity: 0.26;
  filter: blur(20px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

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

.poster-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  background: #fb923c;
}

.hero-rail {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(16px);
}

.hero-rail h2 {
  margin: 0 0 2px;
  font-size: 18px;
}

.section {
  padding: 64px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.section-head span {
  color: var(--orange-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 5px 0 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-link,
.text-button {
  min-height: 40px;
  color: var(--orange-600);
  background: #fff7ed;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow-soft);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.76));
  opacity: 0.75;
}

.card-duration,
.rank-badge,
.play-dot {
  position: absolute;
  z-index: 2;
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 12px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: #fff;
}

.play-dot {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.ranking-info h2 a:hover {
  color: var(--orange-600);
}

.card-body p {
  min-height: 44px;
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.55;
}

.meta-line {
  color: var(--gray-500);
  font-size: 13px;
}

.meta-line span {
  background: #f1f5f9;
}

.tag-row span {
  background: #fff7ed;
}

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

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

.side-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.side-card img {
  width: 120px;
  height: 96px;
  object-fit: cover;
}

.side-info {
  display: grid;
  gap: 5px;
  padding: 10px 12px 10px 0;
}

.side-info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gray-900);
}

.side-info em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.side-info small {
  color: #94a3b8;
}

.mini-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  font-weight: 900;
}

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

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: 22px;
  background: var(--slate-900);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.rank-panel .side-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.rank-panel .side-info strong {
  color: #fff;
}

.rank-panel .side-info em,
.rank-panel .side-info small {
  color: #cbd5e1;
}

.rank-title {
  margin-bottom: 16px;
  color: #fb923c;
  font-size: 22px;
  font-weight: 900;
}

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

.category-tile {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), #7c2d12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #1e293b, #991b1b);
}

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

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

.category-tile span {
  color: #fed7aa;
  font-size: 14px;
  line-height: 1.5;
}

.page-hero {
  color: white;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.34), transparent 25%), linear-gradient(135deg, var(--slate-950), #7c2d12 55%, #7f1d1d);
}

.small-hero .container {
  padding: 70px 0 64px;
}

.page-hero span {
  color: #fdba74;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.filter-title {
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--gray-900);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fafc;
  color: var(--gray-900);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  display: none;
  margin: 14px 0 0;
  color: var(--gray-500);
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 210px;
  background: #e2e8f0;
}

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

.category-card-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 26px;
}

.category-card-body p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  font-size: 18px;
  font-weight: 900;
}

.ranking-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #e2e8f0;
}

.ranking-thumb img {
  height: 100%;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--gray-500);
  line-height: 1.65;
}

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, var(--slate-950), #7c2d12 60%, #7f1d1d);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 56px 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.4);
  font-size: 34px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

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

.detail-info {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
}

.large-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-panel,
.legal-page .narrow {
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.story-panel h2,
.legal-page h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.story-panel p,
.legal-page p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.legal-page h2:not(:first-child) {
  margin-top: 28px;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: white;
  font-size: 21px;
}

.footer-brand p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

  .hero-rail,
  .rank-panel {
    position: static;
  }

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

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

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .brand-text small {
    display: none;
  }

  .hero-container {
    padding: 48px 0 42px;
  }

  .hero-slides {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-dots {
    bottom: 8px;
  }

  .section {
    padding: 46px 0;
  }

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

  .movie-grid,
  .home-grid,
  .category-movie-grid,
  .search-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .footer-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .category-card,
  .ranking-row {
    grid-template-columns: 1fr;
  }

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

  .ranking-thumb {
    width: 100%;
  }

  .detail-grid {
    padding: 38px 0;
  }
}

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

  .hero-slides {
    min-height: 650px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-poster {
    border-radius: 20px;
  }

  .side-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .side-card img {
    width: 96px;
    height: 88px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
