* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0d9488;
  --cyan: #0891b2;
  --deep: #0f172a;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.28);
}

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

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

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 16px;
  color: #475569;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: #ccfbf1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
}

.hero {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.72) 47%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 45%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #2dd4bf;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 780px;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.page-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 28px;
}

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

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

.btn.primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.28);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn.light {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 28px;
}

.hero-control.next {
  right: 28px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #2dd4bf;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.search-band-inner,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.search-band h2,
.search-band p {
  margin: 0;
}

.search-band p {
  color: var(--muted);
}

.site-search {
  display: flex;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.site-search input,
.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.site-search input {
  flex: 1;
  border: 0;
  border-radius: 0;
}

.site-search button {
  border: 0;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-head a {
  color: var(--teal);
  font-weight: 800;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 40%),
    #ffffff;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.overview-title {
  display: block;
  margin-bottom: 12px;
  color: #0f766e;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span,
.overview-card p {
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #155e75);
}

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

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

.poster-link::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 12px;
  background: rgba(13, 148, 136, 0.92);
}

.rank-badge {
  left: 12px;
  background: rgba(2, 6, 23, 0.82);
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .card-title {
  color: var(--teal);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  background: #e0f2fe;
  color: #0369a1;
}

.page-hero {
  padding: 76px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.36), transparent 38%),
    linear-gradient(135deg, #0f766e, #0891b2 54%, #0f172a);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #cffafe;
  font-size: 18px;
}

.filter-panel {
  grid-template-columns: 1fr 180px 180px;
  margin-bottom: 24px;
}

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

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.overview-links a {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 6px 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.ranking-grid .compact-card {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.compact-card .poster-link {
  min-height: 100%;
  aspect-ratio: auto;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(8px);
  transform: scale(1.06);
}

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

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82));
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #a7f3d0;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 19px;
}

.detail-tags {
  margin-top: 16px;
}

.detail-actions {
  margin-top: 24px;
}

.player-section {
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  border: 0;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.video-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 38px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}

.detail-content article,
.detail-content aside {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 22px;
  color: #334155;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-content dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.detail-content dd a {
  color: var(--teal);
}

.site-footer {
  margin-top: 80px;
  padding-top: 48px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: #a7f3d0;
  font-weight: 700;
}

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

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

@media (max-width: 1000px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout,
  .detail-content,
  .footer-grid,
  .search-band-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(300px, 72vw);
  }
}

@media (max-width: 720px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    height: 650px;
  }

  .hero-content {
    bottom: 96px;
  }

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

  .hero-control {
    display: none;
  }

  .search-band {
    margin-top: 24px;
  }

  .category-grid,
  .overview-grid,
  .movie-grid,
  .ranking-grid .compact-card {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding: 48px 0;
  }

  .player-section {
    margin-top: 20px;
  }
}
