:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --gold: #facc15;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: #f8fafc;
  line-height: 1.6;
}

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

img {
  display: block;
  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;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark), var(--cyan));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 14px 0;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 10px 12px;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.35), transparent 32%), linear-gradient(180deg, var(--slate-950), var(--slate-900));
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 530px);
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.9)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.15);
}

.hero-slide::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px), radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px);
  background-size: 60px 60px, 90px 90px;
  opacity: 0.35;
}

.hero-media {
  order: 2;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.hero-media img {
  aspect-ratio: 4 / 5;
  height: 520px;
  object-fit: cover;
}

.hero-copy {
  order: 1;
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow,
.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow span,
.meta-line span,
.tag-cloud span,
.card-tags a,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

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

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

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

.quick-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: -44px;
  position: relative;
  z-index: 6;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-head h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.inline-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.inline-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 14px;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  outline: none;
}

.inline-search input {
  width: min(360px, 46vw);
}

.inline-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

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

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

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

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.tile-glow {
  position: absolute;
  inset: auto -30px -50px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(12px);
}

.category-title,
.category-copy {
  position: relative;
  z-index: 2;
  display: block;
}

.category-title {
  font-size: 22px;
  font-weight: 900;
}

.category-copy {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.category-thumbs {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
}

.category-thumbs img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: -16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hot-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-900);
}

.poster img {
  height: 245px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76));
}

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #111827;
  background: var(--gold);
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-body .meta-line span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.card-tags a,
.card-tags span {
  color: var(--blue);
  background: #eff6ff;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 82px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.crumb a {
  color: #fff;
}

.filter-bar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1;
}

.filter-bar.wide input {
  min-width: min(680px, 100%);
}

.detail-hero {
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.78)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.02);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster img {
  height: 470px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0;
}

.score-row span {
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
}

.score-row strong {
  color: var(--gold);
  font-size: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.player-section {
  margin-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.6);
}

.player-shell.playing .player-cover {
  display: none;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.45), rgba(2, 6, 23, 0.88));
}

.cover-play {
  position: relative;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}

.player-cover strong,
.player-cover em {
  position: relative;
  display: block;
}

.player-cover strong {
  font-size: clamp(28px, 5vw, 52px);
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 36px;
}

.text-panel {
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.text-panel p {
  margin-bottom: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--slate-950);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

@media (max-width: 1100px) {
  .category-grid,
  .card-grid.six-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }

  .site-header.open .header-inner {
    flex-wrap: wrap;
  }

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

  .brand strong {
    font-size: 20px;
  }

  .hero-slide.active {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 72px;
  }

  .hero-media {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .hero-media img {
    height: 390px;
  }

  .quick-search-panel,
  .section-head,
  .filter-bar,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search {
    flex-direction: column;
  }

  .inline-search input {
    width: 100%;
  }

  .category-grid,
  .category-grid.large,
  .card-grid.four-col,
  .card-grid.six-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster img {
    height: auto;
    max-height: 520px;
  }
}

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

  .category-grid,
  .category-grid.large,
  .card-grid.four-col,
  .card-grid.six-col {
    grid-template-columns: 1fr;
  }

  .poster img {
    height: 320px;
  }

  .page-hero .container,
  .detail-layout {
    padding: 54px 0;
  }
}
