/* ============================================================
   /test page — блок прямой трансляции РИФ-2026
   ============================================================ */

.broadcast {
  margin: 12px;
  margin-bottom: 56px;
  background: var(--purple);
  border-radius: 24px;
  position: relative;
  padding: 160px 0 120px;
  isolation: isolate;
}

.broadcast-bg-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
}

.broadcast-bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broadcast-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.broadcast-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.broadcast-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.broadcast-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.broadcast-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: broadcast-live-pulse 1.6s ease-out infinite;
}

@keyframes broadcast-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.broadcast-title {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 56px;
  line-height: 110%;
  color: var(--white);
  margin: 0;
  max-width: 900px;
}

.broadcast-subtitle {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}

/* ---------- Пикер дней ---------- */

.broadcast-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.broadcast-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-family);
  overflow: hidden;
  min-height: 110px;
}

.broadcast-day:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.broadcast-day.is-active {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}

.broadcast-day-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.65;
}

.broadcast-day.is-active .broadcast-day-label {
  opacity: 0.7;
}

.broadcast-day-date {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  margin-top: 2px;
}

.broadcast-day-weekday {
  font-size: 13px;
  opacity: 0.75;
  text-transform: capitalize;
}

.broadcast-day-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.broadcast-day-status.is-live {
  background: var(--red);
  color: var(--white);
}

.broadcast-day-status.is-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: broadcast-live-pulse 1.6s ease-out infinite;
}

.broadcast-day-status.is-upcoming {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.broadcast-day.is-active .broadcast-day-status.is-upcoming {
  background: rgba(109, 56, 255, 0.12);
  color: var(--purple);
}

.broadcast-day-status.is-past {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.broadcast-day.is-active .broadcast-day-status.is-past {
  background: rgba(109, 56, 255, 0.1);
  color: var(--purple);
  opacity: 0.7;
}

.broadcast-day-status.is-empty {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.broadcast-day.is-active .broadcast-day-status.is-empty {
  background: rgba(109, 56, 255, 0.08);
  color: var(--purple);
  opacity: 0.7;
}

.broadcast-day.is-empty {
  opacity: 0.85;
}

.broadcast-day.is-empty .broadcast-day-date,
.broadcast-day.is-empty .broadcast-day-weekday {
  opacity: 0.7;
}

/* ---------- Сетка: плеер + список сессий ---------- */

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.broadcast-player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.broadcast-player-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.broadcast-player-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.broadcast-player-hall {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.broadcast-player-time {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.broadcast-player-time:empty {
  display: none;
}

.broadcast-player-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.broadcast-player-status:empty {
  display: none;
}

.broadcast-player-status.is-live {
  background: var(--red);
  color: var(--white);
}

.broadcast-player-status.is-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: broadcast-live-pulse 1.6s ease-out infinite;
}

.broadcast-player-status.is-upcoming {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.broadcast-player-status.is-past {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.broadcast-player-status.is-past::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.broadcast-player-status.is-test {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.broadcast-player-session-title {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 22px;
  line-height: 130%;
  color: var(--white);
  min-height: 28px;
}

.broadcast-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.broadcast-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Боковая панель сессий ---------- */

.broadcast-sessions {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.broadcast-sessions-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.broadcast-sessions-title {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
}

.broadcast-sessions-hall {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.broadcast-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.broadcast-sessions-list::-webkit-scrollbar {
  width: 6px;
}

.broadcast-sessions-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.broadcast-session {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-align: left;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-family);
}

.broadcast-session:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.broadcast-session.is-active {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}

.broadcast-session.is-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  animation: broadcast-live-pulse 1.6s ease-out infinite;
}

.broadcast-session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.broadcast-session-time {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.broadcast-session-status {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.broadcast-session.is-active .broadcast-session-status {
  background: rgba(109, 56, 255, 0.12);
  color: var(--purple);
}

.broadcast-session.is-live .broadcast-session-status {
  background: var(--red);
  color: var(--white);
}

.broadcast-session.is-past {
  opacity: 0.75;
}

.broadcast-session.is-past .broadcast-session-status {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.broadcast-session.is-past.is-active {
  opacity: 1;
}

.broadcast-session-title {
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
}

.broadcast-sessions-empty {
  font-family: var(--font-family);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  padding: 24px 12px;
  text-align: center;
}


/* ---------- Переключатель залов ---------- */

.broadcast-halls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.broadcast-halls-label {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  margin-right: 8px;
}

.broadcast-halls-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.broadcast-halls-empty {
  flex: 1;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.broadcast-hall {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.broadcast-hall:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.broadcast-hall.is-active {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}

.broadcast-hall-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.broadcast-hall.is-live .broadcast-hall-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 61, 36, 0.25);
  animation: broadcast-live-pulse 1.6s ease-out infinite;
}

.broadcast-hall.is-active.is-live .broadcast-hall-dot {
  background: var(--red);
}

.broadcast-hall.is-test {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.78);
}

.broadcast-hall.is-test .broadcast-hall-dot {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  animation: none;
}

.broadcast-hall.is-test.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.92);
  color: var(--purple);
}

.broadcast-hall.is-test.is-active .broadcast-hall-dot {
  background: var(--purple);
}

.broadcast-session.is-test .broadcast-session-status {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

/* ---------- Сейчас в эфире (агрегатор) ---------- */

.broadcast-now {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.broadcast-now-title {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

.broadcast-now-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.broadcast-now-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: var(--font-family);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.broadcast-now-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.broadcast-now-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.broadcast-now-card-hall {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 16px;
}

.broadcast-now-card-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.broadcast-now-card-title {
  font-size: 14px;
  line-height: 140%;
}

.broadcast-now-empty {
  font-family: var(--font-family);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .broadcast {
    padding: 140px 0 96px;
  }

  .broadcast-title {
    font-size: 44px;
  }

  .broadcast-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .broadcast {
    padding: 130px 0 80px;
  }

  .broadcast-title {
    font-size: 36px;
  }

  .broadcast-subtitle {
    font-size: 16px;
  }

  .broadcast-grid {
    grid-template-columns: 1fr;
  }

  .broadcast-sessions-list {
    max-height: none;
  }

  .broadcast-halls {
    padding: 16px;
  }

  .broadcast-halls-label {
    font-size: 18px;
  }

  .broadcast-days {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .broadcast-day {
    min-height: 0;
    padding: 14px 16px;
  }

  .broadcast-day-date {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .broadcast {
    margin: 8px;
    padding: 120px 0 64px;
    border-radius: 20px;
  }

  .broadcast-title {
    font-size: 28px;
  }

  .broadcast-labels {
    gap: 8px;
  }

  .broadcast-player-wrapper {
    padding: 12px;
    border-radius: 18px;
  }

  .broadcast-player-session-title {
    font-size: 18px;
  }

  .broadcast-sessions {
    padding: 16px;
  }

  .broadcast-hall {
    padding: 8px 12px;
    font-size: 13px;
  }
}
