:root {
  --canvas: #f4f0e9;
  --surface: #fffdf9;
  --surface-soft: #ece6dd;
  --ink: #171a1f;
  --muted: #68645d;
  --line: #d9d1c6;
  --accent: #d6493f;
  --accent-dark: #9f2f2d;
  --blue: #1d4f86;
  --gold: #c79538;
  --deep: #151a22;
  --deep-soft: #202732;
  --light-ink: #f8f4ee;
  --shadow-soft: 0 16px 42px rgba(31, 27, 22, 0.1);
  --shadow-lift: 0 22px 42px rgba(31, 27, 22, 0.16);
  --radius-s: 4px;
  --radius-m: 7px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}

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

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(214, 73, 63, 0.36);
  outline-offset: 3px;
}

::selection {
  background: rgba(214, 73, 63, 0.24);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 209, 198, 0.92);
  background: rgba(244, 240, 233, 0.95);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1240px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  color: #fff;
  background: var(--accent);
  box-shadow: 5px 5px 0 rgba(29, 79, 134, 0.16);
  font-size: 1.12rem;
  line-height: 1;
}

.brand-text {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.nav-link,
.nav-drop-button {
  position: relative;
  border: 0;
  padding: 29px 0 26px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition: color 0.2s ease;
}

.nav-link::after,
.nav-drop-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-drop-button:hover::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: 66px;
  right: -12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 3px;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  padding: 10px 11px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-drop-panel a:hover {
  color: var(--accent-dark);
  background: #f8e6df;
}

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

.nav-search {
  margin-left: 2px;
}

.nav-search input,
.mobile-search input {
  width: 218px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: #969087;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 73, 63, 0.12);
}

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 4px 4px 0 rgba(29, 79, 134, 0.18);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--light-ink);
  background: rgba(21, 26, 34, 0.42);
}

.text-button {
  border-color: var(--line);
  color: var(--accent-dark);
  background: var(--surface);
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 7px 0 rgba(29, 79, 134, 0.16);
}

.secondary-button:hover {
  color: #fff;
  background: rgba(21, 26, 34, 0.72);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.35rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: var(--surface);
}

.mobile-search input {
  width: 100%;
}

.mobile-main-links,
.mobile-cat-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mobile-main-links {
  grid-template-columns: repeat(4, 1fr);
}

.mobile-cat-links {
  grid-template-columns: repeat(2, 1fr);
}

.mobile-link,
.mobile-cat-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--muted);
  background: var(--canvas);
  font-weight: 800;
  text-align: center;
}

.mobile-link.is-active,
.mobile-link:hover,
.mobile-cat-links a:hover {
  border-color: rgba(214, 73, 63, 0.4);
  color: var(--accent-dark);
  background: #f8e6df;
}

.page-main {
  overflow: hidden;
}

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

.hero-slider {
  position: relative;
  height: 570px;
  min-height: 510px;
  overflow: hidden;
  color: var(--light-ink);
  background: var(--deep);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 5px;
  background: var(--accent);
}

.hero-slider::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

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

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

.hero-slide img.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(0.84) contrast(1.06);
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 34, 0.96) 0%, rgba(21, 26, 34, 0.86) 35%, rgba(21, 26, 34, 0.36) 76%, rgba(21, 26, 34, 0.18) 100%),
    linear-gradient(0deg, rgba(21, 26, 34, 0.86), transparent 56%);
}

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

.hero-copy {
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1240px) / 2));
  animation: slideUp 0.5s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  color: #fff;
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.15rem, 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #e7e1d7;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.8;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: #e7e1d7;
}

.hero-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-s);
  color: #fff;
  background: rgba(21, 26, 34, 0.34);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-control:hover {
  border-color: var(--gold);
  background: rgba(21, 26, 34, 0.68);
}

.hero-control.prev {
  left: 12px;
}

.hero-control.next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  right: max(20px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 26px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 72px 0 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-kicker::before {
  content: "";
  width: 20px;
  height: 3px;
  background: var(--accent);
}

.section-head h1,
.section-head h2,
.plain-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.plain-hero p,
.detail-title p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 20px;
}

.spotlight-card,
.category-tile,
.info-panel,
.detail-card,
.player-shell,
.filter-panel,
.movie-card,
.rank-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) 1fr;
  overflow: hidden;
}

.spotlight-cover {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--deep);
}

