/* ============================================================
   Радио Эдхар — main.css
   Тёмная минималистичная тема с мятным акцентом
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0b0b0b;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding-bottom: 160px;
}

a { color: inherit; }

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  padding: 44px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6fbf9b;
  margin-top: 6px;
}

/* ============================================================
   HERO (кнопка + ссылка)
   ============================================================ */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 64px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease,
              border-color .2s ease, transform .08s ease;
}

.listen-btn:hover {
  background: #ffffff;
  color: #0b0b0b;
}

.listen-btn:active {
  transform: translateY(1px);
}

.listen-btn.playing {
  background: #6fbf9b;
  border-color: #6fbf9b;
  color: #0b0b0b;
}

.listen-btn.playing:hover {
  background: #8ad4b3;
  border-color: #8ad4b3;
}

.listen-icon {
  font-size: 13px;
  line-height: 1;
}

.hero-hint {
  margin: 48px 0 14px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stream-box {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid #262626;
  background: #0f0f0f;
}

.stream-box input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #d0d0d0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.stream-box input::selection {
  background: #6fbf9b;
  color: #0b0b0b;
}

.copy-btn {
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-left: 1px solid #262626;
  color: #6fbf9b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.copy-btn:hover,
.copy-btn.copied {
  background: #6fbf9b;
  color: #0b0b0b;
}

/* ============================================================
   NAV CARDS (Программа / Записи)
   ============================================================ */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #262626;
  border: 1px solid #262626;
  margin: 0 0 80px;
}

.nav-card {
  position: relative;
  display: block;
  padding: 64px 40px;
  background: #0b0b0b;
  color: #ffffff;
  text-decoration: none;
  transition: background .2s ease;
}

.nav-card:hover {
  background: #141414;
}

.nav-card-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-card-sub {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6fbf9b;
}

.nav-card.disabled {
  cursor: default;
  opacity: 0.55;
}

.nav-card.disabled:hover {
  background: #0b0b0b;
}

.nav-card-soon {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* ============================================================
   NOW PLAYING (плашка)
   ============================================================ */
.now-playing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #0f0f0f;
  border-top: 2px solid #6fbf9b;
  padding: 22px 0;
}

.now-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6fbf9b;
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.now-text {
  flex: 1;
  min-width: 0;
}

.now-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6fbf9b;
  margin-bottom: 8px;
}

.now-track {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.now-listeners {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b6b;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .container { padding: 0 24px; }

  .site-header { padding: 32px 0 0; }

  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; }
  .brand-tag  { font-size: 9px; }

  .hero { padding: 72px 0 56px; }

  .listen-btn {
    padding: 20px 44px;
    font-size: 13px;
    letter-spacing: 0.2em;
    width: 100%;
    max-width: 320px;
  }

  .hero-hint { margin-top: 36px; }

  .stream-box input { font-size: 12px; padding: 14px 16px; }
  .copy-btn { padding: 14px 18px; font-size: 9px; }

  .nav-cards {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }
  .nav-card { padding: 44px 28px; }
  .nav-card-title { font-size: 22px; }

  body { padding-bottom: 140px; }

  .now-playing { padding: 16px 0; }
  .now-track { font-size: 16px; }
  .now-label { margin-bottom: 4px; font-size: 9px; }
  .now-listeners { display: none; }
}


/* ============================================================
   LOADING STATE для кнопки «Слушать»
   ============================================================ */
.listen-btn.loading {
  background: transparent;
  color: #6fbf9b;
  border-color: #6fbf9b;
  cursor: progress;
}

.listen-btn.loading .listen-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(111, 191, 155, 0.25);
  border-top-color: #6fbf9b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.listen-btn.loading:hover {
  background: transparent;
  color: #6fbf9b;
  border-color: #6fbf9b;
}

/* Плавное появление подсказки «Подключаемся…» */
.listen-status {
  margin-top: 16px;
  min-height: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6fbf9b;
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}

.listen-status.visible {
  opacity: 1;
}
