/* === Основной layout: app, player slot, main, header, footer === */

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: stretch;
}

/* === Левая колонка: плеер === */
.player {
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 48px);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;          /* страховка: не даём контенту распирать */
}

/* === Правая колонка === */
.main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* === Header === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  height: var(--header-h);
}

.logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: #fff;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav-sep {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.header__listen {
  padding: 10px 22px;
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.header__listen:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* === Content === */
.content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

/* === Footer === */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  flex-wrap: wrap;
}

.footer__brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #fff;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__right a {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer__right a:hover {
  color: #fff;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.footer__social:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* === Адаптив === */
@media (max-width: 1200px) {
  .app {
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 18px;
  }
  .nav { gap: 8px; }
  .nav a, .nav-sep { font-size: 11px; }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }
  .player {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: auto;
    overflow: visible;
  }
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 18px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav a, .nav-sep { font-size: 13px; }
  .footer {
    padding: 16px 18px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .nav-sep { display: none; }
  .nav { gap: 10px; }
}