* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.52);
  --line: rgba(251, 191, 36, 0.16);
  --line-strong: rgba(251, 191, 36, 0.34);
  --text: #fef3c7;
  --muted: rgba(253, 230, 138, 0.72);
  --dim: rgba(253, 230, 138, 0.5);
  --white: #ffffff;
  --amber: #fbbf24;
  --amber-deep: #d97706;
  --purple: #581c87;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 28, 135, 0.45), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(217, 119, 6, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.site-logo span:last-child,
.footer-logo {
  font-size: 21px;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fde68a);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.34);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(254, 243, 199, 0.78);
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--amber);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.search-control input,
.filter-bar input,
.filter-bar select {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 14px;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-control input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
  background: rgba(255, 255, 255, 0.12);
}

.header-search button,
.mobile-panel button,
.btn-primary,
.btn-secondary,
.hero-search button,
.play-cover,
.category-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.mobile-panel button,
.btn-primary,
.hero-search button {
  color: #fff7ed;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 16px 42px rgba(217, 119, 6, 0.28);
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.mobile-panel button:hover,
.btn-primary:hover,
.hero-search button:hover,
.play-cover:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.38);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 18px 24px 24px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel input {
  flex: 1;
  padding: 12px 14px;
}

.mobile-panel button {
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.15) 70%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: rgba(254, 243, 199, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.page-meta span {
  padding: 7px 11px;
  color: rgba(253, 230, 138, 0.78);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.btn-secondary:hover,
.category-chip:hover {
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(251, 191, 36, 0.16);
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 28px;
  padding: 7px;
  gap: 8px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 12px 20px;
}

.hero-side {
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(30, 41, 59, 0.32));
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #fde68a;
  font-weight: 900;
}

.hero-picks {
  display: grid;
  gap: 12px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(251, 191, 36, 0.12);
  background: rgba(2, 6, 23, 0.32);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-pick:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.09);
}

.hero-pick img {
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-pick strong {
  display: block;
  margin-bottom: 4px;
  color: #fff7ed;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-pick em {
  display: block;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fbbf24;
}

.section,
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 68px 24px 0;
}

.section-header,
.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #fff7ed;
  letter-spacing: -0.03em;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-header p,
.page-hero p,
.detail-title p,
.category-card p,
.rich-text p {
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  color: var(--amber);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  backdrop-filter: blur(12px);
}

.movie-link:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 24px 70px rgba(217, 119, 6, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(217, 119, 6, 0.16));
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-link:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
  opacity: 0.76;
}

.duration-badge,
.rank-num,
.play-badge,
.score-badge {
  position: absolute;
  z-index: 2;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
}

.rank-num {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.88);
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
  flex: 1;
  padding: 18px;
}

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.tag-list span {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 14px;
  color: rgba(253, 230, 138, 0.63);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
}

.category-strip,
.quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.quick-card {
  padding: 22px;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.74), rgba(88, 28, 135, 0.28));
  border: 1px solid rgba(251, 191, 36, 0.13);
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover,
.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.38);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(88, 28, 135, 0.34));
}

.category-card strong,
.quick-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff7ed;
  font-size: 20px;
}

.category-card p,
.quick-card p {
  margin: 0;
  font-size: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 112px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.rank-row img {
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.row-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde68a, #d97706);
}

.rank-row-text {
  min-width: 0;
}

.rank-row strong,
.rank-row em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row strong {
  color: #fff7ed;
}

.rank-row em {
  margin-top: 6px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.rank-row b {
  color: var(--amber);
  text-align: right;
}

.page-hero {
  align-items: center;
  padding: 54px 0 12px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.search-control,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 22px;
}

.search-control input,
.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 16px;
}

.search-control input,
.filter-bar input {
  flex: 1;
  min-width: 240px;
}

.filter-bar select {
  min-width: 160px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.76);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.56) 100%),
    linear-gradient(0deg, #020617 0%, transparent 60%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.52);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 14px;
}

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

.detail-title h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.detail-title p {
  max-width: 760px;
  font-size: 18px;
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.player-box,
.content-panel,
.related-panel {
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 24px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.player-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16)),
    rgba(15, 23, 42, 0.12);
}

.play-cover strong {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 18px 50px rgba(217, 119, 6, 0.45);
  font-size: 28px;
}

.play-cover span {
  color: #fde68a;
  font-weight: 900;
}

.player-box.is-playing .play-cover {
  display: none;
}

.content-panel,
.related-panel {
  padding: 26px;
  margin-bottom: 24px;
}

.content-panel h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: #fff7ed;
  font-size: 24px;
}

.rich-text p {
  margin: 0 0 18px;
}

.related-panel {
  position: sticky;
  top: 92px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.08);
}

.related-item img {
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong,
.related-item em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-item strong {
  color: #fff7ed;
}

.related-item em {
  margin-top: 7px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.empty-state {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 22px;
}

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

.site-footer {
  margin-top: 72px;
  padding: 42px 24px 28px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.footer-inner p,
.footer-bottom {
  color: var(--dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  font-size: 13px;
}

@keyframes softPulse {
  50% {
    opacity: 0.58;
  }
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  animation: softPulse 1.8s ease-in-out infinite;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.38);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.62);
}

::selection {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.36);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
  }

  .header-search input {
    width: 180px;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-content,
  .rank-layout,
  .detail-wrap,
  .detail-main,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .detail-wrap {
    padding-top: 34px;
  }

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

  .related-panel {
    position: static;
  }

  .section-header,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  .header-inner,
  .hero-content,
  .section,
  .page-section,
  .detail-wrap,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    min-height: 76vh;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .detail-title p {
    font-size: 16px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input {
    min-height: 42px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-strip,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 32px 88px minmax(0, 1fr);
  }

  .rank-row b {
    display: none;
  }

  .rank-row img {
    height: 58px;
  }

  .mobile-panel form,
  .search-control,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-control input,
  .filter-bar input,
  .filter-bar select {
    min-width: 0;
    width: 100%;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
