:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.20), transparent 30%), linear-gradient(180deg, #0f172a 0%, #020617 42%, #000 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.34);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--soft);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan);
}

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

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

.hero {
  position: relative;
  height: 78vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.54) 48%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.50) 44%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.meta-pills span,
.tag-list a {
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--soft);
  background: rgba(8, 47, 73, 0.36);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 44px rgba(34, 211, 238, 0.24);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}

.hero-control-row {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button[aria-current="true"] {
  width: 34px;
  background: var(--cyan);
}

.search-band {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding-bottom: 34px;
}

.search-panel,
.search-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.quick-search,
.search-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.search-toolbar input,
.search-toolbar select {
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.quick-search input:focus,
.search-toolbar input:focus,
.search-toolbar select:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.quick-search button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 52%);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-play,
.overlay-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--cyan-strong);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-play::after,
.overlay-play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

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

.card-body {
  display: block;
  padding: 14px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.card-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-tile,
.category-card-large,
.about-grid article,
.text-card,
.side-card,
.detail-title-card,
.poster-card,
.split-feature {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 20px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.52;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 128px;
}

.category-tile strong,
.category-card-copy strong {
  color: #fff;
  font-size: 24px;
}

.category-tile em,
.category-card-copy em {
  margin-top: 10px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.7;
}

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

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

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

.rank-link:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.38);
}

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

.rank-link img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.rank-copy strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em,
.rank-copy small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 54px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.20), transparent 35%), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
}

.compact-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  overflow: hidden;
  padding: 18px;
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-card-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.category-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.split-feature h2 {
  margin: 10px 0 0;
  font-size: 34px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.44);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.88);
}

.related-card img {
  width: 74px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
}

.related-card span {
  min-width: 0;
}

.related-card strong,
.related-card em,
.related-card small {
  display: block;
}

.related-card strong {
  color: #fff;
  line-height: 1.5;
}

.related-card em,
.related-card small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.search-page-section {
  padding-top: 34px;
}

.search-toolbar {
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.6fr));
  margin-bottom: 28px;
}

.empty-state {
  padding: 50px 0;
  color: var(--muted);
  text-align: center;
}

.detail-wrap {
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

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

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

.player-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay strong {
  max-width: min(90%, 620px);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  text-align: center;
}

.overlay-play {
  position: relative;
  left: auto;
  top: auto;
  display: block;
  width: 72px;
  height: 72px;
  transform: none;
  opacity: 1;
}

.overlay-play::after {
  left: 29px;
  top: 23px;
  border-left-width: 22px;
  border-top-width: 13px;
  border-bottom-width: 13px;
}

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

.detail-title-card,
.text-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-title-card h1 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.04em;
}

.detail-title-card p,
.text-card p,
.about-grid p {
  color: var(--soft);
  line-height: 1.9;
}

.text-card h2,
.side-card h2,
.about-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

.poster-card {
  overflow: hidden;
}

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

.poster-card .tag-list {
  margin: 0;
  padding: 18px;
}

.side-card {
  margin-top: 20px;
  padding: 18px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
  padding: 46px 0 30px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  font-size: 14px;
}

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }

  .side-card {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a.active::after {
    display: none;
  }

  .hero {
    height: 72vh;
    min-height: 540px;
  }

  .hero-content {
    padding-bottom: 112px;
  }

  .search-panel,
  .search-toolbar,
  .split-feature,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-grid,
  .rank-page-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    grid-template-columns: 140px 1fr;
  }
}

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

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 590px;
  }

  .hero h1,
  .hero h2,
  .page-hero h1 {
    font-size: 38px;
  }

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

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

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

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

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 14px;
  }

  .category-card-large,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .rank-link {
    grid-template-columns: 38px 62px 1fr;
  }

  .rank-link img {
    width: 62px;
    height: 86px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
