:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card: #ffffff;
  --border: rgba(148, 163, 184, 0.24);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.25);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--text-main);
  min-width: 320px;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-links a,
.mobile-links a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
  color: var(--cyan-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-links {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
}

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

.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.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(34, 211, 238, 0.20), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.90) 0%, rgba(15, 23, 42, 0.66) 44%, rgba(15, 23, 42, 0.10) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
  padding-top: 28px;
}

.hero-kicker,
.hero-tags,
.detail-tags,
.tag-row,
.meta-row,
.detail-meta,
.hero-actions,
.category-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.hero-tags span,
.detail-tags span,
.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1;
}

.hero-kicker span:first-child,
.pill,
.detail-tags span:first-child {
  background: var(--cyan-500);
  color: #fff;
  font-weight: 700;
}

.hero-kicker span:not(:first-child),
.hero-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.25);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 42px;
  line-height: 0;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.main-stack {
  padding: 56px 0;
  display: grid;
  gap: 56px;
}

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

.section-head h2,
.strip-head h3,
.rank-panel h2,
.side-card h2 {
  margin: 0;
  color: var(--slate-900);
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.section-head a,
.strip-head a,
.compact-head a {
  color: #0891b2;
  font-weight: 800;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(6, 182, 212, 0.45);
}

.poster-link {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 182, 212, 0.86);
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.meta-row {
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover {
  color: #0891b2;
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: #526173;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: #f1f5f9;
  color: #475569;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-foot span:last-child {
  color: #0e7490;
  font-weight: 900;
}

.panel-section,
.detail-card,
.side-card,
.search-panel,
.category-card,
.rank-panel,
.latest-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-section {
  padding: 30px;
}

.strip-stack {
  display: grid;
  gap: 44px;
}

.strip-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
}

.strip-head h3 span {
  width: 5px;
  height: 28px;
  border-radius: 99px;
  background: var(--cyan-500);
}

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

.latest-panel {
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.light-head h2,
.light-head a,
.light-head .section-kicker {
  color: #fff;
}

.light-head a {
  opacity: 0.88;
}

.latest-panel .movie-card {
  background: rgba(255, 255, 255, 0.94);
}

.rank-panel,
.side-card {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

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

.rank-thumb {
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-900);
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-rank .rank-item {
  grid-template-columns: 34px 74px minmax(0, 1fr);
  padding: 10px;
}

.small-rank .rank-thumb {
  height: 58px;
}

.small-rank .rank-info p {
  display: none;
}

.search-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.search-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--slate-900);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  padding-top: 6px;
  color: #dc2626;
  font-weight: 800;
}

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

.page-hero {
  padding: 70px 0;
  color: #fff;
}

.gradient-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.32), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #0e7490 48%, #2563eb 100%);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #e0f2fe;
  font-size: 14px;
}

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

.category-links {
  margin-top: 24px;
}

.category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-main-link {
  display: block;
  padding: 26px;
  min-height: 220px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0f172a, #0891b2 52%, #2563eb);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

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

.category-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
  color: #475569;
  font-size: 14px;
}

.watch-stage {
  padding: 26px 0 42px;
  background: var(--slate-950);
}

.dark-breadcrumb {
  color: #cbd5e1;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  border: 0;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-orb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 20px 55px rgba(6, 182, 212, 0.38);
}

.player-cover strong {
  max-width: min(680px, calc(100% - 40px));
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.2;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-card,
.side-card {
  padding: 28px;
}

.detail-tags span {
  background: #ecfeff;
  color: #0e7490;
  font-weight: 800;
}

.detail-card h1 {
  margin: 16px 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

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

.detail-meta {
  gap: 14px 24px;
  color: #64748b;
  font-size: 15px;
}

.detail-tag-row {
  margin-top: 18px;
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
  text-align: justify;
}

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

.movie-card-wide .poster-link {
  height: 220px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.poster-side {
  display: grid;
  gap: 18px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.site-footer {
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

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

.site-footer p,
.site-footer li {
  margin: 0;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--cyan-400);
}

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

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

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

  .detail-side {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-links.is-open {
    display: grid;
  }

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding-right: 28px;
  }

  .hero-control {
    display: none;
  }

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

  .poster-link {
    height: 230px;
  }

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-inner,
  .mobile-links {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 540px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .hero-actions,
  .category-links {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .category-links a {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .library-grid,
  .three-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .strip-head,
  .compact-head {
    align-items: start;
    flex-direction: column;
  }

  .panel-section,
  .latest-panel,
  .detail-card,
  .side-card,
  .search-panel {
    padding: 22px;
    border-radius: 22px;
  }

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

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