:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-name,
.footer-brand {
  font-size: 21px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--slate-700);
  background: transparent;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav a {
  padding: 11px 12px;
  color: var(--slate-700);
  font-weight: 650;
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--emerald-600);
  background: var(--slate-50);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(16, 185, 129, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(0, 0, 0, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 74px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.82);
  border-radius: 999px;
}

.section-kicker {
  color: var(--emerald-700, #047857);
  background: rgba(16, 185, 129, 0.12);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.section-action,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 12px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: var(--white);
  background: var(--emerald-500);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.33);
}

.primary-button:hover,
.rank-action:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.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.active {
  width: 34px;
  background: var(--emerald-500);
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 16px;
  align-items: center;
  margin-top: -34px;
  padding: 18px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  outline: 0;
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.search-box span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--emerald-600);
  font-size: 20px;
  font-weight: 900;
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-categories a {
  padding: 10px 14px;
  color: var(--slate-700);
  font-weight: 700;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
}

.quick-categories a:hover {
  color: var(--emerald-600);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.page-stack {
  padding: 56px 0 76px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-action {
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.10);
}

.section-action:hover {
  color: var(--white);
  background: var(--emerald-500);
}

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

.compact-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
}

.play-chip {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 36px;
  opacity: 0;
  background: rgba(16, 185, 129, 0.92);
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: block;
  color: var(--slate-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

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

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--emerald-600);
  font-size: 12px;
  font-weight: 750;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.09);
}

.hero-tags span {
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
}

.inner-page {
  padding: 34px 0 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.page-hero {
  margin-bottom: 42px;
  padding: 42px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-card);
}

.rank-hero {
  background:
    radial-gradient(circle at 18% 24%, rgba(20, 184, 166, 0.20), transparent 38%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
}

.page-hero h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.inline-search {
  max-width: 480px;
  margin-top: 24px;
}

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

.category-tile {
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 17px;
  aspect-ratio: 16 / 11;
  color: var(--white);
  background: var(--slate-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.92;
  transform: scale(1.05);
}

.category-tile span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.category-tile p {
  margin: 12px 2px 0;
  color: var(--slate-500);
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-number {
  color: var(--emerald-600);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: var(--slate-100);
}

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

.rank-title {
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 880;
}

.rank-content p {
  margin: 6px 0 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.rank-action {
  color: var(--white);
  background: var(--emerald-500);
}

.detail-page {
  padding-bottom: 90px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 52px;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-soft);
}

.video-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #020617;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

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

.big-play {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  color: var(--white);
  border-radius: 999px;
  background: var(--emerald-500);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.35);
}

.detail-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--slate-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-poster {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--slate-100);
}

.detail-copy h1 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 16px;
  color: var(--slate-600);
  line-height: 1.8;
}

.detail-meta span,
.detail-meta a {
  color: var(--slate-600);
  background: var(--slate-100);
}

.article-section {
  padding: 34px;
  border: 1px solid var(--slate-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.article-section h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
}

.article-section h2:not(:first-child) {
  margin-top: 30px;
}

.article-section p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 2;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 20px;
  color: var(--slate-500);
  text-align: center;
  border: 1px dashed var(--slate-300);
  border-radius: 18px;
  background: var(--white);
}

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

.site-footer {
  padding: 48px 0;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 12px;
  color: var(--slate-600);
  border-radius: 999px;
  background: var(--slate-50);
}

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

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
  }

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

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

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

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

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

  .hero {
    height: 540px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

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

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

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

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-action {
    grid-column: 2 / 4;
  }

  .detail-panel {
    grid-template-columns: 120px 1fr;
  }

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

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

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

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

  .hero {
    height: 520px;
  }

  .hero-copy {
    max-width: 100%;
  }

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

  .quick-panel {
    margin-top: -22px;
    padding: 12px;
    border-radius: 18px;
  }

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

  .movie-info {
    padding: 12px;
  }

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

  .page-hero,
  .article-section {
    padding: 24px;
    border-radius: 20px;
  }

  .rank-row {
    grid-template-columns: 36px 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    font-size: 22px;
  }

  .rank-title {
    font-size: 16px;
  }

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

  .detail-poster {
    height: auto;
    max-height: 360px;
  }

  .player-card,
  .video-player {
    min-height: 260px;
  }
}
