* {
  box-sizing: border-box;
}

:root {
  --green-950: #052e1b;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber: #f59e0b;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
  box-shadow: 0 12px 36px rgba(6, 78, 59, 0.24);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: var(--green-900);
  background: linear-gradient(135deg, #bbf7d0, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.nav-menu a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.82);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.5), transparent 32%), linear-gradient(135deg, #032b1d, #064e3b 48%, #0f766e);
}

.hero::after {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  content: "";
  filter: blur(5px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(2px);
  transform: scale(1.04);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 44, 34, 0.96), rgba(2, 44, 34, 0.72), rgba(15, 118, 110, 0.72));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 64px 0 92px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(187, 247, 208, 0.3);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: #bbf7d0;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.button-primary,
.button-ghost,
.button-light {
  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;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.3);
}

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

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.button-light {
  color: var(--green-900);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #134e4a, #022c22);
}

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

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

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

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

.section {
  padding: 70px 0;
}

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

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

.section-head.center {
  display: block;
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h1,
.section-head h2,
.category-hero h1,
.detail-info h1 {
  margin: 12px 0 12px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.section-head p,
.category-hero p,
.detail-info p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.8;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #064e3b);
}

.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.07);
}

.play-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: rgba(16, 185, 129, 0.84);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.34);
}

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

.duration-badge,
.rank-badge,
.score-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.76);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

.card-body {
  padding: 16px;
}

.card-topline,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card p {
  margin: 0 0 14px;
  min-height: 44px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta a,
.card-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 700;
}

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

.featured-row .poster-link img {
  aspect-ratio: 16 / 12;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.movie-card-wide .poster-link img {
  height: 100%;
  min-height: 160px;
  aspect-ratio: auto;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  box-shadow: 0 16px 38px rgba(6, 95, 70, 0.18);
}

.category-tile::after {
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-hero,
.page-hero {
  padding: 62px 0;
  background: linear-gradient(135deg, #ecfdf5, #ffffff 48%, #d1fae5);
}

.filter-panel {
  margin: 34px 0 28px;
  padding: 18px;
  border: 1px solid rgba(5, 150, 105, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
  gap: 14px;
  align-items: end;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe7df;
  border-radius: 14px;
  padding: 0 13px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

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

.filter-row button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--slate-600);
  background: var(--slate-100);
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--green-900));
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.28), transparent 36%);
  content: "";
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #134e4a, #022c22);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-info h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.detail-info p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-meta {
  margin-top: 22px;
}

.player-section {
  padding: 62px 0 34px;
  background: #020617;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.84));
  cursor: pointer;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 42px);
  text-align: center;
}

.player-cover span:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.player-button {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.32);
  font-size: 28px;
}

.player-card.is-playing .player-cover {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.article-box,
.side-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 24px;
}

.article-box p {
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-card img {
  width: 74px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #064e3b);
}

.compact-card span {
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.45;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

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

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

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 22px;
    background: var(--green-900);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
  }

  .hero-content,
  .detail-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .movie-card-wide {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

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

  .brand,
  .footer-brand {
    font-size: 18px;
  }

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

  .hero-content {
    gap: 26px;
    padding: 44px 0 88px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .movie-grid.three,
  .featured-row,
  .category-strip,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .poster-link img {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .detail-hero {
    padding: 36px 0;
  }

  .article-box,
  .side-box {
    padding: 20px;
  }
}
