/* Sidebar Spotlight */
.sidebar .sidebar-spotlight {
  --spotlight-accent: var(--brand);
  --spotlight-image: none;
  --spotlight-card-height: 300px;
  --spotlight-art-height: 132px;
  --spotlight-body-padding: 12px 14px;
  --spotlight-body-gap: 6px;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sidebar .sidebar-spotlight__viewport {
  position: relative;
  height: var(--spotlight-card-height);
  touch-action: pan-y;
}

.sidebar .sidebar-spotlight__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.sidebar .sidebar-spotlight__slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.sidebar .sidebar-spotlight__link {
  display: grid;
  grid-template-rows: var(--spotlight-art-height) minmax(0, 1fr);
  height: 100%;
  touch-action: pan-y;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, filter 200ms ease;
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__link {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(11, 17, 28, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar .sidebar-spotlight__link:hover,
.sidebar .sidebar-spotlight__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -28px rgba(0, 0, 0, 0.3);
  border-color: color-mix(in srgb, var(--spotlight-accent) 42%, rgba(0, 0, 0, 0.06));
  filter: saturate(1.03);
}

.sidebar .sidebar-spotlight__art {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 12px;
  min-height: var(--spotlight-art-height);
  color: #fff;
  background-color: #101725;
  background-image: var(--spotlight-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.sidebar .sidebar-spotlight__art-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.sidebar .sidebar-spotlight__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.45);
}

.sidebar .sidebar-spotlight__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: var(--spotlight-body-gap);
  min-height: 0;
  overflow: visible;
  padding: var(--spotlight-body-padding);
}

.sidebar .sidebar-spotlight__body-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  min-height: 100%;
}

.sidebar .sidebar-spotlight__head-copy {
  display: grid;
  align-content: stretch;
  gap: var(--spotlight-body-gap);
  min-width: 0;
  min-height: 100%;
  max-width: 100%;
}

.sidebar .sidebar-spotlight__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: color-mix(in srgb, var(--spotlight-accent) 80%, var(--dark-text) 20%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sidebar .sidebar-spotlight__kicker-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 12px;
}

.sidebar .sidebar-spotlight__kicker i {
  flex: 0 0 auto;
  font-size: 11px;
  color: color-mix(in srgb, var(--spotlight-accent) 84%, var(--dark-text) 16%);
}

.sidebar .sidebar-spotlight__kicker-logo {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  object-fit: contain;
}

.sidebar .sidebar-spotlight__kicker-logo--chainwire {
  width: 20px;
  height: auto;
  max-height: 14px;
  border-radius: 0;
}

.sidebar .sidebar-spotlight__title {
  margin: 0;
  color: var(--dark-text);
  font-size: clamp(1rem, 0.96rem + 0.14vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar .sidebar-spotlight__summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--light-text);
  font-size: clamp(0.7rem, 0.67rem + 0.1vw, 0.75rem);
  font-weight: 500;
  line-height: 1.32;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sidebar .sidebar-spotlight__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--light-text);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.sidebar .sidebar-spotlight__time i {
  color: color-mix(in srgb, var(--spotlight-accent) 70%, var(--light-text) 30%);
}

.sidebar .sidebar-spotlight__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar .sidebar-spotlight__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar .sidebar-spotlight__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.sidebar .sidebar-spotlight__dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--spotlight-accent) 28%, var(--border) 72%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sidebar .sidebar-spotlight__dot:hover .sidebar-spotlight__dot-indicator,
.sidebar .sidebar-spotlight__dot:focus-visible .sidebar-spotlight__dot-indicator {
  transform: scale(1.08);
  background: color-mix(in srgb, var(--spotlight-accent) 68%, #ffffff 32%);
}

.sidebar .sidebar-spotlight__dot.is-active .sidebar-spotlight__dot-indicator {
  background: color-mix(in srgb, var(--spotlight-accent) 92%, #ffffff 8%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--spotlight-accent) 18%, transparent);
}

.sidebar .sidebar-spotlight__dot:focus-visible,
.sidebar .sidebar-spotlight__link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--spotlight-accent) 75%, #ffffff 25%);
  outline-offset: 2px;
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__kicker,
html[data-theme="dark"] .sidebar .sidebar-spotlight__summary,
html[data-theme="dark"] .sidebar .sidebar-spotlight__time {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__title {
  color: #fff;
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__dot-indicator {
  background: rgba(255, 255, 255, 0.26);
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__dot:hover .sidebar-spotlight__dot-indicator,
html[data-theme="dark"] .sidebar .sidebar-spotlight__dot:focus-visible .sidebar-spotlight__dot-indicator {
  background: color-mix(in srgb, var(--spotlight-accent) 74%, #ffffff 26%);
}

html[data-theme="dark"] .sidebar .sidebar-spotlight__dot.is-active .sidebar-spotlight__dot-indicator {
  background: color-mix(in srgb, var(--spotlight-accent) 88%, #ffffff 12%);
}

@media (max-width: 640px) {
  .sidebar .sidebar-spotlight {
    --spotlight-card-height: 284px;
    --spotlight-art-height: 120px;
    --spotlight-body-padding: 11px 13px;
    --spotlight-body-gap: 5px;
    gap: 10px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .sidebar-spotlight,
  .sidebar .sidebar-spotlight__slide,
  .sidebar .sidebar-spotlight__dot,
  .sidebar .sidebar-spotlight__dot-indicator,
  .sidebar .sidebar-spotlight__link {
    transition: none;
  }
}
