:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.82);
  --panel-light: #1e293b;
  --line: rgba(148, 163, 184, 0.20);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: rgba(245, 158, 11, 0.86);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.96);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.78);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.92);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-section {
  padding-top: 68px;
}

.hero-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.10)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.10) 42%, rgba(2, 6, 23, 0.44));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 170px;
  max-width: 760px;
  justify-self: start;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.66);
}

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

.primary-btn,
.ghost-btn,
.outline-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.outline-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn,
.outline-link,
.section-link {
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(15, 23, 42, 0.66);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 23, 0.78);
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.58);
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 124px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--accent);
}

.section-block,
.page-wrap {
  padding: 72px 0;
}

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

.section-head h2,
.content-section h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-head p,
.page-hero p,
.content-section p,
.category-card-large p {
  margin: 0;
  color: var(--muted);
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img,
.rank-cover img,
.category-tile img,
.category-large-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .card-cover img,
.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.06);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 42%);
}

.card-type,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-type {
  top: 10px;
  left: 10px;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
}

.card-year {
  right: 10px;
  bottom: 10px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.78);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.rank-content h3,
.category-card-large h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.category-card-large h2 a:hover,
.breadcrumb a:hover {
  color: #fbbf24;
}

.card-body p,
.rank-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.card-body .tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.glow-block {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0f172a;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.16));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 68px;
  color: var(--subtle);
}

.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 10px;
  color: rgba(148, 163, 184, 0.46);
}

.page-hero {
  margin-top: 24px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(30, 41, 59, 0.62)),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 220px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  padding: 0 14px;
}

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

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

.category-large-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.70);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #0f172a;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: rgba(245, 158, 11, 0.92);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 36px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: #0f172a;
}

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

.detail-one-line {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

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

.detail-meta-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.42);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.player-section,
.content-section {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.74);
}

.single-head {
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.96);
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.34);
  font-size: 32px;
}

.video-shell.is-playing .play-layer {
  display: none;
}

.content-section h2 {
  font-size: 28px;
}

.content-section p {
  margin-bottom: 24px;
  font-size: 17px;
}

.empty-result {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner strong {
  color: #fff;
  font-size: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
}

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

.footer-links a {
  color: var(--subtle);
}

.footer-links a:hover {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

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

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

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

  .detail-hero {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding-top: 86px;
    padding-bottom: 220px;
  }

  .hero-search-panel,
  .hero-search,
  .filter-bar,
  .detail-hero,
  .rank-item,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-search-panel {
    bottom: 22px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 188px;
  }

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

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

  .category-card-large {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .detail-poster {
    max-width: 340px;
  }

  .rank-item {
    align-items: start;
  }

  .rank-cover {
    width: 100px;
  }
}

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

  .hero-content,
  .hero-search-panel {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .page-hero,
  .glow-block,
  .detail-hero,
  .player-section,
  .content-section {
    padding: 20px;
    border-radius: 24px;
  }

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

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

  .category-large-cover {
    max-width: 220px;
  }

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

  .play-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
