:root {
  --cyan: #06b6d4;
  --cyan-600: #0891b2;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 1.22rem;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 30vw);
}

.header-search input,
.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.header-search input {
  padding: 10px 15px;
}

.header-search button,
.btn,
.section-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.header-search button {
  padding: 10px 16px;
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.header-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #334155;
  background: #f1f5f9;
}

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

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

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.85);
}

.hero-slider {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #020617;
}

.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-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(236, 254, 255, 0.92), rgba(236, 254, 255, 0));
}

.hero-media {
  position: absolute;
  right: max(6vw, 48px);
  top: 50%;
  width: min(310px, 28vw);
  aspect-ratio: 2 / 3;
  transform: translateY(-48%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0e7490, #1d4ed8);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 68vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  color: white;
}

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

.hero-kickers span,
.hero-kickers a,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  color: white;
  font-size: 0.9rem;
  font-weight: 760;
}

.hero-kickers span {
  background: var(--cyan);
}

.hero-kickers a,
.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-meta span {
  color: #f8fafc;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary,
.section-more {
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn:hover,
.section-more:hover,
.movie-card:hover,
.action-card:hover,
.category-card:hover {
  transform: translateY(-3px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
  width: 30px;
  background: white;
}

.category-strip {
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.strip-inner a,
.side-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  color: #334155;
  background: white;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.strip-inner a:hover,
.strip-inner .strip-active,
.side-links a:hover {
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-section {
  padding: 70px 0;
}

.soft-section {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.5), rgba(219, 234, 254, 0.65));
}

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

.section-head h2,
.sub-hero h1,
.content-card h2,
.info-card h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.03em;
}

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

.section-head p,
.sub-hero p,
.content-card p,
.rank-info p,
.card-body p,
.category-copy span,
.action-card span,
.site-footer p {
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
}

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

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

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

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #1d4ed8);
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(8, 145, 178, 0.92);
  font-size: 0.82rem;
  font-weight: 760;
}

.card-body {
  padding: 16px;
}

.card-tags {
  margin-bottom: 10px;
}

.card-tags a,
.card-tags span,
.rank-meta a,
.rank-meta span {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--cyan-600);
}

.card-tags span,
.rank-meta span {
  color: #64748b;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--cyan-600);
}

.card-body p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
}

.sub-hero {
  padding: 54px 0 44px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(37, 99, 235, 0.15));
}

.sub-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.sub-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 1.08rem;
}

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

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

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

.category-card,
.action-card,
.info-card,
.content-card,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.category-card a {
  display: grid;
  grid-template-rows: 160px 1fr;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #1d4ed8);
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-copy {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.category-copy strong,
.action-card strong {
  color: #0f172a;
  font-size: 1.25rem;
}

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

.action-card {
  display: grid;
  gap: 8px;
  padding: 26px;
  transition: transform 0.22s ease;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.filter-search input,
.filter-selects select {
  min-height: 48px;
  padding: 0 16px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 850;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.rank-info p {
  margin: 0 0 10px;
}

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

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.6)), var(--detail-bg);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.28), transparent 28%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 0 62px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
  margin-top: 30px;
}

.detail-title-row h1 {
  max-width: 880px;
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-title-row p {
  max-width: 820px;
  margin: 0;
  color: #e5e7eb;
  font-size: 1.08rem;
}

.detail-section {
  padding-top: 44px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  font-weight: 800;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
  font-size: 2rem;
}

.content-card,
.info-card {
  padding: 26px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.content-card p {
  margin: 0 0 22px;
  color: #374151;
}

.content-card p:last-child {
  margin-bottom: 0;
}

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

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: #111827;
  font-weight: 760;
  text-align: right;
}

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

.site-footer {
  padding: 48px 0;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: white;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #94a3b8;
}

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

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

[hidden] {
  display: none !important;
}

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

  .hero-media {
    opacity: 0.55;
    right: 24px;
    width: min(280px, 34vw);
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .filter-panel,
  .detail-layout,
  .footer-inner,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

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

  .rank-item {
    grid-template-columns: 52px 76px 1fr;
    gap: 12px;
  }
}

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

  .hero-slider,
  .hero-content {
    min-height: 72vh;
  }

  .hero-media {
    display: none;
  }

  .hero-content h1,
  .detail-title-row h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .section-head,
  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .library-grid,
  .category-grid {
    gap: 16px;
  }

  .card-body {
    padding: 13px;
  }

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

  .rank-poster {
    display: none;
  }

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