:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #eef7fb 45%, #ffffff 100%);
  line-height: 1.65;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  padding: 9px 14px;
  border-radius: 12px;
  color: #334155;
  font-size: 15px;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--cyan-dark);
  background: #ecfeff;
  font-size: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #164e63 45%, #2563eb);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(248, 251, 255, 0.98));
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.15);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52), rgba(8, 145, 178, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.6fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 110px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  font-size: 14px;
}

.hero h1 {
  margin: 18px 0 20px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -2.4px;
}

.hero h1 span {
  display: block;
  color: #a5f3fc;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 32px;
  color: #e0f2fe;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #0f4b66;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(8, 145, 178, 0.24);
}

.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(8, 145, 178, 0.22);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-soft {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.hero-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-cover {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -120px 100px rgba(0, 0, 0, 0.42);
}

.hero-card-body {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
}

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-card-body p {
  margin: 0;
  color: #dff9ff;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 28px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 42px;
  background: #ffffff;
}

.section {
  padding: 54px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.grid-wide {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.24);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
}

.poster-badge,
.poster-year,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.92);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: 0.28s ease;
}

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

.rank-num {
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.26);
}

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

.movie-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--cyan-dark);
}

.movie-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.compact .poster {
  aspect-ratio: 4 / 3;
}

.compact .movie-body p {
  min-height: auto;
}

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

.rank-mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.rank-mini strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-mini h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.rank-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

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

.category-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #dff9ff;
}

.page-hero {
  padding: 72px 0 28px;
  background: radial-gradient(circle at 24% 12%, rgba(34, 211, 238, 0.22), transparent 32%), linear-gradient(135deg, #0f172a, #164e63);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

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

.filter-panel {
  margin-top: -18px;
  position: relative;
  z-index: 3;
}

.filter-card {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.filter-card label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(8, 145, 178, 0.18);
  border-color: var(--cyan);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #334155;
  font-weight: 750;
}

.pagination a.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.watch-hero {
  padding: 34px 0 54px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 72%, #f8fbff 72%);
}

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

.detail-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dff9ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 44%, rgba(8, 145, 178, 0.38), rgba(0, 0, 0, 0.68));
  font: inherit;
  text-align: center;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-start strong {
  display: block;
  font-size: 19px;
}

.player-start.is-hidden {
  display: none;
}

.cover-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
}

.detail-cover {
  height: 100%;
  min-height: 360px;
  background-position: center;
  background-size: cover;
}

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

.article-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
}

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

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #334155;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.tag-list a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #0f4b66;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 750;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.search-box {
  max-width: 780px;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
}

.search-results {
  min-height: 180px;
}

.empty-state {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
}

.footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.footer p {
  margin: 0;
  color: #94a3b8;
}

.footer a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

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

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

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
  }

  .hero-content,
  .watch-grid,
  .detail-layout,
  .grid-wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .hero-slider,
  .hero-content {
    min-height: 540px;
  }

  .hero-content {
    padding: 48px 0 92px;
  }

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

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

  .search-box {
    grid-template-columns: 1fr;
  }
}
