:root {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-soft: #111827;
  --bg-panel: rgba(31, 41, 55, 0.62);
  --bg-panel-strong: rgba(17, 24, 39, 0.84);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(249, 115, 22, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --cyan: #06b6d4;
  --cyan-soft: #22d3ee;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.18), transparent 28%), radial-gradient(circle at 86% 4%, rgba(6, 182, 212, 0.14), transparent 28%), linear-gradient(135deg, #0b1120 0%, #111827 48%, #0f172a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(55, 65, 81, 0.68);
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24);
}

.brand-name,
.footer-brand span:last-child {
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--orange-soft), #ffffff, var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #d1d5db;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--orange-soft);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.09);
  color: #fed7aa;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.mobile-panel {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 12px 2px;
  color: #d1d5db;
}

.mobile-panel a:hover {
  color: var(--orange-soft);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 50px 0 84px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.45;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.16;
}

.hero-glow-a {
  left: -90px;
  top: 90px;
  background: var(--orange);
}

.hero-glow-b {
  right: -110px;
  bottom: 42px;
  background: var(--cyan);
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-topline span {
  padding: 8px 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: #fed7aa;
}

.hero-topline a {
  color: var(--cyan-soft);
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(31, 41, 55, 0.54));
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.9);
}

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.glass-panel span,
.spotlight-panel span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--orange-soft), #ffffff 46%, var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 620px;
  color: #d1d5db;
  font-size: 1.08rem;
}

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

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

.primary-button {
  border: 1px solid rgba(249, 115, 22, 0.1);
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.2);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
}

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

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.category-strip {
  padding: 26px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(17, 24, 39, 0.76));
}

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

.category-tile {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.46);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.46);
  background: rgba(31, 41, 55, 0.76);
}

.category-tile span {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.category-tile strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

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

.alt-section {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.48), rgba(15, 23, 42, 0.68));
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.glass-panel h2,
.spotlight-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.spotlight-panel p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.64);
}

.sticky-toolbar {
  position: sticky;
  top: 88px;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  flex: 1 1 280px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-box.wide {
  flex-basis: 520px;
}

.search-box input,
.toolbar select {
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  outline: 0;
  background: rgba(17, 24, 39, 0.88);
  color: var(--text);
}

.search-box input {
  width: 100%;
  padding: 0 14px;
}

.toolbar select {
  min-width: 160px;
  padding: 0 12px;
}

.search-box input:focus,
.toolbar select:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fed7aa;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.52);
}

.movie-card h2 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 1.06rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--orange-soft);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.75rem;
}

.movie-card.compact .card-body {
  padding: 13px;
}

.movie-card.compact h2 {
  font-size: 0.98rem;
}

.movie-card.compact p {
  font-size: 0.84rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.rank-list,
.rank-page-grid {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(6, 182, 212, 0.36);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(6, 182, 212, 0.92));
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #020617;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-item h2 a:hover {
  color: var(--cyan-soft);
}

.rank-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.spotlight-panel,
.glass-panel,
.category-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.72), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow);
}

.spotlight-panel {
  position: sticky;
  top: 100px;
  padding: 30px;
}

.spotlight-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.more-link,
.text-link {
  margin-top: 20px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  color: var(--cyan-soft);
  background: rgba(6, 182, 212, 0.08);
}

.page-hero,
.detail-top {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: radial-gradient(circle at 14% 10%, rgba(249, 115, 22, 0.2), transparent 30%), radial-gradient(circle at 88% 0%, rgba(6, 182, 212, 0.14), transparent 32%), rgba(15, 23, 42, 0.56);
}

.slim-hero {
  padding: 78px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

.category-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-card-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #020617;
}

.category-card h2 {
  margin: 6px 0 10px;
  font-size: 1.45rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 34px;
  align-items: start;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.1);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.14), rgba(0, 0, 0, 0.6));
}

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

.play-ring {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(249, 115, 22, 0.26);
}

.play-ring span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid white;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.8);
  color: #fee2e2;
}

.movie-player.has-error .player-error {
  display: block;
}

.detail-info {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.72);
}

.detail-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: #fed7aa;
  font-size: 0.84rem;
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #d1d5db;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta div {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.95rem;
}

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

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

.glass-panel {
  padding: 28px;
}

.glass-panel h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.glass-panel p {
  margin: 0;
  color: #d1d5db;
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  background: rgba(2, 6, 23, 0.86);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--orange-soft);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(55, 65, 81, 0.52);
  color: #64748b;
  text-align: center;
  font-size: 0.86rem;
}

@media (max-width: 1100px) {
  .movie-grid,
  .search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .spotlight-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-section {
    min-height: auto;
    padding: 28px 0 64px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 18px;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
  }

  .category-overview-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select {
    width: 100%;
  }

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

  .category-strip-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
  }

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

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

@media (max-width: 420px) {
  .movie-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

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