:root {
  --site-amber: #f59e0b;
  --site-orange: #f97316;
  --site-yellow: #eab308;
  --site-dark: #111827;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.nav-current {
  color: #fffbeb;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.site-logo-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--site-orange);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.24);
}

.footer-logo {
  color: #ffffff;
  box-shadow: none;
}

.mobile-menu {
  display: none;
}

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

.mobile-menu-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
}

.menu-line {
  display: block;
  height: 2px;
  width: 1.45rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f59e0b, #f97316 48%, #eab308);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.68), rgba(249, 115, 22, 0.64), rgba(234, 179, 8, 0.28)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.hero-eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fffbeb;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  max-width: 860px;
  margin-top: 1.4rem;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff7ed;
}

.hero-summary {
  max-width: 720px;
  margin-top: 1.25rem;
  color: #ffedd5;
  font-size: 1.12rem;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-tags span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-primary {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.28);
}

.hero-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.42);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #f97316;
  font-size: 2rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.32);
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.card-play {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #f97316;
  font-size: 1.6rem;
}

.rank-number {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.rank-gold {
  color: #ffffff;
  background: #facc15;
}

.rank-silver {
  color: #374151;
  background: #d1d5db;
}

.rank-bronze {
  color: #ffffff;
  background: #fdba74;
}

.rank-normal {
  color: #4b5563;
  background: #f3f4f6;
}

.rank-thumb {
  width: 3.25rem;
  height: 4.35rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #f3f4f6;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile h3,
.category-overview h2 {
  color: #1f2937;
}

.category-tile h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.category-tile p {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.75;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-mini-links a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
}

.category-more {
  white-space: nowrap;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  font-weight: 800;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.95rem;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  padding: 0 1rem;
  color: #374151;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-panel > select {
  margin-top: 1rem;
}

.movie-card.is-hidden {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 30%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

main .breadcrumb {
  color: #6b7280;
}

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

.player-shell {
  min-height: 240px;
}

.player-shell video {
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-play {
  display: inline-flex;
  width: 5.5rem;
  height: 5.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #f97316;
  font-size: 2.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.player-overlay:hover .player-play {
  transform: scale(1.08);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.content-block {
  margin-top: 2rem;
}

.content-block h2 {
  margin-bottom: 0.9rem;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 800;
}

.content-block p {
  color: #374151;
  line-height: 1.95;
  font-size: 1.02rem;
}

.movie-info-list {
  display: grid;
  gap: 0.85rem;
}

.movie-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}

.movie-info-list dt {
  color: #6b7280;
}

.movie-info-list dd {
  max-width: 62%;
  color: #1f2937;
  font-weight: 700;
  text-align: right;
}

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

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

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 5rem;
  }

  .hero-poster {
    min-height: 320px;
    transform: none;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .title-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-primary,
  .hero-secondary {
    width: 100%;
  }

  .player-play {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
  }
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-\[2\/3\] {
  aspect-ratio: 2 / 3;
}

.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

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

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

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
