:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --yellow-400: #facc15;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 45%, #f1f5f9 100%);
  color: var(--slate-900);
}

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;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 21px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.34);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #67e8f9;
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-search input,
.mobile-search input,
.hero-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 11px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  padding: 11px 18px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.quick-categories {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.35);
}

.quick-categories-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
}

.quick-categories-inner a {
  color: #cbd5e1;
  white-space: nowrap;
  font-size: 14px;
}

.quick-categories-inner a:hover {
  color: #67e8f9;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 36%, rgba(6, 182, 212, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.66) 44%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.06));
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100% - 1180px) / 2));
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.24);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
  margin: 0;
  color: #dbeafe;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

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

.hero-meta {
  margin: 22px 0;
  color: #e2e8f0;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 12px;
  font-size: 14px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

.section-block,
.section-split,
.category-overview-grid,
.ranking-grid,
.detail-layout,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-block {
  padding: 58px 0 0;
}

.section-heading,
.list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.list-toolbar h2,
.ranking-card h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading a,
.section-heading span {
  color: var(--cyan-600);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.ranking-card,
.content-card,
.side-card,
.poster-card,
.updates-panel,
.rank-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.24), transparent 34%);
  pointer-events: none;
}

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

.category-tile span {
  font-size: 38px;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile em {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.card-badge,
.card-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.card-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  inset: 0;
  opacity: 0;
  font-size: 34px;
  background: rgba(2, 6, 23, 0.28);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 13px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 26px;
  padding: 58px 0 0;
}

.updates-panel,
.rank-panel,
.ranking-card,
.content-card,
.side-card,
.poster-card,
.category-overview-card {
  padding: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.update-row,
.rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.update-row {
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 10px;
}

.update-row:hover,
.rank-row:hover {
  background: var(--slate-100);
}

.update-row img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.update-row strong,
.rank-title {
  color: var(--slate-900);
  font-weight: 800;
}

.update-row p {
  margin: 6px 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.update-row span {
  color: var(--slate-500);
  font-size: 13px;
}

.rank-row {
  grid-template-columns: 36px 68px minmax(0, 1fr) auto;
  padding: 9px;
}

.rank-no {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-weight: 900;
}

.rank-row img {
  width: 68px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-800);
}

.rank-score {
  color: #ca8a04;
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 24%, rgba(6, 182, 212, 0.24), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.small-hero {
  padding: 64px max(24px, calc((100% - 1180px) / 2));
}

.small-hero > div {
  width: min(760px, 100%);
}

.small-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.category-overview-grid,
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 54px 0 0;
}

.category-overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-title span {
  font-size: 34px;
}

.category-overview-card p,
.list-toolbar p {
  color: var(--slate-600);
  line-height: 1.7;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px;
  color: var(--slate-700);
  background: var(--slate-100);
  transition: background 0.2s ease, color 0.2s ease;
}

.mini-card:hover {
  color: var(--cyan-600);
  background: #e0f2fe;
}

.mini-card img {
  width: 76px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--slate-800);
}

.mini-card span {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-section {
  padding-bottom: 42px;
}

.list-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-600);
  font-weight: 800;
}

.list-toolbar select {
  min-width: 138px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-900);
  padding: 10px 14px;
  outline: 0;
}

.ranking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.long-rank-list {
  max-height: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 28px 0 16px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.24), transparent 35%),
    rgba(2, 6, 23, 0.58);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.34);
  font-size: 30px;
}

.player-cover strong {
  max-width: min(720px, calc(100% - 48px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(20px, 3vw, 34px);
}

.player-cover em {
  color: #dbeafe;
  font-style: normal;
}

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

.detail-main h1 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  color: var(--slate-700);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.content-card {
  margin-bottom: 20px;
}

.content-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.92;
  font-size: 16px;
}

.content-card p + p {
  margin-top: 10px;
}

.lead-text {
  color: var(--cyan-600) !important;
  font-weight: 800;
}

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

.tag-list span {
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 8px 12px;
  font-size: 14px;
}

.detail-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: var(--slate-800);
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.vertical-mini-grid {
  grid-template-columns: 1fr;
}

.site-footer {
  margin-top: 62px;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  color: #cbd5e1;
}

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

.footer-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 440px;
  margin: 12px 0 0;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

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

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

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

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

  .section-split,
  .ranking-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .quick-categories {
    display: none;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    top: auto;
    bottom: 70px;
    transform: none;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    min-height: 42px;
    padding: 0 18px;
  }

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

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

  .section-split {
    gap: 18px;
  }

  .update-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .update-row img {
    width: 112px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 560px;
  }

  .hero-meta span {
    padding: 6px 10px;
  }

  .rank-row {
    grid-template-columns: 32px 58px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-orb {
    width: 62px;
    height: 62px;
  }
}
