:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --brand: #38bdf8;
  --brand-2: #2563eb;
  --accent: #f59e0b;
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.38);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  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: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.18));
  color: var(--brand);
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.28);
}

.logo-text,
.footer-logo {
  font-size: 22px;
  background: linear-gradient(90deg, #7dd3fc, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
}

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

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

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.64);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.25) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 34%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 60px;
  padding-bottom: 46px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 12px;
  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;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.52);
  color: #e0f2fe;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.16);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 132px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}

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

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
}

.hero-thumb.active {
  border-color: rgba(56, 189, 248, 0.64);
  color: #fff;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
}

.hero-thumb img {
  width: 54px;
  height: 68px;
  border-radius: 11px;
  object-fit: cover;
}

.quick-entry,
.content-section,
.filter-panel,
.page-hero,
.breadcrumb,
.player-section,
.detail-panel,
.article-section,
.ranking-list {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quick-entry a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-entry a:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
}

.filter-panel {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 56px rgba(2, 6, 23, 0.24);
}

.filter-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.filter-title h2 {
  margin: 0;
  font-size: 22px;
}

.filter-title p {
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.42);
  color: var(--text);
  font: inherit;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(56, 189, 248, 0.76);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.filter-empty {
  display: none;
  margin: 16px 0 0;
  color: var(--subtle);
}

.filter-empty.show {
  display: block;
}

.content-section {
  margin-top: 46px;
}

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

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

.section-head p {
  margin: 8px 0 0;
  color: var(--subtle);
}

.section-link {
  flex: 0 0 auto;
  color: #7dd3fc;
  font-weight: 800;
}

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #020617;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
  filter: brightness(0.8);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #bfdbfe;
  font-size: 12px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(37, 99, 235, 0.92));
}

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

.movie-mini-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.movie-mini-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.12);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover {
  color: #7dd3fc;
}

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

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

.ranking-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.ranking-title span {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.ranking-title h2 {
  margin: 4px 0 16px;
}

.ranking-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-card li + li {
  border-top: 1px solid var(--line);
}

.ranking-card a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px 0;
  align-items: center;
}

.rank-num {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-weight: 900;
}

.rank-name {
  font-weight: 800;
}

.rank-meta {
  color: var(--subtle);
  font-size: 13px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.2);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.12);
  transition: transform 0.35s ease;
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 72%);
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.category-card span,
.category-card strong {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 50px;
  color: #7dd3fc;
  font-weight: 900;
  font-size: 22px;
}

.category-card strong {
  bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-overview-card {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-overview-card span {
  display: block;
  color: #7dd3fc;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.category-overview-card strong {
  color: #fff;
}

.page-hero {
  margin-top: 34px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.06)),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compact-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--subtle);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #7dd3fc;
}

.player-section {
  margin-top: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.movie-player {
  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: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.62));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.38);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.22);
}

.detail-poster img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.34);
}

.detail-content h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.detail-meta {
  margin-top: 18px;
}

.detail-one-line {
  margin: 22px 0;
  color: var(--muted);
  font-size: 18px;
}

.article-section {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-section h2:not(:first-child) {
  margin-top: 28px;
}

.article-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.rank-row {
  display: grid;
  grid-template-columns: 86px 76px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-row-cover img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-index {
  color: #7dd3fc;
  font-size: 26px;
  font-weight: 900;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.rank-watch {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--subtle);
  text-align: center;
}

.footer-inner p {
  margin: 10px 0 0;
}

@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-poster {
    display: none;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding-top: 62px;
    align-items: start;
  }

  .hero h1,
  .page-hero h1,
  .detail-content h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 18px;
  }

  .hero-thumb:nth-child(n + 3) {
    display: none;
  }

  .hero-dots {
    bottom: 152px;
  }

  .quick-entry,
  .filter-controls,
  .movie-grid,
  .split-section .movie-grid,
  .category-grid,
  .category-overview-grid,
  .detail-panel,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    justify-items: start;
  }

  .rank-row-cover img {
    width: 120px;
    height: 160px;
  }
}
