:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #14b8a6;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7ff 42%, #ffffff 100%);
}

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.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0f766e, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(37, 99, 235, 0.1));
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ecfeff;
  color: #0f766e;
}

.mobile-nav.open {
  display: block;
}

main {
  min-height: 60vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.32), transparent 34%), linear-gradient(135deg, #0f172a 0%, #164e63 42%, #1d4ed8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%);
  background-size: 48px 48px;
  opacity: 0.45;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 52px;
  align-items: center;
  padding: 58px 0 86px;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.85;
}

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

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-primary {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #eff6ff;
}

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

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

.hero-tags a {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 22px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  backdrop-filter: blur(18px);
  pointer-events: none;
  transition: all 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 430px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.34);
}

.hero-card-text {
  color: #fff;
  padding: 10px 0 12px;
}

.hero-card-text small {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(20, 184, 166, 0.18);
}

.hero-card-text h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.hero-card-text p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: -40px;
  display: flex;
  gap: 10px;
}

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

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding-top: 42px;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0f766e, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.link-more {
  flex: 0 0 auto;
  color: #0f766e;
  font-weight: 800;
}

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

.category-strip a,
.category-tile {
  display: flex;
  min-height: 114px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: var(--soft-shadow);
  transition: all 0.22s ease;
}

.category-strip a:hover,
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-strip a strong,
.category-tile strong {
  font-size: 20px;
}

.category-strip a span,
.category-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: all 0.28s ease;
}

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

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

.feature-grid .poster-wrap {
  aspect-ratio: 4 / 3;
}

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

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-info strong,
.wide-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info em,
.wide-card em {
  display: block;
  margin: 8px 0;
  color: #0f766e;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.movie-info span {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info small {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card .movie-info strong {
  min-height: 42px;
  font-size: 15px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: all 0.22s ease;
}

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

.wide-card img {
  width: 130px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
}

.wide-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wide-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wide-card small span,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  background: #fff;
}

.search-row span {
  color: var(--teal);
  font-size: 22px;
}

.search-row input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #334155;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  cursor: pointer;
  font-weight: 800;
}

.filter-chips button:hover {
  color: #0f766e;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.16);
}

.page-hero {
  padding: 70px 0;
  color: #fff;
  background: radial-gradient(circle at 16% 20%, rgba(45, 212, 191, 0.55), transparent 32%), linear-gradient(135deg, #0f172a, #0e7490 48%, #2563eb);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0f766e;
  font-weight: 800;
}

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

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 30px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr) 78px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-row img {
  width: 112px;
  height: 142px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.score {
  color: var(--orange);
  font-weight: 900;
  font-size: 20px;
}

.side-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #334155;
  font-weight: 700;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 32px;
  align-items: start;
}

.player-card,
.detail-card,
.related-card,
.movie-side-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  position: relative;
  background: #020617;
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.72));
  transition: all 0.22s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.35);
  cursor: pointer;
  font-size: 34px;
  transition: all 0.22s ease;
}

.player-button:hover {
  transform: scale(1.08);
  background: #fff;
}

.detail-card,
.related-card,
.movie-side-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
}

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

.detail-card h2,
.related-card h2,
.movie-side-card h2 {
  margin: 24px 0 12px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

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

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

.side-mini {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-mini img {
  width: 86px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.side-mini strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-mini span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 16px 0 0;
  line-height: 1.8;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

  .hero-shell,
  .detail-shell,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 510px;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .brand-text em {
    display: none;
  }

  .container,
  .hero-shell,
  .footer-grid {
    width: min(100% - 28px, 1240px);
  }

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

  .hero-shell {
    padding: 42px 0 82px;
    gap: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-slide img {
    height: 360px;
  }

  .hero-dots {
    bottom: -34px;
  }

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

  .feature-grid,
  .wide-list,
  .related-grid,
  .category-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-card img {
    width: 100px;
    height: 138px;
  }

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

  .rank-row img {
    width: 82px;
    height: 108px;
  }

  .rank-row .score {
    grid-column: 3;
  }

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

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