.livestreams {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #07101a 0, #05090d 36%, #030608 100%);
  position: relative;
  overflow: hidden;
}

.livestreams::before {
  content: "";
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #168ad12b 0, #168ad100 68%);
  position: absolute;
  top: -230px;
  right: -170px;
  pointer-events: none;
}

.stream-section-heading {
  max-width: 800px;
  position: relative;
}

.stream-group {
  margin-top: 70px;
  position: relative;
}

.stream-group-live {
  padding: 28px;
  border: 1px solid #1e3b4d;
  background: #07111a;
  box-shadow: 0 24px 70px #0004;
}

.stream-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.stream-group-heading h3 {
  color: #dce6ec;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 500;
}

.stream-live-indicator {
  color: #ff6b6b;
  letter-spacing: 0.15em;
  font: 700 10px/1 var(--font-geist-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-live-indicator i {
  width: 8px;
  height: 8px;
  background: #ff4e4e;
  border-radius: 50%;
  box-shadow: 0 0 14px #ff4e4e;
  display: block;
}

.stream-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stream-list-live {
  grid-template-columns: 1fr;
}

.stream-card {
  min-width: 0;
  background: #09121a;
  border: 1px solid #1b2b36;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.stream-card:hover {
  border-color: #348fbd;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px #0005;
}

.stream-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  background: #050a0e;
}

.stream-card-featured .stream-copy {
  align-self: center;
  padding: 34px;
}

.stream-media {
  aspect-ratio: 16 / 9;
  background: #020507;
  position: relative;
  overflow: hidden;
}

.stream-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stream-preview {
  width: 100%;
  height: 100%;
  color: #fff;
  background: #020507;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stream-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.stream-preview::after {
  content: "";
  background: linear-gradient(180deg, #0000 45%, #000b 100%);
  position: absolute;
  inset: 0;
}

.stream-preview:hover img {
  transform: scale(1.025);
  filter: brightness(0.78);
}

.stream-preview:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: -4px;
}

.stream-play {
  width: 62px;
  height: 62px;
  color: #dff5ff;
  background: #07131bd9;
  border: 1px solid #5fc9ff;
  border-radius: 50%;
  place-items: center;
  padding-left: 4px;
  font-size: 21px;
  display: grid;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px #168ac46e;
}

.stream-click-note {
  color: #d4e0e7;
  letter-spacing: 0.04em;
  font-size: 10px;
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 16px;
}

.stream-badge,
.stream-duration {
  color: #d8f2ff;
  background: #07131be8;
  border: 1px solid #3e9bc7;
  padding: 7px 9px;
  letter-spacing: 0.12em;
  font: 700 9px/1 var(--font-geist-mono);
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
}

.stream-duration {
  top: auto;
  right: 12px;
  bottom: 12px;
  left: auto;
  border-color: #ffffff25;
  background: #000d;
}

.stream-badge-live {
  color: #fff;
  background: #e53232;
  border-color: #ff8585;
  box-shadow: 0 0 20px #e5323266;
}

.stream-copy {
  padding: 22px;
}

.stream-kicker {
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 10px;
  font: 650 9px/1 var(--font-geist-mono);
}

.stream-copy h4 {
  color: #dce5eb;
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 520;
}

.stream-card-featured .stream-copy h4 {
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.2;
}

.stream-meta {
  color: #788b98;
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.stream-description {
  color: #9aabb5;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.stream-youtube-link {
  color: #bcddec;
  border-bottom: 1px solid #326a86;
  margin-top: 18px;
  padding-bottom: 4px;
  font-size: 11px;
  display: inline-block;
}

.stream-youtube-link:hover {
  color: #fff;
  border-color: var(--blue-light);
}

.stream-loading,
.stream-empty {
  color: #667b89;
  background: #071018;
  border: 1px dashed #263b48;
  margin: 0;
  padding: 30px;
  font-size: 13px;
  grid-column: 1 / -1;
}

.stream-footer-line {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
}

.stream-footer-line p {
  color: #596c79;
  margin: 0;
  font-size: 10px;
}

.stream-footer-line a {
  color: #9ccfe7;
  font-size: 11px;
}

@media (max-width: 980px) {
  .stream-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-card-featured {
    grid-template-columns: 1fr;
  }

  .stream-card-featured .stream-copy {
    padding: 26px;
  }

  .stream-group-live {
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .stream-group {
    margin-top: 50px;
  }

  .stream-list {
    grid-template-columns: 1fr;
  }

  .stream-group-live {
    margin-right: -8px;
    margin-left: -8px;
    padding: 12px;
  }

  .stream-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stream-click-note {
    max-width: 70%;
    font-size: 9px;
  }

  .stream-play {
    width: 54px;
    height: 54px;
  }

  .stream-footer-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .stream-copy h4 {
    font-size: 18px;
  }
}
