:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 22px 44px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), #ffffff 48%, var(--cyan-50));
}

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.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-600);
}

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

.header-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
  background: #fff;
  color: var(--slate-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.header-search button,
.filter-panel button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: var(--cyan-600);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.filter-panel button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: var(--cyan-700);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 22px;
}

.hero {
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

.hero-slider,
.hero-slide {
  position: relative;
  height: 100%;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.22), transparent 32%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2 + 24px));
  bottom: 82px;
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #e0f7fa;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.hero-tags span,
.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary {
  background: var(--cyan-600);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-small {
  padding: 9px 15px;
  font-size: 14px;
}

.btn-full {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.soft-bg {
  max-width: none;
  padding-left: max(24px, calc((100% - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100% - 1280px) / 2 + 24px));
  background: linear-gradient(180deg, #fff, var(--slate-50));
}

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

.section-heading h2,
.category-overview-head h2,
.rank-panel h2,
.detail-info h1,
.side-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p,
.rank-panel p {
  margin: 7px 0 0;
  color: var(--slate-500);
}

.section-more {
  color: var(--cyan-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-200);
  box-shadow: var(--shadow-xl);
}

.movie-card-wide .poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

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

.year-pill,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--cyan-600);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(15, 23, 42, 0.78);
}

.card-body {
  padding: 13px;
}

.card-body h3 {
  margin: 0 0 7px;
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--cyan-600);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.55;
}

.card-desc {
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile,
.category-overview-card,
.rank-panel,
.detail-info,
.side-card,
.filter-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  padding: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 118px;
  margin-bottom: 18px;
}

.tile-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile strong {
  display: block;
  color: var(--slate-900);
  font-size: 20px;
}

.category-tile em {
  display: block;
  margin-top: 4px;
  color: var(--cyan-600);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.rank-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 90px;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: var(--cyan-50);
}

.list-rank {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan-600);
  font-weight: 900;
  font-size: 12px;
}

.ranking-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

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

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

.ranking-copy strong {
  color: var(--slate-900);
  font-size: 14px;
}

.ranking-copy em {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 70px 24px;
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.32), transparent 34%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.compact-hero,
.category-hero,
.rank-hero,
.search-hero {
  min-height: 330px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 14px;
}

.filter-panel button {
  align-self: end;
  border-radius: 14px;
}

.filter-count {
  margin: 0 0 24px;
  color: var(--slate-500);
}

.category-overview-card {
  padding: 24px;
  margin-bottom: 28px;
}

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

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 64px;
}

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

.breadcrumbs a:hover {
  color: var(--cyan-600);
}

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

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

.player-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-xl);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.44));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan-600);
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.34);
  font-size: 32px;
  padding-left: 5px;
}

.video-wrap.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-info,
.side-card {
  padding: 26px;
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-info h2 {
  margin: 30px 0 12px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-info p {
  color: #475569;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.tag-row .tag {
  background: var(--cyan-50);
  color: var(--cyan-700);
}

.lead-text {
  padding: 18px;
  border-left: 4px solid var(--cyan-600);
  border-radius: 16px;
  background: var(--cyan-50);
  color: var(--slate-800) !important;
  font-weight: 700;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  margin-bottom: 16px;
  object-fit: cover;
}

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

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}

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

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

.site-footer p,
.site-footer a {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--cyan-200);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

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

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

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

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

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--cyan-50);
  }

  .header-search {
    width: 100%;
    order: 4;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .feature-grid,
  .footer-grid,
  .filter-panel,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .content-section {
    padding: 44px 16px;
  }

  .soft-bg {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    margin-top: 0;
    padding: 48px 16px;
    border-radius: 0 0 24px 24px;
  }

  .detail-shell {
    padding: 20px 16px 44px;
  }

  .detail-info,
  .side-card {
    padding: 20px;
  }

  .ranking-row {
    grid-template-columns: auto 52px 1fr;
  }
}
