:root {
  --cyan: #0891b2;
  --blue: #2563eb;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 80px rgba(8, 47, 73, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.22);
}

.nav-shell {
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.logo-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  color: #fff;
  background: transparent;
  outline: 0;
  padding: 11px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  height: 42px;
  padding: 0 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-panel {
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 116, 144, 0.96);
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-links {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-link.active {
  background: rgba(255, 255, 255, 0.22);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  opacity: 0.95;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.32), transparent 30%),
    radial-gradient(circle at 82% 64%, rgba(45, 212, 191, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.76));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.1);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.primary-btn {
  color: var(--cyan);
  background: #fff;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.16);
}

.primary-btn.light {
  color: var(--blue);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.9), rgba(37, 99, 235, 0.92));
  box-shadow: var(--shadow-strong);
}

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

.hero-poster img.is-missing {
  opacity: 0;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.quick-panel {
  position: relative;
  z-index: 5;
  margin-top: -52px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.big-search,
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.big-search input,
.search-panel input,
.search-panel select {
  min-height: 52px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 16px;
  color: var(--slate-900);
  background: #fff;
  outline: 0;
  padding: 0 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.big-search button,
.search-panel button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-tags a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-size: 14px;
  font-weight: 700;
}

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

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

.section-title-line.tight {
  margin-bottom: 14px;
}

.section-title-line h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-title-line a {
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #06b6d4, #2563eb 54%, #0d9488);
}

.poster-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

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

.poster-wrap img.is-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #06b6d4, #2563eb 52%, #0d9488);
}

.poster-fallback span {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 6px 22px rgba(2, 6, 23, 0.24);
}

.poster-shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.7));
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-type {
  left: 12px;
  top: 12px;
  background: rgba(8, 145, 178, 0.9);
}

.badge-year {
  right: 12px;
  top: 12px;
  background: rgba(37, 99, 235, 0.9);
}

.play-float {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card-body {
  padding: 16px 16px 18px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.72;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 24px;
  padding-top: 58px;
}

.feature-card,
.rank-card,
.text-card,
.side-box,
.detail-side-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 420px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #0891b2, #2563eb 48%, #0d9488);
}

.feature-card h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.feature-card p {
  max-width: 560px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.rank-card {
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #ecfeff;
  transform: translateX(4px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
  font-size: 13px;
}

.rank-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-extra {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

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

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

.category-tile,
.category-panel {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--cyan), var(--blue) 54%, var(--teal));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-panel:nth-child(3n + 2),
.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #7c3aed, #2563eb 48%, #06b6d4);
}

.category-panel:nth-child(3n + 3),
.category-tile:nth-child(3n + 3) {
  background: linear-gradient(135deg, #0f766e, #0891b2 48%, #2563eb);
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.category-tile span,
.category-panel span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong,
.category-panel strong {
  font-size: 24px;
  line-height: 1.15;
}

.category-tile em,
.category-panel em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.page-main,
.home-main {
  padding-bottom: 72px;
}

.channel-hero {
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  padding: 56px 0 70px;
}

.channel-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.channel-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumbs,
.detail-back {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a,
.detail-back a {
  color: #fff;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.movie-card.compact .movie-card-body p {
  display: none;
}

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

.movie-card.compact .movie-card-body h3 {
  font-size: 15px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.page-btn,
.page-gap {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--slate-800);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  font-weight: 800;
}

.page-btn.active {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-btn.disabled {
  opacity: 0.38;
  pointer-events: none;
}

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

.sticky-rank,
.detail-aside {
  position: sticky;
  top: 94px;
}

.search-panel {
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(14px);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border-radius: var(--radius-xl);
  color: var(--slate-600);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.empty-state strong {
  color: var(--slate-900);
  font-size: 24px;
}

.detail-main {
  padding-bottom: 72px;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.detail-hero {
  padding: 26px min(40px, 4vw) 42px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 238, 0.26), transparent 30%),
    linear-gradient(135deg, #020617, #083344 45%, #0f766e);
}

.detail-back {
  width: min(1180px, 100%);
  margin: 0 auto 20px;
}

.detail-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
}

.player-card {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(8, 145, 178, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.52));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 34px;
}

.player-start strong {
  font-size: 20px;
}

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

.detail-side-card {
  padding: 16px;
  color: var(--slate-900);
}

.detail-poster {
  border-radius: 20px;
}

.side-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 16px;
}

.side-meta span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #0e7490;
  background: #ecfeff;
  font-weight: 800;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 34px;
}

.detail-title-block,
.text-card,
.side-box {
  padding: 24px;
}

.detail-title-block {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-title-block h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-title-block p {
  margin: 0;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.78;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.text-card {
  margin-top: 18px;
}

.text-card h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.95;
  font-size: 16px;
}

.accent-card {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.detail-aside {
  display: grid;
  gap: 18px;
  align-self: start;
}

.side-box dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-box dt {
  color: #64748b;
  font-weight: 800;
}

.side-box dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.related-mini {
  display: grid;
  gap: 14px;
}

.related-mini .movie-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
}

.related-mini .poster-wrap {
  height: 112px;
  aspect-ratio: auto;
}

.related-mini .movie-meta {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  padding: 48px 0 24px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 460px;
  line-height: 1.75;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 24px;
  align-content: start;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .sticky-rank,
  .detail-aside {
    position: static;
  }

  .detail-side-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .quick-panel {
    margin-top: -34px;
  }

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

  .movie-grid,
  .category-grid,
  .category-grid.wide,
  .channel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .movie-card-body p {
    font-size: 13px;
  }

  .feature-card {
    padding: 26px;
  }

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rank-extra {
    display: none;
  }

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

  .player-card,
  .video-shell,
  .video-shell video {
    min-height: 260px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .category-grid,
  .category-grid.wide,
  .channel-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

  .related-mini .movie-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}
