:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --panel: #ffffff;
  --dark: #020617;
  --slate: #0f172a;
  --red: #ef4444;
  --orange: #f97316;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #020617, #0f172a 48%, #111827);
  color: #fff;
  box-shadow: 0 15px 40px rgba(2, 6, 23, 0.28);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.32);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.main-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.main-links a {
  padding: 22px 0;
  transition: color 0.2s ease;
}

.main-links a:hover {
  color: #f87171;
}

.nav-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  background: rgba(30, 41, 59, 0.92);
  color: #fff;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.nav-search button,
.big-search button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.big-search button,
.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-search button:hover,
.big-search button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(248, 113, 113, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.16));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 44px;
  color: #fff;
}

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

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.mini-tags span {
  background: #fee2e2;
  color: #b91c1c;
}

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

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-weight: 900;
}

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

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

.hero-controls button.is-active {
  width: 52px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.home-search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 46px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-search-panel h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.home-search-panel p {
  margin: 0;
  color: var(--muted);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border-radius: 18px;
}

.big-search button {
  white-space: nowrap;
}

.quick-cats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-cats a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.quick-cats a:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.content-section,
.page-hero,
.filter-bar,
.breadcrumb,
.site-footer .footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 54px 0;
}

.content-section.tinted {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, #fff7ed, #f8fafc);
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  font-size: 0.98rem;
}

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

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

.category-card {
  display: block;
  min-height: 165px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(248, 113, 113, 0.22), transparent 36%),
    linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-card.visual {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

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

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.ranking-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
}

.ranking-row img {
  width: 62px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row strong {
  display: block;
  font-size: 1.02rem;
}

.ranking-row em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.page-main {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.page-hero {
  margin-top: 26px;
  padding: 56px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 18%, rgba(239, 68, 68, 0.20), transparent 32%),
    linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 860px;
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
}

.filter-bar {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 210px 210px;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 16px;
  background: #f8fafc;
}

.page-list {
  padding-top: 34px;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 95% 10%, rgba(248, 113, 113, 0.22), transparent 28%),
    linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 66px rgba(15, 23, 42, 0.24);
}

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

.detail-copy .lead {
  max-width: 780px;
  color: #475569;
  font-size: 1.14rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.facts strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.detail-tags span {
  background: #fee2e2;
  color: #b91c1c;
}

.detail-copy .btn {
  display: inline-flex;
  margin-top: 26px;
}

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

.compact-head {
  margin-bottom: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at 50% 45%, rgba(239, 68, 68, 0.24), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.36);
}

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

.article-section {
  max-width: 980px;
  color: #334155;
  font-size: 1.06rem;
}

.article-section h2 {
  margin-top: 28px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.article-section p {
  margin: 12px 0 0;
}

.related-section {
  padding-top: 24px;
}

.site-footer {
  margin-top: 54px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
}

.footer-logo {
  color: #fff;
  font-size: 1.24rem;
}

.site-footer p {
  margin: 10px 0 0;
  max-width: 520px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

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

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    padding: 18px 16px 24px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.is-open {
    display: block;
  }

  .main-links,
  .nav-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-links a {
    padding: 10px 0;
  }

  .nav-search {
    margin-top: 14px;
  }

  .nav-search input {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 58px 0 92px;
  }

  .hero-poster {
    width: 220px;
    justify-self: start;
  }

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

  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ranking-list,
  .category-grid.large,
  .rank-hero-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 620px) {
  .nav-shell,
  .content-section,
  .page-hero,
  .filter-bar,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .site-footer .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .home-search-panel,
  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

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

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

  .movie-card p {
    display: none;
  }

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

  .ranking-row {
    grid-template-columns: 36px 54px 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .player-start span {
    width: 68px;
    height: 68px;
  }
}
