:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.12);
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--slate-500);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--slate-600);
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--teal-50);
  color: var(--teal-700);
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: var(--slate-100);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  color: var(--slate-700);
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

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

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.02);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(20, 184, 166, 0.34), transparent 28%),
    linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.18)),
    linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
}

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

.hero-copy {
  width: min(680px, 100%);
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  color: #5eead4;
  background: rgba(15, 23, 42, 0.4);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: 18px;
  color: #cbd5e1;
  max-width: 650px;
}

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

.hero-tags span,
.hero-mini-tags span,
.tag-row span,
.chip-link,
.info-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-mini-tags {
  margin-top: 18px;
}

.hero-mini-tags span {
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.18);
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.34);
}

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

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-light {
  color: var(--teal-700);
  background: white;
  box-shadow: var(--shadow-soft);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.22s ease;
}

.hero-dot.active {
  width: 34px;
  background: white;
}

.hero-thumbs {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  transform: translateY(calc(70vh - 92px));
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(12px);
  transition: all 0.22s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  background: rgba(13, 148, 136, 0.82);
}

.hero-thumb img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 54px 0 18px;
}

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

.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--slate-800);
}

.section-head h2 span {
  color: var(--teal-600);
}

.section-more {
  color: var(--teal-700);
  font-weight: 900;
}

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

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

.movie-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-soft);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(20, 184, 166, 0.42), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--teal-700));
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.poster-wrap.cover-missing .poster-fallback {
  display: flex;
}

.badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.badge-left {
  left: 10px;
}

.badge-right {
  right: 10px;
  background: rgba(13, 148, 136, 0.9);
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-size: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.play-mask::before {
  content: "";
  width: 64px;
  height: 64px;
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.play-mask {
  text-indent: 6px;
}

.movie-card:hover .play-mask {
  opacity: 1;
}

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

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

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

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-desc {
  margin-top: 9px;
  min-height: 42px;
}

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

.tag-row span {
  color: var(--teal-700);
  background: var(--teal-50);
}

.chip-link {
  color: var(--slate-600);
  background: var(--slate-100);
}

.banner-panel,
.page-hero,
.search-panel,
.detail-hero,
.player-panel,
.content-panel,
.category-card,
.rank-row {
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.banner-panel {
  margin: 32px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.18), transparent 30%),
    white;
}

.banner-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  color: var(--teal-700);
}

.page-hero {
  margin: 32px auto 0;
  padding: 42px;
  color: white;
  background:
    radial-gradient(circle at 86% 16%, rgba(94, 234, 212, 0.4), transparent 30%),
    linear-gradient(135deg, var(--teal-600), var(--cyan-600));
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: #e0f2fe;
  font-size: 18px;
}

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

.category-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
}

.category-card p {
  color: var(--slate-500);
}

.category-card .preview-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.preview-list a {
  color: var(--teal-700);
  font-weight: 800;
}

.search-panel {
  margin: 28px auto;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 12px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  background: white;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

.breadcrumb {
  color: var(--slate-500);
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-700);
  font-weight: 800;
}

.detail-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 420px;
}

.detail-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-900);
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.92));
}

.detail-copy {
  padding: 42px;
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgba(20, 184, 166, 0.26), transparent 32%),
    var(--slate-900);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.detail-copy p {
  color: #cbd5e1;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.info-chip {
  background: rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
}

.player-panel {
  margin-top: 26px;
  overflow: hidden;
  background: var(--slate-900);
}

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

.video-stage video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 184, 166, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.98));
}

.video-poster.hidden {
  display: none;
}

.big-play {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-700);
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease;
}

.big-play:hover {
  transform: scale(1.08);
}

.player-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #cbd5e1;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin-top: 26px;
}

.content-panel {
  padding: 28px;
}

.content-panel h2 {
  margin-top: 0;
}

.content-panel p {
  color: var(--slate-600);
}

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

.side-item {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
}

.side-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

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

.side-item strong {
  display: block;
  line-height: 1.3;
}

.side-item small {
  color: var(--slate-500);
}

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

.rank-row {
  padding: 15px;
  display: grid;
  grid-template-columns: 56px 120px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
}

.rank-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

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

.rank-title strong {
  display: block;
  font-size: 18px;
}

.rank-title span,
.rank-heat {
  color: var(--slate-500);
  font-size: 14px;
}

.empty-tip {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--slate-500);
}

.site-footer {
  margin-top: 70px;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-grid {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-bottom: 14px;
}

.site-footer h3 {
  color: white;
  margin: 0 0 12px;
}

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

.site-footer a:hover {
  color: #5eead4;
}

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

@media (max-width: 980px) {
  .hero-carousel {
    min-height: 640px;
  }

  .hero-thumbs {
    display: none;
  }

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

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

  .banner-panel,
  .detail-hero,
  .content-grid,
  .footer-grid,
  .category-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 260px;
  }

  .rank-row {
    grid-template-columns: 42px 90px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 3;
  }
}

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

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-carousel {
    height: 76vh;
    min-height: 580px;
  }

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

  .hero-dots {
    bottom: 54px;
  }

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

  .section {
    padding-top: 38px;
  }

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

  .page-hero,
  .content-panel,
  .detail-copy,
  .banner-panel {
    padding: 24px;
  }

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

  .side-item {
    grid-template-columns: 86px 1fr;
  }
}
