html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f9fafb;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  background: linear-gradient(135deg, #111827, #ef4444);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
}

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

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  transition: width 250ms ease, background 250ms ease;
}

.hero-indicator.is-active {
  width: 2rem;
  background: #ffffff;
}

.stat-card {
  border-radius: 1rem;
  padding: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.25);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-box {
  background: #111827;
}

.play-dot {
  color: #ffffff;
  font-size: 1.35rem;
  padding-left: 0.15rem;
}

.card-desc {
  color: #6b7280;
  line-height: 1.65;
  min-height: 3.25rem;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.75rem;
}

.mini-card {
  min-height: 9rem;
}

.mini-desc {
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.86rem;
}

.category-card {
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.category-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 20px 55px rgba(239, 68, 68, 0.18);
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.rank-item:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.16);
}

.rank-number {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-item img {
  width: 4rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.rank-info strong {
  display: block;
  color: #1f2937;
  line-height: 1.35;
}

.rank-info em {
  display: block;
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.85rem;
  font-style: normal;
}

.filter-bar {
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  padding: 1rem;
  margin-bottom: 2rem;
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  outline: none;
  background: #ffffff;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

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

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

.player-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.player-cover-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover-button span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 0.25rem;
  font-size: 2rem;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.4);
}

.detail-panel {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  padding: 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: #ea580c;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 520px;
  }

  .rank-item {
    grid-template-columns: 2.5rem 3.6rem 1fr;
  }

  .detail-panel {
    padding: 1.25rem;
  }
}
