:root {
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --emerald-50: #ecfdf5;
  --yellow-400: #facc15;
  --orange-500: #f97316;
  --pink-500: #ec4899;
  --blue-500: #3b82f6;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 34px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.22);
  --radius-xl: 18px;
  --radius-2xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #16a34a 0%, #059669 52%, #047857 100%);
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  font-size: 30px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--yellow-400);
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 18px;
  background: #065f46;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #047857 0%, #10b981 46%, #0f766e 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 22% 18%, rgba(250, 204, 21, 0.28), transparent 28%), radial-gradient(circle at 82% 30%, rgba(59, 130, 246, 0.22), transparent 26%), rgba(0, 0, 0, 0.32);
}

.hero-track {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 560px;
  margin: 0 auto;
  padding: 54px 20px 80px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 44px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fef9c3;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.hero-info span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
}

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

.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) scale(1.02);
}

.btn-primary {
  color: #111827;
  background: var(--yellow-400);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.32);
}

.btn-primary:hover {
  background: #fde047;
}

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

.hero-visual {
  position: relative;
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.hero-poster img {
  height: 420px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card-mini {
  position: absolute;
  right: -14px;
  bottom: -26px;
  max-width: 270px;
  padding: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.hero-card-mini strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.hero-card-mini span {
  color: #4b5563;
  font-size: 13px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #facc15;
}

.wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 96px;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.72) 52%, transparent 100%);
}

.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 20px 72px;
}

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

.stat-card {
  padding: 24px;
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #ec4899, #e11d48);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #3b82f6, #0891b2);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #f97316, #d97706);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #22c55e, #059669);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 22px;
}

.section-heading div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  grid-column: 2 / 3;
  margin: 4px 0 0;
  color: #64748b;
}

.section-icon {
  font-size: 28px;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  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.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d1d5db;
}

.poster img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  right: 12px;
  color: #111827;
  background: #facc15;
}

.poster-type {
  bottom: 12px;
  left: 12px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: #059669;
}

.movie-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #667085;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #4b5563;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  color: #ffffff;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #059669, #0f766e);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 1) {
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

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

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

.category-card .cat-icon {
  font-size: 38px;
}

.category-card h2,
.category-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #065f46, #10b981 58%, #0f766e);
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin: -28px 0 38px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  font-size: 15px;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.rank-list {
  display: grid;
  gap: 14px;
  margin-bottom: 50px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.rank-no {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.rank-cover img {
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: #64748b;
}

.rank-link {
  padding: 10px 16px;
  color: #ffffff;
  background: #059669;
  border-radius: 999px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  background: #0f172a;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.player-stage {
  position: relative;
  min-height: 430px;
  background: #020617;
}

.player-stage video {
  width: 100%;
  min-height: 430px;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.player-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.62), rgba(5, 150, 105, 0.42));
}

.play-button {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #111827;
  background: #facc15;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 32px;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.player-title {
  padding: 18px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #064e3b);
}

.player-title h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.detail-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.78);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.detail-panel h2,
.article-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.meta-list span {
  padding: 10px 12px;
  color: #334155;
  background: #f8fafc;
  border-radius: 14px;
  font-size: 14px;
}

.article-card {
  margin-top: 26px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.78);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.article-card p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 16px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #047857;
  font-weight: 700;
}

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

.small-card .poster img {
  height: 160px;
}

.empty-message {
  display: none;
  padding: 30px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
}

.content-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 54px 20px 74px;
}

.content-page h1 {
  margin: 0 0 18px;
  font-size: 38px;
}

.content-page section {
  margin: 0 0 22px;
  padding: 24px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.content-page h2 {
  margin: 0 0 10px;
}

.content-page p {
  margin: 0;
  color: #475569;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827 0%, #1f2937 56%, #111827 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 34px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #facc15;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #d1d5db;
  font-size: 14px;
}

.site-footer a:hover {
  color: #facc15;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
  text-align: center;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #059669);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 22px;
}

.back-top.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: 320px;
  }

  .hero-card-mini {
    right: 14px;
  }

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

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

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

@media (max-width: 640px) {
  .nav-wrap {
    height: 60px;
    padding: 0 14px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-track {
    padding: 34px 16px 76px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .main {
    padding: 38px 14px 58px;
  }

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

  .poster img {
    height: 250px;
  }

  .rank-item {
    grid-template-columns: 48px 86px minmax(0, 1fr);
  }

  .rank-link {
    grid-column: 1 / -1;
    text-align: center;
  }

  .player-stage,
  .player-stage video {
    min-height: 250px;
  }

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