:root {
  --site-emerald: #059669;
  --site-teal: #0d9488;
  --site-cyan: #0891b2;
  --site-slate-950: #020617;
  --site-slate-900: #0f172a;
  --site-slate-800: #1e293b;
  --site-slate-700: #334155;
  --site-slate-600: #475569;
  --site-slate-500: #64748b;
  --site-slate-100: #f1f5f9;
  --site-slate-50: #f8fafc;
  --site-white: #ffffff;
  --site-amber: #f59e0b;
  --site-radius: 18px;
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-slate-900);
  background: linear-gradient(180deg, #ffffff 0%, var(--site-slate-50) 46%, #eefdf8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-emerald), var(--site-teal), var(--site-cyan));
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.22);
}

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

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--site-emerald);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
}

.brand-title {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-subtitle {
  display: block;
  margin-top: -3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #dcfce7;
  border-color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.search-pill input {
  width: 100%;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-pill input::placeholder {
  color: rgba(236, 253, 245, 0.82);
}

.search-pill button,
.menu-button {
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--site-slate-950);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 40%, rgba(20, 184, 166, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 710px;
  color: #ffffff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--site-emerald);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.3);
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
}

.hero p {
  margin: 18px 0 30px;
  max-width: 650px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button-primary,
.button-soft,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary:hover,
.button-soft:hover,
.button-outline:hover {
  transform: translateY(-2px);
}

.button-soft {
  color: #065f46;
  background: #d1fae5;
}

.button-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-hero {
  padding: 66px 0 46px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.38), transparent 28%),
    linear-gradient(135deg, var(--site-emerald), var(--site-teal), var(--site-cyan));
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 56px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: rgba(241, 245, 249, 0.7);
}

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

.section-eyebrow {
  color: var(--site-emerald);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 4px 0 0;
  color: var(--site-slate-800);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-desc {
  max-width: 720px;
  margin-top: 10px;
  color: var(--site-slate-600);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: #ffffff;
  border-radius: var(--site-radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--site-slate-800);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 32px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
}

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

.card-title {
  margin: 0 0 9px;
  color: var(--site-slate-800);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--site-slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--site-slate-500);
  font-size: 13px;
}

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

.category-card {
  display: block;
  min-height: 184px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--site-emerald), var(--site-teal), var(--site-cyan));
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(8, 145, 178, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(8, 145, 178, 0.26);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.88);
}

.filter-box {
  margin-bottom: 26px;
  padding: 18px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-box input {
  width: 100%;
  padding: 13px 16px;
  color: var(--site-slate-800);
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  outline: 0;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-amber), #f97316);
  border-radius: 16px;
  font-weight: 900;
}

.rank-thumb {
  width: 120px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-title {
  margin: 0 0 6px;
  color: var(--site-slate-800);
  font-size: 18px;
  font-weight: 900;
}

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

.rank-desc {
  margin: 0;
  color: var(--site-slate-600);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  padding: 58px 0 44px;
  color: #ffffff;
  background: var(--site-slate-950);
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(10px);
  transform: scale(1.05);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(34px, 6vw, 62px);
}

.detail-desc {
  max-width: 820px;
  margin: 18px 0 24px;
  color: #e2e8f0;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.watch-section {
  padding: 54px 0;
  background: #ffffff;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: var(--site-emerald);
  box-shadow: 0 18px 42px rgba(5, 150, 105, 0.32);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.04);
}

.article-box {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.article-card {
  padding: 26px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 12px;
  color: var(--site-slate-800);
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: var(--site-slate-700);
}

.footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--site-slate-950);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a:hover {
  color: #ffffff;
}

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

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

  body.menu-open .mobile-panel {
    display: block;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .search-pill {
    display: none;
  }

  .hero {
    height: 520px;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-action {
    display: none;
  }

  .rank-thumb {
    width: 96px;
    height: 64px;
  }

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

  .detail-poster {
    max-width: 260px;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .brand-title {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

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

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

  .section {
    padding: 42px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 46px 0 34px;
  }
}
