:root {
  --color-bg: #020617;
  --color-bg-soft: #0f172a;
  --color-card: #1e293b;
  --color-card-strong: #263449;
  --color-line: rgba(148, 163, 184, 0.18);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-muted-strong: #cbd5e1;
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-soft: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 14px 35px rgba(2, 6, 23, 0.35);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  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,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), #34d399);
  border-radius: 0.75rem;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.brand-copy strong,
.footer-brand {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  margin-top: -0.15rem;
  color: #6ee7b7;
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a {
  color: #e2e8f0;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #6ee7b7;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 20rem;
}

.header-search input,
.mobile-panel input,
.quick-search-panel input,
.filter-bar input,
.filter-bar select,
.search-large input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: white;
  background: rgba(51, 65, 85, 0.9);
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.quick-search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-large input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  background: rgba(15, 23, 42, 0.98);
}

.header-search button,
.mobile-panel button,
.quick-search-panel button,
.search-large button,
.filter-bar button {
  border: 0;
  color: white;
  background: var(--color-primary);
  border-radius: 0.85rem;
  padding: 0.7rem 1rem;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.quick-search-panel button:hover,
.search-large button:hover,
.filter-bar button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: white;
  background: transparent;
  font-size: 1.7rem;
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-panel nav {
  display: grid;
  gap: 0.45rem;
}

.mobile-panel nav a {
  padding: 0.65rem 0.25rem;
  color: #e2e8f0;
}

.hero {
  position: relative;
  min-height: 34rem;
  height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide > img,
.detail-hero > img,
.ranking-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop,
.detail-hero__shade,
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, #020617 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 46rem;
  padding-top: 2rem;
}

.hero-tags,
.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.movie-card__tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: white;
  background: rgba(51, 65, 85, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-tags span:first-child,
.detail-tags span:first-child {
  background: var(--color-primary);
}

.hero h1 {
  margin: 1rem 0 0.8rem;
  max-width: 12ch;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  padding: 0.78rem 1.15rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.24);
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.24);
}

.button-ghost:hover {
  border-color: rgba(16, 185, 129, 0.68);
}

.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow--prev {
  left: 1rem;
  transform: translateY(-50%);
}

.hero-arrow--next {
  right: 1rem;
  transform: translateY(-50%);
}

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

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

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

.page-stack {
  display: grid;
  gap: 4rem;
  padding-block: 4rem;
}

.quick-search-panel,
.filter-bar,
.search-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.quick-search-panel {
  justify-content: space-between;
}

.quick-search-panel strong {
  display: block;
  font-size: 1.15rem;
}

.quick-search-panel p,
.section-heading p,
.category-tile p,
.category-overview-card p,
.page-hero p,
.footer-grid p,
.prose-panel p,
.meta-panel li span,
.ranking-title em {
  color: var(--color-muted);
}

.quick-search-panel form {
  display: flex;
  min-width: min(100%, 32rem);
  gap: 0.6rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--color-primary);
  border-radius: 1rem;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.3);
}

.section-heading h2,
.ranking-panel h2,
.meta-panel h2,
.prose-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0.25rem 0 0;
}

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

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

.movie-card {
  min-width: 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(180deg, rgba(38, 52, 73, 0.98), rgba(15, 23, 42, 0.98));
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(16, 185, 129, 0.2), transparent 58%),
    linear-gradient(145deg, #111827, #020617);
}

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

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

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

.poster-fallback-text {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #d1fae5;
  text-align: center;
  font-weight: 800;
}

.poster-frame.is-missing .poster-fallback-text {
  display: flex;
}

.play-float {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: var(--color-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card__body {
  padding: 1rem;
}

.movie-card--compact .movie-card__body {
  padding: 0.8rem;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 750;
}

.movie-card h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 3.6em;
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__tags span {
  padding: 0.18rem 0.5rem;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.9);
  font-size: 0.75rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.ranking-panel,
.meta-panel,
.prose-panel,
.category-overview-card,
.ranking-table-wrap {
  padding: 1.35rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 5.5rem;
}

.ranking-panel p {
  margin-top: 0.25rem;
  color: var(--color-muted);
}

.mini-movie {
  display: grid;
  grid-template-columns: auto 3.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease;
}

.mini-movie:hover {
  background: rgba(51, 65, 85, 0.72);
}

.mini-rank {
  color: #6ee7b7;
  font-weight: 900;
}

.mini-poster {
  width: 3.6rem;
  border-radius: 0.55rem;
}

.mini-movie strong,
.mini-movie span {
  display: block;
}

.mini-movie strong {
  overflow: hidden;
  color: white;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-movie span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #6ee7b7;
  font-weight: 800;
}

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

.category-tile {
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 52%),
    rgba(15, 23, 42, 0.86);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.56);
}

