/* ═══ БОЛТУНЫ · дизайн-система ═══ */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1117;
  --card: #15181f;
  --card-2: #1a1d26;
  --border: #22262f;
  --border-2: #2d323e;
  --text: #e8ebf0;
  --text-dim: #8b94a7;
  --muted: #6b7280;
  --brand: #2a2f3a;
  --brand-2: #3a4150;
  --accent: #1f242e;
  --accent-2: #a855f7;
  --green: #22c55e;
  --blue: #3b82f6;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .85; }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p { margin: 0 0 12px; }
.muted { color: var(--text-dim); font-size: 13px; }

/* ═══ КОНТЕЙНЕР ═══ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ═══ HEADER ═══ */
header.site-header, header {
  background: rgba(15,17,23,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
header .header-inner, header nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
header .logo, header a.logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-right: 12px;
  letter-spacing: -.02em;
}
header nav a, header .nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
header nav a:hover, header .nav-link:hover {
  background: var(--card-2);
  color: var(--text);
  opacity: 1;
}
header .logout, header a[href="/logout"] { color: var(--brand); }
header .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 11px; font-weight: 700;
  margin-left: 6px;
}

/* ═══ HERO ═══ */
.hero {
  text-align: center;
  padding: 40px 20px 32px;
  margin-bottom: 24px;
  background: radial-gradient(ellipse at top, rgba(255,45,85,.12), transparent 60%);
  border-radius: var(--radius);
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 20px;
}
.hero-buttons {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ═══ КНОПКИ ═══ */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: var(--card-2);
  transition: all .15s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ═══ КАРТОЧКИ ═══ */
.dj-card, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all .2s;
}
.dj-card:hover, .card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ═══ GRID ═══ */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ═══ ФИЧИ (главная) ═══ */
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--border-2);
  margin-bottom: 10px;
}

/* ═══ СТАТИСТИКА (главная админка) ═══ */
.stat {
  padding: 16px;
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .label { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 4px; }

/* ═══ ТАБЛИЦЫ ═══ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table thead tr { background: var(--card-2); }
table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
}
table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table tbody tr:hover { background: var(--card-2); }

/* ═══ ФОРМЫ ═══ */
input, select, textarea {
  padding: 9px 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: all .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,45,85,.1);
}
label { font-size: 13px; color: var(--text-dim); display: block; margin-bottom: 4px; }

/* ═══ ТАРИФЫ ═══ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  position: relative;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.popular {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255,45,85,.06), var(--card));
}
.plan-card.popular::before {
  content: '★ Популярный';
  position: absolute; top: -10px; left: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: 2px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 20px;
}
.plan-price {
  font-size: 32px; font-weight: 800;
  margin: 12px 0;
}
.plan-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-features {
  list-style: none; padding: 0; margin: 12px 0;
  flex: 1;
}
.plan-features li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.plan-features li::before {
  content: '✓'; color: var(--green); font-weight: 800;
}

/* ═══ ADMIN ═══ */
.admin-nav {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  margin: -20px -16px 20px;
  position: sticky; top: 45px; z-index: 50;
}
.admin-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; gap: 4px; flex-wrap: wrap;
  align-items: center;
}
.admin-nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.admin-nav a:hover { background: var(--card-2); color: var(--text); opacity: 1; }
.admin-nav a.brand { color: var(--brand); font-weight: 800; margin-right: 8px; }

