:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(20, 184, 166, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --yellow: #facc15;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(20, 184, 166, 0.20), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.16), transparent 30rem),
    var(--bg);
  font-family: Inter, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(var(--container), calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand__mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.brand--footer .brand__mark {
  width: 40px;
  height: 40px;
}

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

.nav-link {
  color: var(--soft);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-link.is-active {
  text-shadow: 0 0 16px rgba(20, 184, 166, 0.75);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--soft);
  font-weight: 650;
}

.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.13);
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease, transform 0.85s ease;
  transform: scale(1.015);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-slide__shade,
.ranking-hero__shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  width: min(var(--container), calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 120px 0 92px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.ranking-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-movie-title {
  margin: -8px 0 16px;
  color: var(--teal);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}

.hero-desc {
  width: min(640px, 100%);
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.movie-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.58);
}

.hero-meta span:first-child {
  color: #ffffff;
  border-color: rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);
}

.ghost-button:hover {
  border-color: rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.18);
}

.hero-side {
  position: absolute;
  right: max(32px, calc((100vw - var(--container)) / 2));
  bottom: 96px;
  z-index: 6;
  width: min(330px, 34vw);
}

.hero-side__panel,
.ranking-panel,
.info-panel,
.detail-article,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-side__panel {
  padding: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 8;
  right: max(32px, calc((100vw - var(--container)) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search {
  position: relative;
  z-index: 20;
  margin-top: -42px;
}

.quick-search__inner,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search,
.search-box {
  min-width: 260px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.66);
}

.home-search span,
.search-box span {
  color: var(--teal);
  font-size: 20px;
}

.home-search input,
.search-box input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.home-search button,
.type-select {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 800;
  cursor: pointer;
}

.home-search button {
  padding: 0 18px;
}

.type-select {
  min-width: 150px;
  padding: 0 14px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-chips a:hover,
.tag-row span:hover {
  color: #ffffff;
  border-color: rgba(20, 184, 166, 0.52);
  background: rgba(20, 184, 166, 0.14);
}

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

.section-surface {
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2,
.panel-title h2,
.info-panel h2,
.detail-article h2 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.1);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 184, 166, 0.48);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

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

.movie-card:hover .movie-card__poster img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.05);
}

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 54%);
  opacity: 0.92;
}

.movie-card__score {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.28);
  transform: scale(0.92);
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-card__play {
  transform: scale(1.06);
  opacity: 1;
}

.movie-card__body {
  padding: 16px;
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.42;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  gap: 7px;
  margin-bottom: 12px;
}

.movie-card__meta span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.tag-row--large span {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 14px;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.1);
}

.compact-card img {
  width: 54px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.7);
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.rank-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.24);
  font-size: 12px;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.42);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.2));
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-card small {
  margin-top: 8px;
  color: var(--soft);
  line-height: 1.5;
}

.page-main {
  padding-top: 74px;
}

.page-hero,
.ranking-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.page-hero {
  padding: 92px 0 72px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background:
    radial-gradient(circle at 20% 8%, rgba(20, 184, 166, 0.20), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.page-hero--category {
  padding-bottom: 82px;
}

.page-hero h1,
.ranking-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.page-hero p,
.ranking-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions--page {
  margin-top: 24px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.category-overview-card__cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.category-overview-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card__body h2 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 30px;
}

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

.compact-list--mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.filter-panel {
  margin-bottom: 24px;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.ranking-hero__image,
.detail-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-hero__content {
  position: relative;
  z-index: 2;
  padding: 96px 0 64px;
}

.ranking-columns {
  columns: 3 280px;
  column-gap: 18px;
}

.ranking-columns .compact-card {
  break-inside: avoid;
  margin-bottom: 12px;
}

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

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 58px;
}

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

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

.detail-hero__grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.74);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

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

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

.detail-main {
  display: grid;
  gap: 24px;
}

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

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

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover__icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 20px 46px rgba(20, 184, 166, 0.34);
  font-size: 30px;
}

.player-cover strong {
  max-width: 80%;
  font-size: 24px;
  text-align: center;
}

.detail-article {
  padding: 26px;
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p {
  color: var(--soft);
  line-height: 1.9;
  text-align: justify;
}

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

.prev-next a {
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.66);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prev-next a:hover {
  color: #ffffff;
  border-color: rgba(20, 184, 166, 0.42);
}

.detail-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 20px;
}

.info-panel {
  padding: 22px;
}

.info-panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

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

.info-panel dd {
  margin: 0;
  color: var(--text);
}

.movie-card--small .movie-card__body {
  padding: 13px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(180px, 0.7fr));
  gap: 36px;
  padding: 56px 0 36px;
}

.footer-brand p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

@media (max-width: 1180px) {
  .movie-grid--compact,
  .movie-grid--listing {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .hero-side {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .hero,
  .hero-slide__content {
    min-height: 620px;
  }

  .hero-slide__shade,
  .ranking-hero__shade,
  .detail-hero__shade {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 58%, rgba(2, 6, 23, 0.36) 100%);
  }

  .quick-search__inner,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search,
  .search-box {
    min-width: 0;
  }

  .layout-two,
  .detail-layout,
  .detail-hero__grid,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-aside {
    position: static;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

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

@media (max-width: 640px) {
  .site-header__inner {
    height: 66px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .brand__text small {
    display: none;
  }

  .page-main {
    padding-top: 66px;
  }

  .hero,
  .hero-slide__content {
    min-height: 590px;
  }

  .hero-slide__content {
    padding-bottom: 70px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions,
  .prev-next {
    grid-template-columns: 1fr;
    display: grid;
    width: 100%;
  }

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

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

  .section-heading {
    display: grid;
  }

  .movie-grid--featured,
  .movie-grid--compact,
  .movie-grid--listing,
  .category-grid,
  .compact-list--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card__body {
    padding: 12px;
  }

  .movie-card h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .movie-card p {
    display: none;
  }

  .category-overview-card {
    padding: 14px;
  }

  .compact-card {
    grid-template-columns: auto 46px minmax(0, 1fr);
  }

  .compact-card img {
    width: 46px;
    height: 64px;
  }

  .detail-info p,
  .page-hero p,
  .ranking-hero p {
    font-size: 16px;
  }

  .detail-article,
  .info-panel {
    padding: 18px;
  }

  .player-cover__icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

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

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

  .hero-meta span,
  .movie-card__meta span {
    font-size: 12px;
  }
}
