:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(30, 41, 59, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --orange: #f97316;
  --orange-2: #f59e0b;
  --teal: #14b8a6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.12), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(20, 184, 166, 0.10), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #ffffff;
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.38);
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fb923c, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.85);
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a,
.category-strip a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.category-strip a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.16);
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.filter-bar input {
  width: 240px;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(30, 41, 59, 0.88);
  color: var(--text);
  border-radius: 13px;
  padding: 11px 14px;
}

.nav-search input:focus,
.filter-bar input:focus {
  border-color: rgba(249, 115, 22, 0.88);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: var(--orange);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.category-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.25)),
    linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 20px 0 0;
  color: #d6dee9;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-meta {
  margin-top: 26px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--orange);
  padding: 14px 22px;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  background: #ea580c;
}

.primary-button.slim {
  padding: 11px 18px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
  padding: 14px 20px;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.86);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--orange);
}

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

.page-top {
  padding-top: 34px;
}

.content-section {
  margin: 56px 0;
}

.panel-section,
.article-section,
.player-section,
.page-hero,
.detail-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.58));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-section {
  padding: 28px;
}

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

.section-head h2,
.player-section h2,
.article-section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-link {
  color: #fb923c;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(30, 41, 59, 0.88);
}

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

.poster-link img,
.horizontal-cover img,
.rank-cover img,
.detail-poster img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.horizontal-cover img,
.rank-cover img {
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.horizontal-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.play-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-badge {
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.90);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.70);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: block;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: #fb923c;
}

.movie-body p,
.horizontal-card p,
.rank-info p,
.page-hero p,
.article-section p,
.detail-info .lead,
.category-card-large p,
.site-footer p {
  color: var(--muted);
}

.movie-body p {
  min-height: 48px;
  margin: 9px 0 14px;
  font-size: 14px;
}

.movie-meta {
  gap: 7px;
  margin-top: 8px;
}

.movie-meta span {
  padding: 4px 8px;
  color: #a8b3c4;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.13);
  font-size: 12px;
  font-weight: 700;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  overflow: hidden;
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.70);
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.88);
}

.horizontal-cover,
.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
}

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

.preview-rank {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 110px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 12px 16px;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-weight: 900;
}

.rank-cover {
  height: 74px;
}

.small-button {
  color: #ffffff;
  background: var(--orange);
  padding: 8px 12px;
  font-size: 13px;
}

.page-hero {
  padding: clamp(28px, 5vw, 48px);
}

.small-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.filter-bar input {
  width: min(100%, 520px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #fb923c;
  font-weight: 700;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 60px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 16px;
}

.category-covers img {
  aspect-ratio: 1 / 1;
}

.category-card-large h2 {
  margin: 4px 0 10px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(22px, 5vw, 46px);
  padding: clamp(20px, 4vw, 38px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  min-height: 360px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-info .lead {
  margin: 20px 0;
  font-size: 20px;
}

.detail-meta {
  margin-top: 20px;
}

.detail-tags {
  margin-top: 20px;
}

.player-section {
  margin: 34px 0;
  padding: clamp(18px, 4vw, 30px);
}

.player-box {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 45px rgba(249, 115, 22, 0.45);
  font-size: 30px;
}

.article-section {
  padding: clamp(22px, 4vw, 36px);
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p {
  font-size: 17px;
}

.empty-state {
  border: 1px dashed rgba(249, 115, 22, 0.36);
  border-radius: 18px;
  color: #fed7aa;
  padding: 28px;
  text-align: center;
  background: rgba(249, 115, 22, 0.08);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted-2);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

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

  .preview-rank,
  .category-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    height: 560px;
  }

  .hero-actions,
  .filter-bar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .horizontal-card,
  .category-card-large,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 92px 1fr;
  }

  .rank-item .small-button {
    grid-column: 3;
    width: max-content;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .nav-wrap,
  .category-strip-inner,
  .hero-content,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    height: 520px;
  }

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

  .rank-item {
    grid-template-columns: 36px 76px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-info p,
  .movie-body p {
    min-height: 0;
  }
}
