:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.62);
  --bg-card-hover: rgba(51, 65, 85, 0.78);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(249, 115, 22, 0.32);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --orange: #f97316;
  --amber: #f59e0b;
  --teal: #14b8a6;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 15%, rgba(20, 184, 166, 0.08), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.38);
}

.brand-name,
.footer-logo {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(249, 115, 22, 0.95);
  transform: translateY(-1px);
}

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

.nav-search input,
.home-search-panel input,
.search-page-panel input,
.local-search input {
  width: 250px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 14px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.home-search-panel input:focus,
.search-page-panel input:focus,
.local-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.nav-search button,
.home-search-panel button,
.search-page-panel button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-search button:hover,
.home-search-panel button:hover,
.search-page-panel button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-category-strip {
  display: none;
}

.page-home,
.page-shell,
.detail-page {
  width: 100%;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 38%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  top: 50%;
  width: min(650px, calc(100% - 48px));
  transform: translateY(-45%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fb923c;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.45rem, 7vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.26rem);
  line-height: 1.75;
}

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

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  background: rgba(249, 115, 22, 0.96);
  border-color: rgba(249, 115, 22, 0.96);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #fff;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.22);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.58);
  background: rgba(249, 115, 22, 0.12);
}

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

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

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

.home-search-panel,
.content-section,
.cta-panel,
.inner-hero,
.filter-panel,
.search-page-panel,
.detail-layout,
.player-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: -44px;
  position: relative;
  z-index: 6;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.cta-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.home-search-panel p,
.cta-panel p,
.inner-hero p,
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-search-panel form,
.search-page-panel form {
  display: flex;
  gap: 10px;
}

.content-section {
  padding-top: 72px;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fb923c;
  font-weight: 800;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

.large-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 80px;
}

.category-grid .movie-card-featured {
  grid-column: span 2;
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(249, 115, 22, 0.24);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.12);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.movie-cover img,
.movie-card-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.play-glow,
.big-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.45);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-glow {
  width: 54px;
  height: 54px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
}

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

.corner-tag,
.year-tag,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
}

.corner-tag {
  top: 12px;
  left: 12px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
}

.year-tag {
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 10px;
  right: 10px;
  font-style: normal;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.42;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #fb923c;
}

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

.movie-meta {
  gap: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.7);
  font-size: 0.78rem;
}

.feature-panel {
  padding: 34px;
  margin-top: 72px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.74));
}

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

.ranking-page-list {
  padding-bottom: 80px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
}

.movie-card-featured {
  position: relative;
  min-height: 310px;
}

.movie-card-featured > a {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.36) 58%, transparent 100%);
}

.featured-overlay h3 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
}

.featured-overlay p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.65;
}

.pill {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 0.85rem;
  font-weight: 800;
}

.big-play {
  width: 64px;
  height: 64px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
}

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

.cta-panel {
  margin-top: 72px;
  margin-bottom: 80px;
  padding: 42px 24px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.13), rgba(245, 158, 11, 0.08));
}

.cta-panel .primary-btn {
  margin-top: 24px;
}

.inner-hero {
  padding: 68px 0 34px;
}

.inner-hero.compact-hero {
  padding-bottom: 28px;
}

.inner-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #94a3b8;
}

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

.category-tile-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-tile {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.56);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.34);
}

.category-main-link {
  display: block;
  padding: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.7));
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 1px;
  background: rgba(148, 163, 184, 0.1);
}

.category-samples a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.category-samples a:hover {
  color: #fb923c;
}

.category-samples span {
  color: #64748b;
}

.filter-panel,
.search-page-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-btn {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  padding: 9px 13px;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.local-search input,
.search-page-panel input {
  width: min(460px, 100%);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.56));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding: 54px 0 44px;
}

.detail-hero-inner .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.detail-copy .lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding: 46px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.poster-play span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 0 42px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 42px;
}

.detail-article,
.detail-side {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.detail-article p {
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.detail-side dl {
  margin: 0;
}

.detail-side div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side div:last-child {
  border-bottom: 0;
}

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

.detail-side dd {
  margin: 0;
  color: #f8fafc;
}

.related-section {
  padding-bottom: 80px;
}

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

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

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

.footer-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.footer-links a,
.footer-tags a {
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.64);
}

.footer-links a:hover,
.footer-tags a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.88);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

  .horizontal-list,
  .ranking-grid,
  .ranking-page-list,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-search input {
    width: 100%;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .mobile-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 12px;
  }

  .mobile-category-strip a {
    min-width: max-content;
    color: #cbd5e1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.68);
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    top: 47%;
  }

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

  .home-search-panel form,
  .search-page-panel form {
    flex-direction: column;
  }

  .home-search-panel input,
  .search-page-panel input {
    width: 100%;
  }

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

  .category-grid .movie-card-featured {
    grid-column: auto;
  }

  .movie-card-horizontal {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .detail-hero-inner {
    grid-template-columns: 160px minmax(0, 1fr);
  }

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

@media (max-width: 580px) {
  .hero-slider {
    height: 560px;
  }

  .hero-content h1,
  .detail-copy h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .detail-meta {
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

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

  .movie-card-horizontal {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card-horizontal .movie-cover {
    min-height: 120px;
  }

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

  .detail-poster {
    width: min(230px, 72vw);
  }

  .detail-hero-inner .breadcrumb {
    grid-column: auto;
  }

  .detail-side div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
