:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --soft: #eff6ff;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 10px 28px rgba(37, 99, 235, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #ecfeff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-orb {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.45);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-700);
  background: #eff6ff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-link {
  padding: 14px 24px;
  color: var(--slate-700);
  font-weight: 700;
}

.mobile-link.active {
  color: var(--blue-700);
  background: #eff6ff;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--blue-950);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 37, 84, 0.88), rgba(30, 64, 175, 0.72), rgba(6, 182, 212, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(37, 99, 235, 0.34);
  backdrop-filter: blur(12px);
}

.eyebrow.light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hero-copy h1 {
  margin: 22px 0 10px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--cyan-300);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #e0f2fe;
  font-size: 19px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
}

.btn.glass {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn.white {
  color: var(--blue-700);
  background: var(--white);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

.hero-fade {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(0deg, #eff6ff, rgba(239, 246, 255, 0));
}

.featured-strip {
  position: relative;
  z-index: 4;
  margin-top: -86px;
}

.featured-grid,
.movie-grid,
.category-card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.ranking-cover:hover img {
  transform: scale(1.08);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 44px;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.card-meta a,
.content-side a {
  color: var(--blue-700);
}

.card-meta span,
.card-meta a,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-row h2 a:hover {
  color: var(--blue-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.list-card .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

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

.tag-row span {
  padding: 5px 10px;
  color: var(--blue-700);
  border-radius: 999px;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

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

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.band-heading h2,
.cta-card h2,
.rank-panel h2 {
  margin: 12px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-700);
  font-weight: 800;
}

.category-band {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
}

.band-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.band-heading h2,
.cta-card h2 {
  color: var(--white);
}

.band-heading p,
.cta-card p {
  color: #e0f2fe;
  font-size: 18px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-pills a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.rank-panel,
.cta-card,
.filter-panel,
.search-shell,
.text-page,
.content-main,
.content-side,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.rank-item:hover {
  background: #eff6ff;
}

.rank-item strong {
  color: var(--blue-700);
  font-size: 20px;
}

.rank-item img {
  width: 74px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item span {
  display: grid;
  gap: 2px;
}

.rank-item b {
  color: #0f172a;
  line-height: 1.25;
}

.rank-item em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(103, 232, 249, 0.5), transparent 28%), linear-gradient(135deg, var(--blue-700), var(--blue-950));
}

.cta-card .btn {
  margin-top: 18px;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.32), transparent 28%), linear-gradient(135deg, var(--blue-950), var(--blue-700), var(--cyan-500));
}

.small-hero {
  padding: 76px 0;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #dbeafe;
  font-size: 14px;
}

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

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.category-card a:first-child {
  position: relative;
  display: block;
  height: 154px;
  overflow: hidden;
}

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

.category-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 12px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
}

.category-card p {
  margin: 18px 18px 10px;
  color: #475569;
}

.category-card ul {
  margin: 0 18px 20px;
  padding-left: 18px;
  color: #64748b;
  font-size: 14px;
}

.filter-panel,
.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-shell input,
.search-shell select {
  width: 100%;
  height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-shell input:focus,
.search-shell select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.ranking-board {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 78px 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 16px;
}

.ranking-cover img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.ranking-row p {
  margin: 0 0 12px;
  color: #64748b;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(1px);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(30, 58, 138, 0.76), rgba(6, 182, 212, 0.20));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 58px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  width: 300px;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-title-block h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #e0f2fe;
  font-size: 19px;
}

.detail-title-block .detail-meta span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

.watch-section {
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

.player-card {
  padding: 12px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

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

.player-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 45px rgba(103, 232, 249, 0.45);
  font-size: 38px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
}

.content-main,
.content-side {
  padding: 28px;
}

.content-main h2,
.content-side h2,
.text-page h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.25;
}

.content-main p,
.text-page p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.content-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.content-side dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.content-side dd {
  margin: -8px 0 6px;
  color: #0f172a;
  font-weight: 800;
}

.text-page {
  margin-top: 64px;
  margin-bottom: 80px;
  padding: 34px;
}

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

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer h2 {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-300), #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  transition: color 0.25s ease;
}

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

.footer-pill {
  display: inline-flex !important;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 14px;
}

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

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

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-cover {
    width: 220px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 140px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
    bottom: 74px;
  }

  .featured-strip {
    margin-top: -54px;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.wide-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-panel,
  .search-shell,
  .ranking-row,
  .detail-layout,
  .detail-content,
  .list-card {
    grid-template-columns: 1fr;
  }

  .ranking-cover img {
    width: 100%;
    height: 180px;
  }

  .detail-cover {
    width: min(280px, 100%);
  }

  .detail-head {
    padding: 42px 0 80px;
  }

  .small-hero {
    padding: 54px 0;
  }
}
