:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #d1fae5;
  --teal: #0f766e;
  --cyan: #0891b2;
  --rose: #e11d48;
  --amber: #d97706;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f5 44%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-wrap {
  width: min(var(--container), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 12px 22px rgba(5, 150, 105, 0.25);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
}

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

.search-holder {
  position: relative;
  width: 250px;
}

.search-holder input,
.page-search input {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-holder input:focus,
.page-search input:focus {
  border-color: rgba(5, 150, 105, 0.6);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--slate-100);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
}

.search-result-item strong {
  display: block;
  line-height: 1.3;
}

.search-result-item small {
  color: var(--slate-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--slate-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-700);
}

.mobile-panel {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 197, 94, 0.55), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(6, 182, 212, 0.45), transparent 26%),
    linear-gradient(135deg, #064e3b 0%, #0f766e 42%, #0f172a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 94px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #065f46;
  background: rgba(209, 250, 229, 0.92);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-label {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.hero h1 {
  max-width: 880px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-head p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(5, 150, 105, 0.32);
}

.btn.btn-light {
  color: var(--emerald-dark);
  background: var(--white);
}

.btn.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-carousel {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--slate-900);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.36);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: end;
  padding: 46px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 55%);
}

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

.hero-copy,
.hero-poster,
.hero-controls {
  position: relative;
  z-index: 2;
}

.hero-copy h2 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-tags span,
.meta-row span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--emerald-dark);
  background: rgba(209, 250, 229, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.hero-poster img {
  width: 320px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  border: 8px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-controls {
  position: absolute;
  left: 46px;
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 30px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
}

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

.section {
  padding: 64px 0;
}

.section-bg {
  width: 100%;
  margin: 34px 0;
  padding: 68px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 50%, #ecfdf5 100%);
}

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

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

.section-heading h2 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--slate-600);
}

.section-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  font-weight: 800;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.featured-media {
  position: relative;
  min-height: 370px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-media img {
  transform: scale(1.06);
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  margin: 14px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.featured-content p {
  color: var(--slate-600);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.movie-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-poster figcaption,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.movie-card-body {
  padding: 14px;
}

.movie-card h3 {
  margin: 0 0 7px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-line {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  display: grid;
  gap: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile span {
  color: var(--emerald-dark);
  font-weight: 800;
}

.category-tile h2 {
  margin: 6px 0;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--slate-600);
}

.page-hero {
  width: min(var(--container), calc(100% - 32px));
  margin: 34px auto 0;
  padding: 46px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.32), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--teal));
  box-shadow: var(--shadow-lg);
}

.page-hero h1 {
  max-width: 840px;
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.page-search {
  width: min(440px, 100%);
}

.filter-count {
  color: var(--slate-500);
  font-weight: 800;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
}

.ranking-row > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 900;
}

.ranking-row img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row strong,
.ranking-row small {
  display: block;
}

.ranking-row small {
  color: var(--slate-500);
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-pulse {
  display: inline-grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.18), 0 28px 60px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

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

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

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

.detail-card h1 {
  margin: 14px 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.detail-intro {
  color: var(--slate-700);
  font-size: 18px;
  font-weight: 700;
}

.detail-section h2,
.sidebar-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-section p {
  margin: 0 0 14px;
  color: var(--slate-700);
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card + .sidebar-card {
  margin-top: 20px;
}

.side-poster {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.side-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 10px;
}

.side-meta span {
  color: var(--slate-500);
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.footer-bottom button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  color: var(--slate-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

@media (max-width: 980px) {
  .desktop-nav,
  .nav-wrap > .search-holder {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-search {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-head,
  .hero-slide,
  .featured-card,
  .ranking-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-slide {
    align-items: start;
    padding: 30px;
  }

  .hero-poster img {
    width: min(260px, 72vw);
  }

  .hero-controls {
    left: 30px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-inner {
    padding: 46px 0 70px;
  }

  .hero-carousel {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    gap: 20px;
    padding: 24px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading,
  .page-tools,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .featured-content,
  .detail-card {
    padding: 22px;
  }

  .ranking-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .ranking-row img {
    width: 58px;
    height: 78px;
  }
}
