:root {
  --bg: #f7fbff;
  --paper: #ffffff;
  --ink: #102033;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-3: #14b8a6;
  --warm: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f3f8ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  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: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: rgba(37, 99, 235, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
}

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

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

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

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #041221;
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 33, 0.96) 0%, rgba(4, 18, 33, 0.72) 42%, rgba(4, 18, 33, 0.32) 100%),
    radial-gradient(circle at 78% 30%, rgba(6, 182, 212, 0.34), transparent 28rem),
    radial-gradient(circle at 22% 80%, rgba(37, 99, 235, 0.28), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 120px;
  color: #fff;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.detail-tags,
.card-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

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

.hero-poster {
  position: absolute;
  right: max(32px, calc((100vw - 1200px) / 2));
  bottom: 84px;
  z-index: 4;
  width: min(26vw, 310px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(20, 184, 166, 0.42));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

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

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 78px;
  z-index: 8;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 6px;
  height: 6px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #fff;
  animation: cue 1.5s infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.quick-search {
  width: min(1020px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 10;
}

.quick-search form,
.search-large,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search input,
.search-large input,
.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.quick-search input,
.search-large input {
  min-height: 48px;
  padding: 0 18px;
  font-size: 17px;
}

.quick-search button,
.search-large button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
  white-space: nowrap;
}

.content-section,
.category-block {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.page-hero p,
.category-block-head p {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 900;
}

.section-heading h2,
.category-block-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 7rem),
    linear-gradient(135deg, rgba(37, 99, 235, 0.38), rgba(6, 182, 212, 0.32), rgba(20, 184, 166, 0.36));
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
}

.play-mark,
.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

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

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

.mini-chip,
.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.09);
  font-weight: 800;
}

.mini-chip {
  padding: 4px 8px;
  font-size: 11px;
}

.chip {
  padding: 8px 12px;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 26px;
  color: #fff;
  background: #082032;
  box-shadow: var(--soft-shadow);
}

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

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

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

.category-card span {
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

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

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

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

.rank-row a {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.22);
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
}

.rank-thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(6, 182, 212, 0.28));
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.feature-panel {
  position: sticky;
  top: 96px;
  min-height: 360px;
  padding: 34px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.5), transparent 14rem),
    linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: var(--shadow);
}

.feature-panel h2 {
  margin: 0 0 14px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.feature-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.section-more,
.text-link,
.ghost-button {
  color: var(--brand);
  background: rgba(37, 99, 235, 0.08);
  border: 0;
}

.section-more {
  margin-top: 18px;
}

.page-main,
.detail-main {
  padding-bottom: 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.32), transparent 22rem),
    linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0f766e);
}

.small-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-hero div {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin: 0 0 30px;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.search-box,
.select-box {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 180px;
  padding: 0 12px;
}

.search-box span,
.select-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-box input,
.select-box select {
  min-height: 38px;
  color: var(--ink);
}

.empty-state {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.full-rank {
  gap: 10px;
}

.search-section {
  max-width: 1040px;
}

.search-large {
  margin-bottom: 30px;
}

.search-result-title {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 48px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 44px;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 36px -6vw 0;
  z-index: -1;
  border-radius: 36px;
  background:
    radial-gradient(circle at 72% 28%, rgba(6, 182, 212, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(20, 184, 166, 0.08));
}

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

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

.breadcrumb em {
  font-style: normal;
}

.detail-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: #334155;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 750;
}

.detail-cover {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.player-section,
.story-panel,
.related-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.player-section {
  padding: 42px 0 0;
}

.player-section h2,
.story-panel h2 {
  margin: 0 0 22px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 16rem),
    rgba(2, 6, 23, 0.28);
}

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

.play-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 36px;
  padding-left: 6px;
}

.story-panel {
  margin-top: 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.story-panel p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.story-panel h2:not(:first-child) {
  margin-top: 34px;
}

.site-footer {
  margin-top: 80px;
  color: #e2e8f0;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  max-width: 580px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 800;
}

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

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

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

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

  .hero-poster {
    width: 240px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-poster,
  .hero-arrow,
  .scroll-cue {
    display: none;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-content h1 {
    font-size: clamp(40px, 14vw, 68px);
  }

  .quick-search form,
  .search-large,
  .filter-panel,
  .footer-inner,
  .category-block-head {
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
  }

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

  .feature-panel {
    position: relative;
    top: auto;
  }

  .detail-cover {
    width: min(280px, 72vw);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .content-section,
  .category-block,
  .player-section,
  .story-panel,
  .related-section,
  .detail-hero,
  .page-hero div {
    width: calc(100% - 24px);
  }

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

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

  .rank-row a {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .rank-thumb {
    width: 58px;
  }

  .rank-info h3 {
    font-size: 15px;
  }

  .rank-info p {
    font-size: 13px;
  }

  .card-body {
    padding: 11px;
  }

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

  .card-body p {
    display: none;
  }

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

  .play-circle {
    width: 74px;
    height: 74px;
  }

  .story-panel {
    padding: 22px;
  }
}
