:root {
  color-scheme: light;
  --site-bg: #f8fafc;
  --site-surface: #ffffff;
  --site-surface-soft: #ecfeff;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-line: #cffafe;
  --site-primary: #0891b2;
  --site-primary-dark: #0e7490;
  --site-accent: #14b8a6;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --site-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--site-text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #ecfeff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, #0891b2, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--site-primary);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #ecfeff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ecfeff;
  color: var(--site-primary);
}

.mobile-nav.is-open {
  display: block;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.30), transparent 30%), linear-gradient(135deg, #0f172a, #083344 48%, #0f766e);
}

.hero-slide {
  display: none;
  min-height: 650px;
}

.hero-slide.is-active {
  display: block;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.20) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 46px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 92px 0 82px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(103, 232, 249, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 850px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(226, 232, 240, 0.94);
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 13px;
  font-weight: 800;
}

.hero .pill,
.detail-hero .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.30);
}

.btn-secondary {
  color: #0f172a;
  background: #ffffff;
}

.btn-ghost {
  color: var(--site-primary-dark);
  background: #ecfeff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-side-info {
  position: absolute;
  inset: auto 18px 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(12px);
}

.hero-side-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: calc((100vw - min(1180px, calc(100vw - 32px))) / 2);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #67e8f9;
}

.search-band {
  position: relative;
  z-index: 4;
  width: min(980px, calc(100% - 32px));
  margin: -38px auto 0;
  padding: 18px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  color: var(--site-text);
  background: #ffffff;
  outline: none;
}

.search-input:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #0e7490;
  background: #f0fdfa;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}

.section {
  padding: 74px 0;
}

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

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

.section-kicker {
  color: var(--site-primary);
  font-weight: 900;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 24px;
  background: var(--site-surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a:hover {
  color: var(--site-primary);
}

.card-summary {
  display: -webkit-box;
  min-height: 64px;
  margin: 0;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-meta {
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.category-card::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(20, 184, 166, 0.16));
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.category-card:hover h3 {
  color: var(--site-primary);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

.rank-thumb img {
  width: 86px;
  height: 108px;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-title a:hover {
  color: var(--site-primary);
}

.rank-desc {
  display: -webkit-box;
  max-width: 820px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--site-muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 72px 0 46px;
  background: radial-gradient(circle at 14% 10%, rgba(45, 212, 191, 0.18), transparent 28%), linear-gradient(135deg, #f0fdfa, #ffffff 54%, #ecfeff);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px) saturate(1.1);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.25));
}

.detail-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-intro {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.94);
  font-size: 18px;
  line-height: 1.85;
}

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

.breadcrumb a:hover {
  color: #ffffff;
}

.player-section {
  padding: 62px 0 34px;
  background: #020617;
}

.player-panel {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.28), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.player-cover span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(8, 145, 178, 0.36);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  padding: 58px 0;
}

.article-card,
.side-card {
  padding: 28px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

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

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.article-card p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

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

.related-link {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
}

.related-link:hover {
  background: #ecfeff;
}

.related-link img {
  width: 68px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.related-link strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-link small {
  display: block;
  margin-top: 6px;
  color: #64748b;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid rgba(14, 116, 144, 0.12);
  color: #64748b;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-brand {
  color: #0f172a;
  font-weight: 900;
}

.empty-card {
  display: none;
  padding: 28px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 24px;
  color: #64748b;
  background: #ffffff;
}

.empty-card.is-visible {
  display: block;
}

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

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

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

  .hero-side-card {
    max-width: 420px;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 76px 0 110px;
  }

  .hero-side-card {
    display: none;
  }

  .hero-dots {
    right: 16px;
  }

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

  .section-head {
    display: block;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-thumb img {
    width: 70px;
    height: 90px;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .detail-inner {
    padding: 48px 0;
  }

  .detail-poster {
    max-width: 240px;
  }

  .content-grid {
    padding: 36px 0;
  }

  .article-card,
  .side-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .card-title {
    min-height: auto;
  }
}
