:root {
  --orange: #ea580c;
  --amber: #d97706;
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --rose: #e11d48;
  --emerald: #059669;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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(--text);
  background: #f9fafb;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #fed7aa, #bae6fd);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #374151;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #d97706 50%, #eab308);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 42px;
  align-items: center;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-kicker {
  color: var(--orange);
  background: #ffedd5;
}

.hero h1,
.hero h2 {
  margin: 22px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title-sub {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.08rem;
  max-width: 690px;
  opacity: 0.92;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #f3f4f6;
  color: #4b5563;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-soft {
  background: #fff7ed;
  color: var(--orange);
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  min-height: 500px;
  background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster-caption {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

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

.hero-control,
.hero-dot {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
}

.hero-dot.is-active,
.hero-control:hover,
.hero-dot:hover {
  background: #fff;
  color: var(--orange);
}

.section {
  padding: 74px 0;
}

.section-white {
  background: #fff;
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-amber {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 185px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.category-card h3,
.movie-card h3,
.ranking-title {
  margin: 0;
}

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

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

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

.movie-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  display: block;
}

.poster-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.movie-grid.compact .poster-wrap {
  height: 210px;
}

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

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

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

.poster-badge,
.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  left: 12px;
  bottom: 12px;
  background: var(--blue);
  color: #fff;
}

.poster-year {
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
}

.poster-play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 900;
}

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

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

.movie-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  color: #111827;
  transition: color 0.2s ease;
}

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

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

.movie-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.tag-list {
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-poster {
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

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

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: #fff;
  font-weight: 900;
}

.ranking-body {
  padding: 17px 16px 17px 0;
}

.ranking-title {
  font-size: 1.14rem;
  font-weight: 900;
}

.ranking-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  color: #fff;
  padding: 74px 0;
  background: linear-gradient(135deg, var(--orange), var(--amber) 48%, #eab308);
}

.page-hero.teal {
  background: linear-gradient(135deg, var(--teal), var(--cyan), var(--blue));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
}

.search-input,
.select-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.movie-detail {
  background: #f9fafb;
}

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

.player-card,
.detail-card,
.side-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay-inner {
  display: grid;
  place-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 900;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange);
  font-size: 1.8rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

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

.breadcrumbs a {
  color: var(--orange);
  font-weight: 700;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.detail-card p {
  color: #374151;
  margin: 0 0 16px;
}

.side-card {
  padding: 20px;
}

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}

.detail-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  line-height: 1.25;
}

.related-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 3px;
}

.no-results {
  display: none;
  text-align: center;
  padding: 40px;
  color: var(--muted);
  background: #fff;
  border-radius: 20px;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  padding: 54px 0 28px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid li {
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.92rem;
}

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

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

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

  .hero-poster {
    display: none;
  }
}

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

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

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

  .hero h1,
  .hero h2 {
    font-size: 2.35rem;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-cover img {
    height: 320px;
  }
}
