* {
  box-sizing: border-box;
}

:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --pink-500: #ec4899;
  --rose-600: #e11d48;
  --blue-500: #3b82f6;
  --cyan-600: #0891b2;
  --orange-500: #f97316;
  --amber-600: #d97706;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #fefce8 100%);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #d1fae5, #fef3c7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-800), var(--green-600));
  box-shadow: 0 10px 30px rgba(6, 95, 70, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 20px;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gray-900);
  background: var(--yellow-400);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}

.section-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 20px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--green-800), var(--green-500), #0f766e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.2) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(250, 204, 21, 0.18), transparent 32%), linear-gradient(90deg, rgba(4, 78, 59, 0.94), rgba(5, 150, 105, 0.72), rgba(3, 7, 18, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 48px;
  align-items: center;
  max-width: 1220px;
  min-height: 620px;
  margin: 0 auto;
  padding: 70px 20px 86px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.page-hero p:first-child,
.section-heading p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow-300);
}

.hero-title-small {
  margin: 0 0 10px;
  color: var(--yellow-300);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  font-size: clamp(30px, 4vw, 56px);
}

.hero-copy p,
.page-hero p,
.detail-hero p {
  max-width: 760px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

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

.btn.primary {
  color: var(--gray-900);
  background: var(--yellow-400);
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.28);
}

.btn.primary:hover {
  background: var(--yellow-300);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-poster,
.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--yellow-400);
  font-weight: 800;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--yellow-400);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  padding-top: 0;
}

.stat-card {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.stat-card span {
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.stat-card.pink {
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
}

.stat-card.blue {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-600));
}

.stat-card.orange {
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
}

.stat-card.green {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

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

.section-heading.compact {
  align-items: start;
  display: block;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--gray-900);
}

.section-heading a,
.section-heading span {
  color: var(--green-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #bbf7d0, #fef08a);
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: rgba(6, 95, 70, 0.86);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: var(--rose-600);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--green-700);
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-700);
  background: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
}

.card-foot a {
  color: var(--green-700);
  font-weight: 800;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #16a34a);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

.category-card strong,
.category-card em {
  display: block;
}

.category-card em {
  margin-top: 4px;
  font-style: normal;
  opacity: 0.82;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.panel-card,
.article-panel,
.info-panel,
.player-panel,
.search-box,
.category-overview-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.panel-card {
  padding: 28px;
}

.mini-list,
.ranking-list {
  display: grid;
  gap: 14px;
}

.mini-item,
.ranking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-item:hover,
.ranking-row:hover {
  background: #ecfdf5;
  transform: translateX(4px);
}

.mini-item img {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-item strong,
.ranking-row span {
  display: block;
  color: var(--gray-900);
  font-weight: 800;
}

.mini-item em,
.ranking-row em {
  display: block;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.ranking-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--gray-900);
  background: var(--yellow-400);
}

.ranking-row span {
  flex: 1;
}

.search-entry {
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  box-shadow: var(--shadow-lg);
}

.search-entry h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.search-entry p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.22), transparent 32%), linear-gradient(120deg, var(--green-800), var(--green-500));
}

.page-hero .section-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
}

.category-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
}

.category-cover span {
  font-size: 42px;
}

.category-cover strong {
  margin-top: 12px;
  font-size: 18px;
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
}

.category-overview-card p {
  color: var(--gray-600);
}

.category-overview-card a:last-child {
  color: var(--green-700);
  font-weight: 800;
}

.search-wrap {
  padding-top: 36px;
}

.search-box {
  position: relative;
  padding: 12px;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 56px 0 20px;
  border: 2px solid var(--gray-200);
  border-radius: 18px;
  outline: none;
  color: var(--gray-900);
  font-size: 18px;
}

.search-box input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.search-box span {
  position: absolute;
  right: 32px;
  top: 50%;
  color: var(--green-700);
  font-size: 28px;
  transform: translateY(-50%);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--white);
  background: var(--green-600);
  box-shadow: none;
}

.search-count {
  margin-bottom: 18px;
  color: var(--gray-600);
  font-weight: 800;
}

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

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: center;
}

.breadcrumb,
.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.detail-cover {
  transform: rotate(1deg);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.75fr;
  gap: 28px;
  align-items: start;
}

.player-panel,
.info-panel,
.article-panel {
  padding: 28px;
}

.player-panel h2,
.info-panel h2,
.article-panel h2 {
  margin: 0 0 18px;
  color: var(--gray-900);
  font-size: 28px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--gray-950);
  box-shadow: var(--shadow-lg);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-950);
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.26), rgba(3, 7, 18, 0.76));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--yellow-400);
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(250, 204, 21, 0.32);
}

.player-start strong {
  font-size: 18px;
}

.player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.info-panel dt {
  color: var(--gray-500);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: var(--gray-900);
}

.article-panel {
  font-size: 18px;
}

.article-panel p {
  margin: 0 0 24px;
  color: var(--gray-700);
}

.simple-panel {
  max-width: 980px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 20px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--yellow-400);
  font-size: 18px;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

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

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--yellow-400);
  box-shadow: var(--shadow-md);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.back-to-top.is-visible {
  display: block;
}

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

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

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

  .hero-poster,
  .detail-cover {
    max-width: 320px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: var(--green-800);
    box-shadow: var(--shadow-lg);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .stats-strip,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero-content {
    padding-top: 48px;
    gap: 26px;
  }

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

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

  .stat-card {
    min-height: 124px;
  }

  .player-panel,
  .info-panel,
  .article-panel,
  .panel-card {
    padding: 20px;
  }
}
