:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --accent: #059669;
  --accent-dark: #047857;
  --accent-soft: #d1fae5;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.25);
}

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

.logo-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--dark);
  transition: 0.2s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: white;
  padding: 10px 24px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.48fr);
  gap: 36px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(16, 185, 129, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.34);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 840px;
  margin: 0 0 12px;
  color: white;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 0 0 16px;
  color: #d1fae5;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags span,
.detail-tags span {
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
}

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

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.28);
}

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

.hero-poster {
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  transform: rotate(2deg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.hero-controls {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  background: #10b981;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.hero-thumb {
  overflow: hidden;
  position: relative;
  min-height: 130px;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.25s ease;
}

.hero-thumb:hover img {
  transform: scale(1.06);
}

.hero-thumb span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: white;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.content-section,
.player-section {
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 0 24px;
}

.compact-top {
  margin-top: 28px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 900;
}

.search-panel {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.search-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  padding: 0 52px 0 18px;
  color: var(--text);
  background: white;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-box input:focus {
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-box span {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent);
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 900;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: white;
  font-weight: 800;
  transition: 0.2s ease;
}

.chip:hover,
.chip.active {
  color: var(--accent-dark);
  border-color: rgba(5, 150, 105, 0.22);
  background: var(--accent-soft);
}

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

.full-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(5, 150, 105, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

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

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

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(5, 150, 105, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.2s ease;
  font-weight: 900;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.movie-meta {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--accent-dark);
}

.movie-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 64px 24px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.36), transparent 34%),
    linear-gradient(135deg, #0f172a, #064e3b);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-hero .chip {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero .chip.active,
.page-hero .chip:hover {
  color: #064e3b;
  background: #d1fae5;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

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

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 150px;
  background: #0f172a;
}

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

.category-card-body {
  padding: 18px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-card-body span {
  color: var(--accent-dark);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-no {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #10b981, #047857);
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  display: block;
  border-radius: 16px;
}

.rank-thumb img {
  width: 92px;
  height: 126px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-info h3 a:hover {
  color: var(--accent-dark);
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-info span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.rank-action {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--accent);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: white;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
}

.detail-cover-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 22%, rgba(16, 185, 129, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.62));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.breadcrumb {
  color: #d1fae5;
  font-weight: 900;
}

.detail-wrap > span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.48);
}

.detail-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 34px;
}

.detail-poster {
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.detail-stats li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.detail-stats strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 15px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #020617;
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.player-play-icon {
  position: absolute;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.32);
  font-size: 36px;
  font-weight: 900;
}

.detail-text-section {
  margin-top: 34px;
}

.detail-copy {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
}

.detail-copy h2:not(:first-child) {
  margin-top: 28px;
}

.detail-copy p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.footer-logo {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
  font-weight: 800;
}

.footer-links a:hover {
  color: #6ee7b7;
}

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

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

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

  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-stage {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 34px 24px 86px;
  }

  .hero-poster {
    max-width: 230px;
    justify-self: center;
  }

  .hero-controls {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

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

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

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

  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 240px;
  }

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

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

  .rank-thumb img {
    width: 72px;
    height: 100px;
  }

  .rank-action {
    display: none;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .hero-carousel,
  .content-section,
  .player-section,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage,
  .page-hero,
  .player-frame,
  .detail-copy {
    border-radius: 22px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-content p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-strip,
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

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