:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --soft: #fff7ed;
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: #fbbf24;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

.brand-text {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  white-space: nowrap;
}

.header-search {
  flex: 0 1 440px;
  display: flex;
  background: rgba(51, 65, 85, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder {
  color: #cbd5e1;
}

.header-search button {
  border: 0;
  padding: 0.65rem 1.2rem;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
}

.header-search button:hover {
  background: var(--accent-2);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fbbf24;
  background: rgba(51, 65, 85, 0.95);
}

.hero-section {
  position: relative;
  min-height: clamp(520px, 72vh, 680px);
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1200ms ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 5rem 1.25rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 1rem 0 1rem;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: 180ms ease;
}

.primary-btn {
  padding: 0.85rem 1.45rem;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 0.8rem 1.35rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

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

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 200ms ease;
}

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

.site-main {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-top {
  padding-top: 2rem;
}

.content-section {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2,
.page-title h1,
.story-section h2,
.player-section h2 {
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--accent-2);
}

.text-link:hover,
.section-more:hover {
  color: #92400e;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: 220ms ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--shadow);
}

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

.compact-card .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 500ms ease;
}

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

.card-year {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 1rem;
}

.card-meta,
.rank-meta {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--accent-2);
}

.card-desc {
  min-height: 4.4em;
  margin: 0.55rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-tags,
.detail-tags,
.detail-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.card-tags span,
.detail-tags span,
.detail-meta span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.78rem;
}

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

.category-tile,
.category-panel-cover {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile::before,
.category-panel-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(15, 23, 42, 0.82));
}

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.25rem;
  transition: 200ms ease;
}

.category-tile:hover {
  transform: scale(1.025);
}

.category-tile span,
.category-tile p,
.category-panel-cover span {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-panel-cover span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0.4rem 0 0;
  color: #fffbeb;
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  padding: 0.8rem;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 0.8rem;
  background: #0f172a;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 450ms ease;
}

.rank-info h3 {
  margin: 0;
  font-size: 1.05rem;
}

.rank-info p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.small-rank .rank-item {
  grid-template-columns: auto 72px 1fr;
}

.small-rank .text-link {
  display: none;
}

.page-title {
  margin-bottom: 1.6rem;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.page-title h1 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

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

.category-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.category-panel-cover {
  display: flex;
  align-items: end;
  min-height: 100%;
  padding: 1rem;
  border-radius: 0;
}

.category-panel-body {
  padding: 1.25rem;
}

.category-panel-body h2 {
  margin: 0 0 0.5rem;
}

.category-panel-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.category-samples span {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.filter-bar input,
.filter-bar select {
  min-width: 190px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  outline: 0;
  background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem);
  color: #ffffff;
  background: radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.45), transparent 26%), linear-gradient(135deg, #0f172a, #1e293b 58%, #111827);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.12;
}

.detail-one-line {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 1.08rem;
}

.detail-meta {
  margin: 1rem 0;
}

.detail-meta span,
.detail-tags span {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.13);
}

.player-section,
.story-section {
  margin-top: 2rem;
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.player-section h2,
.story-section h2 {
  margin-bottom: 1rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.82));
  cursor: pointer;
  transition: 180ms ease;
}

.player-overlay:hover {
  background: rgba(2, 6, 23, 0.58);
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.35);
  font-size: 2rem;
  text-indent: 0.2rem;
}

.story-section p {
  margin: 0 0 1.35rem;
  color: #334155;
  font-size: 1.02rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.site-footer {
  margin-top: 4rem;
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-inner p {
  max-width: 580px;
  margin: 0.45rem 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-content: start;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1rem;
  text-align: center;
  color: #94a3b8;
}

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

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

  .split-section,
  .category-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    flex: 1 0 100%;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
  }

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

  .hero-section {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.56), rgba(2, 6, 23, 0.92));
  }

  .hero-content {
    padding-top: 4rem;
  }

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

  .card-body {
    padding: 0.8rem;
  }

  .rank-item {
    grid-template-columns: auto 72px 1fr;
  }

  .rank-item .text-link {
    display: none;
  }

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

  .category-panel-cover {
    min-height: 180px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 320px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }
}
