:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #f8fafc;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(14px);
}

.site-nav {
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

.nav-link,
.mobile-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--cyan);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #e2e8f0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 8px 24px 18px;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

main {
  padding-top: 64px;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.86) 28%, rgba(15, 23, 42, 0.36) 65%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  bottom: clamp(42px, 10vh, 110px);
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 12px;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.25);
}

.ghost-btn {
  color: #e2e8f0;
  margin-left: 10px;
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 46px rgba(34, 211, 238, 0.36);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.88);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.section-wrap,
.search-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.search-band {
  padding-top: 42px;
  padding-bottom: 18px;
}

.inner-search {
  padding-top: 28px;
  padding-bottom: 8px;
}

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

.section-head.compact {
  align-items: start;
  display: block;
  margin-bottom: 18px;
}

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

.section-head p,
.page-hero p,
.detail-line {
  color: var(--muted);
  line-height: 1.8;
}

.section-head a {
  color: var(--cyan);
  font-weight: 700;
}

.search-box {
  max-width: 760px;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  min-height: 154px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.72));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-card h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
}

.category-tile small,
.category-overview-card p {
  color: #94a3b8;
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 80px rgba(8, 145, 178, 0.22);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-cover-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.25), transparent);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.88);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.34);
}

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

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

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

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

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #94a3b8;
  line-height: 1.65;
  font-size: 14px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
}

.rank-item img {
  width: 86px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  display: grid;
  gap: 4px;
}

.rank-info strong {
  line-height: 1.35;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.82), rgba(2, 6, 23, 0.98));
}

.page-hero {
  padding: 90px 24px 58px;
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.04em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

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

.category-overview-card {
  grid-template-columns: 190px 1fr;
  align-items: center;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: end;
  padding: 80px 24px 58px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0.38;
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.4) 100%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.62);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 840px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
}

.detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
}

.player-wrap {
  padding-top: 28px;
}

.player-shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: 0 28px 100px rgba(2, 6, 23, 0.72);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 2;
}

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

.player-play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
  font-size: 32px;
}

.detail-text {
  max-width: 980px;
  padding-top: 18px;
}

.detail-text h2 {
  font-size: 30px;
  margin: 28px 0 10px;
}

.detail-text p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  background: rgba(15, 23, 42, 0.82);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.search-hidden {
  display: none !important;
}

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

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

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

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

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

@media (max-width: 720px) {
  .site-nav {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    max-width: 220px;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .section-wrap,
  .search-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .category-grid,
  .movie-grid,
  .rank-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item a {
    grid-template-columns: 40px 80px 1fr;
  }

  .detail-hero {
    padding: 70px 16px 42px;
  }

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

  .detail-poster {
    max-width: 220px;
  }

  .detail-meta span {
    font-size: 13px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .player-play-icon {
    width: 66px;
    height: 66px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 16px;
  }
}
