:root {
  --site-green-950: #052e1b;
  --site-green-900: #064e3b;
  --site-green-800: #065f46;
  --site-green-700: #047857;
  --site-green-600: #059669;
  --site-green-500: #10b981;
  --site-green-300: #86efac;
  --site-gray-950: #020617;
  --site-gray-900: #0f172a;
  --site-gray-800: #1f2937;
  --site-gray-700: #374151;
  --site-gray-600: #4b5563;
  --site-gray-200: #e5e7eb;
  --site-gray-100: #f3f4f6;
  --site-white: #ffffff;
  --site-radius: 18px;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-green-950), var(--site-green-800));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #052e1b;
  background: linear-gradient(135deg, #bbf7d0, #34d399);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.26);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.brand small {
  display: block;
  color: #bbf7d0;
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--site-green-300);
}

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

.nav-search input {
  width: 180px;
  border: 1px solid rgba(187, 247, 208, 0.24);
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(6, 95, 70, 0.7);
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(220, 252, 231, 0.78);
}

.nav-search button,
.menu-button {
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.58);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.menu-button:hover {
  background: rgba(16, 185, 129, 0.85);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
}

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

.hero-stage {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

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

.hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02);
}

.hero-mask {
  background:
    radial-gradient(circle at 72% 24%, rgba(16, 185, 129, 0.3), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 52%, rgba(2, 6, 23, 0.36) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 42%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  padding: 78px 0 96px;
}

.hero-kicker,
.page-hero span,
.search-panel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-green-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.hero-tags,
.detail-meta,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.hero-tags span,
.detail-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.65);
  border: 1px solid rgba(187, 247, 208, 0.2);
}

.hero-tags {
  margin-top: 12px;
}

.hero-tags span {
  color: #bbf7d0;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(187, 247, 208, 0.14);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green-600), var(--site-green-700));
  box-shadow: 0 18px 30px rgba(5, 150, 105, 0.28);
}

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

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.hero-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--site-green-500);
}

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

.white-section,
.ranking-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
}

.white-section {
  background: #ffffff;
}

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

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

.section-title h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 0;
  color: var(--site-gray-600);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 95, 70, 0.24), rgba(15, 23, 42, 0.88)),
    #111827;
}

.featured-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-wrap img,
.compact-item:hover img {
  transform: scale(1.08);
}

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

.poster-type {
  right: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 12px;
  background: var(--site-green-600);
  font-style: normal;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info .meta {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info .line {
  min-height: 44px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list span {
  color: #047857;
  background: #d1fae5;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-card,
.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-card {
  padding: 22px;
}

.category-card strong,
.category-tile h2 {
  display: block;
  margin: 0 0 8px;
  color: #064e3b;
  font-size: 20px;
  font-weight: 900;
}

.category-card span,
.category-tile p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

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

.category-tile {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.category-tile span {
  position: absolute;
  left: 28px;
  bottom: 26px;
  color: var(--site-green-700);
  font-weight: 900;
}

.tile-glow {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 15px;
  padding: 10px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-item img {
  width: 96px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.compact-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.compact-item small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

.list-rank,
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--site-green-600);
  font-weight: 900;
}

.page-hero,
.search-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.28), transparent 30%),
    linear-gradient(135deg, var(--site-green-950), var(--site-gray-950));
}

.page-hero .site-container,
.search-panel {
  padding: 72px 0;
}

.page-hero h1,
.search-panel h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p,
.search-panel p {
  max-width: 720px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 9px 15px;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: #ffffff;
  border-color: var(--site-green-700);
  background: var(--site-green-700);
}

.search-panel {
  text-align: center;
}

.search-panel p {
  margin-left: auto;
  margin-right: auto;
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  max-width: 860px;
  margin: 34px auto 0;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.big-search input,
.big-search select,
.big-search button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.big-search input,
.big-search select {
  color: #111827;
  background: #ffffff;
}

.big-search button {
  color: #ffffff;
  background: var(--site-green-600);
  font-weight: 900;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span,
.pagination strong,
.pagination i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: #374151;
  font-style: normal;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.pagination strong {
  color: #ffffff;
  background: var(--site-green-700);
}

.pagination span {
  color: #9ca3af;
}

.ranking-board {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-board a {
  display: grid;
  grid-template-columns: 48px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ranking-board img {
  width: 86px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.ranking-board strong {
  font-size: 17px;
}

.ranking-board small {
  color: #6b7280;
}

.crumb-bar {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.crumb-bar .site-container {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  color: #6b7280;
  font-size: 14px;
}

.crumb-bar a:hover {
  color: var(--site-green-700);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 32px 0 72px;
}

.player-card,
.detail-info,
.article-card,
.side-card {
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.16));
  cursor: pointer;
  z-index: 3;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #052e1b;
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 20px;
}

.detail-info,
.article-card,
.side-card {
  padding: 24px;
  margin-bottom: 22px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-category {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--site-green-700);
  font-weight: 800;
  font-size: 13px;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: #047857;
  font-weight: 800;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags span {
  color: #047857;
  background: #d1fae5;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.accent-card {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.detail-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.detail-neighbor a {
  border-radius: 15px;
  padding: 14px 16px;
  color: #065f46;
  background: #d1fae5;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-side .compact-item {
  grid-template-columns: auto 82px 1fr;
  background: #f9fafb;
}

.detail-side .compact-item img {
  width: 82px;
  height: 54px;
}

.sticky-side {
  position: sticky;
  top: 88px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

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

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 24px;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav,
  .nav-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .main-nav.is-open {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav-search.is-open input {
    width: 100%;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

  .featured-grid,
  .category-grid,
  .footer-grid,
  .detail-shell {
    grid-template-columns: 1fr;
  }

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

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

  .big-search,
  .ranking-board a {
    grid-template-columns: 1fr;
  }

  .detail-neighbor,
  .ranking-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-container,
  .content-section {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy {
    padding: 58px 0 112px;
  }

  .hero-copy p,
  .page-hero p,
  .search-panel p {
    font-size: 16px;
  }

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

  .section-title,
  .detail-title-row {
    display: block;
  }

  .section-more,
  .detail-category {
    display: inline-flex;
    margin-top: 12px;
  }

  .compact-item {
    grid-template-columns: 84px 1fr;
  }

  .compact-item .list-rank {
    grid-column: 1 / -1;
  }

  .compact-item img {
    width: 84px;
    height: 58px;
  }
}
