:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --gold: #facc15;
  --danger: #ef4444;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: radial-gradient(circle at 15% 0%, rgba(8, 145, 178, 0.18), transparent 32%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #3b82f6);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.42);
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  color: #dbeafe;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 9px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown > button:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.site-search input,
.mobile-search input,
.search-page-form input,
.local-filter {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
  width: clamp(150px, 18vw, 260px);
}

.site-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.local-filter:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.site-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-search button,
.mobile-search button,
.search-page-form button,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.ghost-btn {
  color: white;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.site-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: white;
  background: rgba(34, 211, 238, 0.12);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

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

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  color: #dbeafe;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.84), transparent 64%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-1px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  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: var(--cyan);
}

.section-block {
  padding: 70px 0;
}

.slate-band {
  background: rgba(15, 23, 42, 0.78);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading > a {
  color: var(--cyan);
  font-weight: 700;
}

.compact-heading h2 {
  font-size: 28px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 26px 54px rgba(8, 145, 178, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap img {
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #04111d;
  background: var(--cyan);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 17px;
}

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

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

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

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 5px 9px;
  font-size: 12px;
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.38);
}

.scroll-item {
  flex: 0 0 286px;
  scroll-snap-align: start;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  min-height: 150px;
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  padding: 24px 18px;
}

.category-tile span {
  font-size: 34px;
  transition: transform 0.25s ease;
}

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

.category-tile small {
  color: var(--muted);
  line-height: 1.5;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.34), rgba(37, 99, 235, 0.32));
  box-shadow: 0 22px 50px rgba(8, 145, 178, 0.18);
}

.category-tile:hover span {
  transform: scale(1.12);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}

.large-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 420px;
}

.large-card .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.large-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.large-card h3 {
  font-size: clamp(28px, 4vw, 42px);
}

.large-card p {
  min-height: auto;
  -webkit-line-clamp: 4;
  font-size: 16px;
}

.featured-side {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(51, 65, 85, 0.86);
  transform: translateX(4px);
}

.compact-card img,
.rank-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.compact-card strong,
.rank-item strong {
  display: block;
  color: white;
  margin-bottom: 6px;
  line-height: 1.35;
}

.compact-card span,
.rank-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(30, 41, 59, 0.92);
}

.rank-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 52px;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 32%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.small-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
}

.small-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

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

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

.breadcrumb strong {
  color: white;
  font-weight: 600;
}

.filter-box {
  margin-top: 26px;
  max-width: 620px;
}

.local-filter {
  width: 100%;
}

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

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.category-overview-head > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  font-size: 26px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.category-samples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.category-samples a {
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-samples a:hover {
  color: var(--cyan);
}

.rank-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
}

.rank-aside h2 {
  margin: 0 0 18px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.search-page-form input {
  width: 100%;
}

.empty-state {
  margin: 30px 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.55);
}

.detail-page {
  background: radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.12), transparent 30%), var(--bg);
}

.detail-shell {
  padding: 34px 0 20px;
}

.detail-breadcrumb {
  margin-bottom: 22px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.video-el {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #06121d;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22));
}

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

.play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: clamp(68px, 9vw, 96px);
  height: clamp(68px, 9vw, 96px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.38);
  font-size: clamp(24px, 4vw, 36px);
}

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

.detail-poster {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.detail-info {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-info h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-lead {
  margin: 24px 0 10px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.75;
}

.detail-info h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-info p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  margin-top: 50px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  text-align: center;
  color: var(--muted);
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 1050px) {
  .site-search,
  .desktop-nav {
    display: none;
  }

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

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

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

  .rank-aside {
    position: static;
  }
}

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

  .hero-carousel {
    min-height: 560px;
    height: 74vh;
  }

  .hero-content {
    bottom: 66px;
  }

  .hero-nav {
    display: none;
  }

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

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

  .large-card {
    grid-template-columns: 1fr;
  }

  .large-card .poster-wrap {
    aspect-ratio: 16 / 10;
  }

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

  .detail-poster {
    position: static;
    max-width: 280px;
  }

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

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

  .search-page-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 19px;
  }

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

  .scroll-item {
    flex-basis: 78vw;
  }

  .rank-item {
    grid-template-columns: 36px 70px 1fr;
    gap: 10px;
  }

  .compact-card {
    grid-template-columns: 96px 1fr;
  }
}
