﻿.main-stream-section {
  position: relative;
  z-index: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 75, 156, .22), transparent 45%),
    linear-gradient(135deg, #010729, #001e46);
  border: 1px solid rgba(173, 223, 249, .25);
}

.main-stream-iframe {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, .75),
    inset 0 0 0 1px rgba(173, 223, 249, .2);
}

.main-stream-iframe iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
}

.main-stream-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.main-stream-desc {
  color: #bcd0f1;
  font-size: 1.03rem;
}

.btn-twitch,
.btn-youtube {
  border-radius: 12px;
  font-weight: 700;
  padding: .7rem 1.4rem;
  border: 1px solid rgba(173, 223, 249, .4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  background: linear-gradient(135deg, #004b9c, #1f69ba);
  color: #fff;
}

.btn-twitch:hover,
.btn-youtube:hover,
.btn-twitch:focus-visible,
.btn-youtube:focus-visible {
  background: linear-gradient(135deg, #0058b7, #2a74c8);
  color: #fff;
}

.community-streams-main {
  margin-top: 3rem;
}

.total-viewers {
  text-align: center;
  color: #b9cbeb;
  font-weight: 700;
  letter-spacing: 1px;
}

.stream-card {
  background: linear-gradient(150deg, rgba(8, 20, 43, .94), rgba(6, 16, 34, .95));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(173, 223, 249, .22);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .52);
}

.stream-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d30535, #9f0e31);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.viewer-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  color: #fff;
}

.stream-info {
  padding: 1.2rem;
  text-align: center;
}

.stream-info h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.fecod-offline {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.fecod-offline img {
  width: 150px;
  opacity: .95;
}

.fecod-offline h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
}

.fecod-offline p {
  color: #bcd0f1;
  max-width: 540px;
}

.offline-actions {
  display: flex;
  gap: .9rem;
  margin-top: .4rem;
}

.no-streams {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #b8ccec;
}

.badge-live-off {
  display: inline-block;
  background: rgba(173, 223, 249, .16);
  color: #d9ebff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .main-stream-iframe iframe {
    min-height: 260px;
  }

  .offline-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .offline-actions .btn {
    flex: 1 1 calc(50% - .35rem);
    min-width: 0;
    text-align: center;
  }

  .main-stream-title {
    font-size: 1.8rem;
  }
}
