:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --white: #ffffff;
  --black: #020617;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  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(--ink);
  background: #f5f7fb;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--orange-dark);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
  font-size: 14px;
}

.brand-text {
  font-size: 24px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #374151;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 180px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

.header-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.header-search button,
.primary-button,
.play-action,
.search-panel button {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.header-search button {
  padding: 10px 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.play-action:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  color: var(--orange-dark);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  color: #374151;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #f97316 0%, #ef4444 45%, #7c2d12 100%);
  color: var(--white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(1px);
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -80px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-meta,
.hero-tags,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.hero-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  min-height: 450px;
}

.hero-poster {
  position: absolute;
  inset: 0 30px 0 0;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.35);
  transform: rotate(1.2deg);
}

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

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

.hero-float-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  width: min(340px, 80%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
}

.hero-float-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-float-card p {
  margin: 0;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

.hero-dot.active {
  background: var(--white);
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: var(--white);
}

.section.dark {
  background: #111827;
  color: var(--white);
}

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

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

.section-title h2,
.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.dark .section-title p,
.dark .page-title p {
  color: #cbd5e1;
}

.more-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.movie-card:hover img,
.spotlight-card:hover img,
.rank-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 42px;
  background: rgba(0, 0, 0, 0.0);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 16px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--orange-dark);
}

.card-line {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.tag-row span,
.detail-tags span,
.filter-chip,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
}

.spotlight-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.spotlight-card.large {
  min-height: 500px;
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82));
}

.spotlight-content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
}

.spotlight-content h2,
.spotlight-content h3 {
  margin: 10px 0;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
}

.category-tile div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.rank-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-body {
  padding: 16px;
}

.rank-body h2,
.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-body p {
  margin: 0 0 10px;
  color: #d1d5db;
  font-size: 14px;
}

.rank-meta {
  color: #fef3c7;
  font-size: 13px;
}

.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #fee2e2);
}

.page-title {
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin: 26px 0 0;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.search-panel button {
  padding: 0 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--white);
  background: var(--orange);
}

.detail-hero {
  padding: 42px 0;
  background: linear-gradient(135deg, #111827, #7c2d12);
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-info p {
  color: #e5e7eb;
  font-size: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.detail-tags span {
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.24);
}

.player-section {
  padding: 44px 0 18px;
  background: #0f172a;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.player-cover-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.55));
}

.player-cover-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-action {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border: 5px solid rgba(255, 255, 255, 0.72);
}

.content-panel {
  padding: 48px 0;
}

.article-card {
  padding: 30px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin-top: 0;
  font-size: 28px;
}

.article-card p {
  color: #374151;
}

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

.info-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-item strong {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.info-item span {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-year {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--orange);
}

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-slider {
    min-height: 820px;
  }

  .hero-art {
    min-height: 360px;
  }

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

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

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

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

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

  .hero-slider {
    min-height: 780px;
  }

  .hero-slide {
    gap: 24px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-poster {
    inset: 0;
  }

  .hero-float-card {
    left: 14px;
    right: 14px;
    width: auto;
  }

  .section {
    padding: 42px 0;
  }

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

  .card-grid,
  .rank-list,
  .spotlight-grid,
  .category-grid,
  .footer-grid,
  .info-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-card img {
    width: 120px;
    height: 130px;
  }

  .detail-cover img {
    aspect-ratio: 16 / 10;
  }

  .article-card {
    padding: 22px;
  }
}
