:root {
  color-scheme: light;
  --site-ink: #1c1917;
  --site-muted: #78716c;
  --site-gold: #f59e0b;
  --site-dark: #0c0a09;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fafaf9;
  color: var(--site-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
}

.site-logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #1c1917;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.nav-link.is-active {
  color: #f59e0b;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2rem;
  background: #f59e0b;
}

.site-card {
  text-decoration: none;
}

.site-card-title {
  min-height: 2.5rem;
}

.card-rank {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #1c1917;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.filter-input {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  color: #1c1917;
  background: #ffffff;
  outline: none;
}

.filter-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  color: #ffffff;
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #1c1917;
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.38);
}

.player-shell.is-started .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  border-radius: 0.75rem;
  background: rgba(12, 10, 9, 0.82);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.player-message.is-visible {
  display: block;
}

.breadcrumb a {
  color: #92400e;
  text-decoration: none;
}

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

.search-result-list:empty::after {
  content: "输入片名、地区、年份或类型即可搜索影片";
  display: block;
  border-radius: 1rem;
  background: #ffffff;
  padding: 2rem;
  color: #78716c;
  text-align: center;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

@media (max-width: 767px) {
  .filter-box {
    grid-template-columns: 1fr;
  }

  .hero-slide .hero-copy {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2rem;
  }

  .player-start span {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 2rem;
  }
}
