:root {
  --page-bg: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --muted-2: #98a2b3;
  --card: #ffffff;
  --line: #e5e7eb;
  --orange: #f97316;
  --rose: #ec4899;
  --amber: #f59e0b;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #faf5ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #374151;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.08) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 86px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.32);
  font-weight: 750;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 18px;
  max-width: 720px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

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

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

.detail-side .btn-secondary,
.story-card .btn-secondary {
  color: var(--text);
  background: #f9fafb;
  border: 1px solid var(--line);
}

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

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 48%);
}

.hero-score {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--amber);
  color: #fff;
  font-weight: 900;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

.content-section.tight {
  padding-top: 36px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 24px 22px;
}

.page-hero-card {
  overflow: hidden;
  border-radius: 30px;
  padding: 54px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.95), transparent 32%), linear-gradient(135deg, #111827, #312e81 52%, #701a75);
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  max-width: 780px;
  line-height: 1.85;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.section-more,
.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.section-more:hover,
.text-link:hover {
  color: var(--orange);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

.movie-card:hover .card-poster img,
.wide-card:hover .wide-poster img,
.related-card:hover img {
  transform: scale(1.07);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.02) 52%);
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  color: #fff;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.86);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-body h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h2 a,
.wide-content h2 a,
.related-card a,
.ranking-title a {
  color: inherit;
  text-decoration: none;
}

.card-body h2 a:hover,
.wide-content h2 a:hover,
.related-card a:hover,
.ranking-title a:hover {
  color: var(--orange);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  margin-top: 8px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  color: #9a3412;
  background: #ffedd5;
}

.search-panel {
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.search-box span {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  border: 0;
  padding: 10px 14px;
  border-radius: 13px;
  background: #fff;
  color: #475467;
  font-weight: 750;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #111827, #312e81 54%, #be185d);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.wide-poster {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.wide-content h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.wide-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.wide-top strong {
  color: var(--amber);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr) 108px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.ranking-no {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.ranking-title h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-title p,
.ranking-score span {
  margin: 0;
  color: var(--muted);
}

.ranking-score strong {
  display: block;
  color: var(--amber);
  font-size: 22px;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-side,
.story-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.18);
  transition: opacity 0.24s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

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

.play-button {
  position: relative;
  z-index: 4;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 46px rgba(236, 72, 153, 0.42);
  font-size: 34px;
  line-height: 1;
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.detail-side {
  padding: 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.info-list strong {
  color: var(--text);
}

.rating-bar {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #fef3c7;
}

.rating-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #344054;
  line-height: 1.9;
}

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.related-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.related-card h2 {
  margin: 0;
  padding: 12px;
  font-size: 15px;
  line-height: 1.35;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: #fff;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-about p,
.footer-links a,
.footer-bottom {
  color: #9ca3af;
}

.footer-about p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.footer-links a {
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-poster,
  .detail-side {
    max-width: 420px;
  }

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

@media (max-width: 760px) {
  .navbar {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

  .hero-content {
    padding: 54px 18px 82px;
  }

  .hero-poster {
    display: none;
  }

  .content-section,
  .detail-layout,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero-card {
    padding: 34px 24px;
    border-radius: 24px;
  }

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

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

  .wide-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }

  .ranking-item {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
  }

  .story-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .player-info,
  .story-card {
    padding: 20px;
  }
}

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

  .card-body h2 {
    font-size: 15px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .wide-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
