:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --sky: #0284c7;
  --sky-dark: #075985;
  --deep: #0f172a;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0284c7, #38bdf8 45%, #f59e0b);
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

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

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

.main-nav a:hover {
  color: var(--sky);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--text);
  font-size: 20px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: #020617;
  color: white;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 650px;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7) 43%, rgba(14, 116, 144, 0.32)), var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), #f8fafc 95%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 42px;
  align-items: center;
  min-height: 650px;
  padding: 84px 0 120px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #7dd3fc;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  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: white;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--sky-dark);
  background: white;
  border: 1px solid var(--line);
}

.hero-panel {
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
}

.hero-panel .poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
}

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

.hero-meta span,
.tag-row span,
.pill-row a,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.1);
  color: #075985;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 12;
  display: flex;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-thumb {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  text-align: left;
}

.hero-thumb.is-active {
  background: rgba(2, 132, 199, 0.74);
}

.hero-thumb strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-thumb span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

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

.content-section.tight {
  padding-top: 34px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.86);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.28), transparent 26%), linear-gradient(135deg, #0f172a, #075985 58%, #0ea5e9);
}

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

.poster-frame.image-fallback img {
  display: none;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.64));
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 0 10px;
  color: #111827;
  font-weight: 900;
  border-radius: 999px;
  background: #fde68a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 7px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

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

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card {
  display: block;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.82));
  border: 1px solid rgba(186, 230, 253, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 94px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.rank-item .poster-frame {
  border-radius: 16px;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-item p {
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  font-size: 16px;
}

.search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.detail-hero {
  padding: 38px 0 30px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 30%), linear-gradient(180deg, #ffffff, #f8fafc);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 32px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.24), rgba(2, 6, 23, 0.72));
  border: 0;
  text-align: center;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #0f172a;
  background: white;
  font-size: 34px;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.26);
}

.play-cover strong {
  font-size: 26px;
  font-weight: 900;
}

.play-cover em {
  width: min(88%, 680px);
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.detail-card {
  padding: 24px;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-card p,
.article-text p {
  color: #475569;
  line-height: 1.95;
}

.article-text {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}

.side-poster .poster-frame {
  aspect-ratio: 2 / 3;
}

.side-poster-content {
  padding: 20px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 36px;
}

.sitemap-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.sitemap-list a {
  color: #075985;
  font-weight: 700;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: white;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.site-footer li {
  margin-bottom: 10px;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .hero-panel {
    max-width: 420px;
  }

  .hero-thumbs {
    overflow-x: auto;
  }

  .hero-thumb {
    min-width: 190px;
  }

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

@media (max-width: 680px) {
  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-inner {
    padding: 58px 0 130px;
  }

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

  .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
  }

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