:root {
  --cyan: #0891b2;
  --cyan-bright: #06b6d4;
  --blue: #2563eb;
  --deep-blue: #1d4ed8;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 52%, var(--deep-blue) 100%);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.22);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 650;
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

.header-search input,
.filter-input,
.filter-select {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero {
  position: relative;
  height: clamp(520px, 64vw, 720px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

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

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

.image-miss {
  opacity: 0;
}

.cover-shell,
.hero-media,
.player-media {
  background: radial-gradient(circle at 22% 18%, rgba(6, 182, 212, 0.36), transparent 35%), linear-gradient(135deg, #0f172a, #1d4ed8 52%, #0891b2);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.56) 42%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 clamp(52px, 8vw, 94px);
  color: #fff;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: var(--cyan-bright);
}

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

.badge.dark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(760px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-head,
.card-meta,
.detail-actions,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn.primary {
  color: #fff;
  background: var(--cyan-bright);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.35);
}

.btn.primary:hover {
  background: var(--cyan);
  transform: translateY(-1px);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(2, 6, 23, 0.58);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

main {
  min-height: 70vh;
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 52%, var(--deep-blue) 100%);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
}

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 36px 0;
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

.cover-shell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cover-shell.wide {
  aspect-ratio: 16 / 9;
}

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

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

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

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta strong {
  color: var(--cyan);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.feature-card {
  min-height: 420px;
}

.feature-card .cover-shell {
  aspect-ratio: auto;
  height: 100%;
}

.feature-card .feature-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  color: #fff;
  z-index: 2;
}

.feature-card .feature-copy h3 {
  margin: 10px 0;
  font-size: clamp(24px, 4vw, 34px);
}

.feature-card .feature-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

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

.list-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: 0.2s ease;
}

.list-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.list-card .cover-shell {
  border-radius: 16px;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  transition: 0.22s ease;
}

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

.category-tile h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-panel {
  border-radius: 30px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

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

.rank-thumb {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
}

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

.rank-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 17px;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.filter-card {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.filter-row {
  gap: 12px;
}

.filter-input,
.filter-select {
  min-height: 44px;
  padding: 0 15px;
  color: #0f172a;
  border-color: var(--line);
  background: #fff;
}

.filter-input {
  flex: 1 1 280px;
}

.filter-select {
  flex: 0 0 180px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 700;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.play-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.42);
  font-size: 34px;
  line-height: 1;
}

.detail-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 6px 12px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-weight: 750;
  font-size: 13px;
}

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.article-block p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 16px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link .cover-shell {
  border-radius: 14px;
}

.side-link h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.side-link span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.86);
  background: #0f172a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

  .hero {
    height: 580px;
  }

  .hero-control {
    display: none;
  }

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

  .list-card,
  .rank-row {
    grid-template-columns: 92px 1fr;
  }

  .rank-number {
    grid-row: span 2;
  }

  .rank-row .btn {
    grid-column: 2;
    justify-self: start;
  }

  .feature-card {
    min-height: 360px;
  }

  .detail-card {
    padding: 22px;
  }
}
