:root {
  --bg: #f8fafc;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --deep: #0f172a;
  --deep-2: #1e293b;
  --amber: #f59e0b;
  --orange: #f97316;
  --gold: #fde68a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #fde68a, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-size: 14px;
}

.desktop-nav a {
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fcd34d;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 190px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
  outline: none;
}

.header-search input::placeholder {
  color: #cbd5e1;
}

.header-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.22);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.75);
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.26), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b 56%, #020617);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  padding: 52px 0;
  position: relative;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: center;
  animation: fadeUp 0.55s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(253, 230, 138, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.36);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 17px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 24px -20px -22px 28px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.55), rgba(6, 182, 212, 0.25));
  filter: blur(4px);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

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

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  background: rgba(15, 23, 42, 0.46);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  background: #f59e0b;
}

.section {
  padding: 58px 0 0;
}

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

.section-title h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #0f172a;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 40px);
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.055);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a,
.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: #92400e;
  background: #fffbeb;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.rank-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.55);
}

.rank-number {
  color: #f59e0b;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b 62%, #020617);
}

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

.page-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 17px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #d97706;
}

.slash {
  margin: 0 9px;
  color: #cbd5e1;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-copy,
.content-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-shell {
  position: relative;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.74));
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
  font-size: 38px;
}

.play-overlay strong {
  max-width: 80%;
  font-size: 20px;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-copy p {
  color: var(--muted);
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 9px;
}

.detail-meta span {
  color: var(--muted);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  color: #92400e;
  background: #fffbeb;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 14px;
  color: #334155;
  text-align: justify;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.empty-hint {
  display: none;
  padding: 36px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
  color: #94a3b8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #fcd34d;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(320px, 100%);
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 62px;
  }

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

  .hero-inner {
    min-height: auto;
    padding: 36px 0;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

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

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

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

  .movie-card h2,
  .movie-card h3 {
    font-size: 15px;
  }

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

  .detail-copy,
  .content-card {
    padding: 20px;
  }
}
