:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --red: #ef4444;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 52%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.26);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.26);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #67e8f9;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 650px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 28%), linear-gradient(135deg, #020617 0%, #0f172a 52%, #111827 100%);
}

.hero-light {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-light-a {
  width: 360px;
  height: 360px;
  right: 8%;
  top: 8%;
  background: rgba(14, 165, 233, 0.24);
}

.hero-light-b {
  width: 280px;
  height: 280px;
  left: 4%;
  bottom: 8%;
  background: rgba(59, 130, 246, 0.22);
}

.hero-track {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 46px;
  align-items: center;
  padding: 74px 0 86px;
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition: opacity 0.56s ease, transform 0.56s ease;
  pointer-events: none;
}

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

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #0f172a);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #0891b2;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy .eyebrow {
  color: #67e8f9;
}

.hero-copy h1,
.sub-hero h1,
.detail-main h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.hero-copy p {
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.horizontal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.24);
}

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

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.button-ghost {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-ghost.light {
  color: #0f172a;
  background: #ffffff;
  border-color: var(--line);
}

.button-primary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.2);
}

.hero-control-row {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots button.is-active {
  width: 34px;
  border-radius: 999px;
  background: #67e8f9;
}

.quick-search,
.filter-panel {
  display: grid;
  gap: 18px;
  align-items: end;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

.quick-search {
  grid-template-columns: 1fr minmax(260px, 430px);
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.quick-search h2,
.section-heading h2,
.content-card h2,
.category-overview-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.quick-search label,
.filter-panel label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--muted);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.section-heading > a,
.category-overview-head > a {
  color: #0891b2;
  font-weight: 900;
}

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

.category-entry {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0891b2);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-entry span,
.category-entry em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-size: 13px;
}

.category-entry strong {
  font-size: 24px;
  line-height: 1.1;
}

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

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

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

.full-grid {
  margin-top: 24px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #0f172a);
}

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.3);
}

.card-body {
  padding: 15px;
}

.card-meta {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span:not(:last-child)::after,
.horizontal-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #94a3b8;
}

.movie-card h2,
.horizontal-card h2 {
  margin: 9px 0 7px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h2 a:hover,
.horizontal-card h2 a:hover {
  color: #0891b2;
}

.movie-card p,
.horizontal-card p,
.category-overview-head p,
.sub-hero p,
.content-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-card-compact .card-body {
  padding: 13px;
}

.movie-card-compact h2 {
  font-size: 16px;
}

.movie-card-compact p {
  min-height: 48px;
  font-size: 13px;
}

.tag-row span,
.detail-tags a {
  color: #0369a1;
  background: #e0f2fe;
}

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
}

.horizontal-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #0f172a);
}

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

.horizontal-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.horizontal-meta strong {
  color: #ef4444;
}

.horizontal-card h2 {
  font-size: 16px;
}

.horizontal-card p {
  margin: 0;
  font-size: 13px;
}

.sub-hero {
  color: #ffffff;
  padding: 76px 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.26), transparent 28%), linear-gradient(135deg, #020617, #0f172a 58%, #1e293b);
}

.sub-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.sub-hero p {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 18px;
}

.filter-panel {
  grid-template-columns: minmax(240px, 1fr) 220px 180px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
  padding-top: 42px;
}

.category-overview-card,
.content-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
}

.detail-hero {
  color: #ffffff;
  padding: 42px 0 54px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.24), transparent 32%), linear-gradient(135deg, #020617, #0f172a 58%, #111827);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(226, 232, 240, 0.74);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-main h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 20px 0 24px;
}

.detail-meta span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 42px rgba(6, 182, 212, 0.34);
  font-size: 34px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-content {
  padding-top: 34px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  margin-bottom: 14px;
}

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

.related-block {
  padding-bottom: 60px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  color: #67e8f9;
  font-size: 22px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

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

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

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

@media (max-width: 1120px) {
  .home-grid,
  .category-preview-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px;
  }

  .hero-carousel,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .hero-media {
    min-height: 260px;
  }

  .quick-search,
  .filter-panel,
  .ranking-layout,
  .detail-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    max-width: 320px;
  }

  .movie-grid,
  .home-grid,
  .full-grid,
  .category-preview-grid,
  .related-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel,
  .hero-track {
    min-height: 720px;
  }

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

  .hero-media {
    min-height: 210px;
    border-radius: 22px;
  }

  .movie-grid,
  .home-grid,
  .full-grid,
  .category-preview-grid,
  .related-grid,
  .ranking-list,
  .category-entry-grid {
    grid-template-columns: 1fr;
  }

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

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

  .sub-hero,
  .detail-hero {
    padding: 48px 0;
  }
}