.category-tile strong,
.category-tile span,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 1.25rem;
}

.category-tile span {
  margin-top: 0.3rem;
  color: #6ee7b7;
  font-weight: 800;
}

.category-tile em {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-style: normal;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  display: flex;
  align-items: center;
  background: #020617;
}

.page-hero--compact {
  min-height: 19rem;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), transparent 42rem),
    linear-gradient(135deg, #020617, #0f172a 58%, #111827);
}

.page-hero .container,
.detail-hero__content {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.25rem 0.72rem;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.16);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 0.8rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-copy p {
  max-width: 47rem;
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #6ee7b7;
}

.filter-bar {
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1 1 22rem;
}

.filter-bar select {
  width: auto;
  min-width: 10rem;
}

.filter-count {
  margin: -2.5rem 0 0;
  color: #6ee7b7;
  font-weight: 800;
}

.category-overview-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.category-overview-card h2 {
  margin: 0;
}

.ranking-table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: middle;
}

.ranking-table th {
  color: #6ee7b7;
  font-size: 0.9rem;
}

.table-rank {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  color: white;
  background: rgba(16, 185, 129, 0.22);
  font-weight: 900;
}

.ranking-title {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.table-poster {
  width: 3.2rem;
  border-radius: 0.5rem;
}

.ranking-title strong,
.ranking-title em {
  display: block;
}

.ranking-title em {
  max-width: 36rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  font-style: normal;
}

.detail-hero {
  min-height: 38rem;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-copy {
  max-width: 52rem;
}

.detail-tags {
  margin: 1rem 0 1.2rem;
}

.player-section {
  scroll-margin-top: 6rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: black;
  box-shadow: var(--shadow-card);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.86));
  text-align: center;
}

.player-start span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.35);
  font-size: 2rem;
}

.player-start strong {
  font-size: 1.45rem;
}

.player-start em {
  color: #cbd5e1;
  font-style: normal;
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  color: #fecaca;
  text-align: center;
  pointer-events: none;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.prose-panel h2:not(:first-child) {
  margin-top: 2rem;
}

.prose-panel p {
  font-size: 1.02rem;
}

.meta-panel ul {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.meta-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-line);
}

.search-large {
  align-items: stretch;
}

.search-large input {
  flex: 1;
}

.sitemap-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.72);
}

.sitemap-list a,
.sitemap-list span {
  display: block;
}

.sitemap-list a {
  color: white;
  font-weight: 800;
}

.sitemap-list span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer {
  color: #cbd5e1;
  background: #020617;
  border-top: 1px solid var(--color-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1.2fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

.footer-grid h4 {
  margin: 0 0 1rem;
  color: #6ee7b7;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 0.8rem;
}

.footer-note {
  color: #6ee7b7 !important;
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid var(--color-line);
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--color-primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

  .header-search {
    margin-left: auto;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .header-search {
    display: none;
  }

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

  .hero {
    height: 78vh;
    min-height: 34rem;
  }

  .hero-copy {
    padding-inline: 2rem;
  }

  .hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .movie-grid,
  .movie-grid--six,
  .movie-grid--four,
  .category-grid,
  .horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .quick-search-panel,
  .quick-search-panel form,
  .filter-bar,
  .search-large,
  .category-overview-card__head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-count {
    margin-top: -2rem;
  }

  .detail-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-poster {
    width: min(70vw, 16rem);
  }

  .sitemap-list {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid--six,
  .movie-grid--four,
  .category-grid,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-inline: 1rem;
  }

  .page-stack {
    gap: 2.5rem;
    padding-block: 2.5rem;
  }
}
