:root {
  --bg: #0b0e17;
  --card: #131826;
  --accent: #ff7a00;
  --accent2: #3b82f6;
  --text: #e6e9f2;
  --muted: #8b93a7;
  --live: #ff3b3b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; background: var(--card);
  border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 22px; font-weight: 800; }
.logo span { color: var(--accent); }
nav a { color: var(--text); text-decoration: none; margin-left: 18px; opacity: .8; }
nav a:hover { color: var(--accent); opacity: 1; }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.player-section {
  background: linear-gradient(135deg, #141a2c, #1d1130);
  border-radius: 16px; padding: 32px; text-align: center;
  margin-bottom: 24px; border: 1px solid #262c44;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,59,59,.12); color: var(--live);
  padding: 6px 16px; border-radius: 20px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 16px;
}
.live-dot {
  width: 10px; height: 10px; background: var(--live); border-radius: 50%;
  animation: blink 1.2s infinite;
}
@keyframes blink { 50% { opacity: .2; } }
.live-badge.off { color: var(--muted); background: rgba(255,255,255,.06); }
.live-badge.off .live-dot { background: var(--muted); animation: none; }

.track-title { font-size: 26px; font-weight: 700; }
.track-artist { color: var(--muted); margin: 6px 0 18px; }
#equalizer { width: 100%; display: block; }

.controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 18px 0; }
.btn-play {
  width: 72px; height: 72px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; font-size: 26px; cursor: pointer;
  transition: transform .15s;
}
.btn-play:hover { transform: scale(1.07); }
input[type=range] { width: 220px; accent-color: var(--accent); }
.listeners { color: var(--muted); font-size: 14px; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .columns { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: 14px; padding: 22px;
  margin-bottom: 24px; border: 1px solid #232a40;
}
.card h2 { font-size: 18px; margin-bottom: 14px; color: var(--accent); }

.chat-messages {
  height: 260px; overflow-y: auto; background: #0d1220;
  border-radius: 8px; padding: 10px; margin-bottom: 10px;
}
.chat-msg { padding: 4px 0; font-size: 14px; word-break: break-word; }
.chat-msg .nick { color: var(--accent2); font-weight: 600; }
.chat-msg.system { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; }
input, textarea {
  background: #0d1220; border: 1px solid #2a3350; color: var(--text);
  border-radius: 8px; padding: 10px; font-size: 14px; flex: 1;
}
textarea { min-height: 90px; resize: vertical; }
.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 10px 18px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: #2a3350; }
.btn.danger { background: var(--live); }
.btn.active { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }

.list { list-style: none; }
.list li {
  display: flex; justify-content: space-between; padding: 8px 4px;
  border-bottom: 1px solid #232a40; font-size: 14px;
}
.list li .time { color: var(--muted); font-size: 12px; }

.news-item { border-bottom: 1px solid #232a40; padding: 12px 0; }
.news-item h3 { font-size: 16px; margin-bottom: 6px; }
.news-item .date { color: var(--muted); font-size: 12px; margin-bottom: 6px; }

form { display: flex; flex-direction: column; gap: 10px; }
form label { font-size: 14px; color: var(--muted); }
form input[type=checkbox] { flex: none; margin-right: 6px; }
#fbStatus { color: #4ade80; font-size: 14px; }

footer { text-align: center; color: var(--muted); padding: 24px; font-size: 13px; }

/* ---- Админ ---- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--card); padding: 20px; border-right: 1px solid #232a40; }
.admin-sidebar a { display: block; color: var(--text); text-decoration: none; padding: 10px; border-radius: 8px; margin-bottom: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #232a40; color: var(--accent); }
.admin-content { padding: 28px; }
.login-box { max-width: 380px; margin: 120px auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #232a40; }
th { color: var(--muted); font-weight: 600; }
.tab { display: none; }
.tab.active { display: block; }
.dropzone {
  border: 2px dashed #2a3350; border-radius: 12px; padding: 36px;
  text-align: center; color: var(--muted); cursor: pointer; margin-bottom: 16px;
}
.dropzone.over { border-color: var(--accent); color: var(--accent); }
.queue-item {
  display: flex; align-items: center; gap: 10px; background: #0d1220;
  padding: 10px; border-radius: 8px; margin-bottom: 6px; cursor: grab;
}
.queue-item.dragging { opacity: .4; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }
.stat-box { background: #0d1220; border-radius: 10px; padding: 16px; }
.stat-box .num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-box .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; }
