:root {
  --site-green-950: #052e1c;
  --site-green-900: #064e3b;
  --site-green-800: #065f46;
  --site-green-700: #047857;
  --site-green-600: #059669;
  --site-green-500: #10b981;
  --site-green-100: #d1fae5;
  --site-green-50: #ecfdf5;
  --site-yellow: #facc15;
  --site-red: #ef4444;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-border: #e5e7eb;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-radius: 18px;
  --site-shadow: 0 18px 40px rgba(6, 95, 70, 0.14);
  --site-soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fffb 0%, var(--site-bg) 42%, #ffffff 100%);
  color: var(--site-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 {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-green-700), var(--site-green-500));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.logo-text {
  font-size: 1.18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--site-green-100);
  opacity: 1;
}

.header-search {
  position: relative;
  width: min(260px, 24vw);
}

.header-search input,
.page-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  outline: 0;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding: 10px 16px 10px 38px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search input::placeholder {
  color: rgba(236, 253, 245, 0.82);
}

.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.24);
}

.header-search::before,
.page-search::before {
  content: "⌕";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-52%);
  color: currentColor;
  opacity: 0.72;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--site-green-800);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.mobile-menu a {
  display: block;
  padding: 11px 0;
  color: #ffffff;
}

.main-wrap {
  min-height: 64vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.54), transparent 38%), linear-gradient(135deg, #052e1c 0%, #064e3b 54%, #065f46 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  filter: blur(8px);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: 46px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--site-green-100);
  font-weight: 750;
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-title span {
  color: var(--site-green-100);
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(236, 253, 245, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 19px;
  border: 0;
  border-radius: 999px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--site-green-900);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button-green {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-green-700), var(--site-green-500));
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}

.hero-poster-info strong {
  display: block;
  font-size: 1.25rem;
}

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

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.section {
  padding: 58px 0;
}

.section-muted {
  background: #ffffff;
}

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

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--site-green-700);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.3vw, 2.25rem);
  line-height: 1.18;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--site-muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: var(--site-card);
  box-shadow: var(--site-soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--site-green-900), var(--site-green-600));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 760;
}

.card-rating {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: var(--site-yellow);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--site-green-800);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
}

.movie-title a:hover {
  color: var(--site-green-700);
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  color: var(--site-muted);
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--site-green-50);
  color: var(--site-green-800);
  font-weight: 700;
}

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, var(--site-green-50));
  box-shadow: var(--site-soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.category-card p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.93rem;
}

.category-card .category-arrow {
  display: inline-flex;
  margin-top: 18px;
  color: var(--site-green-700);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 46px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.52), transparent 30%), linear-gradient(135deg, var(--site-green-950), var(--site-green-700));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(236, 253, 245, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(236, 253, 245, 0.86);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--site-soft-shadow);
}

.page-search {
  position: relative;
  color: var(--site-muted);
}

.page-search input {
  padding: 13px 16px 13px 42px;
  color: var(--site-text);
  background: #f3f4f6;
}

.page-search input:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  background: #ffffff;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--site-green-50);
  color: var(--site-green-800);
  font-weight: 760;
  cursor: pointer;
}

.filter-tag.active {
  color: #ffffff;
  background: var(--site-green-700);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--site-muted);
  text-align: center;
  box-shadow: var(--site-soft-shadow);
}

.empty-state.show {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--site-soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green-700), var(--site-green-500));
  font-weight: 900;
}

.rank-cover img {
  width: 112px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 850;
}

.rank-title:hover {
  color: var(--site-green-700);
}

.rank-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--site-muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--site-soft-shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--site-green-800);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
  transform: translateZ(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.06);
  background: #ffffff;
}

.player-info {
  padding: 22px;
}

.player-info h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.player-info p {
  margin: 12px 0 0;
  color: var(--site-muted);
}

.detail-card {
  padding: 26px;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.detail-tags a,
.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--site-green-50);
  color: var(--site-green-800);
  font-size: 0.86rem;
  font-weight: 760;
}

.sidebar-card {
  padding: 18px;
}

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

.sidebar-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sidebar-item img {
  width: 74px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar-item strong {
  display: block;
  line-height: 1.35;
}

.sidebar-item span {
  display: block;
  margin-top: 5px;
  color: var(--site-muted);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 52px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green-950), var(--site-green-800));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: rgba(236, 253, 245, 0.84);
  font-size: 0.93rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(236, 253, 245, 0.78);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 82px;
  }

  .hero-poster-card {
    max-width: 360px;
  }

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

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

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

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

@media (max-width: 720px) {
  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .container,
  .hero-slide,
  .footer-inner,
  .footer-bottom,
  .mobile-menu-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-title {
    letter-spacing: -0.035em;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

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

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

  .rank-item {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-cover img {
    width: 82px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  .logo-text {
    font-size: 1rem;
  }

  .hero-stage {
    min-height: 690px;
  }

  .grid-cards,
  .grid-categories {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
