:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --sky: #38bdf8;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #facc15;
  --green: #22c55e;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.20), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.20), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb 60%, #1d4ed8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.30);
  font-size: 22px;
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-weight: 650;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.80);
  color: #ffffff;
  cursor: pointer;
}

.menu-icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #cbd5e1;
  font-weight: 650;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.15) contrast(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.52) 100%),
    radial-gradient(circle at 26% 28%, rgba(56, 189, 248, 0.26), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
  padding: 86px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.13);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  max-width: 850px;
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
  color: #7dd3fc;
}

.hero-summary {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.70);
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.50);
  background: rgba(30, 41, 59, 0.84);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.30);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.hero-card:hover .hero-poster img {
  transform: scale(1.04);
}

.hero-card-body {
  padding: 20px;
}

.hero-card-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card-text {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.slider-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.55);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-control:hover {
  background: rgba(15, 23, 42, 0.78);
  transform: translateY(-50%) scale(1.04);
}

.slider-prev {
  left: 18px;
}

.slider-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 40px;
  background: #ffffff;
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.36);
  border-block: 1px solid rgba(148, 163, 184, 0.10);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(15, 23, 42, 0.92);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.20), rgba(30, 41, 59, 0.70));
}

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

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

.score {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.92);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  padding: 17px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title a:hover {
  color: #7dd3fc;
}

.movie-text {
  display: -webkit-box;
  min-height: 68px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--soft);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.20), transparent 38%),
    rgba(15, 23, 42, 0.80);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.42);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.ranking-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 15px;
  background: rgba(30, 41, 59, 0.8);
}

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

.ranking-title {
  margin: 0 0 7px;
  font-size: 18px;
}

.ranking-title a:hover {
  color: #7dd3fc;
}

.ranking-text {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.48);
  color: #ffffff;
  padding: 0 14px;
}

.search-input:focus,
.filter-select:focus {
  border-color: rgba(56, 189, 248, 0.72);
}

.hidden-by-filter {
  display: none !important;
}

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

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

.page-hero {
  padding: 56px 0 28px;
}

.page-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-desc {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 17px;
}

.detail-hero {
  padding: 44px 0 48px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

.detail-content h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.detail-lead {
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.info-cell {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
}

.info-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-value {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-weight: 760;
}

.player-section {
  padding: 0 0 64px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.78)),
    rgba(2, 6, 23, 0.25);
  cursor: pointer;
  z-index: 3;
}

.player-overlay-hidden {
  display: none;
}

.play-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  font-size: 38px;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.36);
}

.article-panel {
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.article-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--soft);
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.footer-text,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  margin-top: 30px;
  color: #64748b;
  font-size: 13px;
}

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

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

  .hero-card {
    max-width: 380px;
  }
}

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

  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    padding: 50px 0 70px;
  }

  .hero-card {
    display: none;
  }

  .slider-control {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .grid,
  .grid-wide,
  .category-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .ranking-poster {
    display: none;
  }

  .filter-panel,
  .info-table,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid,
  .grid-wide,
  .category-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title,
  .page-title,
  .detail-content h1 {
    letter-spacing: -0.04em;
  }

  .article-panel {
    padding: 22px;
  }
}
