:root {
  --brand-dark: #064e3b;
  --brand-mid: #047857;
  --brand-light: #22c55e;
  --ink: #111827;
  --muted: #6b7280;
  --page: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #047857, #064e3b 58%, #052e2a);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.24);
}

.site-header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #bbf7d0;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
  display: none;
  padding: 0 24px 20px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #052e2a;
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
}

.hero::before {
  top: 72px;
  left: 7%;
  background: #22c55e;
}

.hero::after {
  right: 8%;
  bottom: 40px;
  background: #facc15;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 88px 0 94px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 14px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 800px;
}

.hero-summary {
  max-width: 680px;
  margin-top: 24px;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  margin-left: auto;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
}

.hero-poster-meta {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

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

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

.hero-dot.is-active {
  width: 56px;
  background: #bbf7d0;
}

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

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

.button-primary {
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
  background: #dcfce7;
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 58px 0;
}

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

.section-kicker {
  color: var(--brand-mid);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  margin-top: 8px;
}

.section-desc {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}

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

.movie-card {
  display: block;
  min-width: 0;
}

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

.movie-card-inner {
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #064e3b, #10b981);
}

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

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

.card-ribbon {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #065f46;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 120, 87, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-title {
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
  color: #1f2937;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.movie-card:hover .movie-card-title {
  color: var(--brand-mid);
}

.movie-card-text {
  min-height: 45px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-pill {
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #047857, #064e3b);
  box-shadow: 0 18px 40px rgba(6, 95, 70, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  right: -34px;
  bottom: -34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: #d1fae5;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #047857);
  font-weight: 900;
}

.rank-thumb {
  width: 88px;
  height: 66px;
  border-radius: 14px;
  overflow: hidden;
  background: #065f46;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  font-size: 17px;
  font-weight: 900;
  color: #1f2937;
}

.rank-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #047857, #064e3b 58%, #052e2a);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bbf7d0;
  font-size: 14px;
  margin-bottom: 16px;
}

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

.page-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-desc {
  max-width: 860px;
  margin-top: 18px;
  color: #d1fae5;
  line-height: 1.8;
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #1f2937;
  background: #f9fafb;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

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

.empty-state.is-visible {
  display: block;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-trigger {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #065f46;
  background: rgba(255, 255, 255, 0.96);
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-trigger:hover {
  transform: scale(1.06);
  background: #dcfce7;
}

.player-caption {
  padding: 22px;
}

.player-caption h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 900;
}

.player-caption p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-card {
  padding: 28px;
  margin-top: 28px;
}

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

.detail-card p {
  color: #374151;
  line-height: 1.9;
  margin-top: 12px;
}

.side-card {
  padding: 24px;
}

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

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin-top: 4px;
  color: #1f2937;
  font-weight: 800;
}

.footer {
  margin-top: auto;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer p {
  color: #9ca3af;
  line-height: 1.7;
  margin-top: 10px;
}

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

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

.footer-copy {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #374151;
  font-size: 14px;
}

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

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

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

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

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

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

  .hero,
  .hero-track {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    position: relative;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-copy {
    padding: 60px 0 20px;
  }

  .hero-poster {
    width: 100%;
    margin: 0 0 74px;
  }

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

@media (max-width: 620px) {
  .site-header-inner,
  .container,
  .page-hero-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

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

  .section-head {
    display: block;
  }

  .player-caption,
  .detail-card,
  .side-card {
    padding: 20px;
  }

  .play-trigger {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
