:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --slate: #0f172a;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.28);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.24);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.08));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
  padding-top: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.95);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.btn-ghost:hover {
  color: #fff;
  background: var(--cyan);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 28px;
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.main-space {
  padding: 56px 0 68px;
}

.section {
  margin-top: 58px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: #1e293b;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan-dark);
  font-weight: 900;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.58), transparent);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.24);
}

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

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-meta {
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.movie-card h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.card-foot {
  justify-content: space-between;
}

.score {
  color: #b45309;
  font-weight: 900;
}

.card-foot a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.feature-panel {
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f1f5f9, #ecfeff);
}

.dark-panel {
  padding: 32px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.34), transparent 34%),
    linear-gradient(135deg, #0f172a, #111827);
  box-shadow: var(--shadow);
}

.dark-panel .section-title,
.dark-panel .section-desc {
  color: #fff;
}

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

.category-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--soft-shadow);
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #2563eb);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #0891b2, #0f766e);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  box-shadow: var(--soft-shadow);
}

.list-rank {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cyan);
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  font-size: 16px;
}

.rank-info em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: #b45309;
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.36), transparent 35%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
}

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin: -28px auto 32px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-shell {
  position: relative;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.46));
  cursor: pointer;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: var(--cyan);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.34);
  font-size: 34px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta .detail-score {
  color: #b45309;
  background: #fffbeb;
}

.detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

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

.tag-list a:hover {
  color: #fff;
  background: var(--cyan);
}

.side-card {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.side-item em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  color: #fff;
  font-size: 21px;
}

.footer-inner p {
  margin: 0;
}

.empty-state {
  display: none;
  padding: 58px 20px;
  text-align: center;
  color: #64748b;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-slider {
    min-height: 620px;
    height: 78vh;
  }

  .hero-copy {
    padding: 72px 18px 0;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-control {
    display: none;
  }

  .main-space {
    padding-top: 38px;
  }

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

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .feature-panel,
  .dark-panel {
    padding: 20px;
  }

  .toolbar {
    position: static;
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .rank-row {
    grid-template-columns: auto 74px minmax(0, 1fr);
  }

  .rank-thumb {
    width: 74px;
    height: 56px;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-card {
    padding: 20px;
  }

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

  .side-item img {
    width: 84px;
    height: 62px;
  }
}

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

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .poster-link {
    aspect-ratio: 3 / 4;
  }

  .movie-card p {
    min-height: auto;
  }
}