/* ═══ FLASH ═══ */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.flash-ok { background: rgba(34,197,94,.15); border: 1px solid var(--green); color: #86efac; }
.flash-err { background: rgba(220,38,38,.15); border: 1px solid #dc2626; color: #fca5a5; }

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ═══ МОБИЛЬНОЕ ═══ */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 24px 12px; }
  .container { padding: 14px 12px 32px; }
  header .header-inner, header nav { padding: 8px 12px; gap: 4px; }
  header nav a { padding: 6px 8px; font-size: 13px; }
  .dj-card, .card { padding: 14px; }
  table { font-size: 13px; }
  table th, table td { padding: 8px 6px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .admin-nav { top: auto; position: static; }
}

/* ═══ СКРОЛЛБАР ═══ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══ УТИЛИТЫ ═══ */
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.hidden { display: none !important; }




/* ═══ КОМПАКТНЫЕ КАРТОЧКИ СТАНЦИЙ ═══ */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.st-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  transition: all .15s;
}
.st-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.st-cover {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 8px; margin-bottom: 8px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  overflow: hidden;
  position: relative;
}
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-cover .placeholder {
  background: linear-gradient(135deg, #2a2f3a, #1f242e);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 38px;
}
.st-name {
  font-size: 13px; font-weight: 700;
  margin: 0 0 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.st-sc {
  font-size: 10px; color: var(--muted);
  margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-np {
  font-size: 11px; color: var(--text-dim);
  height: 26px; overflow: hidden; margin-bottom: 8px;
  line-height: 1.3;
}
.st-actions { display: flex; gap: 4px; }
.st-actions button, .st-actions .btn {
  flex: 1; padding: 5px 6px; font-size: 11px;
  border-radius: 6px; font-weight: 700;
}

/* ═══ ПЛЕЕР СНИЗУ (компакт) ═══ */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(15,17,23,.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-2);
  padding: 8px 12px;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
.player-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.player-cover {
  width: 40px; height: 40px; border-radius: 6px;
  flex-shrink: 0; object-fit: cover;
  background: transparent !important;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.player-info { min-width: 100px; max-width: 180px; }
.player-info > div:first-child { font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info > div:last-child { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-inner audio { flex: 1; height: 32px; min-width: 150px; }

/* ═══ ПАНЕЛЬ ЧАТА (компакт) ═══ */
.chat-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 100vw;
  background: var(--bg-2);
  border-left: 1px solid var(--border-2);
  z-index: 210;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
  transform: translateX(100%);
  transition: transform .22s ease;
}
.chat-panel.open { transform: translateX(0); }
.chat-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card);
}
.chat-header b { font-size: 13px; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 800px;
  max-height: 80vh;
}
.chat-msg {
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; max-width: 88%;
  line-height: 1.35;
}
.chat-msg.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none; color: #fff;
}
.chat-msg .who { font-size: 10px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.chat-form {
  display: flex; gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.chat-form input { flex: 1; padding: 7px 10px; font-size: 13px; }
.chat-form button { padding: 7px 12px; font-size: 13px; }

.chat-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 205; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.chat-backdrop.open { opacity: 1; pointer-events: auto; }

.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 3px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

@media (max-width: 640px) {
  .stations-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .player-inner audio { min-width: 0; }
  .player-info { min-width: 60px; max-width: 100px; }
  .chat-panel { width: 100%; }
}

/* ═══ ПАНЕЛЬ ЭМОДЗИ ═══ */
.emoji-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all .15s;
}
.emoji-btn:hover { background: var(--card-2); border-color: var(--brand); }

.emoji-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  left: 0;
  background: var(--card);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  display: none;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
}
.emoji-panel.open { display: block; }
.emoji-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.emoji-tab {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.emoji-tab:hover, .emoji-tab.active {
  background: var(--card-2);
  border-color: var(--brand);
  color: var(--text);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 2px;
}
.emoji-item {
  padding: 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform .1s, background .15s;
}
.emoji-item:hover {
  background: var(--card-2);
  transform: scale(1.15);
}

/* Обёртка для формы чата с позиционированием панели */
.chat-form-wrap { position: relative; }

/* ═══ ГЛОБАЛЬНЫЙ ПЛЕЕР ═══ */
body { padding-bottom: 72px; }
body.no-player { padding-bottom: 0; }

#gp-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(15,17,23,.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-2);
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  display: none;
}
#gp-player.show { display: block; }

.gp-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
}
.gp-cover {
  width: 42px; height: 42px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  overflow: hidden; cursor: pointer;
}
.gp-cover img { width: 100%; height: 100%; object-fit: cover; }
.gp-info { flex: 1; min-width: 0; cursor: pointer; }
.gp-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-artist { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gp-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card-2); border: none; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: .15s;
}
.gp-btn:hover { background: var(--border-2); }
.gp-btn.play {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; width: 38px; height: 38px;
}
.gp-volume { display: flex; align-items: center; gap: 4px; }
.gp-volume input { width: 70px; accent-color: var(--brand); }

.gp-list { display: none; background: var(--card); border-top: 1px solid var(--border-2); max-height: 40vh; overflow-y: auto; padding: 8px; }
.gp-list.open { display: block; }
.gp-list h4 { font-size: 11px; color: var(--text-dim); margin: 4px 8px 8px; text-transform: uppercase; letter-spacing: .05em; }
.gp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.gp-item:hover { background: var(--card-2); }
.gp-item.active { background: rgba(255,45,85,.1); }
.gp-item-cover {
  width: 32px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; overflow: hidden; flex-shrink: 0;
}
.gp-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.gp-item-name { font-size: 13px; font-weight: 600; }
.gp-item-sc { font-size: 11px; color: var(--text-dim); }

@media (max-width: 640px) {
  .gp-volume { display: none; }
}

/* ═══ АКТИВНАЯ СТРАНИЦА В МЕНЮ ═══ */
.nav-link.nav-active {
  background: linear-gradient(135deg, rgba(255,45,85,.15), rgba(124,58,237,.1)) !important;
  color: var(--brand) !important;
  font-weight: 700 !important;
  position: relative;
}
.nav-link.nav-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, #2a2f3a, #1f242e);
  border-radius: 2px;
}

/* Для админ-навигации */
.anav a.active {
  background: linear-gradient(135deg, rgba(255,45,85,.15), rgba(124,58,237,.1)) !important;
  color: var(--brand) !important;
  font-weight: 700 !important;
  position: relative;
}
.anav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #2a2f3a;
  border-radius: 2px;
}

