:root {
  color-scheme: light;
  --orange: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --rose: #e11d48;
  --blue: #2563eb;
  --green: #059669;
  --cyan: #0891b2;
  --indigo: #4f46e5;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.28);
}

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #374151;
  white-space: nowrap;
}

.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;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--orange);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 24px 20px;
  background: #ffffff;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.35), transparent 28%), linear-gradient(135deg, #c2410c 0%, #ea580c 42%, #f59e0b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.45));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 46px;
  padding: 64px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: clamp(18px, 2.2vw, 25px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

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

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

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

.btn-dark {
  color: #ffffff;
  background: #111827;
}

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

.hero-stage {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 470px;
}

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

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 34px;
}

.hero-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-meta,
.meta-row,
.tag-row,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.tag-row span,
.poster-badge,
.detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 74px 0;
}

.section-white {
  background: #ffffff;
}

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

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

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

.section-soft {
  background: var(--soft);
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 26px;
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72));
}

.poster-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.meta-row {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2,
.rank-card h2 {
  margin: 8px 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
  color: var(--orange);
}

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

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

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

.spotlight-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.spotlight-card .poster-link {
  height: 178px;
}

.spotlight-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.spotlight-body h2 {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.2;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.overlay-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.overlay-card-content {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #ffffff;
}

.overlay-card-content h2 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

.overlay-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.library-hero,
.detail-hero {
  padding: 58px 0 42px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.32), transparent 30%), linear-gradient(135deg, #9a3412, #ea580c 55%, #f59e0b);
}

.library-hero h1,
.detail-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.library-hero p,
.detail-heading p {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.library-tools {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 16px;
  margin-bottom: 28px;
}

.search-box,
.filter-box {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.search-box input,
.filter-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-box select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.14);
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed #fdba74;
  border-radius: 22px;
  color: #9a3412;
  background: #fff7ed;
  text-align: center;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 74px 132px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-thumb {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.detail-main {
  background: #f8fafc;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  height: 420px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

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

.detail-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 54px 0 74px;
}

.content-panel,
.side-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #020617;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: #020617;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 0, rgba(0, 0, 0, 0.22) 30%, rgba(0, 0, 0, 0.72) 100%);
}

.player-cover.is-hidden {
  display: none;
}

.play-button-large {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.article-body {
  padding: 34px;
}

.article-body h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.article-body p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 17px;
}

.side-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.related-thumb {
  height: 68px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.related-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0 32px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9ca3af;
}

.footer-grid li + li {
  margin-top: 9px;
}

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

.footer-bottom {
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-stage {
    min-height: 560px;
  }

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

  .hero-poster {
    min-height: 270px;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-card .poster-link {
    height: 230px;
  }

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

  .rank-card {
    grid-template-columns: 56px 96px 1fr;
  }

  .watch-link {
    grid-column: 3;
    justify-self: start;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 22px;
  }

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

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

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

  .library-tools {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    height: 360px;
  }

  .article-body {
    padding: 24px;
  }

  .rank-card {
    grid-template-columns: 48px 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .rank-thumb {
    height: 74px;
  }

  .rank-content p,
  .rank-content .tag-row {
    display: none;
  }

  .watch-link {
    grid-column: 2 / 4;
  }

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