:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #64748b;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --orange: #f97316;
  --gold: #f59e0b;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  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,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

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

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #ec4899, #8b5cf6 48%, #2563eb);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45), transparent 26%),
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 58px 58px, 58px 58px;
  animation: gradientFlow 16s ease-in-out infinite alternate;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 76px 20px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 44px;
}

.eyebrow,
.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.hero-intro h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.hero-intro p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search {
  display: flex;
  max-width: 590px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow-strong);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  color: #0f172a;
  background: transparent;
}

.hero-search button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.30);
  cursor: pointer;
}

.hero-quick-links,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-quick-links a,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-carousel {
  position: relative;
  min-height: 468px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 310px;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h2 {
  margin: 20px 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

.tag-row span {
  color: #7e22ce;
  background: linear-gradient(90deg, #fce7f3, #ede9fe);
}

.hero-art {
  position: relative;
  min-height: 390px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.36);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-art:hover img {
  transform: scale(1.06);
}

.hero-rating,
.rating-pill,
.detail-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 30px;
  background: #fff;
}

.content-section,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
}

.content-section {
  padding: 64px 20px;
}

.tinted-section {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1280px) / 2 + 20px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 233, 254, 0.55), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 30px;
}

.section-kicker {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.22);
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.related-panel h2 {
  margin: 0;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

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

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

.featured-grid .movie-card:first-child {
  grid-row: span 2;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.movie-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.74));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.poster-hover span {
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
}

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

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  margin: 0 0 9px;
  min-height: 54px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .movie-info h2 {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.movie-info p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

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

.category-tile h2,
.category-tile p,
.category-index {
  position: relative;
  z-index: 1;
}

.category-index {
  align-self: flex-start;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 310px;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scroll-snap-type: x proximity;
}

.compact-card {
  scroll-snap-align: start;
}

.rank-panel,
.related-panel,
.detail-article,
.player-card,
.filter-panel {
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 82px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: linear-gradient(90deg, #fdf2f8, #f5f3ff);
  transform: translateX(4px);
}

.rank-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-row img {
  width: 82px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-meta {
  max-width: 160px;
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-link {
  display: block;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.page-main,
.detail-main {
  padding: 34px 20px 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 58px;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
  box-shadow: var(--shadow-strong);
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 62px);
  color: #fff;
  background: none;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.filter-search input,
.movie-sort {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
  color: #0f172a;
  background: #fff;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #475569;
  font-weight: 800;
  background: #f1f5f9;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.sort-label {
  display: grid;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.search-hidden {
  display: none !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #64748b;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: stretch;
  padding: 36px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(120deg, #111827, #6d28d9 50%, #ec4899);
  box-shadow: var(--shadow-strong);
}

.detail-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 500px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.35);
}

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

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 20px 0 18px;
  color: #fff;
  background: none;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 790px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.9;
}

.detail-tags {
  margin-bottom: 26px;
}

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

.detail-meta-grid div {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.detail-meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-section {
  margin-top: 32px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.38);
  cursor: pointer;
}

.play-button span {
  display: inline-block;
  transform: translateX(3px);
}

.player-overlay strong {
  font-size: 22px;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #334155;
  line-height: 2;
  font-size: 17px;
}

.related-panel {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.related-panel h2 {
  margin-bottom: 18px;
  font-size: 25px;
}

.related-mini {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-mini:hover {
  background: linear-gradient(90deg, #fdf2f8, #f5f3ff);
  transform: translateX(4px);
}

.related-mini img {
  grid-row: span 2;
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.related-mini span {
  font-weight: 900;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-mini small {
  color: var(--text-muted);
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #f9fafb;
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

@keyframes gradientFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-18px, 16px, 0) scale(1.04);
  }
}

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

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

  .rank-panel,
  .related-panel {
    position: static;
  }

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

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

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

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

  .site-logo {
    font-size: 20px;
  }

  .hero-shell {
    padding: 50px 18px;
  }

  .hero-slide {
    position: relative;
    grid-template-columns: 1fr;
  }

  .hero-slide:not(.active) {
    display: none;
  }

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

  .hero-art,
  .hero-art img {
    min-height: 300px;
  }

  .hero-dots {
    position: static;
    margin-top: 14px;
  }

  .movie-grid,
  .four-grid,
  .category-grid,
  .footer-inner,
  .footer-links,
  .filter-panel,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .movie-card:first-child {
    grid-row: auto;
  }

  .filter-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .page-hero {
    padding: 36px 22px;
  }

  .detail-hero {
    padding: 22px;
  }

  .detail-poster-card,
  .detail-poster-card img {
    min-height: 360px;
  }

  .rank-row {
    grid-template-columns: 34px 74px 1fr auto;
  }

  .rank-meta {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    padding: 12px 14px;
  }

  .hero-search {
    display: grid;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-intro h1 {
    font-size: 38px;
  }

  .hero-slide {
    padding: 18px;
    border-radius: 26px;
  }

  .content-section,
  .page-main,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

  .detail-article,
  .related-panel {
    padding: 22px;
  }

  .related-mini {
    grid-template-columns: 92px 1fr;
  }

  .related-mini img {
    width: 92px;
    height: 62px;
  }
}
