* {
  box-sizing: border-box;
}

:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f7fffc 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #e5f7f2, #e2e8f0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: #374151;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--ink);
}

.hero-section {
  padding: 28px 0 0;
}

.hero-carousel {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  height: clamp(420px, 62vw, 660px);
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08)), linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 7vw, 82px);
  bottom: clamp(34px, 7vw, 78px);
  width: min(720px, calc(100% - 48px));
  color: #fff;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.14);
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.hero-pill {
  color: #fff;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.25);
}

.hero-copy h1 {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.04;
  margin: 18px 0 14px;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  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 {
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  color: #fff;
  box-shadow: 0 16px 28px rgba(5, 150, 105, 0.25);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

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

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

.quick-panel {
  padding: 34px 0 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.quick-grid h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.search-box {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-box input {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.search-box button,
.filter-buttons button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  color: #fff;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
}

.category-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a,
.tag-row span,
.filter-buttons button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 13px;
}

.content-section {
  padding: 52px 0;
}

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

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

.section-title h2,
.sub-hero h1,
.detail-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-more,
.text-link {
  color: var(--emerald);
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.poster img {
  transition: transform 0.5s ease;
}

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

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

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 16px;
}

.card-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.movie-card h3 a:hover {
  color: var(--emerald);
}

.movie-card p {
  margin: 0 0 12px;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.category-tile {
  display: block;
  min-height: 144px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #effdf8);
  border: 1px solid rgba(5, 150, 105, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: var(--emerald);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-showcase {
  display: grid;
  gap: 32px;
}

.showcase-block {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.showcase-block h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.sub-hero {
  padding: 72px 0 58px;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 28%), linear-gradient(135deg, #f8fafc, #ecfdf5);
}

.sub-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.rank-hero {
  background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 28%), linear-gradient(135deg, #111827, #064e3b);
  color: #fff;
}

.rank-hero p {
  color: rgba(255, 255, 255, 0.76);
}

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

.movie-card-large {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.movie-card-large .poster {
  aspect-ratio: auto;
  min-height: 180px;
}

.list-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  background: #ecfdf5;
  color: var(--emerald-dark);
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.detail-hero {
  padding: 54px 0;
  background: radial-gradient(circle at 16% 10%, rgba(16, 185, 129, 0.22), transparent 30%), linear-gradient(135deg, #f8fafc, #ecfdf5);
}

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

.detail-poster {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-copy .lead {
  max-width: 760px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta span {
  background: rgba(5, 150, 105, 0.12);
  color: var(--emerald-dark);
}

.detail-tags {
  margin: 22px 0;
}

.player-section {
  padding: 48px 0 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(5, 150, 105, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-size: 38px;
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.36);
}

.play-overlay strong {
  font-size: 20px;
}

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

.detail-content {
  padding: 42px 0 56px;
}

.detail-article {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 52px 0 34px;
}

.footer-grid h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-grid p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a:hover {
  color: #34d399;
}

.footer-bottom {
  padding: 20px 0 30px;
  color: #9ca3af;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .quick-grid,
  .footer-grid,
  .movie-card-large {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 560px;
    border-radius: 24px;
  }

  .hero-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.2));
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .category-overview-wide,
  .category-overview-grid,
  .movie-grid-six,
  .movie-grid-five,
  .movie-grid-four,
  .movie-grid-three,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 46px;
  }

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