:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #22c55e;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

button,
input {
  font: inherit;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.card-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.animate-slide-up {
  animation: slideUp 0.65s ease both;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.btn-primary,
.btn-secondary,
.rank-action,
.inline-more,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.btn-primary {
  padding: 13px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.btn-primary.small {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-primary:hover,
.rank-action:hover,
.inline-more:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(6, 182, 212, 0.28);
}

.btn-secondary {
  padding: 12px 22px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(6, 182, 212, 0.24);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

.brand-name {
  font-size: 23px;
  letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #374151;
  border-radius: 12px;
  font-weight: 650;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.nav-search {
  width: 220px;
}

.nav-search input,
.filter-search input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-search input:focus,
.filter-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ecfeff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--cyan-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 46%, #f0fdfa 100%);
}

.hero-pattern,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 46px;
  align-items: center;
}

.hero-copy h1 {
  margin: 10px 0 22px;
  font-size: clamp(46px, 6.5vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 3px 3px 6px rgba(15, 23, 42, 0.14);
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 19px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: var(--cyan-dark);
  background: rgba(236, 254, 255, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.95);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

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

.hero-poster,
.detail-poster,
.category-cover,
.category-overview-cover,
.movie-cover,
.rank-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.hero-poster {
  min-height: 500px;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.hero-poster::after,
.movie-cover::after,
.category-cover::after,
.rank-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 54%);
  opacity: 0.86;
}

.hero-movie-text {
  align-self: end;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-movie-text span {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-movie-text h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
}

.hero-movie-text p {
  margin: 0 0 18px;
  color: #4b5563;
}

.hero-controls {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(8, 145, 178, 0.25);
  border-radius: 999px;
}

.hero-dots button.active {
  width: 26px;
  background: var(--cyan);
}

.stats-section {
  padding: 42px 0 18px;
  background: var(--white);
}

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

.stat-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  color: var(--cyan-dark);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

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

.section-block.soft {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head.light .section-title,
.section-head.light .section-subtitle {
  color: var(--white);
}

.section-more {
  color: var(--cyan-dark);
  padding: 10px 14px;
  background: #ecfeff;
}

.light-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.category-movie-grid {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.movie-cover {
  display: block;
  height: 260px;
}

.movie-card.compact .movie-cover {
  height: 210px;
}

.movie-cover img,
.category-cover img,
.category-overview-cover img,
.rank-cover img,
.hero-poster img,
.detail-poster img,
.player-cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover .category-cover img,
.category-overview-card:hover .category-overview-cover img,
.ranking-item:hover .rank-cover img,
.hero-poster:hover img,
.detail-poster:hover img {
  transform: scale(1.08);
}

.movie-region {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.88);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

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

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover {
  color: var(--cyan-dark);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 13px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-cover {
  display: block;
  height: 180px;
}

.category-cover span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  padding: 16px 16px 4px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 18px;
}

.category-samples a {
  color: var(--cyan-dark);
  background: #ecfeff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.gradient-section {
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
}

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

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

.ranking-list.full {
  margin-top: 28px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 84px 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.preview .ranking-item {
  grid-template-columns: 76px 46px minmax(0, 1fr);
}

.preview .rank-action {
  display: none;
}

.rank-cover {
  width: 84px;
  height: 112px;
  border-radius: 14px;
}

.preview .rank-cover {
  width: 76px;
  height: 98px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  font-weight: 900;
}

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

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

.rank-action,
.inline-more {
  padding: 10px 14px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #f0fdfa);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.category-overview-cover {
  height: 220px;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-samples.wide {
  padding: 0 0 16px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-heading h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.filter-heading p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-hero {
  padding: 60px 0;
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  height: 430px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.detail-intro h1 {
  margin: 16px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-intro p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

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

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.player-section {
  padding-top: 52px;
  padding-bottom: 48px;
  background: #0f172a;
}

.player-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 1080px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
}

.player-cover {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(
    circle at center,
    rgba(6, 182, 212, 0.14),
    rgba(0, 0, 0, 0.55)
  );
}

.player-cover.is-hidden {
  display: none;
}

.play-ring {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.34);
}

.detail-content-section {
  background: var(--soft);
}

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

.detail-content,
.detail-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.detail-content {
  padding: 30px;
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

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

.movie-dl div {
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
}

.movie-dl dt {
  color: var(--muted);
  font-size: 13px;
}

.movie-dl dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-side {
  padding: 22px;
}

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

.side-list .movie-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.side-list .movie-cover {
  height: 100%;
  min-height: 150px;
}

.side-list .movie-info {
  padding: 14px;
}

.side-list .movie-tags {
  display: none;
}

.site-footer {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-logo .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h3 {
  margin: 0 0 8px;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 18px 16px;
  color: #64748b;
  border-top: 1px solid #dbe3ef;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.back-top.show {
  display: inline-flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

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

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

  .nav-shell {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    padding: 54px 0 56px;
  }

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

  .hero-stage {
    min-height: 760px;
  }

  .hero-poster {
    min-height: 430px;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .ranking-list.preview,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    max-width: 360px;
    height: 480px;
  }

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

@media (max-width: 640px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-stage {
    min-height: 700px;
  }

  .hero-poster {
    min-height: 360px;
    border-radius: 22px;
  }

  .hero-movie-text {
    padding: 20px;
  }

  .hero-controls {
    right: 16px;
    bottom: 16px;
  }

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

  .section-head,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .ranking-list.preview,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .movie-card.compact .movie-cover {
    height: 300px;
  }

  .ranking-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    position: absolute;
    margin-left: 8px;
    margin-top: -52px;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

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

  .detail-poster {
    width: 100%;
    max-width: none;
    height: 420px;
  }

  .movie-dl {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px;
  }

  .side-list .movie-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}
