:root {
  --bg: #f6f8fc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --red: #e11d48;
  --amber: #f59e0b;
  --slate: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-icon,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.25);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #bfdbfe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: #bfdbfe;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  white-space: nowrap;
  color: #dbeafe;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.72);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 240px;
}

.search-input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 14px;
  outline: none;
  color: #ffffff;
  background: rgba(30, 58, 138, 0.55);
  padding: 11px 14px;
}

.search-input::placeholder,
.hero-search input::placeholder {
  color: #bfdbfe;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #eff6ff;
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #172554, #1e40af);
}

.search-result-item strong,
.search-result-item small {
  display: block;
}

.search-result-item small {
  color: var(--muted);
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(30, 64, 175, 0.65);
  border-radius: 12px;
  padding: 9px 12px;
}

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

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  background: #0f172a;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  background: linear-gradient(135deg, #172554, #0f172a 45%, #082f49);
}

.image-empty {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 58, 138, 0.88) 42%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  padding: 48px 0;
}

.hero-kicker,
.eyebrow,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #f97316);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

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

.hero-meta span,
.movie-meta span,
.detail-meta span,
.detail-stat span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.18);
  font-size: 13px;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ghost-button.dark {
  color: var(--ink);
  background: #eef2ff;
  border-color: #dbeafe;
}

.hero-panel {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  padding: 96px 28px 74px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.72));
  backdrop-filter: blur(16px);
}

.hero-search,
.hero-rank,
.side-panel,
.detail-info-card,
.player-card,
.detail-content,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-search {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.hero-search span {
  color: var(--blue-dark);
  font-weight: 800;
}

.hero-search input {
  color: var(--ink);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hero-result {
  left: 0;
  right: auto;
  width: 100%;
}

.hero-rank {
  padding: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: min(80px, 6vw);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

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

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #eef6ff 0%, #f8fafc 100%);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head.compact h2 {
  font-size: 20px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #172554, #1d4ed8 50%, #0891b2);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.72) 100%);
}

.cover-category,
.cover-rating {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.cover-category {
  left: 12px;
  background: rgba(37, 99, 235, 0.9);
}

.cover-rating {
  right: 12px;
  background: rgba(225, 29, 72, 0.9);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta span {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.movie-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.movie-tags span,
.tag-row span {
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.42), transparent 30%), linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease;
}

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

.category-tile span {
  font-size: 21px;
  font-weight: 850;
}

.category-tile p {
  color: #dbeafe;
  font-size: 14px;
}

.category-tile div {
  display: grid;
  gap: 6px;
  color: #bfdbfe;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #082f49 100%);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

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

.compact-hero > div {
  padding: 58px 0;
}

.category-hero,
.rank-hero {
  min-height: 320px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  border-radius: var(--radius);
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  color: var(--ink);
  background: #f8fafc;
  border-color: #dbeafe;
}

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

.side-panel {
  padding: 18px;
}

.sticky-side {
  position: sticky;
  top: 98px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.compact-poster {
  display: block;
  width: 76px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #172554, #2563eb);
}

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

.compact-body {
  min-width: 0;
}

.compact-body strong,
.compact-body small {
  display: block;
}

.compact-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.compact-body small {
  color: var(--muted);
  font-size: 12px;
}

.rank-num {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 12px;
}

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

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.category-overview-head span {
  font-size: 24px;
  font-weight: 850;
}

.category-overview-head a {
  color: var(--blue);
  font-weight: 800;
}

.category-overview-card p {
  color: var(--muted);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-color: rgba(15, 23, 42, 0.1);
}

.main-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.36), rgba(2, 6, 23, 0.28));
  transition: opacity 0.22s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-info-card {
  padding: 16px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #172554, #2563eb);
}

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

.detail-stat {
  margin-top: 15px;
}

.detail-stat span {
  color: #1e3a8a;
  background: #dbeafe;
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-content h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.detail-content h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-content p {
  color: #334155;
  font-size: 17px;
}

.lead-text {
  margin-top: 18px;
  font-size: 19px !important;
  color: #1e293b !important;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 20px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 850;
  font-size: 20px;
}

.footer-inner p {
  max-width: 460px;
  color: #94a3b8;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

  .hero-panel {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .wide-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-info-card {
    display: none;
  }

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

  .main-video {
    min-height: 360px;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand-copy small,
  .header-search {
    display: none;
  }

  .mobile-menu.is-open,
  .feature-grid,
  .wide-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-panel {
    padding: 20px 16px 34px;
  }

  .hero-dots {
    left: 16px;
    bottom: 18px;
  }

  .content-section {
    padding: 36px 0;
  }

  .detail-content {
    padding: 20px;
  }

  .main-video {
    min-height: 260px;
  }
}
