:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --primary: #10b981;
  --primary-dark: #059669;
  --cyan: #06b6d4;
  --ink: #0b1220;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: 1240px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.32);
}

.brand-text,
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #059669, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: #334155;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--primary-dark);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  width: 230px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

button,
.btn,
.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover,
.header-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.25);
}

.btn.secondary {
  color: #0f766e;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.62), transparent 34%), radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.58), transparent 32%), linear-gradient(135deg, #061521 0%, #0f2c2e 42%, #06202f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.74), rgba(3, 7, 18, 0.32), rgba(3, 7, 18, 0.86));
  z-index: 1;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 660px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  align-items: center;
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.65s ease both;
}

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1.8deg);
  background: rgba(255, 255, 255, 0.1);
  aspect-ratio: 2 / 3;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 48%);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

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

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.22));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.card-body {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.card-body strong {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body em {
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.card-body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-line {
  margin-top: auto;
  color: #0891b2;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  position: relative;
  min-height: 168px;
  padding: 24px;
  color: #ffffff;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.28), transparent 24%), linear-gradient(135deg, #10b981, #0891b2);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.18);
}

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

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

.category-card em {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-style: normal;
  font-size: 38px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.26);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-row img {
  width: 58px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
}

.rank-num {
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-heat {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  padding: 74px 24px 42px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.58), transparent 34%), linear-gradient(135deg, #061521, #0c3b43);
}

.page-title {
  max-width: 1240px;
  margin: 0 auto;
}

.page-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar input {
  width: min(100%, 360px);
}

.filter-bar select {
  width: 160px;
}

.detail-wrap {
  background: #061521;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 70% 12%, rgba(6, 182, 212, 0.34), transparent 24%), linear-gradient(135deg, #030712 0%, #0f2e35 100%);
}

.detail-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px 64px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-copy .lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.breadcrumb a {
  color: #a7f3d0;
}

.player-panel {
  max-width: 1240px;
  margin: -30px auto 0;
  padding: 0 24px 56px;
  position: relative;
  z-index: 2;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.64), rgba(6, 182, 212, 0.14));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-overlay button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 32px;
  padding: 0;
}

.content-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
}

.article-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.article-card {
  padding: 32px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
}

.side-card {
  padding: 22px;
  align-self: start;
}

.side-card .rank-row {
  grid-template-columns: 34px 46px minmax(0, 1fr);
  padding: 8px;
  box-shadow: none;
}

.side-card .rank-row img {
  width: 46px;
  height: 64px;
  border-radius: 10px;
}

.side-card .rank-heat {
  display: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.1);
  font-weight: 800;
  font-size: 13px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.1);
  font-weight: 800;
}

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
  }

  .header-search {
    width: 100%;
    margin-left: 0;
  }

  .header-search input {
    width: 100%;
    flex: 1;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide,
  .detail-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-slide {
    padding: 46px 18px 82px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .rank-row {
    grid-template-columns: 40px 50px minmax(0, 1fr);
  }

  .rank-row img {
    width: 50px;
    height: 70px;
  }

  .rank-heat {
    display: none;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

  .section,
  .content-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-body {
    min-height: 148px;
    padding: 12px;
  }

  .article-card {
    padding: 22px;
  }
}
