:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(51, 65, 85, 0.75);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --accent-strong: #fbbf24;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.12), transparent 26rem),
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.08), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-icon {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand strong {
  font-size: 1.18rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a,
.mobile-menu a {
  color: var(--muted-strong);
  padding: 0.65rem 0.9rem;
  border-radius: 0.8rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.55);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(51, 65, 85, 0.65);
  color: #ffffff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.mobile-menu.is-open {
  display: grid;
}

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

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.26)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 55%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
  position: absolute;
  left: max(1.25rem, calc((100vw - var(--container)) / 2 + 1rem));
  right: 1rem;
  bottom: 8vh;
  max-width: 760px;
}

.hero-kickers,
.detail-kickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.kicker-primary,
.kicker-muted {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.kicker-primary {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
}

.kicker-muted {
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.hero p {
  max-width: 680px;
  margin: 0 0 1.5rem;
  color: #dbeafe;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.button-primary,
.button-ghost,
.button-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  min-height: 2.8rem;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.28);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.button-muted {
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--line);
}

.button-primary:hover,
.button-ghost:hover,
.button-muted:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--container)) / 2 + 1rem));
  bottom: 6.2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-dot {
  width: 3rem;
  height: 0.38rem;
  border: 0;
  border-radius: 999px;
  background: #475569;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 4rem;
  background: var(--accent);
}

.page-main,
.detail-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1rem 4.5rem;
}

.section-block {
  margin-bottom: 4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.74rem;
}

.quality-badge {
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.26rem 0.5rem;
  color: #111827;
  background: var(--accent);
}

.rank-badge {
  top: 0.6rem;
  left: 0.6rem;
  min-width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.movie-card-body {
  padding: 0.9rem;
}

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

.movie-card h3 a:hover {
  color: var(--accent-strong);
}

.movie-line {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  background: rgba(51, 65, 85, 0.55);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  font-size: 0.74rem;
}

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

.category-card {
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 12rem),
    rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--accent-strong);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(71, 85, 105, 0.82);
  border-radius: 0.85rem;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.74);
  outline: 0;
  padding: 0 0.85rem;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.68);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.no-results {
  display: none;
  padding: 2rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 1.2rem;
  color: var(--muted);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--accent-strong);
}

.detail-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.8) 58%, rgba(2, 6, 23, 0.64));
  z-index: 1;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr;
  gap: 2rem;
  padding: 2rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

.detail-info h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-lead {
  max-width: 850px;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.info-item {
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem;
}

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

.info-item strong {
  color: #ffffff;
}

.player-section,
.article-section,
.related-section {
  margin-top: 2.4rem;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  z-index: 5;
}

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

.play-circle {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 55px rgba(245, 158, 11, 0.42);
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.06);
}

.player-overlay strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.article-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(15, 23, 42, 0.72);
}

.article-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
}

.article-card p {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  line-height: 1.9;
}

.article-card p:last-child {
  margin-bottom: 0;
}

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

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.8rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-tags {
  flex-direction: row;
  flex-wrap: wrap;
}

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

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.3rem 1rem 2rem;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid rgba(51, 65, 85, 0.52);
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    bottom: 6.5rem;
    left: 1rem;
  }

  .hero-dots {
    left: 1rem;
    right: auto;
    bottom: 3.4rem;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .filter-panel .search-box {
    grid-column: 1 / -1;
  }

  .detail-content {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid.small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .movie-card-body {
    padding: 0.75rem;
  }

  .movie-line {
    display: none;
  }

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

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

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

  .play-circle {
    width: 4rem;
    height: 4rem;
  }
}
