/* 1. БАЗОВЫЕ НАСТРОЙКИ СКРОЛЛА */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background-color: black;
  font-family: "Orbitron", sans-serif;
  color: #ff0000;
  overflow-x: hidden;
}

/* 2. НАСТРОЙКА ЭТАЖЕЙ */
.floor {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  overflow: hidden;
}

/* 3. ВИДЕО-ФОН ДЛЯ ЭТАЖА */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(35%);
}

/* 4. НАВИГАЦИЯ */
.glass-nav {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(254, 3, 3, 0.3);
  padding: 10px 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 10px;
  transition: 0.4s ease;
}

.nav-link:hover {
  color: #ff0000 !important;
  transform: scale(1.1);
  text-shadow: 2px 0 #ff4d4d, -2px 0 #00fffb !important;
}

/* 5. КОНТЕНТ */
.container-main {
  text-align: center;
  z-index: 1;
}

.display-1 {
  font-size: 5rem;
  font-weight: bold;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #ff0000, 0 0 5px #ff0000; }
  to { text-shadow: 0 0 35px #ff0000, 0 0 15px #ffffff; }
}

.lead {
  color: white;
  letter-spacing: 1px;
}

/* 6. КНОПКА LIVE */
.btn-live {
  text-decoration: none;
  display: inline-block;
  padding: 18px 50px;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 3px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  animation: pulse 2s infinite;
  transition: 0.5s;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* 7. ГОРИЗОНТАЛЬНЫЙ СЛАЙДЕР ШОУ */
.horizontal-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 40px 10vw;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100vw;
}

.horizontal-slider::-webkit-scrollbar {
  display: none;
}

.video-card {
  min-width: 350px;
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.2);
  padding: 15px;
  scroll-snap-align: center;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.video-card:hover {
  background: rgba(255, 0, 0, 0.15);
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
}

.card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  margin-bottom: 15px;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: 0.5s;
}

.video-card:hover .card-preview img { opacity: 1; }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: #ff0000;
  opacity: 0.7;
}

/* 8. STICKY PLAYER (The Lot Radio Style) */
#sticky-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  aspect-ratio: 16/9;
  z-index: 10000;
  border: 2px solid #ff0000;
  background: #000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

#sticky-player.expanded {
  width: 100vw;
  height: 100vh;
  bottom: 0;
  right: 0;
  border: none;
}

#sticky-player iframe {
  width: 100%;
  height: 100%;
}

.player-controls {
  position: absolute;
  top: -30px;
  right: 0;
}

.expand-btn {
  background: #ff0000;
  color: white;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  #sticky-player {
    width: 200px;
    bottom: 10px;
    right: 10px;
  }
  .display-1 { font-size: 3rem; }
}
/* --- ЛОГИКА ВТОРОГО ЭТАЖА --- */
#live {
  position: relative;
  overflow: hidden;
}

/* Оффлайн слой (видео + текст) */
.offline-view {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* Онлайн слой (плеер) */
.online-view {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  display: none; /* Скрыт по умолчанию */
}

#full-live-player, #full-live-player iframe {
  width: 100%;
  height: 100vh;
  border: none;
}

/* Когда активирован режим стрима */
#live.is-streaming .offline-view {
  opacity: 0;
  pointer-events: none;
}

#live.is-streaming .online-view {
  display: block;
}