@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --accent: #f59e0b;
  --accent-2: #b45309;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 38rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.10), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.25);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.text-gradient {
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fef3c7, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 11px 0;
  color: var(--muted-2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 56px;
  padding: 76px max(32px, calc((100vw - 1180px) / 2)) 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(3px) saturate(1.18);
  opacity: 0.42;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.70) 46%, rgba(2, 6, 23, 0.45)),
    linear-gradient(0deg, #020617 0%, transparent 34%, #020617 100%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content h1 {
  margin: 16px 0 12px;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 42px);
  color: #fde68a;
}

.hero-content p,
.page-hero p,
.content-card p,
.overview-body p,
.category-tile p,
.site-footer p {
  color: var(--muted-2);
  line-height: 1.9;
}

.hero-content p {
  max-width: 720px;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.22);
}

.btn-ghost {
  background: rgba(2, 6, 23, 0.42);
}

.btn-soft {
  color: #fde68a;
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.28);
}

.btn-wide {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-weight: 800;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
  cursor: pointer;
}

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

.section-block {
  padding: 64px 0;
}

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

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.rank-title h2,
.content-card h2,
.overview-body h2,
.category-tile h3 {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.18;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading a {
  color: var(--accent);
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(15, 23, 42, 0.95);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.duration {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(2, 6, 23, 0.78);
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fbbf24;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 12px;
}

.hero-tags {
  margin-top: 18px;
}

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

.rank-panel,
.content-card,
.filter-bar,
.overview-card,
.category-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.rank-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.rank-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-title span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rank-title h2 {
  font-size: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.rank-num {
  color: var(--accent);
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
}

.tile-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.tile-covers a {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 3 / 4;
}

.tile-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-covers span {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 8px 8px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
  font-size: 12px;
}

.tile-link {
  color: var(--accent);
  font-weight: 700;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), transparent 42%),
    rgba(2, 6, 23, 0.34);
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding: 68px 0;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 190px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 24px;
}

.filter-bar.wide {
  grid-template-columns: minmax(240px, 1fr) 160px 180px 190px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.52);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.overview-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  opacity: 0.34;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, #020617, transparent 45%, #020617);
}

.detail-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

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

.detail-poster span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #fde68a;
  font-weight: 800;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
}

.lead {
  max-width: 820px;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.9;
}

.detail-tags {
  margin: 20px 0 28px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main {
  display: grid;
  gap: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text);
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  z-index: 2;
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.32);
  padding-left: 5px;
  font-size: 28px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-top: 30px;
  font-size: 26px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--muted-2);
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h3 {
  margin: 0 0 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted-2);
}

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

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

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

  .sticky-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 18px 88px;
  }

  .hero-poster {
    max-width: 260px;
    justify-self: center;
  }

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

  .overview-card,
  .detail-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-shell {
    height: 68px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p,
  .lead {
    font-size: 16px;
  }

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

  .section-block {
    padding: 42px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tile-covers {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-covers {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-card,
  .rank-panel,
  .category-tile {
    padding: 20px;
  }
}
