:root {
  --color-orange: #f97316;
  --color-pink: #ec4899;
  --color-purple: #9333ea;
  --color-blue: #06b6d4;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --shadow-card: 0 20px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 25px rgba(249, 115, 22, 0.15);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 38%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.25);
}

.nav-wrap {
  max-width: var(--max-width);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ea580c, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  box-shadow: var(--shadow-soft);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.main {
  padding-top: 72px;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 50%, #7c3aed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.24), transparent 26%), radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.10) 75%, transparent 75%);
  background-size: auto, auto, 64px 64px;
  opacity: 0.65;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 88px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: clamp(18px, 2.3vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-stage {
  position: relative;
}

.hero-card {
  position: relative;
  display: none;
  min-height: 430px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.34);
  background: #111827;
  isolation: isolate;
}

.hero-card.is-active {
  display: block;
  animation: fadeIn 0.7s ease both;
}

.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #fb923c);
}

.hero-card .hero-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 28px 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 29px;
  line-height: 1.22;
}

.hero-card p {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

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

.hero-dots button.is-active {
  background: #ffffff;
}

.section {
  padding: 66px 0;
}

.section-tinted {
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.9), rgba(255, 247, 237, 0.9));
}

.section-gradient {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(100deg, #f97316, #ec4899, #7c3aed);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  box-shadow: var(--shadow-soft);
}

.section h2,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-kicker,
.page-lead {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.view-more {
  color: #ea580c;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.movie-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #111827, #fb923c 55%, #ec4899);
}

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

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

.poster-wrap img.is-hidden {
  display: none;
}

.card-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .card-layer {
  opacity: 1;
}

.badge,
.score-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.score-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  color: #ffffff;
  background: #f97316;
}

.duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  flex: 1;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.card-body p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.meta span,
.tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ea580c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.feature-card .poster-wrap {
  min-height: 360px;
  aspect-ratio: auto;
}

.feature-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.feature-content p {
  margin: 0 0 18px;
  color: #4b5563;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.horizontal-card .poster-wrap {
  min-height: 150px;
  aspect-ratio: auto;
}

.page-hero {
  padding: 70px 0 38px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #ea580c;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px 150px;
  gap: 12px;
  padding: 18px;
  margin: 28px 0 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 13px 14px;
  outline: 0;
  background: #ffffff;
}

.filters input:focus,
.filters select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.category-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899 58%, #7c3aed);
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -42px;
  top: -42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 27px;
}

.category-card p,
.category-card .category-count {
  position: relative;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

.rank-badge {
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-size: 18px;
}

.rank-cover {
  height: 92px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #111827, #fb923c);
}

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

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-content p {
  margin: 0;
  color: #6b7280;
}

.rank-score {
  padding: 9px 14px;
  border-radius: 16px;
  color: #ea580c;
  background: #fff7ed;
  font-weight: 900;
}

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

.panel {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.10);
}

.panel-pad {
  padding: 28px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.34);
  font-size: 32px;
}

.player-shell.is-playing .player-overlay,
.player-shell.is-ready .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.one-line {
  margin: 20px 0;
  padding: 18px;
  border-left: 5px solid #f97316;
  border-radius: 14px;
  color: #7c2d12;
  background: #fff7ed;
  font-weight: 800;
}

.content-block {
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.sidebar {
  position: sticky;
  top: 94px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card .poster-wrap {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 56%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 64px;
  }

  .main {
    padding-top: 64px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #fed7aa;
  }

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 82px;
  }

  .hero-card img {
    height: 360px;
  }

  .section-head,
  .rank-item {
    align-items: start;
  }

  .section-head {
    flex-direction: column;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .horizontal-card a,
  .rank-item,
  .related-card {
    grid-template-columns: 1fr;
  }

  .horizontal-card .poster-wrap,
  .rank-cover {
    min-height: 190px;
  }

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

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