:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --dark: #0f172a;
  --dark-2: #111827;
  --dark-3: #1e293b;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-dark: #b45309;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: #cbd5e1;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
  transform: translateY(-1px);
}

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

.header-button {
  border: 1px solid rgba(203, 213, 225, 0.22);
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.header-button:hover {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.menu-button {
  display: none;
}

.search-panel {
  display: none;
  padding: 0 0 18px;
}

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

.search-label {
  display: block;
  color: #cbd5e1;
  margin-bottom: 8px;
  font-size: 14px;
}

.search-input,
.local-search,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus,
.local-search:focus,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-results {
  display: none;
  margin-top: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item img {
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(245, 158, 11, 0.26), transparent 26rem),
    radial-gradient(circle at 86% 10%, rgba(239, 68, 68, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.8));
  z-index: 0;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.22) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  filter: saturate(1.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  align-items: center;
  gap: 54px;
  padding: 76px 0 46px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.045em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin-top: 12px;
}

.hero-summary {
  max-width: 690px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.34);
}

.button-secondary {
  color: #fff;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-poster-card {
  position: relative;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.hero-poster-card img {
  height: 520px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-poster-meta {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-poster-meta strong,
.hero-poster-meta span {
  display: block;
}

.hero-poster-meta span {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

.hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding-bottom: 34px;
}

.hero-dot {
  width: 54px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent);
}

.section {
  padding: 66px 0;
}

.section.compact {
  padding: 42px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.category-card,
.panel-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.movie-card:hover,
.category-card:hover,
.panel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-card .poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.055);
}

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

.year-badge,
.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
}

.score-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.94);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-title a:hover {
  color: var(--accent-dark);
}

.movie-line {
  min-height: 56px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag-row span,
.tag-row a,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag-row a,
.pill.hot {
  background: rgba(245, 158, 11, 0.13);
  color: var(--accent-dark);
}

.category-card {
  min-height: 230px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.78)),
    var(--category-image);
  background-size: cover;
  background-position: center;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 12px 0 0;
  color: #dbeafe;
}

.category-card .button-secondary {
  width: max-content;
  margin-top: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin: 26px 0 30px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 70px 1fr;
  gap: 13px;
  align-items: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, border 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-number {
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 950;
  text-align: center;
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.22), transparent 25rem),
    linear-gradient(135deg, #0f172a, #111827 52%, #1e293b);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumbs a {
  color: #fed7aa;
  font-weight: 800;
}

.detail-main {
  background: #020617;
  color: #fff;
  padding: 38px 0 68px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.55));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 24px 54px rgba(245, 158, 11, 0.36);
}

.detail-side {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
}

.detail-side img {
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side h1 {
  margin: 16px 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 950;
}

.detail-side p {
  color: #cbd5e1;
}

.detail-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #e2e8f0;
  font-size: 14px;
}

.detail-meta span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.content-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: clamp(22px, 4vw, 42px);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
}

.content-card .lead {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.sidebar-panel {
  position: sticky;
  top: 104px;
}

.site-footer {
  color: #cbd5e1;
  background: #020617;
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.footer-grid p {
  margin: 16px 0 0;
  color: #94a3b8;
}

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

.footer-grid a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

  .hero-poster-card {
    max-width: 420px;
  }

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

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

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

  .header-row {
    min-height: 68px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 32px;
  }

  .hero-poster-card img {
    height: 430px;
  }

  .hero-controls {
    padding-bottom: 24px;
  }

  .section {
    padding: 46px 0;
  }

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

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

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

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-line {
    min-height: auto;
  }

  .page-hero {
    padding: 52px 0;
  }

  .detail-main {
    padding: 24px 0 44px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
