:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.62);
  --panel-strong: rgba(15, 23, 42, 0.86);
  --border: rgba(30, 64, 175, 0.38);
  --border-bright: rgba(34, 211, 238, 0.56);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #60a5fa;
  --yellow: #facc15;
  --danger: #fb7185;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.16);
  --shadow-soft: 0 18px 60px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(135deg, #0f172a 0%, #172554 46%, #0f172a 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

img[data-missing="true"] {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.32);
}

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

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

.brand-icon,
.footer-logo span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
}

.brand-text {
  font-size: 1.42rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.global-search {
  position: relative;
  flex: 0 1 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 6px;
}

.global-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.global-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.global-search button,
.hero-search button,
.filter-panel button,
.source-list button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--cyan-deep), #2563eb);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.source-list button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, 92vw);
  max-height: 460px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow-soft);
}

.search-results.open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(30, 64, 175, 0.28);
}

.search-result-item img {
  width: 54px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #164e63);
}

.search-result-item strong {
  display: block;
  color: var(--text);
  line-height: 1.3;
}

.search-result-item span,
.search-result-item p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.48);
}

main,
.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  padding-top: 32px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-cyan);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 36px;
  padding: clamp(28px, 5vw, 70px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.18)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.15)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 760px;
}

.hero-kickers,
.hero-meta,
.detail-meta-grid,
.card-meta,
.overview-meta,
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kickers span,
.eyebrow,
.tag-list span,
.hero-meta span,
.card-meta b,
.rank-tags b,
.detail-meta-grid div,
.overview-meta span {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-kickers span:nth-child(2),
.year-badge {
  color: #713f12;
  border-color: rgba(250, 204, 21, 0.38);
  background: rgba(250, 204, 21, 0.9);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.hero-actions,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan-deep), #2563eb);
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost-button {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.54);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.hero-art {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.9), rgba(30, 41, 59, 0.92));
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.58);
  transform: rotate(2deg);
}

.hero-img,
.detail-poster-img,
.poster-img,
.rank-img,
.mini-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.quick-search-panel,
.stats-row,
.filter-panel,
.text-card,
.overview-card,
.player-card,
.detail-hero,
.page-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search-panel {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
}

.quick-search-panel h2,
.section-heading h2,
.footer-logo,
.overview-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.quick-search-panel p,
.text-card p,
.overview-card p,
.footer-brand p {
  color: var(--muted-strong);
}

.hero-search {
  position: relative;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 18px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.48);
}

.hero-search-results {
  left: 0;
  right: auto;
  width: 100%;
}

.stats-row {
  margin: 28px 0 48px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-row div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.stats-row strong {
  display: block;
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1;
}

.stats-row span {
  color: var(--muted);
}

.content-section {
  margin-top: 64px;
}

.content-section.no-top-margin {
  margin-top: 28px;
}

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

.section-heading h2 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text);
}

.section-heading h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.52), transparent);
}

.section-heading h2 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-more {
  color: var(--cyan);
  font-weight: 750;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(30, 64, 175, 0.36);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.52);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.16);
  transform: translateY(-5px) scale(1.015);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #164e63);
}

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

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

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.rank-badge {
  left: 12px;
  right: auto;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.hover-meta {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  color: #e2e8f0;
  font-size: 0.78rem;
  transition: opacity 0.25s ease;
}

.movie-card:hover .hover-meta {
  opacity: 1;
}

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

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

.card-body strong {
  overflow: hidden;
  display: -webkit-box;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-body em {
  overflow: hidden;
  display: -webkit-box;
  min-height: 2.8em;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta b {
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

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

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

.category-tile {
  padding: 16px;
}

.category-tile:hover,
.overview-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

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

.category-thumbs.large {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 16px 16px 0;
}

.category-thumbs span {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #164e63);
}

.category-tile strong {
  display: block;
  color: var(--text);
  font-size: 1.12rem;
}

.category-tile > span {
  display: block;
  color: var(--cyan);
  margin: 4px 0 8px;
  font-size: 0.9rem;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.page-hero {
  padding: clamp(26px, 5vw, 56px);
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 24rem),
    rgba(30, 41, 59, 0.58);
}

.compact-hero h1,
.category-hero h1,
.detail-info h1 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 220px 140px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.42);
}

.filter-panel select option {
  color: #0f172a;
}

.empty-state {
  display: none;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state.show {
  display: block;
}

.overview-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.overview-card-body {
  padding: 20px;
}

.overview-meta {
  margin: 16px 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.rank-number {
  color: var(--cyan);
  font-size: 1.65rem;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #164e63);
}

.rank-info strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
}

.rank-info em {
  overflow: hidden;
  display: -webkit-box;
  color: var(--muted);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(22px, 4vw, 46px);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e293b, #164e63);
  box-shadow: var(--shadow-soft);
}

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

.detail-meta-grid {
  margin: 24px 0;
}

.detail-meta-grid div {
  display: grid;
  min-width: 132px;
  border-radius: 18px;
  padding: 12px 14px;
}

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

.detail-meta-grid strong {
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.player-section {
  margin-top: 36px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42)),
    radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 22rem);
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.42);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.4rem;
}

.play-overlay em,
.player-status {
  color: var(--muted-strong);
  font-style: normal;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 12px;
  margin: 0;
  font-size: 0.9rem;
}

.text-card {
  padding: clamp(20px, 3vw, 32px);
}

.text-card p {
  margin: 0;
  font-size: 1.03rem;
}

.text-card.standalone {
  max-width: 980px;
}

.text-card.standalone p + p {
  margin-top: 16px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(23, 37, 84, 0.9), rgba(2, 6, 23, 0.96));
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 850;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--text);
}

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

.footer-list a {
  color: var(--muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
}

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

  .menu-toggle {
    display: flex;
  }

  .nav-shell {
    gap: 12px;
  }

  .global-search {
    flex: 1 1 auto;
  }

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

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .global-search {
    order: 3;
    flex-basis: 100%;
  }

  .hero-stage {
    min-height: 640px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .hero-art {
    width: 180px;
    justify-self: start;
    align-self: start;
    transform: rotate(0deg);
  }

  .quick-search-panel,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 48px 60px 1fr;
  }

  .rank-tags {
    grid-column: 3 / 4;
  }
}

@media (max-width: 560px) {
  main,
  .page-shell,
  .nav-shell,
  .mobile-menu,
  .footer-inner {
    width: min(100% - 20px, 1440px);
  }

  .brand-text {
    font-size: 1.18rem;
  }

  .global-search {
    border-radius: 18px;
  }

  .global-search button {
    padding-inline: 12px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.1rem;
  }

  .quick-search-panel,
  .stats-row,
  .page-hero,
  .detail-hero,
  .text-card {
    border-radius: 20px;
  }

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

  .movie-card {
    border-radius: 16px;
  }

  .card-body {
    padding: 11px;
  }

  .card-body em,
  .card-meta {
    display: none;
  }

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

  .source-list button {
    width: 100%;
  }
}
