:root {
  --site-primary: #0ea5e9;
  --site-primary-dark: #0284c7;
  --site-accent: #f97316;
  --site-neutral: #111827;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
}

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

.hero-carousel {
  min-height: 560px;
  background: #020617;
}

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

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

.hero-content {
  animation: heroRise 700ms ease both;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.75);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #0ea5e9;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 700;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.category-pill:hover {
  color: #ffffff;
  background: #0ea5e9;
  transform: translateY(-2px);
}

.movie-card {
  position: relative;
}

.movie-card img {
  min-height: 100%;
}

.horizontal-card .rank-badge,
.movie-card .rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.movie-tags {
  flex-wrap: wrap;
  gap: 6px;
}

.home-category-block,
.category-overview-card {
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.page-hero {
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #0ea5e9;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-input,
.search-page-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.filter-input:focus,
.search-page-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.filter-link,
.search-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #0ea5e9;
  font-weight: 700;
  transition: background 200ms ease, transform 200ms ease;
}

.filter-link:hover,
.search-page-button:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
  cursor: pointer;
}

.player-button {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.36));
  cursor: pointer;
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.player-triangle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #0ea5e9;
  font-size: 34px;
  padding-left: 5px;
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.4);
  transition: transform 200ms ease, background 200ms ease;
}

.player-button:hover .player-triangle {
  transform: scale(1.07);
  background: #0284c7;
}

.detail-info-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e5e7eb;
}

.detail-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
}

.detail-article {
  max-width: 980px;
}

.detail-article h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin: 34px 0 14px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 2;
  margin: 0 0 18px;
}

.detail-one-line {
  padding: 22px;
  border-radius: 22px;
  background: #f0f9ff;
  color: #075985 !important;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 700;
  font-size: 14px;
}

.detail-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.detail-data-grid div {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.detail-data-grid strong {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.detail-data-grid span {
  color: #111827;
  font-weight: 800;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 72vh;
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-tags {
    gap: 8px;
    flex-wrap: wrap;
  }

  .home-category-block,
  .category-overview-card {
    padding: 18px;
    border-radius: 22px;
  }

  .search-panel {
    flex-direction: column;
  }

  .detail-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .player-triangle {
    width: 72px;
    height: 72px;
  }

  .detail-data-grid {
    grid-template-columns: 1fr;
  }
}
