:root {
  --fog-950: #070a0f;
  --fog-900: #0d1117;
  --fog-850: #141a22;
  --fog-800: #212529;
  --fog-700: #343a40;
  --fog-500: #6c757d;
  --fog-400: #adb5bd;
  --fog-300: #ced4da;
  --fog-100: #f1f3f5;
  --fog-50: #f8f9fa;
  --frost-600: #005ab3;
  --frost-500: #0073e6;
  --frost-400: #1a8cff;
  --frost-300: #66b3ff;
  --mist-800: #243b53;
  --card: rgba(33, 37, 41, 0.88);
  --card-soft: rgba(36, 59, 83, 0.42);
  --line: rgba(173, 181, 189, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--fog-100);
  background:
    radial-gradient(circle at top left, rgba(0, 115, 230, 0.16), transparent 34rem),
    linear-gradient(180deg, #0d1117 0%, #0a0f16 42%, #070a0f 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  box-shadow: 0 12px 30px rgba(0, 115, 230, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fog-300);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(0, 115, 230, 0.18);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(33, 37, 41, 0.7);
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 70vh;
  margin: 32px auto 36px;
  overflow: hidden;
  border-radius: 28px;
  background: #111821;
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.82) 38%, rgba(13, 17, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 17, 23, 0.72) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 56px clamp(24px, 6vw, 72px);
}

.hero-copy {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 140, 255, 0.38);
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.2);
  color: var(--frost-300);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: var(--fog-300);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
  color: var(--fog-300);
}

.meta-line span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.48);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-weight: 800;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  color: white;
  box-shadow: 0 14px 34px rgba(0, 115, 230, 0.3);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fog-100);
  background: rgba(33, 37, 41, 0.72);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.76);
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
  z-index: 4;
}

.hero-control:hover {
  background: rgba(0, 115, 230, 0.65);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(206, 212, 218, 0.46);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dots button.active {
  width: 36px;
  background: var(--frost-400);
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 115, 230, 0.75), transparent);
}

.section-more {
  color: var(--frost-300);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 140, 255, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111821;
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 17, 23, 0.92) 100%);
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 115, 230, 0.92);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.22s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.78);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--frost-300);
  font-size: 12px;
  font-weight: 800;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--fog-50);
  font-size: 16px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--fog-400);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-panel,
.info-panel {
  margin: 20px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(33, 37, 41, 0.66);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
}

.search-row input,
.search-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: white;
  background: rgba(13, 17, 23, 0.85);
  padding: 0 14px;
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--frost-400);
}

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

.category-tile {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 115, 230, 0.18), rgba(36, 59, 83, 0.32)),
    rgba(33, 37, 41, 0.72);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 140, 255, 0.48);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--fog-400);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(33, 37, 41, 0.72);
}

.rank-no {
  font-size: 24px;
  font-weight: 900;
  color: var(--frost-300);
  text-align: center;
}

.rank-cover {
  width: 120px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-meta {
  margin: 0;
  color: var(--fog-400);
}

.page-hero {
  padding: 44px 0 18px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--fog-300);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
  color: var(--fog-400);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--frost-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111821;
  box-shadow: var(--shadow);
}

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

.detail-main h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-summary {
  color: var(--fog-300);
  font-size: 17px;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.16);
  color: var(--frost-300);
  border: 1px solid rgba(0, 115, 230, 0.3);
  font-size: 13px;
  font-weight: 700;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 115, 230, 0.26), rgba(0, 0, 0, 0.56));
  transition: opacity 0.24s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-600));
  color: white;
  cursor: pointer;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(0, 115, 230, 0.42);
}

.player-status {
  margin-top: 12px;
  color: var(--fog-400);
  font-size: 14px;
}

.article {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(33, 37, 41, 0.64);
}

.article h2 {
  margin: 0 0 12px;
}

.article p {
  color: var(--fog-300);
  line-height: 1.9;
}

.footer {
  margin-top: 54px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--fog-400);
  background: rgba(7, 10, 15, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer a {
  color: var(--fog-300);
}

.footer p {
  line-height: 1.8;
}

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

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

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

@media (max-width: 760px) {
  .navbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

  .category-list,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 86px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }

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

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

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