:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #020617 0%, #111827 45%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 148px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.32);
  font-size: 15px;
}

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

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav,
.desktop-category-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-category-nav {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-link,
.category-link {
  border-radius: 12px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.category-link {
  padding: 8px 11px;
  color: var(--muted);
}

.nav-link:hover,
.category-link:hover,
.nav-link.active,
.category-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.18);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #e5e7eb;
  border: 1px solid var(--border);
  background: rgba(31, 41, 55, 0.76);
}

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

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
}

.hero {
  position: relative;
  height: min(720px, calc(100vh - 68px));
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.is-missing,
.detail-bg.is-missing,
.media-image.is-missing,
.tile-img.is-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 55%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 680px;
}

.hero-kicker,
.page-hero span,
.section-head span,
.detail-info .breadcrumb {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.text-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent-2);
}

.quick-search,
.content-section,
.page-hero,
.detail-content,
.site-footer > div {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  margin-top: -48px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-search h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 4vw, 32px);
}

.home-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.home-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.62);
  outline: none;
}

.home-search-form input,
.filter-panel input {
  padding: 0 16px;
}

.home-search-form button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  color: #111827;
  background: var(--accent-2);
  font-weight: 900;
}

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

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.section-action {
  color: var(--accent-2);
  font-weight: 800;
  white-space: nowrap;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 0 20px;
  scrollbar-color: rgba(245, 158, 11, 0.6) rgba(15, 23, 42, 0.7);
}

.rail-item {
  flex: 0 0 244px;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.11);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.movie-card.is-hidden,
.compact-card.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.2), transparent 32%),
    linear-gradient(145deg, #111827, #020617);
}

.media-image,
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .media-image {
  transform: scale(1.07);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.04));
}

.movie-score,
.movie-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-score {
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.movie-type {
  left: 12px;
  background: rgba(245, 158, 11, 0.88);
}

.movie-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 50%;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 22px;
}

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

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3,
.compact-card h3,
.classic-card h3,
.rank-row h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card-body h3 {
  font-size: 17px;
}

.movie-card-body p,
.compact-card p,
.classic-card p,
.rank-row p {
  color: var(--muted);
  line-height: 1.65;
}

.movie-card-body p {
  min-height: 52px;
  margin: 8px 0 12px;
  font-size: 13px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted-2);
}

.movie-card .tag-row {
  margin-top: 12px;
}

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

.category-tile,
.category-overview-card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.78), rgba(15, 23, 42, 0.78));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.55);
}

.category-tile {
  padding: 18px;
}

.tile-stack,
.overview-media {
  display: flex;
  align-items: center;
  min-height: 94px;
  margin-bottom: 18px;
}

.tile-stack span,
.overview-media span {
  width: 74px;
  height: 94px;
  display: block;
  margin-right: -18px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(15, 23, 42, 0.92);
  background: linear-gradient(145deg, #111827, #020617);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.category-tile strong,
.category-overview-card h2 {
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(17, 24, 39, 0.68);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.48);
}

.compact-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.compact-card h3 {
  font-size: 17px;
}

.compact-card p {
  margin: 8px 0 10px;
  font-size: 13px;
}

.compact-card span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

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

.classic-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.classic-poster {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.classic-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.classic-body > span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 10px;
  color: #111827;
  background: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.classic-card h3 {
  margin-top: 12px;
  font-size: 24px;
}

.classic-card p {
  margin: 12px 0;
}

.classic-card div:last-child {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: end;
  padding: 86px 0 42px;
}

.small-hero,
.category-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.23), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.14), transparent 34%);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.82);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  padding-left: 42px;
}

.filter-panel select {
  padding: 0 12px;
}

.category-overview-card {
  padding: 0;
}

.category-overview-link {
  display: block;
  padding: 18px 18px 8px;
}

.overview-media {
  margin-bottom: 16px;
}

.overview-body span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.overview-body h2 {
  margin: 8px 0;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 70px 1fr 56px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(17, 24, 39, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.48);
  transform: translateX(4px);
}

.rank-row > strong {
  color: var(--accent-2);
  font-size: 22px;
  text-align: center;
}

.rank-row > span {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}

.rank-row h3 {
  font-size: 18px;
}

.rank-row p {
  margin: 5px 0 0;
  font-size: 13px;
}

.rank-row em {
  color: var(--accent-2);
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
}

.rank-side {
  position: sticky;
  top: 94px;
  height: fit-content;
  padding: 24px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.rank-side h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.rank-side p {
  color: var(--muted);
  line-height: 1.75;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 48%, rgba(2, 6, 23, 0.62) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.24) 68%);
}

.detail-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  padding: 70px 0 44px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
}

.detail-info h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-bottom: 20px;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.player-section h2,
.detail-text h2 {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 900;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.2);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.22), transparent 26%),
    rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 30px;
  box-shadow: 0 18px 60px rgba(245, 158, 11, 0.32);
}

.player-overlay strong {
  font-size: 18px;
}

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

.detail-text {
  max-width: 900px;
}

.detail-text p,
.text-page p {
  color: #d1d5db;
  font-size: 18px;
  line-height: 2;
}

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

.text-page {
  padding-bottom: 74px;
}

.site-footer {
  margin-top: 82px;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(17, 24, 39, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.footer-grid a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  padding: 20px 0 30px;
  color: var(--muted-2);
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 14px;
}

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

  .quick-search,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .quick-search {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

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

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

  .classic-card {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding-top: 40px;
  }

  .detail-poster {
    width: min(280px, 80vw);
  }

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

@media (max-width: 620px) {
  .site-nav {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 110px;
  }

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

  .hero-controls {
    bottom: 22px;
  }

  .hero-controls > button {
    display: none;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .classic-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rail-item {
    flex-basis: 218px;
  }

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

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

  .rank-row em {
    grid-column: 3;
  }

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

  .detail-one-line,
  .detail-text p,
  .text-page p {
    font-size: 16px;
  }
}
