:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #1e293b;
  --panel-strong: #0b1120;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --blue: #38bdf8;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  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(239, 68, 68, 0.24), transparent 35rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #111827 42%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 64vh;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  width: min(100% - 28px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-name {
  white-space: nowrap;
  font-size: 1.28rem;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-1px);
}

.nav-link-muted {
  color: #9ca3af;
}

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

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-field input,
.filter-field select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  outline: none;
  padding: 0 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.filter-reset {
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 18px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.08) brightness(0.72);
}

.hero-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72) 48%, rgba(185, 28, 28, 0.45)),
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.38), transparent 35rem);
}

.hero-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 56px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fecaca;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button,
.text-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.28);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  isolation: isolate;
}

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

.hero-poster img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.86);
  box-shadow: 0 16px 50px rgba(239, 68, 68, 0.4);
  font-size: 2rem;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

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

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

.wide-section {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.86));
  border-block: 1px solid var(--line);
}

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

.section-head h2,
.recommend-panel h2,
.detail-panel h2,
.home-search-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
}

.section-link,
.text-button {
  color: #fca5a5;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(239, 68, 68, 0.45);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(249, 115, 22, 0.16)),
    #111827;
}

.movie-cover img,
.rank-thumb img,
.mini-card img,
.detail-cover img,
.player-video,
.category-image::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-cover img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.play-hover,
.rank-badge,
.movie-year {
  position: absolute;
  z-index: 3;
}

.play-hover {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  font-weight: 900;
}

.movie-year {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 700;
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 1.35em;
  overflow: hidden;
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: #fca5a5;
}

.movie-meta,
.movie-desc {
  color: var(--subtle);
  line-height: 1.65;
}

.movie-meta {
  margin: 8px 0 8px;
  font-size: 0.86rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0 0 14px;
  overflow: hidden;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .movie-info {
  padding: 14px;
}

.compact-card .movie-title {
  font-size: 1rem;
}

.compact-card .movie-desc {
  display: none;
}

.home-search-card {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 500px);
  align-items: center;
  gap: 28px;
  margin-top: -46px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.home-search-card form,
.search-page-form {
  width: 100%;
}

.home-search-card input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  padding: 0 18px;
  outline: none;
}

.home-search-card button,
.search-page-form button {
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  padding: 0 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #111827;
  isolation: isolate;
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--tile-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) brightness(0.68);
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(127, 29, 29, 0.84));
}

.category-tile:hover::before {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
  color: #fecaca;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.recommend-panel,
.detail-panel,
.filter-panel,
.category-card-large,
.player-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.recommend-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.recommend-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateX(4px);
}

.mini-card img {
  aspect-ratio: 1;
  border-radius: 12px;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  margin-top: 5px;
  color: var(--subtle);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 108px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(30, 41, 59, 0.86);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.rank-content {
  min-width: 0;
}

.rank-title {
  display: block;
  color: white;
  font-weight: 900;
  font-size: 1.08rem;
}

.rank-content p,
.rank-content span {
  display: block;
  margin: 5px 0 0;
  color: var(--subtle);
  line-height: 1.55;
}

.rank-content span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-action {
  min-height: 38px;
  padding: 0 15px;
  color: white;
  background: rgba(239, 68, 68, 0.24);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 68, 68, 0.34), transparent 32rem),
    linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(15, 23, 42, 0.84));
  border-bottom: 1px solid var(--line);
}

.page-hero p:last-child {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.category-card-large {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 210px;
}

.category-card-large > div:last-child {
  padding: 24px;
}

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

.category-card-large p {
  color: var(--muted);
  line-height: 1.75;
}

.category-image {
  position: relative;
  min-height: 210px;
  background-image: var(--category-image);
  background-size: cover;
  background-position: center;
}

.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.84));
}

.category-image span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.84);
  font-weight: 800;
}

.filter-panel {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.filter-field {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.grow-field {
  flex: 1;
  min-width: 240px;
}

.filter-count,
.search-hint {
  margin: 0 0 20px;
  color: var(--muted);
}

.search-page-form {
  max-width: 760px;
  margin-bottom: 18px;
}

.detail-hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.08) brightness(0.52);
  transform: scale(1.08);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #111827;
}

.detail-cover img {
  aspect-ratio: 3 / 4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #fecaca;
  font-size: 0.94rem;
}

.detail-copy p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 1.14rem;
}

.detail-tags {
  margin: 22px 0 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.big-play {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 52px rgba(239, 68, 68, 0.34);
  font-size: 2.35rem;
}

.player-overlay strong {
  font-size: 1.45rem;
}

.player-overlay small,
.player-status {
  color: var(--muted);
}

.player-status {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 330px;
  gap: 22px;
  margin-bottom: 24px;
}

.detail-panel {
  padding: 24px;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.95;
}

.meta-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.meta-panel dt {
  color: var(--subtle);
}

.meta-panel dd {
  margin: 0;
  color: white;
  line-height: 1.65;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-brand {
  font-size: 1.2rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

  .desktop-nav {
    justify-content: flex-end;
  }

  .nav-link-muted {
    display: none;
  }

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

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

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

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

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

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

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

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

  .hero-layout {
    padding: 72px 0 108px;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-poster img {
    height: 390px;
  }

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

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

  .recommend-panel {
    position: static;
  }

  .rank-row {
    grid-template-columns: 44px 86px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-layout {
    padding: 46px 0;
  }

  .detail-cover {
    max-width: 310px;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-wrap {
    width: min(100% - 22px, var(--max-width));
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .mobile-nav,
  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

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

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

  .home-search-card,
  .filter-panel,
  .detail-panel,
  .recommend-panel {
    padding: 18px;
  }

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

  .home-search-card input,
  .home-search-card button,
  .search-page-form input,
  .search-page-form button {
    width: 100%;
  }

  .filter-field,
  .grow-field {
    width: 100%;
  }

  .filter-reset {
    width: 100%;
  }

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

  .rank-thumb {
    display: none;
  }

  .rank-content,
  .rank-action {
    grid-column: 2 / -1;
  }
}
