:root {
  --page-bg: #070a12;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(255, 255, 255, 0.10);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #ef4444;
  --accent-deep: #b91c1c;
  --accent-hot: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 68, 68, 0.24), transparent 26rem),
    radial-gradient(circle at 80% 8%, rgba(249, 115, 22, 0.14), transparent 32rem),
    linear-gradient(180deg, #050710 0%, #0b1020 46%, #070a12 100%);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 16px 42px rgba(239, 68, 68, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #fff, #fecaca 48%, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 9px;
  background: #fff;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 30px 24px 18px;
}

.hero-inner {
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(7, 10, 18, 0.96));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  align-items: center;
  gap: 54px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  background-image:
    linear-gradient(90deg, rgba(7, 10, 18, 0.96), rgba(7, 10, 18, 0.70), rgba(7, 10, 18, 0.92)),
    var(--poster),
    radial-gradient(circle at 74% 30%, rgba(239, 68, 68, 0.18), transparent 18rem);
  background-size: cover;
  background-position: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.13);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  max-width: 820px;
}

.hero h2 {
  font-size: clamp(30px, 4vw, 56px);
  max-width: 760px;
}

.hero-copy p {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta,
.pill-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.pill-nav a {
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.20);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 16px 38px rgba(239, 68, 68, 0.28);
}

.btn-ghost {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-poster {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78)),
    var(--poster),
    linear-gradient(135deg, #1e293b, #7f1d1d);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.50);
}

.poster-glow {
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  font-size: 22px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

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

.left-heading {
  align-items: start;
  justify-content: start;
  flex-direction: column;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 42px);
}

.section-heading a {
  color: #fecaca;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.category-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.45);
}

.category-card span,
.category-title {
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p,
.content-card p,
.search-row p,
.rank-row p {
  color: var(--text-soft);
  line-height: 1.75;
}

.mini-links,
.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mini-links a,
.footer-links a {
  color: var(--text-soft);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-link,
.rank-poster,
.detail-cover {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
    var(--poster),
    linear-gradient(135deg, #1e293b, #7f1d1d 52%, #431407);
  background-size: cover;
  background-position: center;
}

.poster-link {
  position: relative;
  display: block;
  min-height: 262px;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  width: 46px;
  height: 46px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h2,
.rank-row h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.36;
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.movie-desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  color: #fed7aa;
  font-size: 12px;
  padding: 5px 8px;
}

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

.movie-card-compact .poster-link {
  min-height: 190px;
}

.rank-entry {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rank-copy {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.80));
}

.rank-copy h2 {
  font-size: 34px;
  margin: 14px 0;
}

.rank-copy p {
  color: var(--text-soft);
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 30px auto 0;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 68, 68, 0.20), transparent 23rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(7, 10, 18, 0.94));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.category-hero .pill-nav {
  margin-top: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 9px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.rank-poster {
  position: relative;
  height: 142px;
  border-radius: 18px;
  overflow: hidden;
}

.rank-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
}

.search-box {
  margin-top: 26px;
  max-width: 720px;
}

.search-input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 999px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 22px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 90px 120px 100px minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.search-row a {
  font-weight: 850;
}

.search-row span {
  color: var(--text-muted);
}

.search-row p {
  margin: 0;
}

.search-row.is-hidden,
.empty-result {
  display: none;
}

.empty-result.is-visible {
  display: block;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(7, 10, 18, 0.94), rgba(7, 10, 18, 0.76)),
    var(--poster),
    radial-gradient(circle at 18% 18%, rgba(239, 68, 68, 0.20), transparent 20rem);
  background-size: cover;
  background-position: center;
}

.detail-cover {
  height: 510px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.44);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #fecaca;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 66px);
}

.lead-text {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.82;
}

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

.player-section {
  padding-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  min-height: 640px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72)),
    var(--poster),
    linear-gradient(135deg, #0f172a, #450a0a);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.12), rgba(7, 10, 18, 0.72));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 20px 54px rgba(239, 68, 68, 0.36);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 22px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.large-tags span {
  font-size: 14px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 30px;
}

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

.site-footer p {
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 480px;
}

.site-footer h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-slide,
  .detail-hero,
  .rank-entry {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

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

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

  .rank-copy {
    position: static;
  }

  .search-row {
    grid-template-columns: 1fr 80px 110px;
  }

  .search-row p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero,
  .section-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 22px 78px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 30px;
  }

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

  .hero-poster {
    min-height: 290px;
    border-radius: 22px;
  }

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

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

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

  .page-hero,
  .detail-hero {
    margin: 20px 16px 0;
    padding: 28px;
    border-radius: 24px;
  }

  .detail-cover {
    height: 420px;
  }

  .video-shell {
    min-height: 360px;
    border-radius: 20px;
  }

  .rank-row {
    grid-template-columns: 92px 1fr;
  }

  .rank-poster {
    height: 122px;
  }

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