:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(59, 130, 246, 0.25);
  --muted: #94a3b8;
  --text: #f8fafc;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #22c55e;
  --purple: #a855f7;
  --pink: #ec4899;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 34rem),
    radial-gradient(circle at 75% 12rem, rgba(6, 182, 212, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-symbol {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(6, 182, 212, 0.22));
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.26);
}

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

.main-nav a {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.24s ease, transform 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #7dd3fc;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

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

.site-search input,
.movie-filter-input {
  width: 250px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.site-search input:focus,
.movie-filter-input:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.site-search button,
.primary-btn,
.ghost-btn,
.filter-chip {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.site-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.site-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.35);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 700;
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.48);
}

.ghost-btn:hover {
  border-color: rgba(125, 211, 252, 0.75);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.68);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.hero-mask {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.34) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 52px;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #93c5fd;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #c7d2fe;
  background: rgba(15, 23, 42, 0.56);
  font-size: 13px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
  font-size: 32px;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.content-section,
.page-shell,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.no-top-pad {
  padding-top: 22px;
}

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

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

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

.section-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.82));
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 20px 44px rgba(30, 64, 175, 0.26);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.02) 58%);
}

.card-year,
.card-type,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.card-year {
  top: 12px;
  right: 12px;
}

.card-type {
  left: 12px;
  bottom: 12px;
  background: rgba(37, 99, 235, 0.86);
}

.rank-mark {
  top: 12px;
  left: 12px;
  min-width: 34px;
  text-align: center;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover {
  color: #93c5fd;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #93a4b8;
  font-size: 12px;
}

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

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 16px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.62);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ranking-item:hover {
  border-color: rgba(96, 165, 250, 0.65);
  transform: translateX(4px);
}

.ranking-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.ranking-item img {
  width: 70px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-text {
  display: grid;
  min-width: 0;
  gap: 5px;
}

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

.ranking-text em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-grid,
.category-overview {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.2);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.6;
  transform: scale(1.08);
}

.category-tile-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(37, 99, 235, 0.25));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 22px;
  right: 22px;
}

.category-tile strong {
  bottom: 50px;
  font-size: 24px;
}

.category-tile em {
  bottom: 24px;
  color: #bfdbfe;
  font-style: normal;
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 220px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 14px;
}

.category-covers img {
  width: 100%;
  height: 92px;
  border-radius: 13px;
  object-fit: cover;
}

.category-card-body {
  padding: 28px 26px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-card-body p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.7;
}

.center-actions {
  justify-content: center;
  margin-top: 30px;
}

.page-shell {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.56);
  border-radius: 30px;
  margin-bottom: 32px;
  padding: 44px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.3), transparent 28rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(2, 6, 23, 0.88));
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 230px;
  display: grid;
  align-content: center;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 30px;
}

.hero-mini-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-mini-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.32);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.filter-bar .movie-filter-input {
  width: min(460px, 100%);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 9px 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.68);
  background: rgba(37, 99, 235, 0.44);
}

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

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

.breadcrumb a:hover {
  color: #93c5fd;
}

.detail-shell {
  padding: 30px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.15));
}

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

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.play-overlay strong {
  display: block;
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.88);
}

.detail-card,
.side-card {
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 24px;
  margin-top: 22px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.85;
}

.detail-card .lead-text {
  color: #f8fafc;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 16px;
  color: #bfdbfe;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(30, 41, 59, 0.86);
}

.detail-tags {
  margin: 14px 0 20px;
}

.detail-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

.full-btn {
  width: 100%;
}

.side-recommend {
  display: grid;
  gap: 14px;
}

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

.side-recommend .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.side-recommend .card-body {
  padding: 12px;
}

.side-recommend .card-body h3 {
  font-size: 15px;
}

.side-recommend .card-body p,
.side-recommend .card-meta {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #7dd3fc;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-links a {
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.52);
}

.footer-links a:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.55);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(71, 85, 105, 0.38);
  padding: 18px 0 26px;
  color: #64748b;
  font-size: 14px;
}

.no-results {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 18px;
  padding: 28px;
  color: #bfdbfe;
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
}

.from-blue {
  --tile: #2563eb;
}

.from-cyan {
  --tile: #0891b2;
}

.from-purple {
  --tile: #7c3aed;
}

.from-pink {
  --tile: #db2777;
}

.from-amber {
  --tile: #d97706;
}

.from-indigo {
  --tile: #4f46e5;
}

.from-emerald {
  --tile: #059669;
}

.from-red {
  --tile: #dc2626;
}

.category-card::after,
.category-tile::after,
.category-hero::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--tile, #2563eb);
  filter: blur(70px);
  opacity: 0.38;
}

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

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

  .site-search input {
    width: 190px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
    padding: 11px 14px;
    background: rgba(15, 23, 42, 0.58);
  }

  .site-search {
    order: 5;
    width: 100%;
  }

  .site-search input {
    width: 100%;
    flex: 1;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 84px 0 70px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .split-section,
  .detail-layout,
  .category-hero,
  .footer-inner,
  .category-card {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .hero-mini-covers,
  .category-covers {
    display: none;
  }

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

@media (max-width: 640px) {
  .content-section,
  .page-shell,
  .detail-shell {
    width: min(100% - 20px, 1280px);
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    width: min(100% - 20px, 1280px);
    min-height: 560px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-page-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-card,
  .side-card {
    border-radius: 20px;
    padding: 22px;
  }

  .side-recommend .movie-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .footer-inner {
    padding-top: 32px;
  }
}