/* ═══ CHAT-PANEL-MOBILE ═══ */
@media (max-width: 800px) {
  .chat-panel { width: 100% !important; }
}


/* ═══ Градиент для названия трека (красный → белый) ═══ */
#gpTrack,
#gpName,
#chatNow,
#chatOnAirName,
#stationNowPlaying,
#stationNowArtist,
#nowPlaying,
#nowPlayingTitle,
#npTitle,
#npArtist,
.station-now-playing,
.station-now-title,
.track-gradient,
.now-artist-title,
.now-title {
  background: linear-gradient(90deg, #ff2d55 0%, #ff5e7a 35%, #ffb3c1 60%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 800;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #gpTrack, #chatNow, #chatOnAirName, .track-gradient { color: #ffffff !important; }
}

/* ═══ Крупный шрифт для названия трека ═══ */
#nowPlaying {
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: .2px;
  margin: 6px 0 !important;
}
/* чат — «сейчас в эфире» */
#chatNow {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
#chatOnAirName {
  font-size: 16px !important;
}
/* мини-плеер внизу */
#gpTrack {
  font-size: 15px !important;
  font-weight: 700 !important;
}
#gpName {
  font-size: 16px !important;
}
/* на узких экранах — чуть меньше, чтобы не переносилось */
@media (max-width: 640px) {
  #nowPlaying { font-size: 20px !important; }
  #chatNow    { font-size: 16px !important; }
  #gpTrack    { font-size: 13px !important; }
  #gpName     { font-size: 14px !important; }
}

/* ═══ Комментарии под чатом на всю ширину ═══ */
/* В grid-контейнере chat-page заставляем блок комментариев занять ВСЕ колонки — */
/* он встанет под чатом и под сайдбаром, во всю ширину main */
#cmtBlock {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 16px !important;
}
/* сам список — растянуть по ширине и снять жёсткую высоту */
#cmtList {
  max-height: 520px !important;
  overflow-y: auto;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
/* на мобильных — одна колонка */
@media (max-width: 700px) {
  #cmtList {
    grid-template-columns: 1fr;
  }
}

/* ═══ Replies CSS ═══ */
.cmt-item { transition: border-color .15s; }
.cmt-item:hover { border-color: #3a4150; }
.cmt-replies { border-left: 2px dashed rgba(255,255,255,.10); padding-left: 10px; }
.cmt-reply-btn, .cmt-del-btn {
  font-size: 12px; color: #94a3b8; background: transparent; border: 0;
  padding: 2px 6px; border-radius: 6px; cursor: pointer;
}
.cmt-reply-btn:hover { background: rgba(255,255,255,.06); color: #eaeef7; }
.cmt-del-btn:hover { background: rgba(255,60,80,.12); color: #ff5e7a; }

/* ═══ Replies 2 columns ═══ */
/* Корневые комментарии — сетка в 2 колонки на широком экране */
#cmtList {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}
/* Ответы внутри каждого родителя — тоже в 2 колонки */
#cmtList .cmt-replies {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 10px;
}
/* Ответ визуально отличается: сдвиг вправо + рамка */
#cmtList .cmt-reply {
  margin-left: 0;
  border-left: 3px solid rgba(255,45,85,.5) !important;
  padding-left: 10px !important;
  background: rgba(255,45,85,.04) !important;
}
/* Планшет — одна колонка */
@media (max-width: 900px) {
  #cmtList { grid-template-columns: 1fr !important; }
  #cmtList .cmt-replies { grid-template-columns: 1fr !important; }
}

/* ═══ Upload into folder UI ═══ */
#uploadBtn {
  font-size: 15px !important;
  padding: 16px 20px !important;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
  transition: transform .1s, box-shadow .15s;
}
#uploadBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34,197,94,.5);
}
#uploadFolderSelect {
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
  border-color: #22c55e !important;
  background: rgba(34,197,94,.06) !important;
}
#uploadFolderSelect:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}
/* Активная папка в списке — заметнее */
.folder-item[style*="rgba(99,102,241,.2)"] {
  background: rgba(34,197,94,.18) !important;
  border-left: 3px solid #22c55e;
  padding-left: 8px !important;
}

/* ═══ UF Picker override ═══ */
#ufBtn, #ufBtnLabel, #ufPicker, #ufPicker *, #ufMenu, #ufMenu *, .uf-item {
  text-transform: none !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
}
#ufMenu { background: #15181f !important; color: #eaeef7 !important; }

/* ═══ HEADER НА /stations — выше поиска и карточек ═══ */
header.topbar,
.site-header,
.header-inner,
header[class*="topbar"] {
  z-index: 9000 !important;
}
/* Убедимся, что позиция sticky сохранилась */
header.topbar,
.site-header {
  position: sticky !important;
  top: 0 !important;
}
