.stream-showcase {
  position: relative;
  padding: 18px 0 4px;
  overflow: clip;
}

.stream-showcase[hidden] {
  display: none;
}

.stream-showcase .stream-card {
  --led-cyan: #65efff;
  --led-magenta: #f250e7;
  --led-red: #ff4e59;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "status marquee action";
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  min-height: 126px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(130, 232, 255, .72);
  border-radius: 20px;
  background:
    linear-gradient(105deg, rgba(101, 239, 255, .045), transparent 32%, transparent 70%, rgba(242, 80, 231, .045)),
    radial-gradient(circle, rgba(100, 111, 126, .42) 1.5px, transparent 1.8px) 0 0 / 9px 9px,
    #050911;
  box-shadow:
    inset 0 0 0 6px rgba(1, 5, 11, .72),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -18px 30px rgba(0, 0, 0, .48),
    -10px 0 30px rgba(40, 211, 255, .18),
    10px 0 30px rgba(238, 62, 225, .14),
    0 22px 45px rgba(1, 8, 19, .42);
}

.stream-showcase.is-live .stream-card {
  border-color: rgba(130, 232, 255, .72);
  background:
    linear-gradient(105deg, rgba(101, 239, 255, .045), transparent 32%, transparent 70%, rgba(242, 80, 231, .045)),
    radial-gradient(circle, rgba(100, 111, 126, .42) 1.5px, transparent 1.8px) 0 0 / 9px 9px,
    #050911;
}

.stream-showcase .stream-card::before,
.stream-showcase .stream-card::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.stream-showcase .stream-card::before {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 28%, transparent 72%, rgba(0, 0, 0, .2));
}

.stream-showcase .stream-card::after {
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 3px 0 12px rgba(68, 231, 255, .22), inset -3px 0 12px rgba(242, 80, 231, .2);
}

.led-live-status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 178px;
  padding-right: clamp(16px, 2vw, 26px);
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.led-live-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--led-red);
  box-shadow: 0 0 0 4px rgba(255, 78, 89, .15), 0 0 15px rgba(255, 55, 69, .9);
  animation: led-live-pulse 2.2s ease-in-out infinite;
}

.stream-showcase .stream-status,
.led-marquee-copy {
  --led-text-color: #dffcff;
  color: transparent;
  background-image: radial-gradient(circle, var(--led-text-color) 1.25px, transparent 1.5px);
  background-size: 3.5px 3.5px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px var(--led-text-color));
  font-family: "Arial Black", Inter, ui-sans-serif, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stream-showcase .stream-status {
  --led-text-color: var(--led-red);
  display: block;
  margin: 0;
  color: transparent;
  background-image: radial-gradient(circle, var(--led-text-color) 1px, transparent 1.25px);
  background-size: 2.75px 2.75px;
  filter: drop-shadow(0 0 2px var(--led-text-color));
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
}

.stream-showcase .stream-status::before {
  display: none;
}

.led-marquee-viewport {
  grid-area: marquee;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.led-marquee-track {
  --marquee-distance: 600px;
  --marquee-duration: 18s;
  --marquee-gap: 160px;
  --marquee-lead: 24px;
  display: flex;
  align-items: center;
  width: max-content;
  padding-left: var(--marquee-lead);
  gap: var(--marquee-gap);
  will-change: transform;
  animation: led-title-scroll var(--marquee-duration) linear infinite;
}

.led-marquee-copy {
  --led-text-color: #dffcff;
  flex: 0 0 auto;
  color: transparent;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.3;
  white-space: nowrap;
}

.led-marquee:hover .led-marquee-track,
.led-marquee:focus-within .led-marquee-track,
.led-marquee.is-page-hidden .led-marquee-track {
  animation-play-state: paused;
}

.stream-showcase .stream-platform,
.stream-showcase .stream-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stream-showcase .stream-watch {
  grid-area: action;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: #f9fbff;
  color: #111827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.stream-watch-icon {
  width: 25px;
  height: 18px;
  flex: 0 0 auto;
  color: #ff1838;
}

.stream-showcase .stream-watch:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 0 3px rgba(101, 239, 255, .12);
}

.stream-showcase .stream-watch:active {
  transform: translateY(0) scale(.98);
}

.stream-showcase .stream-watch:focus-visible {
  outline: 3px solid var(--led-cyan);
  outline-offset: 4px;
}

@keyframes led-title-scroll {
  to { transform: translateX(calc(-1 * var(--marquee-distance))); }
}

@keyframes led-live-pulse {
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(255, 78, 89, .09), 0 0 10px rgba(255, 55, 69, .65); }
}

@media (max-width: 760px) {
  .stream-showcase {
    padding-top: 12px;
  }

  .stream-showcase .stream-card {
    grid-template-areas:
      "status marquee"
      "action action";
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 13px 14px;
    min-height: 0;
    padding: 14px;
    border-radius: 15px;
    background-size: auto, 7px 7px, auto;
  }

  .stream-showcase .stream-card::before {
    border-radius: 11px;
  }

  .led-live-status {
    gap: 8px;
    min-width: max-content;
    padding-right: 13px;
  }

  .led-live-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .stream-showcase .stream-status {
    background-image: radial-gradient(circle, var(--led-text-color) .9px, transparent 1.1px);
    background-size: 2.5px 2.5px;
    font-size: 17px;
  }

  .led-marquee-copy {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.2;
  }

  .stream-showcase .stream-watch {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  .stream-showcase .stream-card {
    gap: 11px 10px;
    padding: 12px;
  }

  .led-live-status {
    gap: 7px;
    padding-right: 10px;
  }

  .stream-showcase .stream-status {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .led-live-dot,
  .led-marquee-track {
    animation: none;
  }

  .led-live-dot {
    box-shadow: 0 0 0 4px rgba(255, 78, 89, .15);
  }

  .led-marquee-viewport {
    overflow: visible;
    mask-image: none;
  }

  .led-marquee-track {
    display: block;
    width: auto;
    padding-left: 0;
    transform: none;
  }

  .led-marquee-copy {
    display: block;
    white-space: normal;
  }

  .led-marquee-copy + .led-marquee-copy {
    display: none;
  }
}
