* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: rgba(31, 41, 55, 0.72);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --brand: #f59e0b;
  --brand-2: #ea580c;
  --brand-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(234, 88, 12, 0.11), transparent 28rem),
    linear-gradient(180deg, #030712 0%, #08111f 42%, #030712 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

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(3, 7, 18, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand {
  font-size: 26px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.24);
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.quick-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.quick-search input,
.mobile-search input,
.filter-panel input,
.search-box input,
.search-box select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.quick-search input {
  width: 150px;
  padding: 10px 14px;
}

.quick-search button,
.mobile-search button,
.search-box button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(3, 7, 18, 0.96);
}

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

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-bg,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.72) 42%, rgba(3, 7, 18, 0.42) 100%),
    linear-gradient(0deg, #030712 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag,
.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--brand-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.page-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: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.46));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-feature-card {
  position: relative;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-feature-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 68%);
}

.hero-feature-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.hero-feature-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
  margin-top: 8px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-thumb {
  height: 78px;
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.58;
  background: #111827;
  transition: opacity 0.2s ease, transform 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
}

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

.hero-thumb.is-active,
.hero-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  outline-color: rgba(245, 158, 11, 0.72);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.page-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  margin: 0;
  color: var(--subtle);
  line-height: 1.8;
  max-width: 760px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(31, 41, 55, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.62);
  background: rgba(31, 41, 55, 0.86);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 0.85;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  font-weight: 900;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
}

.movie-info strong {
  display: -webkit-box;
  min-height: 1.35em;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.meta-line span:first-child {
  color: var(--brand);
}

.movie-desc {
  display: -webkit-box;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-horizontal .movie-card-link {
  flex-direction: row;
}

.movie-card-horizontal .poster-wrap {
  width: 42%;
  min-width: 160px;
  aspect-ratio: 4 / 3;
}

.rank-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(31, 41, 55, 0.86);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.rank-item strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}

.rank-item span {
  color: var(--subtle);
  font-size: 13px;
}

.rank-heat {
  color: #fbbf24;
  font-weight: 900;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 12rem),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.6);
}

.category-card strong {
  font-size: 24px;
}

.category-card p {
  color: var(--subtle);
  line-height: 1.75;
  margin: 12px 0 20px;
}

.category-card span {
  color: var(--brand);
  font-weight: 900;
}

.page-hero {
  padding: 66px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 16%, rgba(245, 158, 11, 0.14), transparent 18rem),
    rgba(15, 23, 42, 0.24);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
}

.filter-panel span {
  white-space: nowrap;
  color: var(--subtle);
  font-weight: 700;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 170px 130px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.search-box input,
.search-box select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.search-box select option {
  background: #111827;
}

.search-box button {
  border-radius: 14px;
}

.detail-hero {
  padding: 54px 0 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-layer span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.play-layer span:last-child {
  font-weight: 900;
}

.detail-card {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
}

.detail-card h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.detail-card p {
  color: var(--muted);
  line-height: 1.85;
}

.content-panel {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
}

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

.content-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.content-stack {
  display: grid;
  gap: 22px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.92);
}

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

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.site-footer p,
.site-footer a {
  color: var(--subtle);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-brand {
  font-size: 20px;
  margin-bottom: 14px;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--subtle);
  border: 1px dashed var(--line);
  border-radius: 24px;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-panel {
    order: -1;
  }

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

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

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

  .brand {
    font-size: 21px;
  }

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

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

  .hero-feature-card,
  .hero-feature-card img {
    min-height: 260px;
    height: 260px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }

  .hero-thumb {
    height: 58px;
    border-radius: 12px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .movie-card-horizontal .movie-card-link {
    flex-direction: column;
  }

  .movie-card-horizontal .poster-wrap {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }

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

  .rank-heat {
    grid-column: 2;
  }

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
