:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --card: #ffffff;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #facc15;
  --blue: #2563eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img.is-missing {
  opacity: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero-slider {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 35%), linear-gradient(135deg, #020617, #0f172a 48%, #111827);
}

.hero-track {
  position: relative;
  min-height: 75vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -36px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: 0.45;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 60px;
  padding: 116px 0 140px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.26);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy h1 span,
.page-hero h1 span,
.detail-copy h1 span {
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tag-cloud span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 35px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(239, 68, 68, 0.38);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.36);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  color: var(--text);
  padding: 13px 15px;
  font-weight: 700;
}

.hero-search input {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

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

.light-section {
  background: #ffffff;
}

.gradient-section,
.rank-section {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 32%), linear-gradient(135deg, #0f172a, #111827);
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.light-heading h2,
.light-heading p,
.gradient-section .section-heading h2,
.gradient-section .section-heading p {
  color: #ffffff;
}

.gradient-section .section-heading p,
.rank-section .section-heading p {
  color: rgba(226, 232, 240, 0.78);
}

.section-more {
  flex: none;
  color: var(--orange);
  font-weight: 900;
}

.gradient-section .section-more,
.rank-section .section-more {
  color: #fed7aa;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gradient-section .movie-card,
.rank-section .movie-card {
  background: rgba(255, 255, 255, 0.96);
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.poster-img {
  transition: transform 0.55s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 50%);
  opacity: 0.82;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.25s ease;
}

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

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

.movie-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card p {
  min-height: 42px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-meta span,
.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  color: #ea580c;
  background: #fff7ed;
}

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

.category-card a {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.5)), var(--category-image) center / cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
}

.category-card p {
  margin: 0 0 10px;
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
}

.category-card h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
}

.category-card span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.category-card strong {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.category-glow {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.3);
  filter: blur(26px);
}

.rank-section {
  padding: 78px 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  transition: 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

.rank-row strong {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.rank-row span {
  min-width: 0;
}

.rank-row b,
.rank-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row b {
  color: #0f172a;
  font-size: 15px;
}

.rank-row em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-row i {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78)), var(--detail-image);
  background-position: center;
  background-size: cover;
}

.small-hero {
  padding: 112px 0 76px;
}

.page-hero-inner p {
  max-width: 760px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

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

.detail-hero {
  padding: 82px 0 70px;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

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

.player-section {
  padding: 64px 0;
  background: #020617;
  color: #ffffff;
}

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

.player-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.player-heading a {
  color: #fed7aa;
  font-weight: 900;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 50px rgba(239, 68, 68, 0.45);
  font-size: 28px;
}

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

.player-intro {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.8;
}

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

.detail-article,
.side-rank {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-article h2,
.side-rank h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
}

.detail-article p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.detail-info-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.detail-info-grid span,
.detail-info-grid strong {
  display: block;
}

.detail-info-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-info-grid strong {
  margin-top: 6px;
  color: #0f172a;
  font-size: 15px;
}

.detail-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tag-cloud span {
  color: #ea580c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.compact-rank {
  grid-template-columns: 1fr;
}

.site-footer {
  background: #020617;
  color: #ffffff;
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  color: #ffffff;
}

.footer-text {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  color: rgba(226, 232, 240, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content {
    gap: 28px;
    padding: 94px 0 150px;
  }

  .hero-poster {
    width: min(260px, 76vw);
    justify-self: center;
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

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

  .nav-shell {
    height: 64px;
  }

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

  .hero-slider,
  .hero-track {
    min-height: 86vh;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .content-section,
  .rank-section {
    padding: 52px 0;
  }

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

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

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

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

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .small-hero,
  .detail-hero {
    padding: 82px 0 54px;
  }

  .detail-article,
  .side-rank {
    padding: 22px;
  }

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

  .rank-row {
    grid-template-columns: 36px 52px minmax(0, 1fr);
  }

  .rank-row i {
    display: none;
  }
}
