:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --amber: #f59e0b;
  --amber-2: #ea580c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.main-space {
  padding-top: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.30);
  color: #fff;
  font-weight: 900;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: none;
  padding: 10px 12px 10px 16px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.search-page-form button,
.hero-search button {
  border: 0;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #fff;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  color: #cbd5e1;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.mobile-category-links a,
.hero-tags span,
.tag-list span,
.poster-tags span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #dbe4ef;
}

.mobile-category-links a {
  padding: 6px 12px;
  font-size: 13px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 84%);
  padding: 92px 70px 120px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  padding: 6px 12px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}

.hero-arrow,
.rail-button {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow-left {
  left: 18px;
}

.hero-arrow-right {
  right: 18px;
}

.hero-arrow:hover,
.rail-button:hover {
  background: rgba(245, 158, 11, 0.88);
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 46px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

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

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

.hero-search {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 7;
  display: flex;
  overflow: hidden;
  width: min(430px, 45%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 14px 18px;
  color: #fff;
  background: transparent;
}

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

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

.section-heading h2,
.feature-side h2,
.sidebar-card h2,
.detail-card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
}

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

.section-more {
  color: #fbbf24;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.35), transparent 38%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 21 / 9;
}

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

.poster-img.is-missing {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12), transparent);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.poster-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poster-tags span {
  padding: 4px 8px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.poster-tags span:first-child {
  background: rgba(245, 158, 11, 0.88);
}

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

.movie-card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 12px;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 238px;
  scroll-snap-align: start;
}

.rail-button {
  top: 42%;
  width: 40px;
  height: 40px;
  opacity: 0;
  font-size: 26px;
}

.rail-wrap:hover .rail-button {
  opacity: 1;
}

.rail-button-left {
  left: -14px;
}

.rail-button-right {
  right: -14px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}

.feature-card,
.feature-side-item,
.side-related-item,
.ranking-row,
.rank-card a,
.category-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.86);
}

.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 430px;
  border-radius: 22px;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18), transparent);
}

.feature-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.feature-info span {
  color: #fbbf24;
  font-weight: 700;
}

.feature-info h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 32px;
}

.feature-info p {
  max-width: 720px;
  margin: 0;
  color: #d1d5db;
}

.feature-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.68));
}

.feature-side-item,
.side-related-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  overflow: hidden;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-side-item:hover,
.side-related-item:hover {
  background: rgba(30, 41, 59, 0.9);
  transform: translateX(2px);
}

.feature-side-item img,
.side-related-item img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.feature-side-item div,
.side-related-item div {
  padding: 10px 10px 10px 0;
}

.feature-side-item h3,
.side-related-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.feature-side-item p,
.side-related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.ranking-entry {
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.62));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
}

.ranking-number,
.rank-position {
  font-weight: 900;
  color: #fbbf24;
}

.ranking-title {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-meta,
.ranking-heat {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.intro-band,
.page-hero,
.search-panel,
.detail-card,
.sidebar-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.66));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.intro-band h2,
.page-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.intro-band p,
.page-hero p {
  margin: 0;
  color: #cbd5e1;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px;
}

.compact-hero {
  min-height: 240px;
}

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

.category-card {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.22));
}

.category-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.category-card span {
  color: #fbbf24;
  font-weight: 800;
}

.category-card h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 28px;
}

.category-card p {
  margin: 0;
  color: #d1d5db;
}

.catalog-controls,
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-controls input,
.catalog-controls select,
.search-page-form input,
.search-filters select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  outline: none;
}

.catalog-controls input {
  min-width: min(380px, 100%);
  flex: 1;
  padding: 0 16px;
}

.catalog-controls select,
.search-filters select {
  padding: 0 14px;
}

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

.empty-state {
  margin-top: 20px;
  padding: 30px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 74px 118px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-card a:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateY(-2px);
}

.rank-card img {
  width: 118px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

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

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span {
  padding: 4px 9px;
  font-size: 12px;
}

.search-panel {
  margin-top: 28px;
  padding: 28px;
}

.search-page-form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
}

.search-page-form input {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: transparent;
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.70);
}

.search-result-card img {
  width: 96px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.search-result-card h2 {
  margin: 0 0 6px;
  color: #fff;
}

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

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 18rem),
    rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease;
}

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

.player-play-icon {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.26);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 6px 12px;
  font-size: 13px;
}

.one-line {
  margin: 0 0 24px;
  color: #f8fafc;
  font-size: 18px;
}

.detail-card section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.detail-card section p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.muted-tags span {
  background: rgba(100, 116, 139, 0.16);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 20px;
}

.side-related-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hot-entry-card p {
  color: var(--muted);
}

.detail-related-full {
  grid-column: 1 / -1;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

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

.footer-grid a:hover {
  color: #fbbf24;
}

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

.footer-bottom p {
  margin: 0;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: block;
  }

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

  .feature-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-shell {
    min-height: 620px;
  }

  .hero-content {
    width: 100%;
    padding: 74px 26px 170px;
  }

  .hero-search {
    left: 22px;
    right: 22px;
    bottom: 26px;
    width: auto;
  }

  .hero-dots {
    left: 26px;
    bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .intro-band,
  .page-hero,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .ranking-meta,
  .ranking-heat {
    display: none;
  }

  .rank-card a {
    grid-template-columns: 52px 92px 1fr;
  }

  .rank-card img {
    width: 92px;
    height: 74px;
  }

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

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

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

  .brand-text {
    display: none;
  }

  .hero-shell {
    border-radius: 18px;
  }

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

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

  .movie-grid,
  .dense-grid {
    gap: 12px;
  }

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

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

  .movie-card-body p,
  .movie-meta-line {
    display: none;
  }

  .page-hero,
  .detail-card,
  .search-panel,
  .intro-band {
    padding: 22px;
    border-radius: 18px;
  }

  .rank-card a,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .rank-card img,
  .search-result-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
