:root {
  color-scheme: light;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --red: #dc2626;
  --text: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-text,
.footer-brand span:last-child {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.45rem;
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  background: var(--cyan-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 0.85rem;
  background: #f1f5f9;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #334155;
}

.mobile-nav {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  animation: slideDown 0.25s ease both;
}

.mobile-nav-link {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  color: #334155;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.22), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef9ff 42%, #ffffff 100%);
}

.hero-viewport {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.72), rgba(248, 250, 252, 0.92)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.22;
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 640px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 4rem;
  padding: 5rem 0 3rem;
}

.hero-copy {
  max-width: 780px;
  animation: slideUp 0.7s ease both;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  background: linear-gradient(90deg, #0f172a, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 3px 3px 6px rgba(15, 23, 42, 0.08);
}

.hero-lead {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: #475569;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags {
  margin: 1.8rem 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.95);
  color: #0e7490;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.35rem;
  border-radius: 0.8rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.btn-secondary {
  border: 2px solid #d1d5db;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
}

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

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(420px, 100%);
  justify-self: center;
  border: 10px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

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

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

.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 2.3rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-rail {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.rail-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.rail-card img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rail-card span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  left: 0.55rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.rail-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 65%);
  content: "";
}

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

.stat-strip {
  background: #ffffff;
  padding: 2rem 0;
}

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

.stat-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.movie-card:hover,
.category-card:hover,
.content-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 5rem 0;
}

.section-white {
  background: #ffffff;
}

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

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading.center {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p,
.page-hero p,
.content-card p {
  color: var(--muted);
}

.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 55%);
}

.play-float {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  font-size: 1.5rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.rank-badge {
  right: auto;
  left: 0.8rem;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.movie-card-meta span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1rem;
  margin: 0.6rem 0 0.9rem;
  color: #64748b;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.category-cloud a,
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #ffffff;
  color: #334155;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.category-cloud a:hover,
.filter-pill:hover,
.filter-pill.is-active {
  border-color: var(--cyan);
  background: #ecfeff;
  color: var(--cyan-dark);
  transform: translateY(-2px);
}

.rank-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rank-strip a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-strip a:hover {
  border-color: rgba(6, 182, 212, 0.36);
  transform: translateY(-2px);
}

.rank-strip span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-weight: 900;
}

.rank-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-strip em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.page-main {
  padding: 3rem 0 5rem;
}

.search-panel {
  margin-bottom: 2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: #94a3b8;
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 1rem 0 2.6rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.95rem;
  outline: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.filter-pill {
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  box-shadow: none;
}

.empty-result {
  margin: 1rem 0 0;
  color: #dc2626;
  font-weight: 800;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 210px;
}

.category-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #e2e8f0;
}

.category-images img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.category-info h2 {
  margin: 0;
  font-size: 1.45rem;
}

.category-info p {
  color: var(--muted);
}

.category-info span {
  color: var(--cyan-dark);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.1rem 0;
  color: #64748b;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.breadcrumb em {
  color: #334155;
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fafc, #ffffff);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: 3rem;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 1.7rem;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.detail-lead {
  max-width: 850px;
  margin: 1.2rem 0 0;
  color: #475569;
  font-size: 1.18rem;
}

.detail-meta {
  display: grid;
  max-width: 850px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-meta strong {
  display: block;
  margin-top: 0.2rem;
  color: #111827;
  font-size: 0.98rem;
}

.detail-tags {
  margin-top: 1rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: #020617;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.1));
  color: #ffffff;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.32);
  font-size: 2rem;
}

.player-overlay strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.2rem;
}

.content-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-card h2 {
  font-size: 1.8rem;
}

.content-card p:not(.eyebrow) {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
}

.footer-grid h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 0.45rem 0;
  color: #475569;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem;
  border-top: 1px solid #dbe3ee;
  color: #64748b;
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}

.back-top.is-visible {
  display: block;
}

[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

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

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

  .hero-content {
    gap: 2rem;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-slider,
  .hero-viewport,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 4rem 0 2rem;
  }

  .hero-poster {
    max-width: 320px;
    justify-self: start;
  }

  .hero-bottom {
    display: grid;
  }

  .hero-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid,
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .rank-strip,
  .detail-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

  .category-images {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-images img {
    height: 120px;
  }

  .section-heading.between {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1280px);
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-tags span,
  .tag-row span {
    font-size: 0.75rem;
  }

  .stat-grid,
  .detail-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-main {
    padding: 2rem 0 3.5rem;
  }

  .movie-grid {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}
