* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --blue: #2563eb;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--white);
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.07);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand-copy em {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #22d3ee;
}

.header-search {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.header-search input,
.mobile-search input,
.page-search-form input,
.filter-bar input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  outline: none;
  padding: 0 46px 0 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search-form input:focus,
.filter-bar input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(30, 41, 59, 0.9);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding-right: 14px;
}

.mobile-search button,
.page-search-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 700;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-panel nav a {
  padding: 11px 12px;
  border-radius: 12px;
}

.mobile-panel nav a:hover {
  background: rgba(30, 41, 59, 0.9);
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.45) 70%, rgba(2, 6, 23, 0.8) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 40%);
}

.hero-content {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

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

.hero-kicker,
.page-hero > span,
.section-head span,
.ranking-head span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  max-width: 800px;
}

.hero-copy p {
  margin: 0;
  max-width: 660px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.detail-tags a,
.tag-card span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.28);
}

.btn-soft {
  color: #cffafe;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

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

.btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 182, 212, 0.88);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(6, 182, 212, 0.45);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  font-size: 30px;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.hero-search-card {
  position: relative;
  z-index: 6;
  margin-top: -48px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search-card h1 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.hero-search-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-search-card form,
.page-search-form {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.page-search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--white);
  outline: none;
  padding: 0 14px;
  min-height: 48px;
}

.hero-search-card button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 800;
}

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

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

.section-head h2,
.ranking-head h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.section-more {
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  background: rgba(30, 41, 59, 0.84);
  box-shadow: var(--shadow);
}

.movie-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.94));
}

.movie-card-large .movie-card-media {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.movie-wide-card:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.movie-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-shade {
  opacity: 1;
}

.movie-year,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.pill-cyan {
  position: absolute;
  left: 12px;
  top: 12px;
  margin: 0;
}

.play-circle,
.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(6, 182, 212, 0.9);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3,
.movie-wide-body h3,
.ranking-row h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p,
.movie-wide-body p,
.ranking-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
}

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

.ranking-panel,
.info-card,
.poster-card,
.tag-card,
.detail-block,
.category-overview-card,
.category-entry,
.player-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
}

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

.ranking-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-panel li span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 900;
  font-size: 13px;
}

.ranking-panel li strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
}

.ranking-panel li em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-entry,
.category-overview-card {
  padding: 18px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-entry:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-entry span,
.category-overview-card span {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.category-entry p,
.category-overview-card h2 {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.category-entry div,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-entry div a,
.category-samples a {
  color: #67e8f9;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.15);
}

.inner-page {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.62);
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.filter-bar input {
  max-width: 320px;
  padding-right: 14px;
}

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

.movie-wide-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.movie-wide-link {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 130px;
}

.movie-wide-cover {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

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

.movie-wide-body {
  padding: 18px;
  align-self: center;
}

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

.ranking-row {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 90px 1fr 72px;
  gap: 18px;
  align-items: center;
  padding: 12px 18px 12px 12px;
}

.ranking-number {
  color: #67e8f9;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.ranking-row img {
  width: 90px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ranking-row em {
  color: #22d3ee;
  font-size: 24px;
  font-weight: 950;
  font-style: normal;
  text-align: right;
}

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

.breadcrumb a:hover {
  color: #22d3ee;
}

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

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

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.12));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.42);
  font-size: 28px;
}

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

.detail-main h1 {
  margin: 28px 0 14px;
  color: var(--white);
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.detail-block {
  margin-top: 18px;
  padding: 24px;
}

.detail-block h2,
.info-card h2,
.tag-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--white);
  font-size: 20px;
}

.detail-block h2::before,
.info-card h2::before,
.tag-card h2::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.detail-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  white-space: pre-line;
}

.review-block {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.64));
}

.detail-side {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 18px;
}

.poster-card,
.info-card,
.tag-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.35);
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px 16px;
  margin: 0;
  font-size: 14px;
}

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

.info-card dd {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  text-align: right;
}

.search-results-section {
  min-height: 360px;
}

.no-result {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  margin-top: 86px;
  padding: 46px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #22d3ee;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

[data-card].is-hidden {
  display: none;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

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

  .hero-content {
    padding-top: 58px;
    padding-bottom: 80px;
  }

  .hero-poster {
    display: none;
  }

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

  .feature-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .ranking-row a {
    grid-template-columns: 48px 76px 1fr;
  }

  .ranking-row em {
    display: none;
  }

  .ranking-row img {
    width: 76px;
    height: 100px;
  }
}

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

  .header-inner {
    height: 62px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy em,
  .header-search {
    display: none;
  }

  .home-hero,
  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-control {
    display: none;
  }

  .hero-search-card {
    margin-top: -28px;
    padding: 18px;
  }

  .hero-search-card form,
  .page-search-form,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .compact-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .page-hero {
    min-height: 230px;
    padding: 26px;
    border-radius: 22px;
  }

  .movie-wide-link {
    grid-template-columns: 120px 1fr;
  }

  .movie-wide-body {
    padding: 13px;
  }

  .filter-bar input {
    max-width: none;
  }

  .detail-block,
  .poster-card,
  .info-card,
  .tag-card {
    padding: 16px;
  }

  .info-card dl {
    grid-template-columns: 64px 1fr;
  }
}
