:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: var(--bg);
  line-height: 1.65;
}

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

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

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

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

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

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.header-search input {
  padding: 10px 14px;
  border-radius: 999px 0 0 999px;
}

.header-search button,
.mobile-panel button,
.filter-bar button,
.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
  border-radius: 0 999px 999px 0;
  color: #fff;
  background: var(--cyan);
}

.header-search button:hover,
.mobile-panel button:hover,
.filter-bar button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #0f172a;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-panel form {
  display: flex;
}

.mobile-panel input {
  padding: 10px 12px;
  border-radius: 999px 0 0 999px;
}

.mobile-panel button {
  padding: 10px 16px;
  border-radius: 0 999px 999px 0;
  color: #fff;
  background: var(--cyan);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.36), transparent 38%), linear-gradient(135deg, #0f172a 0%, #0b3b66 48%, #111827 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  left: -180px;
  top: 90px;
  background: rgba(6, 182, 212, 0.16);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -200px;
  bottom: -150px;
  background: rgba(37, 99, 235, 0.18);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 650px;
  margin: 0 auto;
  padding: 78px 20px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pills a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.poster-glass {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.poster-glass strong {
  display: block;
  font-size: 18px;
}

.poster-glass span {
  color: #bae6fd;
  font-size: 13px;
}

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

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

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

.section,
.page-hero,
.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.view-more {
  color: var(--cyan);
  font-weight: 800;
}

.category-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-pills {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
}

.category-pills a {
  color: #0369a1;
  background: #ecfeff;
  border: 1px solid #cffafe;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.rank-no {
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta,
.card-foot,
.detail-meta,
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

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

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

.tag-row span {
  color: #0e7490;
  background: #ecfeff;
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}

.card-foot a {
  color: var(--cyan);
  font-weight: 800;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.movie-card.horizontal .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.feature-band {
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #2563eb 55%, #111827);
}

.feature-band .section-head h2,
.feature-band .section-head p {
  color: #fff;
}

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

.feature-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-card p {
  color: #dbeafe;
}

.page-hero-shell {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #075985 50%, #111827);
}

.page-hero {
  padding-top: 70px;
  padding-bottom: 70px;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: #c7e7ff;
  font-size: 18px;
}

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

.category-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.mini-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.mini-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 170px auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}

.filter-bar button {
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0b3b66 50%, #111827);
}

.detail-wrap {
  padding-top: 42px;
  padding-bottom: 54px;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: #bae6fd;
}

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

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 34px;
}

.detail-title h1,
.detail-title p {
  color: #fff;
}

.detail-title p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

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

.detail-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.content-panel,
.side-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.content-panel p {
  color: #334155;
}

.player-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.28), rgba(2, 6, 23, 0.64));
}

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

.player-start span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.35);
  font-size: 30px;
}

.player-start strong {
  font-size: 20px;
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 20px;
}

.side-panel .movie-card {
  margin-bottom: 14px;
}

.side-panel .movie-card.horizontal {
  grid-template-columns: 96px minmax(0, 1fr);
  border-radius: 18px;
}

.side-panel .card-body {
  padding: 12px;
}

.side-panel .movie-card h3 {
  font-size: 15px;
}

.side-panel .movie-card p,
.side-panel .tag-row,
.side-panel .card-foot {
  display: none;
}

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

.site-footer {
  color: #e5edf8;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 420px;
  color: #cbd5e1;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  padding: 18px 20px;
  text-align: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .hero-content,
  .detail-top,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 330px;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 54px;
    gap: 24px;
  }

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

  .movie-card.horizontal {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    min-height: auto;
  }

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

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

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

  .detail-main,
  .content-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

  .movie-card.horizontal {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
