:root {
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-teal: #0d9488;
  --color-orange: #f97316;
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  background: linear-gradient(135deg, #0f172a, #047857);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

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

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 26px 0;
  transition: color 180ms ease;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  width: 260px;
  max-width: 30vw;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  background: #f0fdf4;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 8px 11px 16px;
  color: #064e3b;
  outline: none;
  background: transparent;
}

.header-search button {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: var(--color-emerald);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #064e3b;
  background: #d1fae5;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav form {
  display: flex;
  margin-top: 14px;
  border-radius: 14px;
  background: #f0fdf4;
  overflow: hidden;
}

.mobile-nav input {
  flex: 1;
  padding: 12px 14px;
  outline: none;
  background: transparent;
}

.mobile-nav button {
  padding: 12px 16px;
  color: #ffffff;
  background: var(--color-emerald);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.24), transparent 30%), linear-gradient(135deg, #022c22, #064e3b 46%, #0f766e);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 44, 34, 0.96), rgba(2, 44, 34, 0.7), rgba(2, 44, 34, 0.2));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 74px 24px;
}

.hero-copy {
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 243, 208, 0.36);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.52);
}

.hero-title {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-title span {
  color: #a7f3d0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn-primary {
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: #022c22;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  min-height: 500px;
}

.hero-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 720ms ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.05));
}

.hero-slide-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  color: #ffffff;
}

.hero-slide-info h2 {
  margin: 12px 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-slide-info p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 32px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-tight {
  padding-top: 32px;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--color-emerald);
  font-weight: 900;
}

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 780px;
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.8;
}

.view-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-emerald);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

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

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 45%);
  opacity: 0.9;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--color-emerald);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.card-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.card-duration {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-title {
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
  color: #111827;
}

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

.card-text {
  min-height: 44px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0f766e);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  bottom: -42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), #ef4444);
  font-size: 18px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--color-emerald);
}

.rank-summary {
  color: var(--color-muted);
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.page-hero {
  background: linear-gradient(135deg, #064e3b, #0f766e);
  color: #ffffff;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 30px;
}

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

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

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(2, 6, 23, 0.72));
}

.player-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--color-emerald);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.08);
}

.detail-panel {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.detail-title {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.detail-section h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin-bottom: 14px;
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.side-card h2,
.side-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.side-item img {
  width: 72px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-item strong:hover {
  color: var(--color-emerald);
}

.side-item span {
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.footer-desc {
  max-width: 620px;
  margin-top: 12px;
  color: var(--color-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 22px;
  color: #374151;
  font-weight: 700;
}

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

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: #9ca3af;
  font-size: 13px;
}

.empty-result {
  display: none;
  padding: 34px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-muted);
  background: #ffffff;
}

.empty-result.show {
  display: block;
}

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

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

  .header-search {
    display: none;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-card {
    height: 420px;
  }

  .rank-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 22px;
  }

  .section,
  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

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

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

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .hero-title {
    letter-spacing: -0.06em;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 380px;
  }

  .hero-card {
    height: 380px;
    border-radius: 24px;
  }

  .hero-slide-info {
    padding: 22px;
  }

  .hero-slide-info h2 {
    font-size: 26px;
  }

  .detail-panel,
  .side-card {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
