:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(34, 211, 238, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --blue: #2563eb;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.56);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -4%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #07111f 45%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.34);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

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

main {
  min-height: 72vh;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.1) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 42%, rgba(2, 6, 23, 0.66) 100%);
}

.hero-inner {
  position: relative;
  min-height: 70vh;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
  padding: 82px 0 76px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.28);
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2e8f0;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-thumbs {
  display: grid;
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
  text-align: left;
}

.hero-thumb.active,
.hero-thumb:hover {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.12);
}

.hero-thumb img {
  width: 74px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.hero-thumb small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section.tight {
  padding-top: 34px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-link {
  color: #67e8f9;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.44);
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent);
}

.year-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
}

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

.card-info strong {
  display: block;
  min-height: 42px;
  color: #fff;
  line-height: 1.45;
}

.card-info small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.card-info small span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
}

.card-info em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.wide-card .poster-wrap {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.wide-card .card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(37, 99, 235, 0.08)),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

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

.category-card span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.rank-list,
.side-panel,
.search-panel,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow);
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 72px 1fr 58px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s ease;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: rgba(34, 211, 238, 0.09);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  font-weight: 900;
}

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

.rank-main strong,
.rank-main small {
  display: block;
}

.rank-main small {
  margin-top: 5px;
  color: var(--muted);
}

.heat {
  justify-self: end;
  min-width: 42px;
  padding: 7px 9px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
  font-weight: 800;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.meta-row span,
.tag-row span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.18);
}

.tag-row span {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
}

.detail-lead {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.2), transparent 18rem),
    rgba(2, 6, 23, 0.58);
  cursor: pointer;
  z-index: 2;
}

.play-overlay.hidden {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.36);
  font-size: 34px;
}

.content-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.article-card,
.side-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
}

.article-card p {
  color: #cbd5e1;
  line-height: 2;
  margin: 0 0 18px;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
  transition: background 0.22s ease;
}

.related-list a:hover {
  background: rgba(34, 211, 238, 0.1);
}

.related-list img {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}

.related-list strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.related-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.search-panel {
  padding: 20px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px 130px;
  gap: 12px;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  color: #fff;
  background: rgba(2, 6, 23, 0.5);
  outline: none;
}

.search-form input:focus,
.search-form select:focus {
  border-color: var(--line-strong);
}

.search-empty {
  display: none;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 1040px) {
  .movie-grid,
  .movie-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-inner,
  .rank-layout,
  .detail-hero,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .detail-cover {
    max-width: 360px;
  }
}

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

  .mobile-menu-btn {
    display: block;
  }

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

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    min-height: 78vh;
    padding: 70px 0 56px;
  }

  .section {
    padding: 38px 0;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 12px;
  }

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

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

  .wide-card .poster-wrap {
    aspect-ratio: 2 / 3;
  }

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

  .rank-item {
    grid-template-columns: 44px 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 44px;
  }

  .rank-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
  }

  .heat {
    display: none;
  }

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

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

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.large {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
