/* =========================================================
   Home / Cards Redesign v2 — "Spotlight" system
   Signature element: conic-gradient score ring (.score-ring)
   Palette: obsidian-violet void + electric violet -> coral gel accent
   Layout: hero converted from full-bleed classic slider to a
   contained poster-carousel (modern editorial rail), cards not
   full page width.
   ========================================================= */

:root {
  --ksp-void: #0b0a12;
  --ksp-surface: #15131f;
  --ksp-surface-2: #1c1a29;
  --ksp-border: rgba(255, 255, 255, 0.09);
  --ksp-accent-a: #7c5cff;
  --ksp-accent-b: #ff5c7a;
  --ksp-gradient: linear-gradient(135deg, #7c5cff, #ff5c7a);
  --ksp-gold: #ffc857;
  --ksp-text-hi: #f5f3fa;
  --ksp-text-lo: #a6a2b8;
}

/* ---------- Score ring (signature component, repeats everywhere) ---------- */
.score-ring {
  --size: 56px;
  width: var(--size) !important;
  height: var(--size) !important;
  border-radius: 50% !important;
  background: conic-gradient(var(--ksp-gold) var(--pct, 0%), rgba(255, 255, 255, 0.15) 0) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.score-ring:hover {
  transform: scale(1.06);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ksp-surface);
}

.score-ring .score-num {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 15px;
  color: var(--ksp-text-hi) !important;
}

.score-ring .score-src {
  position: absolute;
  bottom: -18px;
  right: 50%;
  transform: translateX(50%);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ksp-text-lo);
  white-space: nowrap;
}

.score-ring.sm {
  --size: 38px;
}

.score-ring.sm .score-num {
  font-size: 11px;
}

.score-ring.corner {
  --size: 44px;
  position: absolute !important;
  top: 10px;
  left: 10px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.score-ring.corner .score-num {
  font-size: 13px;
}

/* ---------- Hero: converted to poster-carousel, not full-bleed ---------- */
.top-slider-1 {
  background: var(--ksp-void) !important;
  padding: 28px 0;
}

.top-movies-section-slider {
  padding: 0 40px !important;
  box-sizing: border-box;
}

.top-movies-section-slider .swiper-wrapper {
  align-items: stretch;
}

.top-movies-section-slider .item {
  width: min(920px, 84vw) !important;
  height: 440px !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.top-movies-section-slider .item .item-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--ksp-surface-2) !important;
}

.top-movies-section-slider .item .item-bg .bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  right: 0 !important;
}

.top-movies-section-slider .item .full-item-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  right: 0 !important;
  background: linear-gradient(0deg, rgba(11, 10, 18, 0.96) 6%, rgba(11, 10, 18, 0.15) 55%, rgba(11, 10, 18, 0.05) 100%) !important;
}

.top-movies-section-slider .item .full-item-bg::before {
  background: rgba(11, 10, 18, 0.15) !important;
}

.top-movies-section-slider .item .item-content {
  position: relative;
  z-index: 9;
  height: 100%;
}

.top-movies-section-slider .item .item-content .content.spotlight-card {
  text-align: right;
  position: absolute !important;
  width: calc(100% - 48px) !important;
  max-width: 560px;
  bottom: 24px !important;
  top: auto !important;
  left: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.top-movies-section-slider .item .item-content .content.spotlight-card .age {
  align-self: flex-start;
  background: var(--ksp-gradient) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}

.top-movies-section-slider .item .item-content .content .title.gradient-title a {
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  background: var(--ksp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ksp-text-hi);
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spotlight-meta li {
  color: var(--ksp-text-lo);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--ksp-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.top-movies-section-slider .item .item-content .content.spotlight-card .score-ring {
  align-self: flex-start;
  margin-top: 2px;
}

.top-movies-section-slider .item .bottom-content {
  width: auto !important;
  height: auto !important;
  position: absolute !important;
  bottom: 24px;
  left: auto !important;
  right: 24px;
}

/* the secondary thumbnail rail duplicated the new carousel's job — retire it */
.thumbs-top-movies-main {
  display: none !important;
}

/* ---------- Content grid cards (site-posts) — dark glass, both light/dark toggle ---------- */
.main-site .main-index .site-posts .post.modern-card,
body.dark .main-site .main-index .site-posts .post.modern-card {
  background: var(--ksp-surface) !important;
  border: 1px solid var(--ksp-border);
  border-radius: 20px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.main-site .main-index .site-posts .post.modern-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
}

.main-index .site-posts .post.modern-card .right-side-post .headline .title a,
body.dark .main-index .site-posts .post.modern-card .right-side-post .headline .title a {
  color: var(--ksp-text-hi) !important;
}

.main-index .site-posts .post.modern-card .right-side-post .bottom-post .more {
  background: var(--ksp-gradient) !important;
  border: none !important;
}

@media (max-width: 900px) {
  .top-movies-section-slider {
    padding: 0 16px !important;
  }

  .top-movies-section-slider .item {
    width: 90vw !important;
    height: 360px !important;
    border-radius: 20px !important;
  }

  .top-movies-section-slider .item .item-content .content.spotlight-card {
    width: calc(100% - 32px) !important;
    left: 16px;
    bottom: 18px !important;
    gap: 6px;
  }

  .top-movies-section-slider .item .item-content .content .title.gradient-title a {
    font-size: 22px !important;
  }

  .score-ring {
    --size: 42px;
  }
}
