:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1f2937;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(245, 158, 11, 0.36);
  --text: #f9fafb;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --brand: #f59e0b;
  --brand-2: #ea580c;
  --brand-3: #f97316;
  --danger: #ef4444;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  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 34rem),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #030712 44%, #000 100%);
  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;
}

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 rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(0, 0, 0, 0.94), rgba(17, 24, 39, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo {
  font-size: 22px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.36);
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 278px;
}

.nav-search input,
.mobile-panel input,
.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding: 9px 12px;
}

.nav-search button,
.mobile-panel button,
.big-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 13px;
  padding: 9px 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.28);
}

.nav-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.07);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  padding: 10px 12px;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 52%),
    radial-gradient(circle at 18% 28%, rgba(245, 158, 11, 0.2), transparent 24rem);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 14vh;
  width: min(680px, calc(100% - 48px));
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-kicker span,
.section-kicker {
  text-transform: uppercase;
}

.hero-kicker span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.3);
}

.hero-content h1,
.hero-content h2 {
  margin: 20px 0 12px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.hero-content h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-tags {
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn-line {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dots button {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.search-band {
  padding: 28px 0;
  background: linear-gradient(180deg, #030712, #111827);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-inner,
.content-section,
.page-hero,
.footer-inner,
.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  align-items: center;
  gap: 26px;
}

.search-band h2,
.section-head h2,
.article-section h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  padding: 15px 16px;
}

.big-search button {
  padding: 0 20px;
  white-space: nowrap;
}

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

.dark-section {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), rgba(0, 0, 0, 0.6));
}

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

.section-link {
  color: #fbbf24;
  font-weight: 700;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: #fbbf24;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.movie-info {
  padding: 16px;
}

.movie-meta,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
}

.movie-meta span,
.detail-facts span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.07);
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-copy h3 a:hover,
.overview-links a:hover {
  color: #fbbf24;
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fef3c7;
  font-size: 13px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.category-card h3,
.category-title {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 850;
}

.category-card p,
.category-overview-card p,
.site-footer p {
  color: var(--muted);
}

.category-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  filter: blur(8px);
}

.mini-list,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-list span,
.overview-links a {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
}

.overview-links {
  margin-bottom: 20px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  background: rgba(17, 24, 39, 0.86);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  background: rgba(31, 41, 55, 0.92);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-thumb {
  display: block;
  width: 78px;
  height: 104px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

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

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0 0 8px;
  color: var(--muted);
}

.heat-value {
  color: #fbbf24;
  font-weight: 850;
}

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

.page-hero {
  padding: 72px 0 34px;
}

.small-hero > div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(0, 0, 0, 0.9));
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 0.45fr));
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.88);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 13px;
}

.filter-panel select {
  appearance: none;
}

.empty-state {
  display: none;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(17, 24, 39, 0.88);
}

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

.detail-main {
  padding-top: 34px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(22px, 5vw, 52px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 24% 16%, rgba(245, 158, 11, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(0, 0, 0, 0.94));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44);
}

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

.detail-facts,
.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding-top: 36px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 18rem),
    rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 24px 50px rgba(234, 88, 12, 0.36);
}

.article-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.article-section h2 {
  margin-bottom: 14px;
}

.article-section p {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.dark-section-inner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px;
  background: rgba(17, 24, 39, 0.76);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030712;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding: 38px 0 20px;
}

.footer-logo {
  color: #fbbf24;
  font-size: 20px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-inner nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.footer-inner nav a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.14);
}

.copyright {
  padding: 0 0 28px;
  color: var(--muted-2);
  font-size: 14px;
}

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-slider {
    min-height: 76vh;
  }

  .hero-content {
    bottom: 96px;
  }

  .search-band-inner,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .nav-inner,
  .mobile-panel,
  .section-inner,
  .content-section,
  .page-hero,
  .footer-inner,
  .copyright,
  .detail-hero {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 19px;
  }

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

  .hero-actions,
  .big-search,
  .mobile-panel form {
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-four,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb {
    width: 66px;
    height: 88px;
  }

  .heat-value {
    display: none;
  }

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

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