:root {
  --page-bg: #eef7fb;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(191, 219, 254, 0.72);
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(96, 165, 250, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(135deg, #e8f4f8 0%, #ffffff 45%, #e0f2fe 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(191, 219, 254, 0.55);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  white-space: nowrap;
}

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.movie-filter-input {
  width: 260px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #1f2937;
  background: rgba(239, 246, 255, 0.8);
}

.header-search input:focus,
.mobile-search input:focus,
.movie-filter-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-chip {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.primary-btn {
  color: #fff;
  padding: 12px 20px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.24);
}

.ghost-btn {
  color: #fff;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ghost-btn.white {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(191, 219, 254, 0.52);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #1f2937;
  background: #eff6ff;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: linear-gradient(135deg, #1e40af, #0e7490);
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.52) 45%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 80px;
}

.hero-copy {
  width: min(720px, 100%);
  color: #fff;
}

.hero-labels,
.detail-meta,
.hero-meta,
.card-meta-line,
.card-stats,
.filter-row,
.cta-actions,
.hero-actions,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-labels span,
.eyebrow,
.tag-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-labels span,
.tag-badge {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: var(--blue);
  margin-bottom: 12px;
  padding: 8px 13px;
  background: #dbeafe;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.card-meta-line span {
  font-size: 14px;
  font-weight: 700;
}

.hero-poster-card {
  width: 260px;
  aspect-ratio: 3 / 4;
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(34, 211, 238, 0.45));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: translateY(20px);
}

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

.hero-poster-card span,
.play-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-poster-card span {
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  background: #fff;
}

.section-block {
  padding: 64px 0;
}

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

.compact-head {
  margin-bottom: 20px;
}

.section-head h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-head p,
.page-hero p,
.article-card p,
.side-card p,
.overview-info p,
.category-card-info p,
.cta-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.more-link {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

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

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

.movie-card,
.category-card,
.overview-card,
.article-card,
.side-card,
.ranking-panel,
.detail-info-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.movie-card {
  display: block;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
}

.poster-frame {
  position: relative;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.40), rgba(34, 211, 238, 0.32));
}

.poster-img,
.category-art-img,
.overview-img,
.detail-cover-img,
.ranking-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poster-img {
  transition: transform 0.45s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 54%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.corner-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(8px);
}

.corner-pill {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-pill {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta-line,
.card-stats {
  justify-content: space-between;
  color: var(--muted);
}

.card-meta-line span:first-child {
  color: var(--blue);
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-stats {
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.category-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.42), rgba(6, 182, 212, 0.36));
}

.category-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.24));
}

.category-card-info {
  position: relative;
  z-index: 2;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}

.category-card-info h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  padding: 24px;
}

.ranking-panel.wide {
  width: 100%;
}

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

.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.75);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: #dbeafe;
  transform: translateX(4px);
}

.ranking-no {
  color: var(--blue);
  font-weight: 900;
}

.ranking-thumb {
  width: 64px;
  height: 84px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #bfdbfe, #a5f3fc);
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
}

.ranking-info span,
.ranking-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.cta-card {
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.cta-card p {
  width: min(680px, 100%);
  margin: 0 auto 28px;
  color: #eff6ff;
}

.cta-actions {
  justify-content: center;
}

.page-hero {
  padding: 92px 0 52px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 145, 178, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.30), transparent 28rem);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #eff6ff;
  font-size: 18px;
}

.channel-tools {
  margin-top: 28px;
}

.channel-tools .movie-filter-input {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.94);
}

.filter-row {
  margin-top: 16px;
}

.filter-chip {
  padding: 10px 15px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.84);
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.overview-art {
  min-height: 250px;
  background: linear-gradient(135deg, #bfdbfe, #a5f3fc);
}

.overview-info {
  padding: 26px;
}

.overview-info h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.overview-info p {
  margin: 0 0 18px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.overview-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.detail-page {
  padding: 36px 0 0;
}

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

.breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: #050816;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: contain;
  background: #050816;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 12rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

.video-shell.is-playing .video-cover {
  opacity: 0;
  pointer-events: none;
}

.video-play {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  box-shadow: var(--shadow);
}

.detail-info-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.detail-cover {
  min-height: 260px;
  background: linear-gradient(135deg, #bfdbfe, #a5f3fc);
}

.detail-info {
  padding: 22px;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-info p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-meta {
  margin: 16px 0;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
}

.tag-list .tag-badge {
  color: #2563eb;
  background: #dbeafe;
}

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

.article-card,
.side-card {
  padding: 28px;
}

.article-card h2,
.side-card h2 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.article-card p {
  margin: 0 0 22px;
  font-size: 17px;
}

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

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

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

.footer-brand {
  color: #fff;
  font-size: 24px;
}

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

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

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

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

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

.movie-card[hidden] {
  display: none;
}

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

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

  .nav-wrap {
    justify-content: space-between;
  }

  .header-search {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .hero-slider {
    height: auto;
    min-height: 720px;
  }

  .hero-slide {
    min-height: 720px;
  }

  .hero-content,
  .detail-grid,
  .content-grid,
  .two-col-section,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-content {
    align-items: end;
    padding-top: 130px;
  }

  .hero-poster-card {
    display: none;
  }

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

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

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

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

  .two-column-list {
    grid-template-columns: 1fr;
  }
}

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

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

  .header-search {
    display: none;
  }

  .mobile-search input {
    width: 100%;
    flex: 1;
  }

  .hero-slider,
  .hero-slide {
    min-height: 680px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

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

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

  .section-block {
    padding: 42px 0;
  }

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

  .movie-grid,
  .catalog-grid,
  .latest-grid,
  .related-grid,
  .category-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-art {
    min-height: 220px;
  }

  .page-hero {
    padding: 62px 0 36px;
  }

  .detail-grid,
  .content-grid {
    gap: 18px;
  }

  .video-shell,
  .movie-video {
    min-height: 260px;
    border-radius: 22px;
  }

  .ranking-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
  }

  .ranking-item em {
    display: none;
  }
}
