
:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111c31;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --text: #ffffff;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #facc15;
  --gold-strong: #eab308;
  --orange: #f97316;
  --radius: 24px;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.12);
  transition: transform 0.5s ease;
}

.logo-link:hover .logo-mark {
  transform: rotate(180deg);
}

.logo-text {
  font-size: clamp(18px, 2vw, 24px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.25s ease, background 0.25s ease;
}

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

.header-search {
  width: 190px;
}

.header-search input,
.hero-search input,
.filter-input,
.search-box input {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  outline: none;
  transition: border 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-input:focus,
.search-box input:focus {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 12px;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 60px 70px, #fff, transparent), radial-gradient(1px 1px at 50px 50px, #fff, transparent), radial-gradient(1px 1px at 130px 80px, #fff, transparent), radial-gradient(2px 2px at 90px 10px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starMove 200s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.56) 52%, #0f172a 100%);
}

.hero-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -12vw;
  top: 10vh;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.1) 38%, transparent 68%);
  filter: blur(12px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-heading p,
.page-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

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

.btn-primary,
.btn-ghost,
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  min-height: 52px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--gold-strong), var(--orange));
  color: #fff;
  box-shadow: 0 18px 36px rgba(234, 179, 8, 0.18);
}

.btn-ghost {
  min-height: 52px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-small {
  padding: 9px 16px;
  background: rgba(250, 204, 21, 0.12);
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.22);
}

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

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-search input {
  min-width: 0;
  padding: 13px 18px;
  border: 0;
  background: transparent;
}

.hero-search button,
.search-box button {
  border: 0;
}

.hero-showcase {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 32px;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(0, 0, 0, 0.24) 36%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.hero-slide-content h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.slide-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.slide-meta span,
.card-meta span,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.is-active {
  width: 28px;
  background: var(--gold);
}

.main-content,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.section-heading span,
.page-hero p,
.detail-title p {
  display: block;
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 24px 46px rgba(234, 179, 8, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.featured-grid .poster-link {
  aspect-ratio: 4 / 5;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
}

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.92);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body {
  padding: 18px;
}

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

.card-body h3 a:hover,
.ranking-content h3 a:hover,
.detail-copy a:hover {
  color: var(--gold);
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--soft);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 10px;
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.92));
}

.category-card h3,
.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.category-card span {
  color: var(--gold);
  font-weight: 800;
}

.rankings-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 86px 60px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.44);
  background: rgba(30, 41, 59, 0.78);
}

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

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

.ranking-number {
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-content h3 {
  margin: 8px 0;
  font-size: 21px;
}

.ranking-content p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  margin: 34px 0 28px;
  padding: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: radial-gradient(circle at right top, rgba(250, 204, 21, 0.16), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.88));
  box-shadow: var(--shadow);
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 28px;
}

.filter-input,
.search-box input {
  max-width: 460px;
  padding: 14px 18px;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 28px 0 0;
}

.search-box input {
  max-width: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  margin: 34px 0 40px;
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #fff;
  border: 0;
  background: #020617;
  cursor: pointer;
}

.player-poster[hidden] {
  display: none;
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(0, 0, 0, 0.76));
}

.player-button {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(234, 179, 8, 0.34);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.detail-title h1 {
  margin-bottom: 18px;
}

.detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 30px;
  margin-bottom: 70px;
}

.detail-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.detail-panel {
  padding: 30px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.9;
}

.side-panel {
  padding: 24px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.info-list dt {
  color: var(--soft);
}

.info-list dd {
  margin: 0;
}

.related-grid {
  margin-bottom: 76px;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  padding: 36px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #0f172a, #111827 48%, #0f172a);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 520px;
  color: var(--soft);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: flex-end;
  color: var(--muted);
}

.footer-bottom {
  padding: 18px;
  color: var(--soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

@keyframes starMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-200px);
  }
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .hero-showcase {
    min-height: 540px;
  }

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    padding: 56px 0;
  }

  .hero-showcase {
    min-height: 470px;
  }

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

  .page-hero {
    padding: 38px 24px;
  }

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

  .ranking-number {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    align-self: start;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.12);
    font-size: 18px;
  }

  .ranking-cover {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    margin-top: 48px;
  }

  .ranking-content {
    grid-column: 2 / 3;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
  }

  .hero {
    min-height: calc(100vh - 66px);
  }

  .hero-actions,
  .hero-search,
  .page-actions,
  .search-box {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button,
  .search-box button,
  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .hero-slide-content {
    padding: 24px;
  }

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

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