:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --purple: #7c3aed;
  --orange: #f97316;
  --rose: #e11d48;
  --green: #059669;
  --text: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  color: var(--text);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  color: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

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

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  white-space: nowrap;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-page-form input {
  border: 1px solid rgba(148, 163, 184, 0.3);
  outline: none;
  background: rgba(30, 41, 59, 0.92);
  color: white;
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 230px;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.top-search button,
.mobile-search button,
.search-page-form button {
  border: none;
  border-radius: 14px;
  padding: 10px 15px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px;
  background: #0f172a;
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 10px 6px;
  color: #e2e8f0;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: #22d3ee;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.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-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.25), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.93) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.26) 100%),
    linear-gradient(0deg, #f8fafc 0%, rgba(15, 23, 42, 0) 22%);
}

.hero-content {
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  color: white;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.13);
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

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

.primary-btn,
.ghost-btn,
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.side-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: #1d4ed8;
  background: white;
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
  transform: perspective(900px) rotateY(-7deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(0deg) translateY(-6px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  text-align: center;
  border-radius: 999px;
  padding: 12px;
  color: white;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #22d3ee;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

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

.section-head.dark h2,
.section-head.dark p {
  color: white;
}

.section-link {
  color: var(--blue);
  font-weight: 900;
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.badge,
.score,
.play-chip {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 900;
}

.badge {
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
}

.score {
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.play-chip {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card-body strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  color: #64748b;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  color: #94a3b8;
  font-size: 13px;
}

.dark-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 62%, #111827);
}

.soft-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.rank-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.rank-info {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em {
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info span {
  color: #93c5fd;
  font-size: 13px;
}

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

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 178px;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  color: white;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transition: transform 0.35s ease;
  z-index: -1;
}

.category-tile:hover::after {
  transform: scale(1.8);
}

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

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.category-tile em {
  align-self: end;
  font-style: normal;
  font-weight: 900;
}

.category-tile.cyan,
.page-hero.cyan {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-tile.orange,
.page-hero.orange {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.category-tile.blue,
.page-hero.blue {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.category-tile.purple,
.page-hero.purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.category-tile.rose,
.page-hero.rose {
  background: linear-gradient(135deg, #f43f5e, #be123c);
}

.category-tile.green,
.page-hero.green {
  background: linear-gradient(135deg, #10b981, #047857);
}

.cta-panel {
  margin-bottom: 72px;
  border-radius: 34px;
  padding: 56px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, #06b6d4, #2563eb 52%, #7c3aed);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}

.cta-panel p {
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
}

.cta-panel div {
  justify-content: center;
}

.page-main {
  min-height: 62vh;
}

.page-hero {
  padding: 86px 0 76px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  overflow: hidden;
}

.page-hero.compact {
  background:
    radial-gradient(circle at 78% 12%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.catalog-tools label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.catalog-tools input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  outline: none;
  padding: 13px 14px;
}

.catalog-tools input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-buttons button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.search-page-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.search-status {
  margin-bottom: 22px;
  color: #475569;
  font-weight: 900;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ranking-num {
  color: #0ea5e9;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}

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

.ranking-copy {
  display: grid;
  gap: 7px;
}

.ranking-copy strong {
  font-size: 20px;
}

.ranking-copy em {
  color: #64748b;
  font-style: normal;
  line-height: 1.6;
}

.ranking-copy span {
  color: #94a3b8;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  padding: 42px 0 72px;
  overflow: hidden;
  background: #0f172a;
  color: white;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.35)),
    linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 24%);
}

.detail-head {
  position: relative;
  z-index: 2;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: #cbd5e1;
  font-size: 14px;
}

.crumbs a:hover {
  color: #22d3ee;
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 820px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.player-section {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: none;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.2));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
  font-size: 32px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 42px 0 16px;
}

.content-card,
.side-card {
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-card {
  padding: 32px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  color: #334155;
  line-height: 2;
  margin: 0 0 28px;
}

.side-card {
  align-self: start;
  padding: 26px;
  position: sticky;
  top: 92px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 24px;
}

.side-card dt {
  color: #94a3b8;
}

.side-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.side-link {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #22d3ee;
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-badges span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.keyword-cloud {
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px;
  text-align: center;
  color: #64748b;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 90px 0;
  }

  .hero-poster {
    display: none;
  }

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

  .rank-grid,
  .category-grid,
  .category-grid.large,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 17px;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body strong {
    font-size: 16px;
  }

  .rank-row,
  .ranking-item {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 210px;
  }

  .detail-hero {
    padding-top: 28px;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }

  .cta-panel {
    padding: 34px 20px;
  }
}

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

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .mobile-search input {
    min-width: 0;
  }
}
