:root {
  --site-bg: #f7faf9;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #111827;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --blue-soft: #eff6ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-family: 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;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f8fafc 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #2563eb);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.28);
  font-size: 18px;
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-button {
  border: 0;
  background: transparent;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button:hover {
  background: #f3f4f6;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

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

.mobile-link:hover {
  background: #f3f4f6;
}

.main {
  min-height: 60vh;
}

.home-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.42);
  transform: scale(1.09);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.62) 50%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 360px);
  align-items: center;
  gap: 60px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-kicker strong,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--emerald);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy p {
  font-size: 20px;
  line-height: 1.75;
  color: #e5e7eb;
  margin: 22px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.32);
}

.primary-button:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.84));
  backdrop-filter: blur(8px);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 22px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

.stack {
  display: grid;
  gap: 72px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-heading h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.section-line {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0));
}

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

.section-more:hover {
  color: var(--emerald-dark);
}

.section-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 860px;
  margin: -14px 0 30px;
}

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

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

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

.poster-card,
.wide-card,
.rank-card {
  min-width: 0;
}

.poster-link,
.wide-link,
.rank-link {
  display: block;
  height: 100%;
}

.poster-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link:hover .poster-image {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

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

.poster-link:hover img,
.wide-link:hover img,
.rank-link:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-hover {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 14px 14px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.poster-link:hover .poster-hover {
  opacity: 1;
  transform: translateY(0);
}

.poster-link strong {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.poster-link:hover strong,
.wide-link:hover strong,
.rank-link:hover strong {
  color: var(--emerald);
}

.poster-link > span:last-child {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.spotlight-panel {
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.wide-link {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-link:hover,
.rank-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.wide-cover {
  flex: 0 0 126px;
  width: 126px;
  height: 126px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.wide-cover img,
.rank-cover img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wide-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.wide-info strong,
.rank-info strong {
  font-size: 17px;
  line-height: 1.45;
}

.wide-info em,
.rank-info em {
  color: #4b5563;
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-info span,
.rank-info span {
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background: #111827;
}

.category-cover img {
  filter: saturate(1.05);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(5, 150, 105, 0.72));
}

.category-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: end;
  min-height: 220px;
}

.category-content h2,
.category-content h3 {
  margin: 0;
  font-size: 24px;
}

.category-content p {
  margin: 0;
  line-height: 1.7;
  color: #e5e7eb;
}

.category-content span {
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 800;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 56px 90px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-cover {
  width: 90px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.rank-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-hero {
  background: linear-gradient(135deg, #059669, #2563eb);
  color: #ffffff;
}

.page-hero .container {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

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

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 30px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
  font: inherit;
}

.filter-search input:focus,
.filter-selects select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

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

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

.empty-state {
  display: none;
  color: var(--muted);
  text-align: center;
  padding: 46px 0;
  font-size: 18px;
}

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

.detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 38px 24px 70px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.player-card,
.detail-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  border: 0;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 150, 105, 0.94);
  color: #ffffff;
  box-shadow: 0 16px 45px rgba(5, 150, 105, 0.38);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 34px;
  padding-left: 5px;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--emerald-dark);
}

.detail-content {
  padding: 34px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.detail-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

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

.detail-section p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.85;
  font-size: 16px;
}

.review-box {
  padding: 22px;
  border-radius: 20px;
  background: #f8fafc;
  color: #374151;
  line-height: 1.85;
}

.related-section {
  margin-top: 46px;
}

.related-section h2 {
  font-size: 28px;
  margin: 0 0 24px;
}

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

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

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

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

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

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

  .site-nav {
    padding: 0 16px;
  }

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

  .home-hero {
    min-height: 640px;
    height: auto;
  }

  .hero-slide {
    min-height: 640px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 72px 20px 86px;
  }

  .hero-poster {
    width: min(260px, 78vw);
    justify-self: center;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    padding: 46px 18px;
  }

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

  .section-line {
    width: 100%;
    flex: 0 0 4px;
  }

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

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

  .wide-link,
  .rank-link {
    grid-template-columns: 1fr;
  }

  .wide-cover,
  .rank-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .detail-wrap {
    padding: 24px 14px 52px;
  }

  .detail-content {
    padding: 24px;
  }

  .detail-title-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .poster-grid,
  .compact-grid,
  .category-grid,
  .wide-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    padding: 22px;
  }

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

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
