@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --neon-pink: #ff2d95;
  --neon-cyan: #00f5ff;
  --neon-purple: #b026ff;
  --bg-deep: #0a0a1a;
  --bg-card: rgba(20, 15, 45, 0.85);
  --border-glow: rgba(176, 38, 255, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(176, 38, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 45, 149, 0.05) 0%, transparent 70%);
  min-height: 100vh;
  color: #e8e8f0;
}

.font-display {
  font-family: 'Orbitron', sans-serif;
}

.neon-text {
  text-shadow: 0 0 10px var(--neon-purple), 0 0 30px rgba(176, 38, 255, 0.5);
}

.neon-border {
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.2), inset 0 0 15px rgba(176, 38, 255, 0.05);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
}

.is-hidden {
  display: none !important;
}

/* ── Двухколоночный layout ── */
.right-column {
  min-width: 0;
}

@media (min-width: 1024px) {
  .right-column {
    min-width: 340px;
  }
}

.layout-two-col.announce-mode #stage-announce {
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ── Главная сцена (левая колонка) ── */
.main-stage {
  position: relative;
  min-height: 320px;
}

.stage-panel {
  animation: fadeIn 0.35s ease;
}

.stage-panel.is-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-break-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(10, 10, 26, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.tech-break-stage.is-hidden {
  display: none !important;
}

.tech-break-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  text-align: center;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 245, 255, 0.3); }
  50% { text-shadow: 0 0 40px var(--neon-pink), 0 0 60px rgba(255, 45, 149, 0.4); }
}

.countdown-digit {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(180deg, rgba(176, 38, 255, 0.3), rgba(10, 10, 26, 0.8));
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.schedule-card {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.15), rgba(0, 245, 255, 0.08));
  border-left: 3px solid var(--neon-purple);
}

.schedule-card.next-event {
  border-left-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.2);
}

/* ── FAQ ── */
.accordion-btn {
  transition: background 0.3s;
}

.accordion-btn:hover {
  background: rgba(176, 38, 255, 0.12);
}

.faq-body.is-hidden {
  display: none !important;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '▶';
  font-size: 10px;
  color: var(--neon-cyan);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item[open] summary {
  color: var(--neon-cyan);
}

/* ── Боковая панель ── */
.sidebar-tab {
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tab-inactive {
  color: #666;
  background: rgba(0, 0, 0, 0.2);
}

.tab-inactive:hover {
  color: #aaa;
  background: rgba(176, 38, 255, 0.1);
}

.tab-active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.08);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar-content.is-hidden {
  display: none !important;
}

.voting-live-badge {
  font-size: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  color: #ff2d95;
  background: rgba(255, 45, 149, 0.2);
  border: 1px solid rgba(255, 45, 149, 0.6);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  animation: votePulse 1s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes votePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 45, 149, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(255, 45, 149, 0.9); }
}

.voting-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  min-height: 200px;
}

.voting-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  animation: fadeIn 0.4s ease;
}

.voting-form-wrap.is-hidden {
  display: none !important;
}

.voting-placeholder.is-hidden {
  display: none !important;
}

.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-purple) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(176, 38, 255, 0.5);
  border-radius: 4px;
}

/* ── Карточки участников (компактные) ── */
.participant-card {
  background: rgba(10, 10, 26, 0.6);
  border: 1px solid rgba(176, 38, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.participant-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 4px 20px rgba(176, 38, 255, 0.15);
}

.participant-mini-player {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
  margin: 0.5rem 0;
}

.star-rating label {
  cursor: pointer;
  font-size: 1rem;
  color: #444;
  transition: color 0.2s, text-shadow 0.2s;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label.active {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ── Голосование ── */
.voting-wrap {
  position: relative;
  min-height: 280px;
}

.voting-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.94);
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.voting-overlay.hidden {
  display: none;
}

.score-select.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ── Widget / OBS (без изменений) ── */
body.widget-body {
  background: transparent !important;
  background-image: none !important;
  overflow: hidden;
}

.widget-status {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 24px;
  background: rgba(10, 10, 26, 0.75);
  border: 1px solid rgba(0, 245, 255, 0.5);
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  animation: slideInLeft 0.5s ease;
}

.widget-timer {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 28px;
  background: rgba(255, 45, 149, 0.2);
  border: 2px solid var(--neon-pink);
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.4);
}

.widget-leaderboard {
  position: fixed;
  bottom: 30px;
  left: 30px;
  min-width: 280px;
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.5);
  border-radius: 12px;
  padding: 16px;
  transition: opacity 0.5s;
}

.widget-leaderboard.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.widget-tech-break {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 26, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 9000;
}

.widget-tech-break.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Фильтры участников ── */
.filter-btn.active {
  border-color: var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  background: rgba(0, 245, 255, 0.1) !important;
}

/* ── Admin ── */
.admin-section {
  border: 1px solid rgba(176, 38, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(20, 15, 45, 0.6);
}

.live-feed-item {
  animation: feedSlide 0.4s ease;
  border-left: 3px solid var(--neon-cyan);
}

@keyframes feedSlide {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
