:root {
  --bg: #eef8ff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.86);
  --text: #172033;
  --muted: #637083;
  --line: #d8ebf7;
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-soft: #e0f2fe;
  --shadow: 0 20px 60px rgba(2, 132, 199, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #eef8ff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.45);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: #475569;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--brand);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px;
  min-width: 280px;
}

.header-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  width: 100%;
  padding: 8px 10px;
}

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #0f172a;
  background: #e0f2fe;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0f9ff;
}

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

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 34px 0 26px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.34) 52%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content .eyebrow {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #075985;
  background: #e0f2fe;
}

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

.hero-actions,
.side-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.side-actions a,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #0369a1;
  background: #ffffff;
  padding: 13px 22px;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.2);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 12px 20px;
}

.primary-btn:hover,
.ghost-btn:hover,
.side-actions a:hover,
.section-more:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

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

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

.side-panel,
.search-panel,
.page-hero,
.content-section,
.category-strip,
.player-section,
.detail-text {
  background: var(--panel-soft);
  border: 1px solid rgba(186, 230, 253, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-panel,
.search-panel,
.page-hero {
  padding: 28px;
}

.side-panel h2,
.search-panel h2,
.page-hero h1,
.content-section h2,
.category-strip h2 {
  margin: 14px 0 10px;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.side-panel h2,
.search-panel h2,
.content-section h2,
.category-strip h2 {
  font-size: 28px;
}

.side-panel p,
.search-panel p,
.page-hero p,
.section-title-row p,
.movie-card p,
.detail-line,
.detail-text p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.side-actions a {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  padding: 11px 16px;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  position: relative;
  min-height: 150px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-mini-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.82;
}

.hero-mini-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.category-strip,
.content-section {
  padding: 28px;
  margin: 28px 0;
}

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

.section-title-row h2 {
  margin-top: 0;
}

.section-more {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #bae6fd;
  padding: 10px 16px;
  min-width: max-content;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 132px;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff, #e0f2fe);
  border: 1px solid #bae6fd;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.1);
}

.category-card span,
.category-overview-card span {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.85);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 52px rgba(2, 132, 199, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

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

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

.rank-num {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.3);
}

.card-body {
  padding: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card p {
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.movie-card.compact h3 {
  font-size: 15px;
  min-height: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e0f2fe;
}

.rank-row img {
  width: 64px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-index {
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 20px;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bae6fd;
}

.large-search input {
  flex: 1;
  padding: 12px 14px;
}

.page-main {
  padding: 32px 0;
}

.page-hero {
  margin-bottom: 28px;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.small-hero {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.76));
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0f9ff;
  border: 1px solid #dbeafe;
}

.filter-bar select {
  max-width: 180px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 26px 0 0;
  color: #64748b;
  font-size: 14px;
}

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

.detail-main {
  padding-bottom: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin: 24px 0;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(224, 242, 254, 0.76));
  border: 1px solid #bae6fd;
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: #e0f2fe;
}

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

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  font-size: 18px;
  margin: 0 0 16px;
}

.detail-meta {
  font-size: 14px;
  margin-bottom: 16px;
}

.tag-row.large span {
  font-size: 13px;
  padding: 7px 12px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0369a1;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
  font-size: 30px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 22px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.detail-text h2 {
  margin: 0 0 12px;
}

.detail-text h2 + p {
  margin: 0 0 22px;
  font-size: 17px;
}

.search-results:empty::before {
  content: "输入关键词后显示相关影片";
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 22px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #bae6fd;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #0f172a;
  color: #e2e8f0;
}

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

.footer-inner strong {
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #cbd5e1;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 22px auto 0;
  color: #94a3b8;
}

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

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

  .header-search {
    flex: 1;
    min-width: 0;
  }

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

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

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

  .detail-poster {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .header-search {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .hero-carousel {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-mini-list,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .filter-bar,
  .large-search {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

  .rank-row em {
    grid-column: 3;
  }

  .detail-hero,
  .content-section,
  .category-strip,
  .page-hero {
    padding: 20px;
    border-radius: 22px;
  }
}
