:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.82);
  --bg-card: rgba(30, 41, 59, 0.74);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --orange: #f97316;
  --pink: #ec4899;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border-soft: rgba(148, 163, 184, 0.22);
  --shadow-soft: 0 24px 80px rgba(8, 47, 73, 0.36);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(236, 72, 153, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 44%, var(--bg-deep) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(8, 90, 111, 0.93), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 16px 60px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), #0891b2);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.28);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.logo-text strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.logo-text small {
  margin-top: 4px;
  color: #67e8f9;
  font-size: 12px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-box input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: 0;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.top-search input {
  width: 190px;
  padding: 10px 12px;
}

.top-search input:focus {
  width: 260px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(103, 232, 249, 0.75);
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-btn,
.play-cover {
  cursor: pointer;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), #0284c7);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 12px;
}

.mobile-nav {
  display: grid;
  gap: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.24) 100%),
    radial-gradient(circle at 22% 20%, rgba(34, 211, 238, 0.2), transparent 18rem);
  z-index: 0;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.88;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), #0284c7);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.28);
}

.ghost-btn {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  display: grid;
  place-items: center;
}

.hero-poster a {
  width: min(100%, 360px);
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

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

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

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

.section {
  padding: 42px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.section-heading p,
.page-intro {
  color: var(--text-muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(30, 41, 59, 0.92);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(236, 72, 153, 0.1));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.28s ease, filter 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.card-meta {
  margin-bottom: 10px;
}

.movie-card h2 {
  margin: 0 0 10px;
  min-height: 2.5em;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h2 a:hover {
  color: #67e8f9;
}

.movie-card p {
  margin: 0 0 14px;
  min-height: 4.8em;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(15, 23, 42, 0.84));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.58);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.66);
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(3px);
  border-color: rgba(34, 211, 238, 0.48);
}

.rank-row strong {
  color: var(--cyan);
  font-size: 20px;
}

.rank-row span {
  font-weight: 900;
}

.rank-row em {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-soft);
}

.filter-box {
  flex: 1 1 280px;
}

.filter-box input {
  width: 100%;
  padding: 13px 14px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  border-color: transparent;
}

.no-results {
  display: none;
  border-radius: 18px;
  padding: 20px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-soft);
}

.no-results.show {
  display: block;
}

.detail-wrap {
  padding: 36px 0 52px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.detail-main,
.detail-side,
.player-card,
.content-card {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.22);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  padding: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.68));
  z-index: 2;
}

.play-cover.is-hidden {
  display: none;
}

.play-cover span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), #0284c7);
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.38);
}

.content-card {
  margin-top: 18px;
  padding: 28px;
}

.content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.content-card h2 {
  margin: 26px 0 12px;
  color: #a5f3fc;
  font-size: 22px;
}

.content-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  padding: 18px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
  aspect-ratio: 2 / 2.85;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  color: var(--text-soft);
}

.info-list dt {
  color: var(--text-muted);
}

.info-list dd {
  margin: 0;
}

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

.site-footer {
  margin-top: 40px;
  color: var(--text-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 44px 0 30px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  max-width: 560px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-side {
    max-width: 420px;
  }
}

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

  .header-inner {
    min-height: 62px;
  }

  .logo-text strong {
    font-size: 16px;
  }

  .hero-section {
    padding: 22px 0 20px;
  }

  .hero-shell {
    min-height: 500px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 30px 22px;
  }

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

  .hero-dots {
    left: 22px;
    bottom: 22px;
  }

  .section {
    padding: 30px 0;
  }

  .section-heading {
    display: block;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .rank-row a {
    grid-template-columns: 42px 1fr;
  }

  .rank-row em {
    grid-column: 2;
    text-align: left;
  }

  .content-card,
  .player-card,
  .detail-side {
    border-radius: 20px;
  }

  .content-card {
    padding: 20px;
  }

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