.home-spotlight {
  position: relative;
  margin: 0 0 28px;
  padding: 4px 0 8px;
  isolation: isolate;
}

.home-spotlight::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 88% at 18% 50%, rgba(59, 130, 246, 0.16) 0%, transparent 68%),
    radial-gradient(ellipse 38% 72% at 78% 48%, rgba(34, 211, 238, 0.1) 0%, transparent 72%);
  opacity: 0.75;
  transition: opacity 0.6s ease;
}

.home-spotlight--active::before {
  opacity: 1;
  background:
    radial-gradient(ellipse 58% 92% at 18% 50%, rgba(59, 130, 246, 0.28) 0%, transparent 68%),
    radial-gradient(ellipse 44% 78% at 78% 48%, rgba(34, 211, 238, 0.2) 0%, transparent 72%);
}

.home-spotlight__panel {
  position: relative;
  z-index: 1;
  --hs-square: minmax(152px, 196px);
  display: grid;
  grid-template-columns: var(--hs-square) minmax(0, 1fr) var(--hs-square);
  align-items: center;
  gap: 18px 28px;
  width: min(100%, 740px);
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

.home-spotlight__cover-col,
.home-spotlight__info-col,
.home-spotlight__player-col {
  min-width: 0;
}

.home-spotlight__cover-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-spotlight__player-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.home-spotlight__info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.home-spotlight__tag {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #67e8f9;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  animation: home-spotlight-tag-pulse 2.8s ease-in-out infinite;
}

@keyframes home-spotlight-tag-pulse {
  0%, 100% {
    opacity: 0.78;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.85), 0 0 36px rgba(59, 130, 246, 0.35);
  }
}

.home-spotlight__cover-link {
  display: block;
  width: 100%;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.22),
    0 0 28px rgba(59, 130, 246, 0.32),
    0 0 64px rgba(34, 211, 238, 0.12);
  transition: box-shadow 0.25s ease;
}

.home-spotlight--active .home-spotlight__cover-link {
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.45),
    0 0 36px rgba(59, 130, 246, 0.5),
    0 0 80px rgba(34, 211, 238, 0.22);
}

.home-spotlight__cover-link:hover {
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.55),
    0 0 40px rgba(59, 130, 246, 0.55),
    0 0 90px rgba(34, 211, 238, 0.28);
}

.home-spotlight__cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
}

.home-spotlight__cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}

.home-spotlight__cover--ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  color: #3b82f6;
  font-size: 2.25rem;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.75);
}

.home-spotlight__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.home-spotlight__line {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-spotlight__label {
  display: inline-block;
  min-width: 3.4em;
  color: var(--muted, #6b7080);
  margin-right: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.home-spotlight__value {
  color: #bfdbfe;
}

.home-spotlight__value--title {
  display: block;
  margin-top: 2px;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #93c5fd;
  text-shadow:
    0 0 14px rgba(59, 130, 246, 0.55),
    0 0 32px rgba(34, 211, 238, 0.2);
}

.home-spotlight--active .home-spotlight__value--title {
  color: #dbeafe;
  text-shadow:
    0 0 18px rgba(59, 130, 246, 0.75),
    0 0 40px rgba(34, 211, 238, 0.35);
}

/* Mini record player (adapted from sample/mini-player.html) */
.hs-device {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  background: linear-gradient(158deg, #121212 0%, #080808 55%, #030303 100%);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.22),
    0 0 28px rgba(59, 130, 246, 0.32),
    0 0 64px rgba(34, 211, 238, 0.12);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.25s ease;
}

.home-spotlight #hs-audio {
  display: none;
}

.home-spotlight--active .hs-device {
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.45),
    0 0 36px rgba(59, 130, 246, 0.5),
    0 0 80px rgba(34, 211, 238, 0.22);
}

.hs-device:hover {
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.55),
    0 0 40px rgba(59, 130, 246, 0.55),
    0 0 90px rgba(34, 211, 238, 0.28);
}

.hs-device:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.hs-device__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hs-device__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7px;
}

.hs-screen-bezel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #050505;
  border-radius: 4px;
  padding: 4px;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.99);
  transition: box-shadow 0.6s;
}

.hs-screen-bezel.active {
  box-shadow:
    inset 0 4px 14px rgba(0, 0, 0, 0.99),
    0 0 24px rgba(34, 211, 238, 0.22),
    0 0 12px rgba(59, 130, 246, 0.18);
}

.hs-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #00040a;
  border-radius: 2px;
  overflow: hidden;
  animation: hs-crt-flicker 11s linear infinite;
}

.hs-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 44% 52%, rgba(34, 211, 238, 0.06) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

.home-spotlight--active .hs-screen::before {
  background: radial-gradient(ellipse 75% 65% at 44% 52%, rgba(34, 211, 238, 0.12) 0%, transparent 68%);
}

.hs-crt-svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  filter:
    drop-shadow(0 0 2px #22d3ee)
    drop-shadow(0 0 8px rgba(34, 211, 238, 0.55));
}

.home-spotlight--active .hs-crt-svg {
  filter:
    drop-shadow(0 0 3px #22d3ee)
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.72));
}

.hs-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.hs-screen-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 48%, transparent 46%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
  z-index: 3;
}

@keyframes hs-crt-flicker {
  0%, 100% { opacity: 1; }
  84% { opacity: 0.86; }
  85% { opacity: 1; }
  93% { opacity: 0.93; }
  94% { opacity: 1; }
}

.hs-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #222;
  transition: all 0.4s;
  flex-shrink: 0;
}

.hs-led.on {
  background: #22d3ee;
  border-color: #0891b2;
  box-shadow: 0 0 6px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.65);
}

#hs-tonearm {
  transform-origin: 0 0;
  transform: rotate(-30deg);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#hs-tonearm.playing {
  transform: rotate(0deg);
}

@media (max-width: 960px), ((hover: none) and (pointer: coarse) and (max-width: 1024px)) {
  .home-spotlight {
    margin-bottom: 36px;
    padding: 0;
  }

  .home-spotlight::before {
    inset: -4px -6px;
    background:
      radial-gradient(ellipse 92% 50% at 50% 22%, rgba(59, 130, 246, 0.22) 0%, transparent 72%),
      radial-gradient(ellipse 78% 42% at 50% 82%, rgba(34, 211, 238, 0.14) 0%, transparent 70%);
  }

  .home-spotlight__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: min(100%, 320px);
    margin: 0 auto;
  }

  .home-spotlight__cover-col {
    order: 1;
    width: 100%;
    align-items: stretch;
  }

  .home-spotlight__player-col {
    order: 2;
    width: 100%;
    min-width: 0;
  }

  .home-spotlight__info-col {
    order: 3;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 0;
  }

  .home-spotlight__text {
    align-items: center;
    width: 100%;
  }

  .home-spotlight__line {
    width: 100%;
  }

  .home-spotlight__label {
    display: block;
    min-width: 0;
    margin: 0 0 2px;
    font-size: 10px;
  }

  .home-spotlight__cover-link,
  .hs-device {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    height: auto;
  }

  .hs-device {
    min-height: 0;
  }

  .home-spotlight__value--title {
    font-size: clamp(16px, 4.8vw, 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-spotlight__tag,
  .hs-screen {
    animation: none;
  }
}