.spotlight-cover::after {
  content: "FEATURE";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(21, 26, 34, 0.48);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

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

.spotlight-card:hover .spotlight-cover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.spotlight-body {
  padding: clamp(24px, 4vw, 46px);
}

.spotlight-body h2 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.spotlight-body p,
.info-panel p,
.detail-card p {
  color: var(--muted);
  line-height: 1.85;
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-row span,
.tag-row span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #edc6bc;
  border-radius: 2px;
  color: var(--accent-dark);
  background: #f8e6df;
  font-weight: 800;
}

.pill-row span {
  padding: 8px 10px;
}

.tag-row span {
  padding: 5px 7px;
  font-size: 0.76rem;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(214, 73, 63, 0.48);
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #d7d0c6;
}

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

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

.movie-score {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  color: #fff;
  background: rgba(21, 26, 34, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-meta-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.4;
}

.movie-card h3 a:hover {
  color: var(--accent-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
}

.category-tile:nth-child(even)::before {
  background: var(--blue);
}

.category-tile:hover {
  border-color: rgba(214, 73, 63, 0.48);
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--ink);
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--blue);
  font-weight: 800;
  line-height: 1.45;
}

.category-samples a:hover {
  color: var(--accent-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  background: var(--surface-soft);
  box-shadow: none;
}

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

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

.filter-field input,
.filter-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.no-results {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.no-results.is-visible {
  display: block;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.2fr;
  gap: 22px;
}

.rank-panel {
  padding: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  padding-right: 4px;
  padding-left: 12px;
  background: #f8e6df;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  color: #fff;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-row:nth-of-type(3n) .rank-num {
  background: var(--blue);
}

.rank-title {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.plain-hero {
  padding: 70px 0 38px;
  color: var(--light-ink);
  background: var(--deep);
}

.plain-hero h1 {
  color: #fff;
}

.plain-hero p {
  color: #c9c4bc;
}

.plain-hero .breadcrumb a,
.plain-hero .breadcrumb span {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e7e1d7;
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.detail-hero {
  padding: 50px 0 0;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-color: #252b34;
  background: #090b0f;
  box-shadow: 0 22px 42px rgba(21, 26, 34, 0.22);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #090b0f;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #151a22;
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 11, 15, 0.9), transparent 58%),
    linear-gradient(90deg, rgba(9, 11, 15, 0.58), transparent 50%, rgba(9, 11, 15, 0.34));
}

.play-circle {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  font-size: 1.8rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .play-circle {
  background: #fff;
  transform: scale(1.08);
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-title {
  padding: 22px 0 18px;
}

.detail-title h1 {
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
}

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

.detail-meta span {
  padding: 7px 10px;
  border: 1px solid #c8d4e1;
  border-radius: 2px;
  color: var(--blue);
  background: #eaf0f5;
  font-weight: 900;
}

.detail-card {
  padding: clamp(20px, 4vw, 34px);
  margin-top: 18px;
  box-shadow: none;
}

.detail-card h2,
.rank-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: 1.38rem;
}

.side-poster {
  overflow: hidden;
  border: 6px solid var(--deep);
  border-radius: var(--radius-m);
  box-shadow: 9px 9px 0 rgba(214, 73, 63, 0.2);
}

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

.info-panel {
  padding: 22px;
  margin-top: 18px;
  box-shadow: none;
}

.info-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

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

.site-footer {
  margin-top: 84px;
  padding: 58px 0 0;
  border-top: 4px solid var(--accent);
  color: #c9c4bc;
  background: var(--deep);
}

.footer-wave {
  display: none;
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand p,
.footer-col p {
  color: #9d9a94;
  line-height: 1.8;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.02rem;
}

.footer-col a {
  color: #9d9a94;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(1240px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #85827d;
  text-align: center;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
  }

  .side-poster,
  .info-panel {
    margin-top: 0;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
    animation: slideUp 0.25s ease;
  }

  .hero-control {
    display: none;
  }

  .hero-copy {
    margin-left: 24px;
  }

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

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

  .spotlight-cover {
    min-height: 310px;
  }

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

@media (max-width: 720px) {
  .navbar,
  .container,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

  .navbar {
    height: 68px;
  }

  .brand-text {
    font-size: 0.98rem;
    letter-spacing: 0.04em;
  }

  .hero-slider {
    height: 600px;
  }

  .hero-inner {
    padding-bottom: 58px;
  }

  .hero-copy {
    width: calc(100% - 48px);
    margin-left: 24px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: row;
    gap: 8px;
  }

  .hero-actions a {
    width: auto;
    max-width: 100%;
  }

  .hero-dots {
    right: 24px;
    bottom: 22px;
  }

  .section {
    padding-top: 54px;
  }

  .section-head {
    display: block;
  }

  .section-head .text-button {
    margin-top: 16px;
  }

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

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

  .movie-meta-line {
    display: block;
  }

  .movie-meta-line span {
    display: block;
  }

  .movie-meta-line span:last-child {
    margin-top: 3px;
  }

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

  .side-poster {
    max-width: 260px;
  }

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

  .rank-meta {
    grid-column: 2;
  }

  .mobile-main-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 420px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
