:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(14, 165, 233, 0.22);
  --line-strong: rgba(14, 165, 233, 0.46);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --weak: #64748b;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --shadow: rgba(8, 47, 73, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(8, 47, 73, 0.26);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
  font-size: 14px;
}

.site-logo--footer {
  margin-bottom: 12px;
}

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

.desktop-nav a,
.nav-dropdown > button {
  color: #cbd5e1;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover {
  color: var(--sky);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.45);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-dropdown__menu a:hover {
  background: rgba(14, 165, 233, 0.16);
}

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

.site-search input,
.mobile-search input,
.search-console input,
.search-console select,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
  width: min(24vw, 280px);
}

.site-search input:focus,
.mobile-search input:focus,
.search-console input:focus,
.search-console select:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.site-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  cursor: pointer;
}

.mobile-nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

.mobile-nav {
  display: none;
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  padding: 10px 0;
  color: #cbd5e1;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

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

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

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

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

.hero-slide.has-missing-image {
  background:
    radial-gradient(circle at 65% 25%, rgba(56, 189, 248, 0.22), transparent 32rem),
    linear-gradient(135deg, #0f172a, #020617 68%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 50%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 110px 24px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

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

.hero-meta span,
.detail-meta span,
.hero-tags span,
.detail-tags span,
.tag-list span {
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  padding: 5px 10px;
  font-size: 13px;
}

.hero-meta span:first-child {
  background: rgba(14, 165, 233, 0.78);
  color: white;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 20px 0 16px;
  color: white;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-slide p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
}

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

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  box-shadow: 0 16px 35px rgba(8, 145, 178, 0.28);
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.56);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(8, 145, 178, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow--prev {
  left: 22px;
}

.hero-arrow--next {
  right: 22px;
}

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

.hero-dots button {
  width: 18px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #475569;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: var(--sky);
}

.site-stats {
  max-width: 1280px;
  margin: -36px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.site-stats div,
.info-strip div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.22);
  padding: 22px;
  text-align: center;
}

.site-stats strong,
.info-strip strong {
  display: block;
  font-size: clamp(26px, 3vw, 42px);
  color: white;
}

.site-stats span,
.info-strip span {
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 24px 0;
}

.content-section:last-of-type {
  padding-bottom: 72px;
}

.content-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2,
.notice-panel h2 {
  margin: 0;
  color: white;
  line-height: 1.08;
}

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

.section-heading p,
.notice-panel p,
.page-hero p,
.text-panel p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--sky);
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 12px 38px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 55px var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.28), transparent 8rem),
    linear-gradient(135deg, #0f172a, #020617);
}

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

.poster-frame.has-missing-image img,
.hero-slide.has-missing-image img {
  opacity: 0;
}

.poster-frame.has-missing-image::after {
  content: "高清国产影视";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(226, 232, 240, 0.86);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.poster-frame__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.02) 55%);
}

.poster-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.poster-badge--year {
  right: 10px;
  bottom: 10px;
}

.poster-badge--type {
  top: 10px;
  left: 10px;
  background: rgba(14, 165, 233, 0.78);
}

.poster-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(14, 165, 233, 0.82);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.movie-card__body {
  padding: 14px;
}

.movie-card__body h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--weak);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list span {
  padding: 3px 7px;
  font-size: 12px;
  color: var(--sky);
  background: rgba(14, 165, 233, 0.12);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
  transition: 0.2s ease;
}

.ranking-row:hover {
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.86);
}

.ranking-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.ranking-row__number,
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.ranking-row__text {
  min-width: 0;
}

.ranking-row__text strong {
  display: block;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__text small {
  display: block;
  margin-top: 4px;
  color: var(--weak);
}

.ranking-row__score {
  color: var(--amber);
  font-weight: 900;
}

.notice-panel,
.text-panel,
.player-shell,
.filter-panel,
.search-console,
.table-wrap,
.category-overview-card,
.info-strip,
.category-tile {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.25);
}

.notice-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-panel .primary-button {
  align-self: flex-start;
  margin-top: 24px;
}

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

.category-tile {
  overflow: hidden;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-tile__covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.category-tile__covers img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.category-tile strong {
  display: block;
  color: white;
  font-size: 18px;
}

.category-tile span {
  display: inline-flex;
  margin-top: 6px;
  color: var(--sky);
  font-size: 13px;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  padding: 132px 24px 48px;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), transparent);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky);
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.category-overview-card__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.4);
}

.category-overview-card__media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.category-overview-card__body {
  padding: 22px;
}

.category-overview-card__body h2 {
  margin: 0;
  color: white;
}

.category-overview-card__body p,
.category-overview-card__body span {
  color: var(--muted);
  line-height: 1.8;
}

.category-overview-card__body span {
  display: inline-flex;
  margin: 10px 0;
  color: var(--sky);
}

.category-overview-card__body ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
}

.category-overview-card__body li + li {
  margin-top: 5px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-count {
  color: var(--sky);
  font-weight: 800;
  padding-bottom: 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 128px 24px 62px;
  background-image: var(--detail-backdrop);
  background-size: cover;
  background-position: center;
}

.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.62)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.14));
  backdrop-filter: blur(8px);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
}

.detail-info h1 {
  max-width: 920px;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 880px;
  margin: 16px 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-tags {
  margin-bottom: 28px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 24rem),
    rgba(2, 6, 23, 0.55);
  text-align: center;
}

.player-cover strong {
  max-width: min(92%, 860px);
  color: white;
  font-size: clamp(24px, 4vw, 46px);
}

.player-cover span {
  color: var(--muted);
}

.player-cover button {
  min-height: 54px;
  margin-top: 14px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.32);
  cursor: pointer;
}

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

.player-note {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.74);
}

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

.player-shell.has-error .player-note {
  color: #fecaca;
}

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

.text-panel {
  padding: 28px;
}

.text-panel p {
  color: #cbd5e1;
  font-size: 16px;
}

.info-strip {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  text-align: left;
}

.ranking-table th {
  color: var(--sky);
  background: rgba(15, 23, 42, 0.92);
}

.ranking-table td {
  color: #cbd5e1;
}

.ranking-table a {
  color: white;
  font-weight: 700;
}

.search-console {
  padding: 22px;
}

.search-console__bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 14px;
}

.search-console__meta {
  margin: 18px 0;
  color: var(--muted);
}

.empty-tip {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 1));
}

.site-footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 26px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--sky);
}

.site-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
  color: var(--weak);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .site-search {
    display: none;
  }

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

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

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

  .content-section--split,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .site-header__inner {
    padding: 0 16px;
  }

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

  .hero-slide__content {
    padding: 110px 18px 88px;
  }

  .hero-arrow {
    display: none;
  }

  .site-stats,
  .info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 17px;
  }

  .site-stats,
  .info-strip,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card__body {
    padding: 12px;
  }

  .content-section {
    padding: 48px 16px 0;
  }

  .page-hero,
  .detail-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .ranking-row {
    grid-template-columns: 38px 50px minmax(0, 1fr);
  }

  .ranking-row__score {
    display: none;
  }

  .site-footer__bottom {
    display: grid;
  }
}
