:root {
  --green-950: #052e22;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --teal-700: #0f766e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --yellow: #f59e0b;
  --orange: #ea580c;
  --blue: #2563eb;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 48%, var(--green-50) 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.28);
}

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

.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--green-900);
  background: linear-gradient(135deg, #ffffff, #bbf7d0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
}

.nav a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: var(--white);
  background: linear-gradient(115deg, var(--green-950), var(--green-800) 54%, var(--teal-700));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.35), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.28), transparent 30%),
    linear-gradient(180deg, transparent 70%, rgba(249, 250, 251, 1) 100%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 650px;
}

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

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

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 84px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #bbf7d0;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

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

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.7;
  color: #ecfdf5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 700;
}

.hero .pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--green-500);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.32);
}

.btn-primary:hover {
  background: var(--green-600);
}

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

.btn-soft {
  color: var(--green-700);
  background: var(--green-50);
}

.hero-art {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 520px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
  background: var(--slate-900);
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
}

.hero-card-info strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-card-info p {
  margin: 0;
  color: #d1fae5;
  line-height: 1.6;
}

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

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

.hero-dot.is-active {
  background: #86efac;
}

.search-panel {
  position: relative;
  z-index: 2;
  margin: -54px auto 0;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form input,
.filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
  color: var(--gray-800);
  background: var(--white);
}

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

.search-results {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
}

.search-results.is-open {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--gray-50);
  transition: background 0.2s ease;
}

.search-result:hover {
  background: var(--green-50);
}

.search-result img {
  width: 74px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-200);
}

.search-result strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: var(--gray-900);
}

.search-result span {
  font-size: 12px;
  color: var(--gray-500);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--green-50), var(--white));
}

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

.section-title {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.section-desc {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 720px;
}

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

.card-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

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

.movie-card:hover .movie-thumb img,
.rank-item:hover .rank-thumb img,
.related-item:hover img {
  transform: scale(1.08);
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.72));
  opacity: 0.8;
}

.duration,
.hot-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.duration {
  right: 10px;
  bottom: 10px;
}

.hot-badge {
  top: 10px;
  left: 10px;
  background: var(--green-600);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.55;
  font-size: 14px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--teal-700));
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #dcfce7;
  line-height: 1.6;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.rank-thumb {
  position: relative;
  overflow: hidden;
  width: 180px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--gray-200);
}

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

.rank-content h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-score {
  color: var(--green-700);
  font-weight: 900;
  white-space: nowrap;
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #dcfce7;
  font-size: 19px;
  line-height: 1.7;
}

.filter-panel {
  margin: -30px 0 36px;
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.filter-select {
  min-height: 48px;
  min-width: 140px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--gray-700);
  background: var(--white);
  outline: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.play-circle {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 18px 48px rgba(16, 185, 129, 0.38);
}

.play-circle::before {
  content: "";
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid currentColor;
}

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

.detail-card,
.sidebar-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  color: var(--gray-900);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: var(--gray-600);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.85;
}

.review-box {
  padding: 18px;
  border-left: 4px solid var(--green-500);
  border-radius: 14px;
  background: linear-gradient(90deg, var(--green-50), var(--white));
}

.sidebar-card {
  padding: 20px;
  position: sticky;
  top: 88px;
}

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

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

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

.related-item img {
  width: 104px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-200);
  transition: transform 0.3s ease;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.35;
}

.related-item span {
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
  margin-top: 64px;
}

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

.footer-grid h3,
.footer-grid h4 {
  color: var(--white);
  margin: 0 0 14px;
}

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

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

.footer-grid a:hover {
  color: #86efac;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

.empty-state {
  display: none;
  padding: 44px 20px;
  border-radius: 18px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

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

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

  .hero-art {
    max-width: 560px;
  }
}

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: var(--green-800);
    box-shadow: 0 16px 30px rgba(6, 95, 70, 0.28);
  }

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

  .nav a {
    padding: 12px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero,
  .hero-slider,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 52px 0 88px;
    gap: 28px;
  }

  .hero-card,
  .hero-card img {
    min-height: 380px;
    height: 380px;
  }

  .search-form,
  .filter-row,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .rank-score {
    grid-column: 3;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-card,
  .hero-card img {
    min-height: 310px;
    height: 310px;
  }

  .search-panel {
    margin-top: -40px;
    padding: 14px;
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .card-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 40px 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-thumb {
    width: 92px;
  }

  .rank-content h3 {
    font-size: 16px;
  }

  .rank-content p {
    display: none;
  }

  .detail-card {
    padding: 20px;
  }

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

  .related-item img {
    width: 92px;
    height: 62px;
  }

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