html {
  scroll-behavior: smooth;
}

.site-body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32rem), linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(to right, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 2;
  transform: translateX(-50%);
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 760px;
  margin-bottom: 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.footer-links,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 0 24px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.3);
}

.ghost-btn,
.section-link {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.52);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn:hover,
.section-link:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 88px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-section {
  padding: 58px 0;
}

.page-main {
  padding: 38px 0 80px;
}

.section-heading,
.category-overview-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-title h2,
.detail-text h2 {
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
}

.category-overview-title p {
  max-width: 680px;
  margin-top: 8px;
  color: #94a3b8;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 310px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

.slim-strip {
  grid-auto-columns: minmax(230px, 260px);
}

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

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

.movie-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: #f8fafc;
}

.movie-card.wide .movie-poster {
  aspect-ratio: 16 / 9;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.movie-poster img,
.rank-thumb img,
.detail-poster img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-poster img,
.rank-thumb img {
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img,
.rank-card:hover .rank-thumb img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
  font-size: 24px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.movie-info {
  display: grid;
  gap: 6px;
}

.movie-info strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong,
.rank-card:hover strong {
  color: #fbbf24;
}

.movie-info em,
.rank-body em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

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

.movie-tags span,
.tag-cloud a {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
}

.movie-tags span {
  padding: 4px 8px;
}

.rating-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.rating-line b,
.rank-body b {
  color: #fbbf24;
}

.rating-line i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.54));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  color: #cbd5e1;
  line-height: 1.6;
}

.category-tile em {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  color: #fbbf24;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  margin-bottom: 32px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 26rem), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.72));
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.8);
  color: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.65);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.48);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.72);
}

.rank-num {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-body {
  display: grid;
  align-content: center;
  gap: 6px;
}

.rank-body strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.rank-body small {
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-overview-block {
  margin-top: 46px;
}

.detail-main {
  padding-top: 28px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: 34px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(1px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.42) 100%);
}

.detail-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 34px;
  padding: 42px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.detail-info {
  display: grid;
  align-content: center;
  justify-items: start;
}

.detail-info h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 950;
}

.detail-info p {
  max-width: 760px;
  margin-bottom: 22px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.75;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag-cloud a {
  padding: 7px 12px;
}

.player-section {
  margin: 36px 0 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  color: #ffffff;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.28);
}

.player-overlay strong {
  font-size: 20px;
}

.detail-text {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.54);
}

.detail-text p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0;
}

.footer-inner p {
  max-width: 620px;
  color: #94a3b8;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

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

@media (max-width: 1024px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-content {
    grid-template-columns: 230px 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 640px;
  }

  .hero-content {
    bottom: 54px;
  }

  .hero-meta,
  .detail-meta,
  .hero-actions {
    gap: 8px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 24px;
  }

  .section-heading,
  .category-overview-title,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .rank-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-content,
  .detail-text {
    padding: 24px;
    border-radius: 24px;
  }

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

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

  .rank-card {
    grid-template-columns: 88px 1fr;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-strip {
    grid-auto-columns: minmax(230px, 82vw);
  }
}
