html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #e5e7eb;
  background: #020617;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 12%, rgba(249, 115, 22, 0.2), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #fb923c, #facc15);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 22px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #fb923c, #fde68a, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 15px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 45%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 42%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 620px) minmax(280px, 420px);
  gap: 48px;
}

.hero-copy {
  padding-top: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #ffffff, #fde68a 50%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 640px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button.primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fb923c, #fde047);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.3);
}

.button.secondary {
  color: #e0f2fe;
  border: 1px solid rgba(103, 232, 249, 0.38);
  background: rgba(8, 47, 73, 0.5);
}

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

.hero-card {
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
}

.hero-card h2 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: 28px;
}

.hero-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
}

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

.hero-meta span,
.movie-meta-line span,
.tag-row span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-meta span,
.info-pill {
  padding: 5px 10px;
  color: #fde68a;
  background: rgba(180, 83, 9, 0.18);
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 64px;
  background: linear-gradient(90deg, #fb923c, #facc15);
}

.page-hero,
.section,
.detail-layout,
.category-grid,
.filter-panel,
.movie-grid,
.search-shell,
.ranking-list {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  padding: 72px 0 34px;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #94a3b8;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-pills a,
.filter-chip {
  padding: 9px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.category-pills a:hover,
.filter-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(249, 115, 22, 0.18);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.46);
  box-shadow: 0 26px 70px rgba(249, 115, 22, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 46%);
  opacity: 0.8;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: linear-gradient(135deg, #fb923c, #facc15);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(135deg, #facc15, #fb923c);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: #a5b4fc;
  font-size: 12px;
}

.movie-meta-line span {
  padding: 2px 7px;
  background: rgba(79, 70, 229, 0.15);
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.42;
}

.movie-card p {
  min-height: 60px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

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

.tag-row span {
  padding: 3px 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 20px;
  color: #cbd5e1;
}

.category-tile .tile-link {
  color: #facc15;
  font-weight: 700;
}

.filter-panel,
.search-shell {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel form,
.search-shell form {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
}

.filter-panel input,
.filter-panel select,
.search-shell input,
.search-shell select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.74);
  padding: 0 13px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-shell input:focus,
.search-shell select:focus {
  border-color: rgba(251, 146, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)), var(--cover-bg);
  background-size: cover;
  background-position: center;
  filter: blur(0);
  opacity: 0.9;
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.detail-copy .lead {
  max-width: 780px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 19px;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 48px auto 0;
}

.player-section h2,
.content-section h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 30px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #0f172a;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #fde047);
  box-shadow: 0 24px 58px rgba(249, 115, 22, 0.42);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.video-shell.is-playing .play-overlay {
  display: none;
  pointer-events: none;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.article-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  padding: 26px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
}

.article-panel p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 17px;
}

.side-panel h2 {
  font-size: 24px;
}

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

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

.related-item img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
}

.related-item strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.related-item span {
  color: #94a3b8;
  font-size: 13px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  padding-bottom: 60px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 146, 60, 0.45);
}

.ranking-index {
  color: #facc15;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

.ranking-row h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
}

.ranking-row p {
  margin: 0;
  color: #94a3b8;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

.copyright {
  text-align: right;
}

.empty-message {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
  text-align: center;
}

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

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

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

@media (max-width: 900px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 86px 0 86px;
  }

  .hero-card {
    max-width: 420px;
  }

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

  .detail-poster {
    max-width: 360px;
  }

  .filter-panel form,
  .search-shell form {
    grid-template-columns: 1fr 1fr;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .header-inner {
    width: min(100% - 24px, 1200px);
  }

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

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

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

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

  .filter-panel form,
  .search-shell form {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 82px minmax(0, 1fr);
  }

  .ranking-row .button {
    grid-column: 1 / -1;
  }

  .movie-card h3 {
    min-height: auto;
  }

  .movie-card p {
    min-height: auto;
  }
}
