:root {
  --site-blue: #2563eb;
  --site-cyan: #0891b2;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-card: #ffffff;
  --site-line: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #111827;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.site-header {
  backdrop-filter: blur(16px);
}

.logo-mark {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.25);
}

.nav-link {
  white-space: nowrap;
}

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(8, 145, 178, 0.45), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 45%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 4rem;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bae6fd;
}

.hero-copy h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2.65rem);
  font-weight: 800;
  color: #cffafe;
}

.hero-desc {
  max-width: 680px;
  color: #dbeafe;
  font-size: 1.125rem;
  line-height: 1.85;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-tags span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
}

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

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.85rem;
  padding: 0 1.3rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 22px 45px rgba(8, 145, 178, 0.35);
}

.hero-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  color: var(--site-blue);
  background: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
}

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

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.page-hero {
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.75;
}

.category-tile p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.tile-icon {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.tile-arrow {
  display: inline-block;
  margin-top: 0.65rem;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.category-tile:hover .tile-arrow {
  opacity: 1;
  transform: translateX(0);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  color: var(--site-blue);
  background: #ffffff;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .play-circle {
  opacity: 1;
  transform: scale(1);
}

.section-more {
  margin-top: 1.5rem;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0 1.25rem;
  color: var(--site-blue);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.index-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 2rem;
  align-items: start;
}

.ranking-panel,
.ranking-page-panel {
  border: 1px solid var(--site-line);
  border-radius: 1rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  font-size: 1.35rem;
  font-weight: 900;
}

.panel-head a {
  color: var(--site-blue);
  font-weight: 800;
  font-size: 0.9rem;
}

.ranking-list {
  display: grid;
  gap: 0.65rem;
}

.ranking-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-row {
  display: grid;
  grid-template-columns: 2.1rem 3.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #f1f5f9;
  border-radius: 0.85rem;
  padding: 0.55rem;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.ranking-row img {
  width: 3.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  color: #475569;
  background: #f1f5f9;
  font-weight: 900;
}

.ranking-number.rank-gold {
  color: #92400e;
  background: #fef3c7;
}

.ranking-number.rank-silver {
  color: #334155;
  background: #e2e8f0;
}

.ranking-number.rank-bronze {
  color: #9a3412;
  background: #ffedd5;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.ranking-info em {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
}

.ranking-play {
  color: var(--site-blue);
  font-weight: 800;
  font-size: 0.85rem;
}

.filter-panel {
  margin-top: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 1rem;
}

.filter-grid label,
.search-large {
  display: grid;
  gap: 0.45rem;
  color: #374151;
  font-weight: 800;
  font-size: 0.88rem;
}

.filter-grid input,
.filter-grid select,
.search-large input {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0 0.9rem;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus,
.search-large input:focus {
  border-color: var(--site-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.filter-count {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.category-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-card {
  border: 1px solid var(--site-line);
  border-radius: 1rem;
  padding: 1.2rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.stat-card h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.stat-card li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.55rem 0;
  color: #475569;
}

.stat-card li:last-child {
  border-bottom: 0;
}

.search-panel {
  margin-top: 2rem;
}

.search-large input {
  min-height: 3.25rem;
  font-size: 1.05rem;
}

.search-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.search-result-item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-result-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.search-result-item img {
  width: 4.25rem;
  height: 5.6rem;
  border-radius: 0.55rem;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.search-result-item strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.search-result-item p {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.search-result-item span {
  color: var(--site-blue);
  font-weight: 900;
}

.video-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #020617;
}

.video-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.38;
}

.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72)), linear-gradient(0deg, #020617 0%, transparent 42%);
}

.video-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
  min-height: 680px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.72));
  text-align: center;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-play-icon {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: var(--site-blue);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.18);
  font-size: 2rem;
}

.player-overlay strong {
  margin-top: 0.8rem;
  font-size: 1.35rem;
}

.player-overlay em {
  color: #bfdbfe;
  font-style: normal;
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.8rem;
  pointer-events: none;
}

.video-info {
  display: grid;
  gap: 1.2rem;
  color: #ffffff;
}

.video-info img {
  width: 210px;
  border-radius: 1rem;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.42);
}

.video-info h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
}

.video-info p {
  margin-top: 1rem;
  color: #dbeafe;
  line-height: 1.75;
}

.detail-meta {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
  color: #d1d5db;
}

.detail-meta span {
  color: #94a3b8;
}

.detail-meta strong {
  color: #ffffff;
}

.tag-list .tag-chip {
  border-color: rgba(255, 255, 255, 0.2);
}

.cover-frame {
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

@media (max-width: 1100px) {
  .hero-content,
  .video-shell,
  .index-split {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .video-shell {
    min-height: auto;
  }

  .video-info {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

  .video-info img {
    width: 160px;
  }

  .ranking-list.two-column {
    grid-template-columns: 1fr;
  }
}

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

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
    align-items: end;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-controls {
    bottom: 1rem;
  }

  .filter-grid,
  .category-stats,
  .video-info {
    grid-template-columns: 1fr;
  }

  .video-info img {
    display: none;
  }

  .video-hero {
    min-height: auto;
  }

  .video-shell {
    padding-top: 2rem;
  }

  .player-card {
    border-radius: 0.85rem;
  }

  .search-result-item {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .search-result-item img {
    width: 3.5rem;
    height: 4.7rem;
  }

  .search-result-item span {
    display: none;
  }

  .section-heading-wrap {
    align-items: flex-start;
  }
}
