:root {
  color-scheme: light;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #64748b;
  --site-border: rgba(15, 23, 42, 0.1);
  --site-primary: #0f766e;
  --site-primary-2: #0891b2;
  --site-primary-3: #14b8a6;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --site-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(8, 145, 178, 0.14), transparent 28rem),
    var(--site-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner,
.footer-inner,
.section-inner,
.hero-stage {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 15px;
  font-weight: 650;
}

.main-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--site-primary);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 13px 10px;
  color: #334155;
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

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

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 65%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 42px;
  padding: 110px 0 74px;
}

.hero-content {
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.24);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

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

.hero-card-body {
  padding: 18px;
  color: #ffffff;
}

.hero-card-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

main {
  padding-bottom: 40px;
}

.section {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 10px 26px 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(-6px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.play-mini,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.play-mini {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
}

.rank-mark {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--site-primary);
}

.card-meta {
  margin: 0 0 10px;
  color: var(--site-muted);
  font-size: 13px;
}

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

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

.tag-row span {
  padding: 5px 8px;
  color: #0f766e;
  border-radius: 999px;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.feature-panel {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--site-shadow);
}

.feature-panel-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 28px;
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 20px;
  object-fit: cover;
}

.feature-text {
  align-self: center;
}

.feature-text h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.feature-text p {
  color: #475569;
  line-height: 1.85;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(8, 145, 178, 0.1)),
    #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: var(--site-muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--site-primary);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--site-border);
  border-radius: 15px;
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.page-hero {
  padding: 66px 0 24px;
}

.page-hero .section-title {
  max-width: 880px;
}

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

.breadcrumb a {
  color: var(--site-primary);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--site-shadow);
}

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

.detail-main {
  min-width: 0;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  color: #475569;
}

.detail-meta span {
  padding: 7px 11px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.content-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
}

.content-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--site-shadow);
  cursor: pointer;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.32);
}

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

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

.related-strip .movie-card {
  border-radius: 18px;
}

.related-strip .card-body {
  padding: 12px;
}

.related-strip .card-desc,
.related-strip .tag-row {
  display: none;
}

.related-strip .card-title {
  min-height: 38px;
  font-size: 14px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.site-footer {
  margin-top: 60px;
  padding: 48px 0;
  color: #475569;
  border-top: 1px solid var(--site-border);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
}

.footer-inner p {
  max-width: 460px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-content: start;
}

.footer-links a {
  color: #334155;
  font-weight: 700;
}

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

.empty-state {
  display: none;
  padding: 38px;
  color: var(--site-muted);
  text-align: center;
  border: 1px dashed var(--site-border);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.7);
}

.empty-state.show {
  display: block;
}

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

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

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-stage,
  .feature-panel-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding: 92px 0 88px;
  }

  .hero-card {
    display: none;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 420px;
  }

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

  .rank-row .btn {
    grid-column: 3 / 4;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .hero-stage {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 78vh;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-title {
    min-height: 40px;
    font-size: 14px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .section {
    padding: 38px 0;
  }

  .hero-controls {
    right: 16px;
  }

  .rank-row {
    grid-template-columns: 44px 62px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .rank-row img {
    width: 62px;
  }
}
