:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #00131a;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section-inner,
.detail-wrap {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #cbd5e1;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--white);
  width: 2.6rem;
  height: 2.6rem;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.hero-media::after,
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-media::after {
  background: linear-gradient(0deg, #020617 4%, rgba(2, 6, 23, 0.64) 48%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-media::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.46), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 2rem));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 5rem 0 7rem;
  animation: slideUp 0.62s ease both;
}

.eyebrow,
.breadcrumb,
.movie-tags,
.stat-label {
  color: var(--cyan);
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0.78rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.14);
  font-size: 0.88rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.98;
  color: var(--white);
  letter-spacing: -0.06em;
}

.hero p {
  margin: 1.2rem 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 2rem;
  color: #cbd5e1;
}

.hero-meta span {
  padding: 0.36rem 0.74rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.24);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
  color: #e2e8f0;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(1rem, calc((100vw - var(--container)) / 2));
  bottom: 2rem;
  display: flex;
  gap: 0.7rem;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: var(--white);
}

.hero-arrow {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 2.65rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--cyan);
}

.quick-search {
  position: relative;
  z-index: 4;
  width: min(var(--container), calc(100% - 2rem));
  margin: -3rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--white);
  outline: none;
  padding: 0 1rem;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: rgba(15, 23, 42, 0.34);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 1.35rem;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 22px 60px rgba(8, 145, 178, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.32), transparent 28%),
    linear-gradient(135deg, #0f172a, #082f49);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.play-dot {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.92);
  color: #002032;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.25);
}

.rank-badge {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.text-link:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-line,
.movie-tags {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
}

.movie-meta,
.movie-line {
  color: var(--muted);
}

.movie-line {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card-small {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: stretch;
}

.movie-card-small .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 128px;
  border-radius: 0;
}

.movie-card-small .movie-card-body {
  padding: 0.85rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(8, 47, 73, 0.72)),
    rgba(15, 23, 42, 0.8);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  object-fit: cover;
}

.category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.14));
}

.category-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.category-card p {
  margin: 0.55rem 0 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.category-count {
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.18));
}

.year-row {
  position: relative;
  padding-left: 5rem;
}

.year-badge {
  position: absolute;
  left: 0;
  top: 0.5rem;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 4px solid var(--bg);
  border-radius: 999px;
  background: var(--cyan-dark);
  color: white;
  font-weight: 900;
}

.year-panel,
.info-panel,
.review-panel,
.related-panel,
.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.year-panel {
  padding: 1.2rem;
}

.year-panel h3,
.info-panel h3,
.review-panel h2,
.related-panel h3 {
  margin: 0 0 1rem;
  color: var(--white);
}

.filter-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 0.8rem;
  align-items: center;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
}

.page-lead {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 82px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.58);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(15, 23, 42, 0.84);
}

.rank-number {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.1rem;
}

.rank-cover {
  overflow: hidden;
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0f172a, #082f49);
}

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

.rank-content h3 {
  margin: 0;
  color: white;
}

.rank-content p,
.rank-content span {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.rank-content span {
  line-height: 1.5;
}

.rank-action {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  font-weight: 800;
}

.detail-main {
  padding: 2rem 0 5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 40% 10%, rgba(34, 211, 238, 0.2), transparent 30%),
    #020617;
  box-shadow: var(--shadow);
}

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

.player video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-poster {
  z-index: 2;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 0.25s ease;
}

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 45%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.48), transparent);
  pointer-events: none;
}

.player.is-playing .player-poster,
.player.is-ready .player-poster {
  opacity: 0;
  pointer-events: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

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

.player-play {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  margin: 0 auto 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: white;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.28);
}

.player-status {
  color: #cbd5e1;
}

.detail-title {
  margin: 1.5rem 0 0.9rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.detail-meta span,
.tag {
  display: inline-flex;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.info-panel,
.review-panel,
.related-panel {
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.info-panel p,
.review-panel p {
  color: #cbd5e1;
  line-height: 1.85;
}

.one-line {
  color: var(--cyan) !important;
  font-style: italic;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, #0f172a, #082f49);
}

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

.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  padding-bottom: 0.8rem;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  color: var(--white);
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-list {
  display: grid;
  gap: 0.9rem;
}

.related-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.related-item img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0f172a, #082f49);
}

.related-item strong {
  display: block;
  color: var(--white);
  line-height: 1.4;
}

.related-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-links a {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.66);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
}

.footer-inner p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.2rem;
  color: #cbd5e1;
}

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

.hidden-by-filter {
  display: none !important;
}

.empty-result {
  display: none;
  padding: 2.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-result.is-visible {
  display: block;
}

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

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

@media (max-width: 1120px) {
  .grid-6,
  .grid-5,
  .grid-4,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .sidebar {
    position: static;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

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

  .hero-copy {
    padding: 4rem 0 7rem;
  }

  .hero-controls {
    right: 1rem;
    bottom: 1.3rem;
  }

  .hero-dots {
    bottom: 2rem;
  }

  .search-form,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .grid-6,
  .grid-5,
  .grid-4,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 3rem 0;
  }

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

  .timeline::before {
    display: none;
  }

  .year-row {
    padding-left: 0;
  }

  .year-badge {
    position: static;
    margin-bottom: 1rem;
  }

  .rank-row {
    grid-template-columns: 48px 66px 1fr;
  }

  .rank-action {
    grid-column: 2 / 4;
    text-align: center;
  }

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

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

@media (max-width: 480px) {
  .grid-6,
  .grid-5,
  .grid-4,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-small {
    grid-template-columns: 72px 1fr;
  }

  .detail-meta span,
  .tag {
    font-size: 0.82rem;
  }

  .pagination-links {
    flex-direction: column;
  }
}
