:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(245, 158, 11, 0.22);
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(245, 158, 11, 0.12), transparent 25%),
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, 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: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
}

.logo-text,
.footer-logo {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--soft);
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-light);
}

.header-search {
  position: relative;
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  overflow: visible;
}

.header-search input,
.hero-search-card input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line-soft);
  color: var(--text);
  outline: none;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  height: 38px;
  padding: 0 72px 0 14px;
  border-radius: 999px;
}

.header-search button,
.hero-search-card button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.header-search button {
  position: absolute;
  right: 4px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
}

.header-search input:focus,
.hero-search-card input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 88vw);
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-panel a {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.8);
}

.search-panel a:hover {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
}

.search-panel span {
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--soft);
}

.mobile-menu {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 11px 0;
  color: var(--soft);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.hero-stage {
  position: relative;
  min-height: 70vh;
  height: 720px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #020617 2%, rgba(15, 23, 42, 0.82) 44%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 128px;
  max-width: 1220px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.8;
}

.hero-kicker,
.hero-tags,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.14);
}

.hero-kicker em {
  color: var(--muted);
  font-style: normal;
}

.hero-tags span,
.tag-row span {
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--soft);
  background: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.72);
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--amber-light);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #64748b;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--amber);
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 8;
  width: min(860px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) translateY(50%);
}

.hero-search-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-light);
  font-weight: 900;
}

.hero-search-card form > div:first-of-type {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
}

.hero-search-card button {
  min-width: 112px;
  border-radius: 14px;
}

.hero-search-results {
  left: 18px;
  right: 18px;
  top: calc(100% - 4px);
  width: auto;
}

.section-shell,
.breadcrumb {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 72px 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.ranking-panel h2,
.detail-main h2,
.detail-side h2,
.detail-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  background: linear-gradient(90deg, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading::after {
  content: "";
  height: 2px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.48), transparent);
}

.section-heading a {
  color: var(--amber-light);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover img,
.horizontal-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
  transition: opacity 0.3s ease;
}

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  opacity: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(245, 158, 11, 0.88);
  backdrop-filter: blur(10px);
}

.type-badge {
  left: 12px;
  top: 12px;
}

.year-badge {
  right: 12px;
  top: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 34px;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.card-content h3 a:hover {
  color: var(--amber-light);
}

.card-content p,
.category-card p,
.category-overview-card p,
.detail-one-line,
.detail-main p,
.footer-grid p,
.page-hero p {
  color: var(--soft);
  line-height: 1.8;
}

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

.card-meta {
  justify-content: space-between;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

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

.category-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.54);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.52);
  transform: translateY(-4px);
}

.category-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-light);
  font-size: 22px;
  font-weight: 900;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.category-preview img {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

.horizontal-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.48);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.horizontal-item:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateX(4px);
}

.horizontal-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.horizontal-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.horizontal-item span {
  color: #64748b;
  font-size: 13px;
}

.mini-rank {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 900;
  background: var(--amber);
}

.ranking-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.rank-list .horizontal-item {
  grid-template-columns: 86px 1fr;
  padding: 10px;
}

.rank-list .horizontal-item p {
  display: none;
}

.rank-list .horizontal-item h3 {
  padding-right: 32px;
  font-size: 15px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 36%),
    radial-gradient(circle at 78% 12%, rgba(59, 130, 246, 0.16), transparent 32%),
    rgba(2, 6, 23, 0.46);
}

.page-hero > div {
  width: min(900px, calc(100% - 32px));
}

.page-hero span {
  color: var(--amber-light);
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
}

.overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.54);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  color: var(--amber-light);
  font-size: 26px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.category-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.12);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.45);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
}

.filter-bar select option {
  background: #0f172a;
}

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

.category-movie-grid .movie-card h3 {
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--amber-light);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  font-size: clamp(40px, 5.2vw, 68px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: 19px;
}

.detail-info .primary-button {
  margin-top: 28px;
}

.detail-section h2 {
  margin-bottom: 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(2, 6, 23, 0.7));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 0 46px rgba(245, 158, 11, 0.45);
  transition: transform 0.25s ease;
}

.player-play:hover {
  transform: scale(1.08);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.detail-main,
.detail-side {
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.52);
}

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

.detail-main p {
  margin: 0 0 24px;
  font-size: 16px;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.4);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.compact-card .card-content {
  padding: 12px;
}

.compact-card .card-content h3 {
  font-size: 15px;
}

.compact-card .tag-row,
.compact-card .card-meta,
.compact-card .card-content p {
  display: none;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.84);
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--amber-light);
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  background: var(--amber);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

  .split-section,
  .detail-layout,
  .rankings-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-stage {
    height: 640px;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .category-movie-grid,
  .footer-grid,
  .filter-bar,
  .category-overview-card,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    gap: 18px;
  }

  .detail-wrap {
    padding: 36px 0;
  }

  .detail-poster {
    max-width: 260px;
  }

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

  .horizontal-item {
    grid-template-columns: 118px 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-search-card form > div:first-of-type,
  .hero-actions {
    flex-direction: column;
  }

  .hero-search-card button {
    height: 48px;
  }

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

  .card-content {
    padding: 12px;
  }

  .card-content h3 {
    font-size: 15px;
  }

  .card-content p,
  .tag-row {
    display: none;
  }

  .horizontal-item {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .horizontal-item p {
    display: none;
  }

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