:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --pink: #ec4899;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 46%, #fdf2f8 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.92), rgba(239, 246, 255, 0.92), rgba(253, 242, 248, 0.92));
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--cyan-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 650;
  color: #334155;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover,
.section-head a:hover {
  color: var(--cyan-dark);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: stretch;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  outline: none;
}

.header-search input {
  width: 220px;
  border-radius: 999px 0 0 999px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  background: var(--cyan);
  transition: 0.22s ease;
}

.header-search button {
  border-radius: 0 999px 999px 0;
  padding: 0 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--cyan-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

.mobile-search input {
  min-width: 0;
  flex: 1;
  border-radius: 999px 0 0 999px;
  padding: 12px 16px;
}

.mobile-search button {
  border-radius: 0 999px 999px 0;
  padding: 0 18px;
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-stage {
  position: relative;
  height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: opacity 0.8s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.16)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

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

.primary-btn,
.watch-link {
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.30);
}

.primary-btn:hover,
.watch-link:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--cyan-dark);
}

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

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.20);
}

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

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

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

.hero-rail {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-poster {
  display: block;
  width: 64px;
  height: 82px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(236, 72, 153, 0.25));
}

.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.mini-info {
  min-width: 0;
}

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

.mini-info em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-size: 0.85rem;
}

.category-pills {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a {
  padding: 11px 22px;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-weight: 700;
  transition: 0.22s ease;
}

.category-pills a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: translateY(-2px);
}

.section {
  padding: 62px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.text-card h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-head a {
  color: var(--cyan-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

.large-grid {
  gap: 30px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.poster-link {
  display: block;
}

.poster-shell {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #eff6ff, #fce7f3);
}

.compact-card .poster-shell {
  height: 210px;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 9px;
  font-size: 1.12rem;
  line-height: 1.34;
}

.movie-card h3 a:hover,
.rank-main h3 a:hover,
.category-sample-links a:hover,
.category-overview-links a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.94rem;
}

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.watch-link {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.category-link {
  color: var(--cyan-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.gradient-section {
  background: linear-gradient(90deg, #cffafe, #dbeafe, #fce7f3);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.rank-panel,
.category-panel,
.search-panel,
.text-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.rank-panel,
.category-panel {
  padding: 26px;
}

.compact-head {
  align-items: center;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-weight: 850;
}

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

.rank-main h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.rank-main p {
  margin: 5px 0 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.rank-cat,
.rank-watch {
  font-size: 0.85rem;
  font-weight: 850;
}

.rank-cat {
  color: var(--cyan-dark);
}

.rank-watch {
  padding: 7px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
}

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

.category-tile,
.category-overview-card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 10px;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.category-sample-links,
.category-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample-links a,
.category-overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #172554, #0f172a);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 850;
}

.footer-brand p,
.footer-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links,
.footer-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2,
.footer-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.copyright {
  margin-top: 8px;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #2563eb, #ec4899);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: radial-gradient(circle at 18% 24%, #fff 0, transparent 25%), radial-gradient(circle at 85% 10%, #fff 0, transparent 20%);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.category-overview-grid {
  padding: 54px 0;
}

.category-overview-card {
  padding: 26px;
  box-shadow: var(--shadow);
}

.category-overview-links {
  margin: 18px 0 20px;
}

.outline-btn {
  color: var(--cyan-dark);
  border: 1px solid rgba(6, 182, 212, 0.32);
  background: #ecfeff;
}

.outline-btn:hover {
  color: #fff;
  background: var(--cyan-dark);
}

.filter-toolbar {
  display: flex;
  gap: 14px;
  padding: 26px 0 0;
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}

.filter-toolbar input {
  flex: 1;
}

.category-grid,
.search-grid {
  padding: 30px 0 60px;
}

.search-panel {
  margin-top: 34px;
  padding: 22px;
}

.big-search input {
  flex: 1;
  min-height: 56px;
  border-radius: 999px 0 0 999px;
  padding: 0 22px;
  font-size: 1rem;
}

.big-search button {
  border-radius: 0 999px 999px 0;
  padding: 0 30px;
  font-size: 1rem;
}

.full-rank-list {
  padding-bottom: 48px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.35)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(2, 6, 23, 0.28);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  height: 390px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(236, 72, 153, 0.25));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.detail-tags span {
  color: #fff;
  background: rgba(6, 182, 212, 0.32);
}

.player-section {
  padding: 54px 0 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.34), rgba(2, 6, 23, 0.46));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 2.15rem;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.32);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 26px 0 0;
}

.text-card {
  padding: 28px;
}

.text-card p {
  color: #475569;
  line-height: 1.95;
  font-size: 1rem;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .hero-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-rail .mini-card:nth-child(n + 4) {
    display: none;
  }

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

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-text {
    font-size: 1.25rem;
  }

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

  .hero-content {
    padding-bottom: 140px;
  }

  .hero-dots {
    bottom: 118px;
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-rail .mini-card:nth-child(n + 2) {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .search-grid,
  .category-tile-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 1fr auto;
  }

  .rank-cat {
    display: none;
  }

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

  .detail-poster {
    width: min(280px, 70vw);
    height: 380px;
  }

  .big-search button,
  .header-search button,
  .mobile-search button {
    padding: 0 16px;
  }
}
