:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.16);
  --orange: #f97316;
  --orange-strong: #ea580c;
  --red: #dc2626;
  --green: #22c55e;
  --blue: #60a5fa;
  --radius: 24px;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(220, 38, 38, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand.compact {
  margin-bottom: 16px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1.09);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72) 48%, rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 52%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 110px 0 110px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.card-tags,
.detail-tags,
.category-chips,
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.card-tags span,
.detail-tags span,
.category-chips a {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
}

.primary-btn,
.ghost-btn,
.search-box a,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.search-box a {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.primary-btn:hover,
.search-box a:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn,
.section-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.52);
}

.ghost-btn:hover,
.section-link:hover {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.92);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
  left: max(18px, calc((100vw - var(--container)) / 2 - 72px));
}

.hero-arrow.next {
  right: max(18px, calc((100vw - var(--container)) / 2 - 72px));
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 38px;
  background: var(--orange);
}

.content-section {
  padding: 46px 0;
}

.intro-section {
  padding-top: 38px;
}

.section-wrap,
.footer-inner,
.breadcrumb,
.detail-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.narrow-wrap {
  max-width: 920px;
}

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

.section-heading h2,
.ranking-head h2,
.page-hero h1,
.detail-card h1,
.text-panel h2 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-copy h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.search-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #ffffff;
  outline: none;
  background: rgba(2, 6, 23, 0.68);
  padding: 0 16px;
}

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

.category-chips {
  margin-top: 18px;
}

.category-chips a:hover {
  background: rgba(249, 115, 22, 0.86);
}

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

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

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

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.86);
}

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

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.95);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-desc {
  min-height: 3.1em;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  gap: 6px;
}

.card-tags span {
  padding: 4px 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  font-size: 0.74rem;
}

.compact-card .card-desc {
  display: none;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.ranking-panel,
.text-panel,
.detail-card,
.player-shell,
.category-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.ranking-panel {
  padding: 22px;
}

.ranking-head {
  margin-bottom: 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(249, 115, 22, 0.16);
  transform: translateX(4px);
}

.rank-no,
.big-rank {
  color: #fb923c;
  font-weight: 900;
}

.rank-row img {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.86);
}

.rank-title {
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(220, 38, 38, 0.9));
  font-weight: 900;
}

.category-card h3,
.category-card h2 {
  margin: 16px 0 8px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.category-card small {
  color: var(--muted);
  line-height: 1.55;
}

.category-card.large {
  min-height: 320px;
}

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

.category-preview img {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.86);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 320px;
  padding: 96px 0 54px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 1));
}

.page-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.8;
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 72px 110px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.72);
}

.big-rank {
  font-size: 2rem;
  text-align: center;
}

.ranking-card img {
  width: 110px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.86);
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 26px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #000000;
}

.main-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.34);
  font-size: 2rem;
  text-indent: 5px;
}

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

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.08;
}

.lead-text {
  color: var(--muted-strong);
  font-size: 1.06rem;
  line-height: 1.75;
}

.detail-actions {
  margin: 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.72);
}

.info-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.info-box strong {
  color: #ffffff;
  font-size: 1rem;
}

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

.detail-copy {
  padding-top: 32px;
}

.text-panel {
  padding: 26px;
  margin-bottom: 20px;
}

.text-panel h2 {
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.text-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.95;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-strong);
  text-align: center;
  background: var(--panel);
}

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

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 1fr 1fr;
  gap: 32px;
  padding: 44px 0 28px;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-card].hidden-card {
  display: none;
}

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

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

  .hero-arrow.prev {
    left: 18px;
  }

  .hero-arrow.next {
    right: 18px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    width: 100%;
  }

  .search-panel,
  .split-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-card {
    grid-template-columns: 56px 90px 1fr;
  }

  .ranking-card img {
    width: 90px;
  }
}

@media (max-width: 720px) {
  .hero-content {
    justify-content: center;
    padding: 90px 0 88px;
  }

  .hero-arrow {
    display: none;
  }

  .search-box {
    flex-direction: column;
  }

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

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

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

  .rank-row {
    grid-template-columns: 36px 48px 1fr;
  }

  .rank-meta {
    display: none;
  }

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

  .big-rank {
    text-align: left;
  }

  .ranking-card img {
    width: 140px;
  }

  .player-shell,
  .main-video {
    min-height: 240px;
  }

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

  .footer-inner {
    padding-top: 32px;
  }
}

@media (max-width: 420px) {
  .site-nav,
  .section-wrap,
  .footer-inner,
  .footer-bottom,
  .breadcrumb,
  .detail-layout,
  .page-hero-inner,
  .hero-content {
    width: min(100% - 24px, var(--container));
  }

  .movie-grid,
  .side-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }
}
