:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.64);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(250, 204, 21, 0.2);
  --line-strong: rgba(250, 204, 21, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --gold: #facc15;
  --amber: #f59e0b;
  --blue: #1e3a8a;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 32%), linear-gradient(135deg, #0f172a 0%, #172554 48%, #0f172a 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  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: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(250, 204, 21, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-name,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--gold), #fde68a, var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #0f172a;
  font-size: 14px;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.35);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--gold);
  background: rgba(250, 204, 21, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: 999px;
  padding: 5px;
}

.header-search input,
.mobile-search input,
.hero-search-panel input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 220px;
  padding: 8px 8px 8px 14px;
}

.header-search button,
.mobile-search button,
.hero-search-panel button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  font-weight: 800;
  cursor: pointer;
  padding: 9px 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.7);
}

.mobile-search input {
  padding: 10px 12px;
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.2)), linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.45) 34%, transparent 70%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h2,
.top-page h1,
.detail-card h1 {
  margin: 0;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  font-size: clamp(42px, 6vw, 72px);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(250, 204, 21, 0.2);
  padding: 7px 12px;
  border-radius: 999px;
}

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

.primary-btn,
.ghost-btn,
.wide-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.primary-btn {
  color: #0f172a;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  padding: 14px 24px;
  box-shadow: 0 18px 44px rgba(250, 204, 21, 0.28);
}

.primary-btn.small {
  padding: 10px 16px;
  white-space: nowrap;
}

.ghost-btn {
  color: var(--gold);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.58);
  padding: 13px 22px;
}

.primary-btn:hover,
.ghost-btn:hover,
.wide-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.22);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.hero-search-panel input {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.hero-search-panel button {
  padding: 14px 22px;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-shortcuts a {
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(250, 204, 21, 0.08);
}

.page-section {
  padding: 70px 0 0;
}

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

.section-head h2,
.rank-panel h2,
.side-panel h2,
.text-block h2,
.site-footer h2 {
  margin: 0;
  color: white;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p,
.top-page p,
.category-overview-card p,
.category-card p,
.site-footer p,
.text-block p,
.movie-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: var(--gold);
  padding: 10px 14px;
  border: 1px solid transparent;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 30px 70px rgba(250, 204, 21, 0.12);
}

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

.poster-wrap img,
.category-strip img,
.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.mini-card:hover img,
.category-card:hover .category-strip img {
  transform: scale(1.08);
}

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

.score-badge,
.rank-num {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  color: #0f172a;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 900;
}

.rank-num {
  left: auto;
  right: 12px;
  min-width: 38px;
  text-align: center;
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  border-radius: 999px;
  color: #0f172a;
  background: var(--gold);
  font-weight: 900;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.meta-line {
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

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

.movie-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.category-band {
  margin-top: 70px;
  padding-bottom: 70px;
  background: rgba(30, 41, 59, 0.3);
}

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

.category-card,
.category-overview-card,
.rank-panel,
.side-panel,
.detail-card,
.top-page {
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 255px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.86);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-radius: 16px;
  font-weight: 900;
  margin-bottom: 18px;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  color: white;
}

.category-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 54px;
}

.category-strip img {
  border-radius: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.list-stack,
.mini-stack,
.rank-list {
  display: grid;
  gap: 14px;
}

.list-card,
.ranked-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.list-card .poster-wrap,
.ranked-card .poster-wrap {
  aspect-ratio: 16 / 11;
  height: 100%;
}

.rank-panel,
.side-panel {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.rank-panel h2,
.side-panel h2 {
  margin-bottom: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mini-card:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateX(3px);
}

.mini-card img {
  height: 58px;
  border-radius: 12px;
}

.mini-card strong {
  display: block;
  color: white;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  color: var(--muted-2);
  font-style: normal;
  font-size: 13px;
  margin-top: 4px;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.07);
  padding: 12px 16px;
}

.top-page {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), transparent 38%), var(--panel);
}

.top-page h1 {
  font-size: clamp(34px, 6vw, 60px);
  max-width: 820px;
}

.top-page > p {
  max-width: 780px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  margin-top: 26px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

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

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.category-overview-head > span {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0f172a;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  font-weight: 900;
}

.rank-grid {
  display: grid;
  gap: 16px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  margin-bottom: 22px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid rgba(250, 204, 21, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45), 0 0 44px rgba(250, 204, 21, 0.12);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  cursor: pointer;
  box-shadow: 0 22px 70px rgba(250, 204, 21, 0.38);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-play-button span {
  margin-left: 4px;
  font-size: 30px;
  font-weight: 900;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: clamp(24px, 4vw, 36px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-tags {
  margin-top: 20px;
}

.quote-line {
  margin: 24px 0;
  padding: 18px 20px;
  color: #fde68a;
  line-height: 1.8;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.12), rgba(245, 158, 11, 0.08));
  border-left: 4px solid var(--gold);
  border-radius: 16px;
}

.text-block {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 24px;
  margin-top: 24px;
}

.text-block h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  font-size: 16px;
}

.detail-side {
  min-width: 0;
}

.empty-state {
  margin-top: 24px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(250, 204, 21, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.5);
}

.site-footer {
  margin-top: 90px;
  padding: 50px 0 30px;
  background: #020617;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.site-footer a:hover {
  color: var(--gold);
}

.footer-brand {
  font-size: 21px;
  margin-bottom: 14px;
}

.footer-brand span {
  color: #0f172a;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 204, 21, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
}

.footer-bottom p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

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

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

  .rank-panel,
  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 86px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    bottom: 20px;
  }

  .hero-search-panel form {
    grid-template-columns: 1fr;
  }

  .hero-search-panel input {
    min-width: 0;
  }

  .hero-dots {
    bottom: 178px;
  }

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

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

  .detail-title-row,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h2,
  .top-page h1 {
    font-size: 36px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .list-card,
  .ranked-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .list-card .card-body,
  .ranked-card .card-body {
    padding: 14px;
  }

  .poster-wrap {
    aspect-ratio: 16 / 12;
  }

  .movie-card:not(.list-card):not(.ranked-card) .poster-wrap {
    aspect-ratio: 16 / 11;
  }

  .detail-card,
  .top-page {
    padding: 22px;
  }

  .video-play-button {
    width: 66px;
    height: 66px;
  }
}
