:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --rose-500: #f43f5e;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 16px 38px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-700), var(--slate-900));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--slate-900);
  background: var(--emerald-400);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text em {
  margin-top: 4px;
  color: var(--slate-200);
  font-size: 12px;
  font-style: normal;
}

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

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

.nav-link {
  padding: 10px 15px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0;
}

.mobile-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.home-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.42;
  filter: saturate(1.05);
}

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.92));
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 46px;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 64px;
  min-height: 520px;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.54fr);
  animation: fadeUp 0.55s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--emerald-400);
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.55;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.tag-row.large span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 480px;
  border-radius: 34px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--amber-400);
  font-weight: 900;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-dots button {
  width: 44px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--emerald-400);
}

.hero-category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 28px 0 6px;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 0%, rgba(52, 211, 153, 0.28), transparent 38%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.content-section {
  padding: 72px 0;
  background: var(--white);
}

.content-section:nth-of-type(even) {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--slate-500);
  font-size: 16px;
}

.section-more,
.text-link {
  min-height: 40px;
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.1);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-800);
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0.74));
}

.poster-year,
.poster-score {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  top: 12px;
  left: 12px;
  color: var(--slate-900);
  background: var(--amber-400);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h2 a:hover,
.rank-body h2 a:hover,
.category-body h2 a:hover {
  color: var(--emerald-600);
}

.card-meta {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
}

.card-summary {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-summary.compact {
  min-height: 44px;
  -webkit-line-clamp: 2;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-box,
.select-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  outline: none;
  color: var(--slate-800);
  background: #f8fafc;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 210px;
  background: var(--slate-800);
}

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

.category-body {
  padding: 24px;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-body p {
  margin: 0 0 18px;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
}

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

.rank-poster strong {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--slate-900);
  border-radius: 14px;
  background: var(--amber-400);
  font-size: 18px;
}

.rank-body {
  align-self: center;
}

.rank-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.rank-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.rank-info span {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.03);
}

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

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 62px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.lead-text {
  max-width: 840px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 7px 12px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.player-section {
  padding: 72px 0 0;
  background: var(--slate-950);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 32px 88px rgba(2, 6, 23, 0.4);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--slate-900);
  border-radius: 999px;
  background: var(--emerald-400);
  box-shadow: 0 22px 44px rgba(16, 185, 129, 0.3);
  font-size: 30px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
}

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

.story-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  color: var(--slate-200);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.75;
}

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

.site-footer a {
  display: block;
  margin: 9px 0;
  color: rgba(226, 232, 240, 0.78);
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: rgba(226, 232, 240, 0.66);
  border-top: 1px solid rgba(226, 232, 240, 0.12);
}

.is-hidden {
  display: none !important;
}

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

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

  .hero-slide.active,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 380px;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .home-hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 52px 0 30px;
  }

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

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

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-poster {
    min-height: auto;
    max-width: 100%;
  }

  .hero-poster img {
    min-height: auto;
  }

  .section-heading,
  .filter-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading {
    display: grid;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body h2 {
    min-height: 42px;
    font-size: 16px;
  }

  .card-summary {
    min-height: 42px;
    -webkit-line-clamp: 2;
  }

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

  .rank-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-body h2 {
    font-size: 20px;
  }

  .detail-shell {
    padding: 44px 0 52px;
  }

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

  .lead-text {
    font-size: 17px;
  }

  .player-section {
    padding-top: 44px;
  }

  .content-section {
    padding: 48px 0;
  }
}

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

  .movie-grid,
  .movie-grid.dense {
    gap: 12px;
  }

  .poster-score {
    display: none;
  }

  .tag-row span {
    font-size: 12px;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }
}
