:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-500: #3b82f6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 30px rgba(14, 165, 233, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.75), #ffffff 360px);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(186, 230, 253, 0.72);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(248, 250, 252, 0.96));
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.28);
}

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

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

.brand-text em {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-600);
  transition: 0.22s ease;
  font-size: 15px;
}

.nav-link:hover,
.nav-link-active {
  color: var(--sky-600);
  background: rgba(224, 242, 254, 0.86);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
  color: var(--slate-700);
  background: rgba(224, 242, 254, 0.78);
  cursor: pointer;
}

.home-hero {
  padding: 34px 0 0;
}

.hero-frame {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(56, 189, 248, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.66) 48%, rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(24px, 6vw, 78px);
  color: var(--white);
}

.hero-kicker,
.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-kicker span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero-kicker span:first-child {
  background: var(--sky-500);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(241, 245, 249, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  margin-bottom: 22px;
  color: rgba(226, 232, 240, 0.9);
}

.hero-meta span + span::before {
  content: "•";
  margin-right: 8px;
  opacity: 0.7;
}

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

.primary-button,
.ghost-button,
.quick-actions a,
.board-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--sky-600);
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.78);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.quick-panel,
.section-block,
.page-hero,
.detail-hero,
.player-section,
.next-prev {
  margin-top: 34px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.quick-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.quick-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2 {
  margin: 0;
  color: var(--slate-900);
}

.quick-panel p,
.section-heading p,
.page-hero p,
.detail-content p,
.category-overview-card p {
  color: var(--slate-600);
  line-height: 1.8;
}

.quick-actions a,
.board-more,
.text-link {
  min-height: 42px;
  padding: 0 16px;
  color: var(--sky-700, #0369a1);
  background: var(--sky-100);
}

.quick-actions a:hover,
.board-more:hover,
.text-link:hover {
  color: var(--white);
  background: var(--sky-500);
}

.section-block {
  padding: 26px;
}

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

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
  margin: 8px 0 0;
}

.section-heading > a {
  color: var(--sky-600);
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

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

.category-card:hover img {
  transform: scale(1.06);
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.86));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-card strong {
  bottom: 54px;
  font-size: 22px;
}

.category-card em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.filter-panel {
  display: contents;
}

.filter-row {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-700);
  background: var(--white);
  outline: none;
}

.filter-input {
  flex: 1;
  padding: 0 16px;
}

.filter-select {
  width: 150px;
  padding: 0 12px;
}

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

.compact-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: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 15px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.movie-title:hover {
  color: var(--sky-600);
}

.movie-card-body p {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  color: #64748b;
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #94a3b8;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  border-radius: 9px;
  padding: 5px 8px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-size: 12px;
}

.movie-card-compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.section-split .section-block {
  margin-top: 0;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: 0.22s ease;
}

.rank-item a:hover {
  background: var(--sky-50);
  transform: translateX(3px);
}

.rank-num {
  color: var(--sky-600);
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--slate-800);
}

.rank-copy em {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.board-more {
  width: 100%;
  margin-top: 16px;
}

.page-main {
  padding: 34px 0 48px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.25), transparent 32%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky-600);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.overview-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.overview-image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 26px;
}

.overview-preview {
  color: var(--slate-700);
}

.category-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.category-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--sky-600);
  background: var(--sky-100);
  font-size: 13px;
}

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

.detail-main {
  max-width: 1120px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-600);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.92);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 8px 0 10px;
  color: #64748b;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--slate-100);
}

.detail-tags {
  margin-bottom: 22px;
}

.player-section {
  padding: 20px;
  background: #020617;
  border-color: rgba(14, 165, 233, 0.18);
}

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

.movie-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.player-start span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sky-500);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.35);
  font-size: 30px;
}

.player-start strong {
  font-size: 18px;
}

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

.player-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #bae6fd;
}

.detail-content {
  padding: 30px;
}

.detail-content h2 {
  margin-top: 24px;
  font-size: 26px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  font-size: 17px;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.next-prev a {
  color: var(--sky-600);
  font-weight: 700;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--slate-200);
  background: linear-gradient(180deg, #ffffff, var(--slate-50));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 38px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: var(--slate-900);
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.8;
}

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

.footer-links a {
  color: #64748b;
}

.footer-links a:hover {
  color: var(--sky-600);
}

.footer-bottom {
  padding: 18px 16px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid var(--slate-200);
}

[data-card].is-hidden {
  display: none;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--sky-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-frame,
  .hero-slide img {
    min-height: 520px;
  }

  .hero-content {
    justify-content: flex-end;
    padding: 34px 22px 72px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .quick-panel,
  .section-heading,
  .next-prev {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero-frame,
  .hero-slide img {
    min-height: 480px;
    border-radius: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-meta,
  .hero-tags {
    display: none;
  }

  .section-block,
  .quick-panel,
  .page-hero,
  .detail-hero {
    padding: 18px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .full-rank {
    grid-template-columns: 1fr;
  }

  .poster-link {
    aspect-ratio: 16 / 11;
  }

  .detail-poster img {
    min-height: 360px;
  }

  .rank-item a {
    grid-template-columns: 34px 50px minmax(0, 1fr);
  }
}