:root {
  color-scheme: light;
  --sky: #0ea5e9;
  --sky-dark: #0369a1;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.9), #ffffff 36rem);
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(135deg, var(--sky-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #e0f2fe;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--sky-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

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

.compact-top {
  padding-top: 26px;
}

.hero-shell {
  margin-bottom: 64px;
}

.hero-shell > h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0369a1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.2), transparent 38%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.7) 48%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 96px));
  padding: 76px 0 76px 64px;
  color: #ffffff;
}

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

.hero-kicker span,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
}

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

.hero-kicker span:last-child {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-content h2 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.text-button,
.inline-search button,
.player-bar button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 24px;
  color: #ffffff;
  background: var(--sky);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.34);
}

.primary-button:hover,
.inline-search button:hover,
.player-bar button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  background: var(--sky-dark);
}

.ghost-button {
  padding: 14px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(14px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: #ffffff;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-quick-links a {
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--sky-dark);
  background: #e0f2fe;
  font-weight: 700;
}

.content-section {
  margin-bottom: 64px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-panel-body p,
.category-tile p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  min-width: 0;
  scroll-snap-align: start;
}

.movie-card > a,
.movie-list-card > a,
.ranking-row > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card > a:hover,
.movie-list-card > a:hover,
.ranking-row > a:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.poster-wrap img,
.list-poster img,
.detail-cover img,
.ranking-row img,
.category-covers img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card > a:hover .poster-wrap img,
.movie-list-card > a:hover .list-poster img,
.category-panel:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.82));
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.35);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 14px 14px 16px;
}

.movie-card-body h3,
.list-content h3,
.ranking-row h2 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p,
.list-content p,
.ranking-row p {
  margin: 8px 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-tile,
.category-panel {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-tile {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.82);
}

.category-panels {
  margin-bottom: 64px;
}

.category-panel {
  display: flex;
  flex-direction: column;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.category-panel-body {
  padding: 20px;
}

.category-panel-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-panel-body span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sky-dark);
  font-weight: 900;
}

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

.section-more {
  margin-top: 22px;
}

.text-button {
  padding: 12px 18px;
  color: var(--sky-dark);
  background: #e0f2fe;
}

.page-hero {
  margin-bottom: 34px;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.24), transparent 36%),
    linear-gradient(135deg, #ffffff, #f0f9ff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.small-hero h1,
.search-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -0.04em;
}

.category-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--sky-dark);
  font-weight: 900;
}

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

.inline-search input,
.search-panel input,
.search-panel select,
.filter-bar input {
  width: min(420px, 100%);
  border: 1px solid #dbeafe;
  outline: 0;
  border-radius: 16px;
  padding: 13px 15px;
  color: #1f2937;
  background: #ffffff;
}

.inline-search button,
.search-panel button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--sky);
}

.filter-bar {
  margin-bottom: 22px;
}

.filter-bar input {
  width: 100%;
}

.search-panel {
  margin-top: 24px;
  flex-wrap: wrap;
}

.search-panel select {
  width: 220px;
}

.movie-list-card > a {
  display: flex;
}

.list-poster {
  width: 190px;
  flex: 0 0 190px;
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.tag-row span,
.detail-tags span {
  color: var(--sky-dark);
  background: #e0f2fe;
}

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

.ranking-row > a {
  display: grid;
  grid-template-columns: 72px 90px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px;
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-weight: 900;
}

.ranking-row img {
  width: 90px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

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

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

.player-shell {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 24px 54px rgba(14, 165, 233, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start span {
  margin-left: 6px;
  font-size: 42px;
  line-height: 1;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: calc(100% - 48px);
  border-radius: 14px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.76);
  display: none;
}

.player-message.show {
  display: block;
}

.player-bar {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
}

.player-bar button {
  padding: 11px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.detail-card,
.text-panel {
  margin-bottom: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.detail-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 24px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.detail-cover img {
  aspect-ratio: 3 / 4.15;
}

.detail-content h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-badges span {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.lead-text {
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.text-panel {
  padding: clamp(22px, 4vw, 34px);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 700;
}

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

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

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

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

  .menu-button {
    display: flex;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 48px);
    padding: 58px 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .category-hero,
  .footer-inner,
  .detail-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .inline-search {
    width: 100%;
  }

  .inline-search input {
    flex: 1;
  }

  .detail-cover {
    max-width: 260px;
  }

  .ranking-row > a {
    grid-template-columns: 52px 76px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .ranking-row img {
    width: 76px;
    height: 102px;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-stage {
    min-height: 650px;
    border-radius: 22px;
  }

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

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

  .hero-actions,
  .player-bar,
  .search-panel {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .player-bar button,
  .search-panel input,
  .search-panel select {
    width: 100%;
  }

  .movie-grid.four-col,
  .movie-grid.six-col,
  .category-grid,
  .category-panels,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .horizontal-strip {
    grid-auto-columns: 75%;
  }

  .player-start {
    width: 78px;
    height: 78px;
  }

  .player-start span {
    font-size: 34px;
  }
}
