:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0f766e;
  --cyan: #0891b2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.nav-shell {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.28);
}

.brand-name {
  font-size: 20px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #475569;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald-dark);
  background: #ecfdf5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ecfdf5;
  color: var(--emerald-dark);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  height: 540px;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b 0%, #115e59 52%, #164e63 100%);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

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

.hero-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(16, 185, 129, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2 + 20px));
  top: 50%;
  width: min(660px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  color: #d1fae5;
  font-size: 14px;
  font-weight: 760;
  backdrop-filter: blur(6px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-meta span,
.card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 15px 32px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(5, 150, 105, 0.40);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

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

.btn-primary.slim {
  min-height: 42px;
  padding: 0 18px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: #fff;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.content-section.tinted {
  max-width: none;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.content-section.tinted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.nested-section {
  padding-left: 0;
  padding-right: 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.section-bar {
  width: 5px;
  height: 38px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--emerald), var(--teal));
  flex: 0 0 auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-card-wide {
  flex-direction: row;
  min-height: 150px;
}

.movie-card-wide .poster-frame {
  width: 210px;
  min-height: 150px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #164e63);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 62%);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--emerald);
  font-size: 18px;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, 0.86);
}

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.card-info strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover .card-info strong {
  color: var(--emerald-dark);
}

.card-line {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  gap: 6px;
}

.card-meta span {
  background: #f1f5f9;
  color: #64748b;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card,
.category-overview {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #fff;
  font-weight: 900;
}

.category-card strong,
.category-copy strong {
  font-size: 20px;
  margin-bottom: 8px;
}

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

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.category-mini-links a,
.category-mini-links span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 760;
}

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

.highlight-row {
  position: relative;
}

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

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

.center-action {
  margin-top: 30px;
  text-align: center;
}

.page-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.28), transparent 30%),
    linear-gradient(135deg, #064e3b 0%, #115e59 45%, #164e63 100%);
  color: #fff;
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #d1fae5;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

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

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

.category-overview {
  flex-direction: row;
  gap: 20px;
  min-height: auto;
  align-items: center;
}

.category-collage {
  width: 180px;
  height: 122px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex: 0 0 auto;
}

.category-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 12px;
}

.category-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(5, 150, 105, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.empty-state {
  margin: 36px 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.player-section {
  background: #020617;
}

.player-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.22), transparent 36%),
    rgba(0, 0, 0, 0.48);
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--emerald);
  font-size: 36px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.player-loading,
.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  padding: 14px 20px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
}

.player-error {
  background: rgba(185, 28, 28, 0.88);
}

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.detail-card {
  padding: clamp(22px, 4vw, 36px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald-dark);
  font-weight: 760;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 22px;
}

.detail-meta span {
  background: #f1f5f9;
  color: #475569;
}

.lead-text {
  margin: 0 0 20px;
  color: #334155;
  font-size: 19px;
  font-weight: 650;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--emerald-dark);
  font-size: 13px;
  font-weight: 760;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.detail-card p {
  color: #334155;
  font-size: 17px;
}

.review-box {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.review-box h2 {
  margin-top: 0;
}

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

.side-card {
  position: sticky;
  top: 90px;
  padding: 20px;
}

.side-card h2 {
  margin-top: 0;
}

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

.side-list .movie-card-wide {
  min-height: 112px;
}

.side-list .movie-card-wide .poster-frame {
  width: 132px;
  min-height: 112px;
}

.side-list .card-info {
  padding: 12px;
}

.side-list .card-info strong {
  font-size: 15px;
}

.side-list .card-line {
  -webkit-line-clamp: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #cbd5e1;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-shell p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

[hidden],
.is-hidden-card {
  display: none !important;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

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

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

  .nav-link {
    border-radius: 12px;
  }

  .hero {
    height: 600px;
  }

  .hero-content {
    top: auto;
    bottom: 72px;
    transform: none;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .movie-grid,
  .movie-grid-two,
  .compact-rank,
  .feature-strip,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-shell {
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 18px;
  }

  .hero {
    height: 560px;
    min-height: 560px;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .content-section {
    padding: 46px 16px;
  }

  .movie-card-wide {
    flex-direction: column;
  }

  .movie-card-wide .poster-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

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

  .category-overview {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-collage {
    width: 100%;
    height: 160px;
  }

  .player-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
