/* Cyber Radio — общие стили (тема, база, кнопки, сообщения) */

:root {
  --bg: #0a0e14;
  --panel: #121821;
  --accent: #00e5a0;
  --accent-dim: #0a5c46;
  --text: #d7e0ea;
  --muted: #6b7a8c;
  --error: #ff5470;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

button {
  background: var(--accent);
  color: #04120c;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 1px;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.1);
}

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--accent-dim);
  margin-top: 10px;
}

button.secondary:hover {
  color: var(--text);
}

.msg {
  margin-top: 14px;
  font-size: .85rem;
  min-height: 1.2em;
}

.msg.error { color: var(--error); }
.msg.ok    { color: var(--accent); }

.hidden { display: none; }

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.host {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.host img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4/5; /* фиксирует пропорции 4:5 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.host-name {
  font-weight: 600;
  margin: 8px 0 4px;
  color: #fff;
}

.host-desc {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.3;
}
