:root {
  --emerald: #059669;
  --emerald-dark: #065f46;
  --teal: #0f766e;
  --cyan: #155e75;
  --orange: #f97316;
  --rose: #e11d48;
  --yellow: #eab308;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #065f46 0%, #0f766e 55%, #155e75 100%);
  box-shadow: 0 10px 25px rgba(4, 120, 87, 0.28);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

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

.brand-text small {
  margin-top: 4px;
  color: #d1fae5;
  font-size: 12px;
}

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

.nav-link {
  color: #ecfeff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #bbf7d0;
  transform: translateY(-1px);
}

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

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 47%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: #d1fae5;
  font-size: 14px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

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

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

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.primary-button:hover, .secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot.active {
  background: #ffffff;
}

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

.section {
  padding: 64px 0;
}

.section.white {
  background: #ffffff;
}

.section.dark {
  color: #ffffff;
  background: linear-gradient(90deg, #064e3b 0%, #115e59 52%, #164e63 100%);
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.dark .section-heading p {
  color: #a7f3d0;
}

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

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

.stat-card, .category-tile {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--emerald);
  font-size: 32px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.category-tile b {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-tile span {
  color: #d1fae5;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0e7490);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.32);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.movie-info {
  display: block;
  padding: 14px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin-bottom: 7px;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info span, .movie-info em {
  display: block;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-card, .compact-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.rank-card:hover, .compact-card:hover {
  transform: translateY(-3px);
}

.rank-num {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  font-weight: 900;
}

.rank-card img, .compact-card img {
  width: 88px;
  height: 116px;
  flex: none;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #064e3b, #0e7490);
}

.rank-info, .compact-info {
  min-width: 0;
}

.rank-info strong, .compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info small, .compact-info small {
  color: #6b7280;
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #065f46 0%, #0f766e 55%, #155e75 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar input, .filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
}

.player-section {
  padding: 22px 0 0;
  background: #000000;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
}

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

.player-action {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.88);
  font-size: 28px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-action:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

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

.detail-card, .side-card {
  margin-bottom: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.info-pills span, .tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 14px;
  font-weight: 700;
}

.detail-card h2, .side-card h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.detail-card p {
  color: #374151;
}

.review-box {
  padding: 18px;
  border-radius: 16px;
  color: #374151;
  background: #f9fafb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  color: #374151;
  background: #f3f4f6;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  padding: 60px 20px;
  border-radius: 22px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero {
    height: 560px;
  }

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

  .rank-grid, .footer-grid, .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 620px;
  }

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

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

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