:root {
  --green-950: #06281c;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--gray-50), #ffffff 42%, #f1f5f9);
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

img {
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--green-900), var(--green-700), #0f766e);
  box-shadow: 0 10px 28px rgba(6, 78, 59, 0.28);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

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

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 12px;
  display: block;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  background: linear-gradient(110deg, var(--green-950), var(--green-800) 48%, #134e4a);
  overflow: hidden;
}

.hero-slide {
  min-height: 640px;
  display: none;
  position: relative;
}

.hero-slide.active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.36), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.8), rgba(6, 78, 59, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 52px;
  align-items: center;
  padding: 72px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #bbf7d0;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow.dark {
  color: var(--green-700);
}

.hero-copy h1 {
  max-width: 850px;
  color: var(--white);
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}

.hero-copy h2 {
  color: #86efac;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 850;
  margin-bottom: 18px;
}

.hero-desc {
  color: rgba(240, 253, 244, 0.92);
  font-size: 19px;
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 24px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

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

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  display: block;
  height: 540px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

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

.hero-poster span,
.play-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.32);
}

.hero-poster span {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 999px;
  font-size: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.hero-dots button.active {
  width: 26px;
  background: var(--white);
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
}

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

.section-head h2,
.rank-layout h2,
.page-hero h1,
.player-section h2 {
  color: var(--gray-800);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head p,
.rank-layout p,
.page-hero p {
  margin-top: 8px;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-more {
  color: var(--green-700);
  font-weight: 800;
}

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

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

.movie-card,
.ranking-card,
.article-card,
.side-card,
.filter-panel,
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-cover img,
.list-cover img,
.compact-card img,
.category-tile img,
.category-card img,
.ranking-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img,
.category-tile img,
.ranking-cover img {
  transition: transform 0.3s ease;
}

.movie-card:hover .card-cover img,
.category-tile:hover img,
.ranking-card:hover .ranking-cover img {
  transform: scale(1.08);
}

.play-chip {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.card-body,
.list-info,
.ranking-info {
  padding: 16px;
}

.card-body h2,
.list-info h2,
.ranking-info h2 {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.card-body p,
.list-info p,
.ranking-info p,
.article-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.card-body p {
  min-height: 48px;
  font-size: 14px;
}

.card-tags {
  margin: 14px 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
}

.meta-line span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 170px));
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  align-items: end;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

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

.category-tile {
  position: relative;
  height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-tile span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.rank-section {
  background: linear-gradient(120deg, #f0fdf4, #eff6ff);
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 74px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-row strong {
  color: var(--green-700);
  font-size: 20px;
}

.rank-row img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row span {
  font-weight: 850;
}

.rank-row em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 78px 0;
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.28), transparent 30%), linear-gradient(120deg, var(--green-950), var(--green-800));
  color: var(--white);
}

.page-hero.compact-hero {
  padding: 64px 0;
}

.page-hero.ranking-hero {
  background: radial-gradient(circle at 76% 20%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(120deg, #172554, #065f46);
}

.page-hero h1,
.page-hero p {
  color: var(--white);
  max-width: 820px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 190px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card div {
  padding: 24px;
}

.category-card h2 {
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.category-card span {
  color: var(--green-700);
  font-weight: 850;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-cover {
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.ranking-cover strong {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.detail-top {
  padding: 54px 0;
  background: radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.22), transparent 28%), linear-gradient(135deg, #031811, #064e3b 58%, #0f766e);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

.detail-copy {
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(240, 253, 244, 0.78);
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.lead {
  max-width: 780px;
  color: rgba(240, 253, 244, 0.92);
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  color: rgba(240, 253, 244, 0.88);
}

.detail-meta span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
}

.player-section {
  padding-bottom: 32px;
}

.player-section h2 {
  margin-bottom: 18px;
}

.player-box {
  position: relative;
  background: var(--slate-950);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.5));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(5, 150, 105, 0.42);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.article-card,
.side-card {
  padding: 28px;
}

.article-card h2,
.side-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  font-size: 17px;
}

.compact-grid {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #ecfdf5;
  transform: translateX(3px);
}

.compact-card img {
  height: 62px;
  border-radius: 12px;
}

.compact-card span {
  font-weight: 800;
  line-height: 1.35;
}

.list-card {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.list-cover {
  position: relative;
  min-height: 140px;
  overflow: hidden;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #86efac;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #94a3b8;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .detail-layout,
  .content-grid,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    height: 420px;
    transform: none;
  }

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

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

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

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

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

  .hero-carousel,
  .hero-slide,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0 84px;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .hero-desc,
  .lead {
    font-size: 16px;
  }

  .hero-poster,
  .detail-cover {
    height: 360px;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .category-card,
  .ranking-card,
  .list-card {
    grid-template-columns: 1fr;
  }

  .category-card img,
  .ranking-cover,
  .list-cover {
    height: 190px;
  }

  .rank-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-row em {
    grid-column: 3;
  }

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

  .player-box {
    border-radius: 16px;
  }
}
