:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --gold: #f59e0b;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #ecfeff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 34%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #475569;
  border-radius: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.09);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-dark);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.85s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.hero-copy-inner {
  max-width: 680px;
  animation: fadeUp 0.75s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 610px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  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(--cyan), var(--teal));
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.32);
}

.btn-light {
  color: var(--cyan-dark);
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--cyan);
}

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

.page-main {
  padding: 44px 0 68px;
}

.page-section {
  padding: 46px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section-title h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.section-heading a {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

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

.card-region {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

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

.movie-card h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.35;
}

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

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

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

.score {
  color: var(--gold);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
}

.category-name {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 56px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.category-desc {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-band {
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 28%), linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 22px 55px rgba(6, 182, 212, 0.25);
}

.feature-band h2 {
  max-width: 740px;
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.06em;
}

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

.compact-list {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.compact-card {
  display: grid;
  grid-template-columns: auto 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #edf2f7;
  transition: background 0.2s ease;
}

.compact-card:last-child {
  border-bottom: 0;
}

.compact-card:hover {
  background: #f8fafc;
}

.compact-card img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  font-size: 18px;
  font-weight: 900;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  color: #1f2937;
  font-size: 17px;
  margin-bottom: 6px;
}

.compact-info em {
  color: #64748b;
  font-size: 14px;
  font-style: normal;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

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

.page-title h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-input,
.select-input {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
}

.search-input {
  flex: 1 1 280px;
  padding: 0 16px;
}

.select-input {
  padding: 0 12px;
  color: #334155;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-empty {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
  border-radius: 22px;
  background: #ffffff;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

.detail-stack {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7));
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
  font-size: 34px;
  text-indent: 5px;
}

.player-start strong {
  font-size: 18px;
}

.player-start.is-hidden {
  display: none;
}

.content-panel,
.side-panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-panel {
  padding: 28px;
}

.content-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.info-tags,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.info-tags span,
.detail-facts span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.info-tags span:first-child {
  background: #cffafe;
  color: #0e7490;
}

.detail-facts .score {
  background: #fef3c7;
  color: #b45309;
}

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.side-panel {
  padding: 20px;
}

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

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

.side-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
  background: #ecfeff;
  transform: translateX(3px);
}

.side-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-card strong,
.side-card span {
  display: block;
}

.side-card strong {
  overflow: hidden;
  color: #1f2937;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-card span {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

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

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(135deg, #0f172a, #1e293b 46%, #0f172a);
}

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

.footer-logo,
.footer-logo span:last-child {
  color: #ffffff;
}

.footer-brand p {
  max-width: 620px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-copy {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

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

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

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

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

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

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

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 560px;
  }

  .hero-copy-inner {
    max-width: 100%;
  }

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

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

@media (max-width: 560px) {
  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: 610px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: auto 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .compact-card img {
    width: 86px;
    height: 58px;
  }

  .content-panel {
    padding: 20px;
  }

  .player-start span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
