:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-soft: #0f172a;
  --panel: rgba(17, 24, 39, 0.86);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --yellow: #fbbf24;
  --blue: #60a5fa;
  --green: #34d399;
  --purple: #a78bfa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.22), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #05070b 48%, #111827 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.94), rgba(17, 24, 39, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.32);
}

.brand-text,
.footer-logo {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ff4d4d, #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.home-search-panel form,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 250px;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-panel input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  background: rgba(2, 6, 23, 0.92);
}

.header-search button,
.mobile-search button,
.home-search-panel button,
.search-page-form button {
  border: 0;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.24);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-search input {
  flex: 1;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.7);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.22);
}

.hero-carousel {
  position: relative;
  height: min(760px, 72vh);
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, #05070b 0%, transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1240px) / 2));
  right: 32px;
  bottom: 76px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.watch-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.watch-info p {
  max-width: 720px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 21px);
  margin: 0 0 22px;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  padding: 6px 10px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 0 24px;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.26);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.5);
  padding: 0 22px;
}

.text-button {
  color: #fca5a5;
  padding: 0 8px;
}

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

.wide-button {
  width: 100%;
}

.hero-dots {
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  bottom: 44px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--red);
}

.home-search-panel,
.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  margin-top: -46px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.home-search-panel p {
  margin: 0;
  color: var(--muted);
}

.home-search-panel input,
.search-page-form input {
  flex: 1;
}

.home-sections,
.page-top {
  padding: 58px 0 80px;
}

.home-sections {
  display: grid;
  gap: 72px;
}

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

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

.section-heading a {
  color: #fca5a5;
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 24px 60px rgba(239, 68, 68, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

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

.corner-label,
.duration-label,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.corner-label {
  left: 10px;
  top: 10px;
  background: var(--red);
}

.duration-label {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: #f87171;
}

.card-desc {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  gap: 6px;
  margin-bottom: 12px;
}

.meta-row span {
  font-size: 12px;
  padding: 4px 8px;
}

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

.tag-row span {
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  font-size: 12px;
}

.highlight-block {
  padding: 30px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(88, 28, 135, 0.14));
}

.red-block {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.22), rgba(154, 52, 18, 0.14));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.rank-main {
  display: grid;
  gap: 16px;
}

.movie-card.is-horizontal {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card.is-horizontal .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.is-horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rank-list {
  margin: 0;
  padding: 18px;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

.rank-list li + li {
  margin-top: 12px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 40px 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-list a:hover {
  background: rgba(148, 163, 184, 0.12);
}

.rank-list b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-list img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-list strong,
.rank-list em {
  display: block;
}

.rank-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.82);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.category-tile::before,
.category-card::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  filter: blur(22px);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  display: block;
}

.category-tile span {
  color: #fecaca;
  font-weight: 900;
}

.category-tile strong {
  margin: 24px 0 8px;
  font-size: 20px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.26), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.22), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.small-hero {
  min-height: 280px;
}

.category-hero,
.ranking-hero {
  min-height: 320px;
}

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

.category-card a {
  position: relative;
  display: block;
}

.category-card span {
  color: #fecaca;
  font-weight: 900;
}

.category-card h2 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.category-card p {
  color: var(--muted);
  margin: 0;
}

.category-preview {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview a {
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  padding: 6px 10px;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-panel label,
.filter-panel span {
  display: block;
}

.filter-panel span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 14px;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.top-rank-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.82);
  box-shadow: var(--shadow);
}

.top-rank-card b {
  display: inline-flex;
  margin: 18px 18px 0;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 6px 12px;
}

.top-rank-card img {
  width: calc(100% - 36px);
  height: 220px;
  object-fit: cover;
  margin: 14px 18px 0;
  border-radius: 18px;
}

.top-rank-card div {
  padding: 18px;
}

.top-rank-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.top-rank-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.top-rank-card span {
  color: #fecaca;
  font-size: 14px;
}

.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.search-result-head {
  margin: 32px 0 18px;
}

.search-result-head h2 {
  margin: 0;
  font-size: 28px;
}

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

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

.detail-page {
  padding-bottom: 80px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 38px;
}

.watch-main,
.watch-info,
.detail-content {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

.watch-main {
  overflow: hidden;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.36);
  font-size: 30px;
  padding-left: 4px;
}

.video-player.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.watch-info {
  padding: 28px;
}

.watch-info h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.detail-meta {
  margin: 22px 0;
}

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

.detail-content {
  padding: 30px;
  margin-bottom: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.detail-content p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.review-block {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.16), rgba(15, 23, 42, 0.82));
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #030712);
}

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

.footer-inner p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
}

.accent-red::before { background: rgba(239, 68, 68, 0.24); }
.accent-orange::before { background: rgba(249, 115, 22, 0.24); }
.accent-purple::before { background: rgba(168, 85, 247, 0.22); }
.accent-blue::before { background: rgba(96, 165, 250, 0.22); }
.accent-green::before { background: rgba(52, 211, 153, 0.2); }
.accent-pink::before { background: rgba(244, 114, 182, 0.22); }
.accent-yellow::before { background: rgba(251, 191, 36, 0.22); }
.accent-cyan::before { background: rgba(34, 211, 238, 0.2); }
.accent-violet::before { background: rgba(139, 92, 246, 0.22); }
.accent-gold::before { background: rgba(245, 158, 11, 0.24); }

[data-card].is-hidden {
  display: none;
}

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

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

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

  .watch-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .hero-carousel {
    min-height: 610px;
    height: 76vh;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 74px;
  }

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

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 34px;
  }

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

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

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

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

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1240px);
  }

  .brand-text {
    font-size: 20px;
  }

  .page-shell,
  .home-search-panel {
    width: min(100% - 24px, 1240px);
  }

  .page-hero,
  .highlight-block,
  .detail-content,
  .watch-info {
    padding: 22px;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1 {
    font-size: 36px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .list-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.is-horizontal {
    grid-template-columns: 1fr;
  }

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

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