:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --emerald-50: #ecfdf5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f8fafc 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
  box-shadow: 0 16px 32px rgba(6, 78, 59, 0.25);
}

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

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

.logo {
  font-size: 21px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #0d9488);
  box-shadow: 0 10px 24px rgba(52, 211, 153, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: #d1fae5;
}

.menu-button {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(3px) saturate(1.1) brightness(0.78);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 50%, rgba(16, 185, 129, 0.22), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(6, 78, 59, 0.76) 48%, rgba(15, 23, 42, 0.52));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
}

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

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(187, 247, 208, 0.35);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(240, 253, 244, 0.94);
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-bottom: 28px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag-chip {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(187, 247, 208, 0.24);
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.32);
}

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

.btn-ghost {
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(209, 250, 229, 0.28);
}

.hero-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(5, 150, 105, 0.92);
  border-radius: 999px;
  font-weight: 800;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #34d399;
}

.section {
  padding: 68px 0;
}

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

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
}

.section-heading p {
  max-width: 760px;
  margin: 12px auto 0;
  color: #64748b;
  line-height: 1.8;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: 32px;
}

.more-link {
  color: var(--green-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  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-card);
}

.featured-card {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.featured-card .card-cover {
  aspect-ratio: 4 / 3;
}

.card-cover img,
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .card-cover img,
.movie-card:hover .list-thumb img {
  transform: scale(1.08);
  opacity: 0.85;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.card-body {
  padding: 18px;
}

.card-body h3,
.list-body h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body a:hover h3,
.list-body a:hover h3 {
  color: var(--green-600);
}

.card-body p,
.list-body p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span:last-child {
  color: var(--green-700);
  font-weight: 800;
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.list-body {
  min-width: 0;
  padding: 8px 8px 8px 0;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.78));
}

.category-name,
.category-desc,
.category-samples {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-name {
  bottom: 92px;
  font-size: 24px;
  font-weight: 850;
}

.category-desc {
  bottom: 48px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.55;
}

.category-samples {
  bottom: 18px;
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.category-samples a {
  max-width: 33%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--green-800), var(--green-600));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 50px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  min-width: min(100%, 360px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-actions select,
.view-btn {
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  padding: 0 12px;
  font: inherit;
}

.view-btn {
  cursor: pointer;
  font-weight: 750;
}

.view-btn.is-active {
  color: #fff;
  border-color: var(--green-600);
  background: var(--green-600);
}

[data-card].is-hidden {
  display: none !important;
}

.movie-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
}

.movie-grid.is-list .movie-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.movie-grid.is-list .card-cover {
  border-radius: 14px;
}

.movie-grid.is-list .card-body {
  padding: 8px 8px 8px 0;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

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

.breadcrumb a {
  color: var(--green-700);
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-start {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 22px 40px rgba(16, 185, 129, 0.36);
  font-size: 36px;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: #64748b;
}

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
}

.detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.review-box {
  padding: 18px;
  border-left: 5px solid var(--green-500);
  border-radius: 14px;
  background: linear-gradient(90deg, #ecfdf5, #f8fafc);
}

.side-card {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

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

.related-item img {
  width: 120px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 42px;
  margin-top: 20px;
  text-align: center;
  color: #64748b;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    min-height: 600px;
  }

  .hero-content {
    gap: 0;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section {
    padding: 46px 0;
  }

  .section-title-row,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card-list,
  .movie-grid.is-list .movie-card {
    grid-template-columns: 1fr;
  }

  .list-body,
  .movie-grid.is-list .card-body {
    padding: 0;
  }

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

  .detail-card {
    padding: 22px;
  }

  .related-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .related-item img {
    width: 104px;
    height: 66px;
  }
}
