:root {
  --bg: #070a12;
  --bg-soft: #111827;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --muted-2: #748096;
  --brand: #f97316;
  --brand-2: #ef4444;
  --accent: #38bdf8;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(56, 189, 248, 0.16), transparent 30rem),
    linear-gradient(180deg, #050712 0%, #0b1020 48%, #070a12 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,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.74);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-size: 22px;
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  margin: 28px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 36px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.28;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.92), rgba(7, 10, 18, 0.64), rgba(7, 10, 18, 0.92)),
    radial-gradient(circle at 28% 32%, rgba(249, 115, 22, 0.26), transparent 24rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero p {
  max-width: 690px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.86;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 10px;
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 32px rgba(239, 68, 68, 0.26);
}

.ghost-button,
.small-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  overflow: hidden;
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

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

.hero-controls {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 30px;
  background: var(--brand);
}

.content-section,
.detail-panel,
.filter-panel,
.page-hero,
.player-section {
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-section,
.filter-panel,
.page-hero,
.detail-panel,
.player-section {
  padding: 30px;
}

.section-heading,
.page-hero,
.detail-layout,
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}

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

.section-heading p,
.page-hero p,
.detail-copy p,
.footer-inner p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(15, 23, 42, 0.95);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.28), transparent),
    #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

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

.poster-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.poster-year {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.62);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body p {
  min-height: 62px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 12px;
}

.tag-row {
  margin-top: 10px;
}

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

.category-tile {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.76);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.38);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: #fed7aa;
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 80px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  padding: 12px;
}

.rank-number {
  color: #fed7aa;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 80px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.ranking-item h3 {
  margin: 0 0 8px;
}

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

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
}

.search-empty {
  display: none;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin: 28px 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.2);
  opacity: 0.22;
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.94), rgba(7, 10, 18, 0.74));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  padding: 44px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  color: #dbeafe;
}

.player-section h2,
.detail-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #020617;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 46px rgba(239, 68, 68, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  padding: 7px 12px;
  font-size: 13px;
}

.player-shell.is-playing .player-status {
  display: none;
}

.article-text {
  display: grid;
  gap: 18px;
  color: #d5dceb;
  line-height: 1.95;
  font-size: 16px;
}

.article-text p {
  margin: 0;
}

.site-footer {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.72);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  align-items: center;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 20px;
}

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: flex;
    flex-wrap: wrap;
  }

  .hero,
  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-poster {
    justify-self: start;
    width: 230px;
  }

  .hero-controls {
    left: 36px;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    padding: 30px;
  }
}

@media (max-width: 720px) {
  main,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .hero,
  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    padding: 26px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-controls {
    left: 26px;
    bottom: 24px;
  }

  .content-section,
  .filter-panel,
  .page-hero,
  .detail-panel,
  .player-section {
    padding: 20px;
    border-radius: 22px;
  }

  .section-heading,
  .page-hero,
  .footer-inner {
    display: block;
  }

  .section-heading p,
  .page-hero p {
    margin-top: 12px;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .ranking-item .small-button {
    grid-column: 2 / 4;
  }

  .ranking-item img {
    width: 70px;
    height: 102px;
  }

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

  .detail-poster {
    width: min(220px, 70vw);
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-body p,
  .tag-row {
    display: none;
  }
}

.category-block {
  display: grid;
  gap: 12px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-links a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  font-size: 13px;
}

.category-links a:hover {
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.42);
}
