:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --brand: #14b8a6;
  --brand-strong: #0d9488;
  --brand-soft: rgba(20, 184, 166, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #67e8f9);
  color: #001316;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted-2);
  font-weight: 600;
}

.main-nav > a,
.nav-more > button {
  position: relative;
  color: var(--muted-2);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 0;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-more > button:hover {
  color: #fff;
}

.main-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
}

.nav-more {
  position: relative;
}

.nav-more__panel {
  position: absolute;
  right: 0;
  top: 42px;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s ease;
}

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

.nav-more__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted-2);
}

.nav-more__panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
}

.mobile-nav a.is-active,
.mobile-nav a:hover {
  color: #fff;
  background: var(--brand-soft);
}

main {
  min-height: 72vh;
}

.hero {
  width: min(1400px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: clamp(38px, 7vw, 92px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #5eead4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-content > p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--muted-2);
  font-size: 18px;
}

.hero-actions,
.home-search__links,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #001317;
  background: var(--brand);
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.28);
}

.btn-primary:hover {
  background: #2dd4bf;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.7);
  background: rgba(20, 184, 166, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.74);
}

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

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

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

.hero-dots button {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.25s ease;
}

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

.hero-panel {
  min-height: 70vh;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74));
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.hero-side-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-side-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(20, 184, 166, 0.12);
}

.hero-side-card img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-panel-link,
.text-link,
.section-heading a {
  color: #5eead4;
  font-weight: 800;
}

.hero-panel-link {
  display: inline-block;
  margin-top: 22px;
}

.home-search,
.content-section,
.filter-panel,
.detail-layout,
.player-section,
.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.home-search__box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.home-search__box label,
.filter-panel p {
  color: #5eead4;
  font-weight: 800;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  outline: none;
}

.home-search input,
.filter-panel input {
  padding: 13px 16px;
}

.filter-panel select {
  padding: 13px 14px;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(20, 184, 166, 0.78);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.home-search button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #001317;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.home-search__links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
}

.home-search__links a:hover {
  background: var(--brand-soft);
  color: #fff;
}

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

.content-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

.section-heading p {
  margin: 0 0 5px;
  color: #5eead4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.section-heading span {
  display: block;
  max-width: 680px;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.52);
  background: rgba(15, 23, 42, 0.98);
}

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

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

.movie-card:hover .movie-card__poster img {
  transform: scale(1.06);
  opacity: 0.82;
}

.movie-card__type,
.movie-card__play {
  position: absolute;
  z-index: 2;
}

.movie-card__type {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #001317;
  background: rgba(94, 234, 212, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__play {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.25s ease;
}

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

.movie-card__body {
  padding: 14px;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #5eead4;
}

.movie-card__meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 64px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 13px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card__desc.compact {
  min-height: 42px;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 4px 8px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 999px;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.08);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f172a;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.62;
  transition: 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.78;
}

.category-tile div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-item:hover {
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(15, 23, 42, 0.96);
}

.rank-item__poster {
  position: relative;
  display: block;
}

.rank-item__poster img {
  width: 92px;
  height: 126px;
  border-radius: 15px;
  object-fit: cover;
}

.rank-item__poster span {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #001317;
  background: #5eead4;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.rank-item h3 a:hover {
  color: #5eead4;
}

.rank-item p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.rank-item p:last-child {
  color: var(--muted-2);
}

.spotlight-box {
  position: sticky;
  top: 92px;
  padding: 26px;
  border: 1px solid rgba(20, 184, 166, 0.34);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.16), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
}

.spotlight-box h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.spotlight-box p {
  color: var(--muted-2);
}

.page-hero {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: clamp(36px, 6vw, 72px);
}

.page-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted-2);
  font-size: 18px;
}

.ranking-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.ranking-hero > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.filter-panel {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-panel p {
  margin: 0 0 8px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.category-overview-card__image img {
  width: 170px;
  height: 230px;
  border-radius: 18px;
  object-fit: cover;
}

.category-overview-card p {
  margin: 0 0 6px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card h2 a:hover {
  color: #5eead4;
}

.category-overview-card span {
  color: var(--muted-2);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mini-links span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 12px;
}

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

.breadcrumb a:hover {
  color: #5eead4;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
}

.detail-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  opacity: 0.32;
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.26));
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 880px;
}

.detail-meta,
.detail-one-line {
  max-width: 780px;
  color: var(--muted-2);
}

.detail-meta {
  margin: 16px 0 8px;
  font-weight: 800;
}

.detail-one-line {
  margin: 0 0 22px;
  font-size: 18px;
}

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(20, 184, 166, 0.34);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001317;
  background: var(--brand);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(20, 184, 166, 0.36);
}

.player-overlay strong {
  font-size: clamp(18px, 3vw, 28px);
}

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

.detail-main,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-main {
  padding: 28px;
}

.detail-text-block + .detail-text-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-text-block h2,
.detail-side h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-text-block p {
  margin: 0;
  color: var(--muted-2);
  font-size: 17px;
}

.detail-side {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 92px;
}

.detail-side dl,
.detail-side dd {
  margin: 0;
}

.detail-side div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-side div:last-child {
  border-bottom: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  color: var(--text);
  font-weight: 700;
}

.related-section {
  padding-bottom: 54px;
}

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

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

.footer-grid p {
  max-width: 560px;
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero,
  .content-section--split,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .spotlight-box,
  .detail-side {
    position: static;
  }

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

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

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

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

  .hero-carousel,
  .hero-panel {
    min-height: auto;
  }

  .hero-carousel {
    height: 72vh;
  }

  .home-search,
  .home-search__box,
  .filter-panel,
  .ranking-hero,
  .detail-hero__content,
  .footer-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .category-overview-card__image img {
    width: 130px;
    height: 180px;
  }

  .player-section {
    margin-top: -34px;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .mobile-nav,
  .home-search,
  .content-section,
  .filter-panel,
  .detail-layout,
  .player-section,
  .page-hero,
  .detail-hero__content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .hero-carousel {
    height: 68vh;
    border-radius: 22px;
  }

  .hero-content {
    padding: 30px 24px;
    justify-content: flex-end;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-content > p:not(.eyebrow),
  .detail-one-line {
    font-size: 15px;
  }

  .hero-panel,
  .compact-hero,
  .detail-main,
  .detail-side {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-dots button {
    width: 24px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 74px 1fr;
  }

  .rank-item__poster img {
    width: 74px;
    height: 104px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero__content {
    padding: 32px 0 76px;
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .detail-poster img {
    border-radius: 18px;
  }

  .detail-tags {
    display: none;
  }

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

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

  .category-overview-card__image img {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 430px) {
  .movie-grid--six,
  .category-grid,
  .rank-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    width: 54%;
  }
}
