:root {
  --gray-950: #030712;
  --gray-925: #07111f;
  --gray-900: #111827;
  --gray-850: #151f31;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --sunset-300: #fdba74;
  --sunset-400: #fb923c;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --twilight-400: #a78bfa;
  --twilight-500: #8b5cf6;
  --twilight-700: #6d28d9;
  --twilight-800: #5b21b6;
  --radius: 18px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.14), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.18), transparent 32%),
    var(--gray-950);
  color: var(--gray-200);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

body::selection {
  background: rgba(249, 115, 22, 0.35);
  color: var(--white);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid rgba(91, 33, 182, 0.35);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title,
.footer-brand span:last-child {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--sunset-400), var(--twilight-400), var(--sunset-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--gray-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sunset-400);
}

.header-search,
.mobile-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  border-radius: 999px;
  color: var(--gray-200);
  background: rgba(31, 41, 55, 0.82);
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sunset-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500));
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--gray-200);
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(55, 65, 81, 0.75);
}

.mobile-search {
  width: min(680px, 100%);
  margin: 16px auto;
}

.mobile-search input {
  flex: 1;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  width: min(680px, 100%);
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.9), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.2)),
    linear-gradient(0deg, var(--gray-950), rgba(3, 7, 18, 0.1) 52%, rgba(3, 7, 18, 0.2));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

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

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--sunset-300);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.54);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--gray-300);
  font-size: 19px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  padding: 0 28px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.26);
}

.primary-button:hover,
.list-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(139, 92, 246, 0.24);
}

.ghost-button {
  padding: 0 24px;
  color: var(--gray-200);
  border: 1px solid rgba(209, 213, 219, 0.24);
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  color: var(--white);
  background: rgba(31, 41, 55, 0.75);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

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

.section-heading span,
.page-hero span,
.detail-kicker {
  display: inline-flex;
  color: var(--sunset-400);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.section-heading h2,
.page-hero h1,
.detail-card h2,
.side-card h2 {
  margin: 8px 0 0;
  color: var(--white);
  line-height: 1.18;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-400);
}

.section-more,
.text-link {
  color: var(--sunset-300);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: var(--radius);
  background: rgba(31, 41, 55, 0.54);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.44);
  background: rgba(31, 41, 55, 0.78);
}

.card-cover {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: var(--gray-900);
}

.movie-card.large .card-cover {
  height: 390px;
}

.movie-card.compact .card-cover {
  height: 260px;
}

.movie-card.rail .card-cover {
  height: 260px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-cover img,
.category-tile:hover img,
.list-card:hover img {
  transform: scale(1.06);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 52%, transparent);
}

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  min-width: 44px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 0 10px;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.list-info h3,
.category-panel h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.25;
}

.card-body h3 a,
.list-info h3 a,
.category-panel h2 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover,
.list-info h3 a:hover,
.category-panel h2 a:hover {
  color: var(--sunset-400);
}

.card-body p,
.list-info p,
.category-panel p,
.detail-card p {
  margin: 0;
  color: var(--gray-400);
}

.card-body p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gray-300);
  background: rgba(55, 65, 81, 0.6);
  font-size: 12px;
}

.tag-cloud a:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500));
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: var(--gray-600);
}

.rail-wrap {
  overflow: hidden;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

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

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

.list-card {
  display: grid;
  grid-template-columns: auto 104px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.52);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(31, 41, 55, 0.78);
}

.list-rank {
  width: 42px;
  color: var(--sunset-300);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.list-cover {
  width: 104px;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-900);
}

.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-info h3 {
  font-size: 17px;
}

.list-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.list-action {
  min-height: 38px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500));
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.78), rgba(17, 24, 39, 0.78));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.category-tile {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.category-glow {
  position: absolute;
  inset: auto -20% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  filter: blur(20px);
}

.category-thumbs,
.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-thumbs img,
.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.category-tile h3,
.category-panel h2 {
  margin: 0 0 8px;
  color: var(--white);
}

.category-tile p,
.category-panel p {
  font-size: 14px;
}

.category-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 16px;
}

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

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

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-sample-links a {
  color: var(--gray-300);
  font-size: 13px;
}

.category-sample-links a:hover {
  color: var(--sunset-400);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  border-bottom: 1px solid rgba(91, 33, 182, 0.35);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(139, 92, 246, 0.16)),
    linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  filter: blur(26px);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--gray-300);
  font-size: 18px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  z-index: 5;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(16px);
}

.filter-panel input {
  flex: 1 1 320px;
}

.filter-panel select {
  min-width: 150px;
}

.empty-state {
  padding: 46px 20px;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: var(--radius);
  color: var(--gray-400);
  background: rgba(31, 41, 55, 0.55);
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--gray-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.93), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.24)),
    linear-gradient(0deg, var(--gray-950), transparent 72%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
  padding: 42px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--gray-400);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--sunset-400);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
}

.detail-title-row h1 {
  max-width: 850px;
  margin: 10px 0 16px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-title-row p {
  max-width: 780px;
  margin: 0;
  color: var(--gray-300);
  font-size: 18px;
}

.detail-score {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.detail-score strong {
  color: var(--sunset-300);
  font-size: 34px;
  line-height: 1;
}

.detail-score span {
  color: var(--gray-400);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(55, 65, 81, 0.78);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player video {
  z-index: 1;
  object-fit: contain;
}

.player-cover {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000000;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22));
}

.play-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.4);
  font-size: 32px;
  transition: transform 0.2s ease;
}

.player-cover:hover .play-button {
  transform: scale(1.08);
}

.detail-card,
.side-card {
  padding: 24px;
}

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

.detail-card p {
  color: var(--gray-300);
  font-size: 16px;
}

.poster-card {
  padding: 0;
  overflow: hidden;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(55, 65, 81, 0.62);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  color: var(--gray-200);
}

.next-prev-card {
  display: grid;
  gap: 12px;
}

.next-prev-card a {
  color: var(--gray-300);
}

.next-prev-card a:hover {
  color: var(--sunset-400);
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(55, 65, 81, 0.75);
  background: rgba(17, 24, 39, 0.86);
}

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

.footer-grid p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--gray-400);
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  color: var(--gray-400);
}

.footer-links a:hover {
  color: var(--sunset-400);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(55, 65, 81, 0.62);
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-title {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 82px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .section-heading,
  .detail-title-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

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

  .list-card {
    grid-template-columns: auto 92px 1fr;
  }

  .list-action {
    grid-column: 2 / 4;
    justify-self: start;
  }

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

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

  .brand-subtitle {
    display: none;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 530px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-title-row p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-control {
    display: none;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .search-results,
  .category-movie-grid,
  .category-grid,
  .category-panels,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .movie-card.large .card-cover,
  .card-cover,
  .movie-card.compact .card-cover,
  .movie-card.rail .card-cover {
    height: 330px;
  }

  .list-card {
    grid-template-columns: 78px 1fr;
  }

  .list-rank {
    width: auto;
    text-align: left;
  }

  .list-cover {
    width: 78px;
    height: 96px;
  }

  .list-action {
    grid-column: 1 / 3;
  }

  .filter-panel {
    position: static;
  }

  .filter-panel input,
  .filter-panel select {
    flex: 1 1 100%;
    width: 100%;
  }

  .detail-hero,
  .detail-hero-content {
    min-height: 460px;
  }

  .detail-layout {
    margin-top: -26px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
