:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #0d9488;
  --brand-dark: #115e59;
  --cyan: #0891b2;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.32);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: #ccfbf1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  border-radius: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(20, 184, 166, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 44%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 92px 0 120px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(153, 246, 228, 0.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--brand-dark);
  background: #ccfbf1;
  border-color: rgba(13, 148, 136, 0.18);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: #0f766e;
  background: #ccfbf1;
}

.tag-row.big span {
  font-size: 13px;
  min-height: 32px;
}

.hero-actions,
.detail-info .btn {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 16px 36px rgba(13, 148, 136, 0.34);
}

.btn.ghost {
  margin-left: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: inherit;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-overlap {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  padding-top: 0;
}

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

.section-head.inline {
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.feature-panel h2 {
  margin: 12px 0 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head h2,
.feature-panel h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

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

.category-card {
  display: block;
  min-height: 176px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.16);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}

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

.category-card p,
.feature-panel p,
.detail-article p {
  margin: 0;
  color: var(--muted);
}

.tool-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.search-box {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.search-box span {
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-select {
  min-height: 48px;
  padding: 0 36px 0 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #ffffff;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.poster img {
  transition: transform 0.42s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent);
}

.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #0d9488);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  min-height: 64px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card-small p {
  min-height: 52px;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.ranking-list .movie-card:nth-child(-n + 3) {
  border-color: rgba(249, 115, 22, 0.32);
}

.feature-panel {
  position: sticky;
  top: 96px;
  padding: 30px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.52), transparent 30%),
    linear-gradient(135deg, #0f172a, #115e59 70%, #0891b2);
  box-shadow: var(--shadow);
}

.feature-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin: 18px 0 28px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 42px;
}

.page-hero.slim {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 7vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.page-hero .breadcrumb {
  color: var(--muted);
  margin: 22px 0 0;
}

.breadcrumb a:hover {
  color: #2dd4bf;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(6px) saturate(1.05);
  transform: scale(1.04);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.3)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 48%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 96px 0 76px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.detail-info {
  color: #ffffff;
}

.detail-info h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.lead {
  max-width: 780px;
  margin: 20px 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.detail-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at 50% 40%, rgba(20, 184, 166, 0.25), rgba(2, 6, 23, 0.76) 54%, rgba(2, 6, 23, 0.92));
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 20px 56px rgba(13, 148, 136, 0.42);
  font-size: 34px;
}

.player-cover strong {
  max-width: 86%;
  text-align: center;
  font-size: clamp(22px, 4vw, 42px);
}

.article-section {
  padding-top: 24px;
}

.detail-article {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p {
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #020617;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 20px;
}

.footer-grid p {
  margin: 0;
}

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

.footer-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.32);
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1100px) {
  .hero-content,
  .detail-wrap,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

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

  .feature-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    gap: 28px;
    padding-top: 92px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

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

  .tool-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    flex-direction: column;
  }

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

  .detail-wrap {
    min-height: 720px;
    padding-top: 92px;
  }
}

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

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

  .hero-poster {
    display: none;
  }

  .section,
  .page-hero {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 46px 0;
  }

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

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .player-shell {
    border-radius: 18px;
  }

  .detail-article {
    padding: 22px;
    border-radius: 22px;
  }
}
