/**
 * Wave — Componentes base usando variáveis (dash e play)
 * Permite tema único; uso gradual nas páginas.
 */
.wave-bg { background-color: var(--wave-bg); }
.wave-bg-card { background-color: var(--wave-bg-card); }
.wave-card {
  background-color: var(--wave-bg-card);
  border: 1px solid var(--wave-border);
  border-radius: 0.25rem;
}
.wave-btn {
  background-color: var(--wave-primary);
  color: #fff;
  border: 1px solid var(--wave-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
}
.wave-btn:hover {
  background-color: var(--wave-primary-hover);
  border-color: var(--wave-primary-hover);
  color: #fff;
}
.wave-input,
.wave-input.form-control {
  background-color: var(--wave-input-bg);
  color: var(--wave-input-text);
  border-color: var(--wave-input-border);
}
.wave-modal .modal-content {
	color: var(--wave-modal-body-text);
}

/* Campo de busca padrão (dash, play, formulários GET) */
.busca-padrao {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 120px;
}
.busca-padrao__input {
  width: 100%;
  padding-right: 1.75rem;
}
.busca-padrao__input::-webkit-search-cancel-button,
.busca-padrao__input::-webkit-search-decoration {
  -webkit-appearance: none;
}
.busca-padrao__limpar {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.busca-padrao__limpar.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.busca-padrao__limpar:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Menu superior — BASE ÚNICA (todos os modos: dash, play, lite, prog).
   A base (altura, cor, marca, estrutura) é idêntica; só o conteúdo varia.
   ========================================================================== */
:root {
  --wave-topbar-height: 100px;
  --wave-topbar-bg: #1c1c1c;
  --wave-topbar-fg: #e6e6e6;
}

.wave-topbar {
  background-color: var(--wave-topbar-bg) !important;
  min-height: var(--wave-topbar-height);
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}
.wave-topbar .navbar-nav {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: center;
}
@media (min-width: 992px) {
  /* No desktop o menu é inline: trava a altura exata em 100px. */
  .wave-topbar {
    height: var(--wave-topbar-height);
  }
}

.wave-topbar .wave-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.wave-topbar .wave-topbar__brand .logo {
  display: inline-flex;
  align-items: center;
}
.wave-topbar .wave-topbar__brand .icone {
  height: 34px;
  width: auto;
}
.wave-topbar .wave-topbar__brand .separador {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
}
.wave-topbar .wave-topbar__brand .menu_nome {
  color: var(--wave-topbar-fg);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}
.wave-topbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
}
/* Separadores "|" e demais filhos diretos da nav: alinhar ao centro vertical
   (o mt-2 do markup os empurrava para baixo). */
.wave-topbar .navbar-nav > span {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Play — grupo final: pesquisa, conta, msg, menu */
.wave-topbar--play .wave-play-toolbar-group {
  gap: 1rem;
}

/* Play — identidade da rádio + ações (mensagens, menu lateral) */
.wave-topbar--play .wave-play-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  max-width: 200px;
}
.wave-topbar--play .wave-play-identity__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.14);
}
.wave-topbar--play .wave-play-identity__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wave-topbar--play .wave-play-identity__avatar .bi {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
}
.wave-topbar--play .wave-play-identity__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}
.wave-topbar--play .wave-play-identity__radio {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wave-topbar--play .wave-play-identity__meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}
.wave-topbar--play .wave-play-toolbar-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wave-topbar--play .wave-play-toolbar-btn:hover,
.wave-topbar--play .wave-play-toolbar-btn:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  outline: none;
}
.wave-topbar--play .wave-play-toolbar-btn .bi {
  font-size: 1.3rem;
  line-height: 1;
}
.wave-topbar--play .wave-play-toolbar-btn__label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
}
.wave-topbar--play .wave-play-toolbar-btn:hover .wave-play-toolbar-btn__label {
  color: rgba(255, 255, 255, 0.72);
}
.wave-topbar--play .wave-play-toolbar-btn.is-active {
  background: #0b6bcb;
  border-color: #1390c8;
  color: #fff;
}
.wave-topbar--play .wave-play-toolbar-btn.is-active .wave-play-toolbar-btn__label {
  color: #fff;
}
.wave-topbar--play .wave-play-toolbar-btn[hidden] {
  display: none !important;
}
.wave-topbar--play .wave-play-toolbar-btn .badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  min-width: 16px;
  padding: 2px 4px;
  line-height: 1.1;
}

/* Play — command palette (busca de funcionalidades) */
.wave-topbar--play .wave-play-palette {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}
.wave-topbar--play .wave-play-palette__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 0.55rem 0 0.65rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: text;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wave-topbar--play .wave-play-palette__trigger:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}
.wave-topbar--play .wave-play-palette__search-icon {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.wave-topbar--play .wave-play-palette__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  outline: none;
}
.wave-topbar--play .wave-play-palette__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.wave-topbar--play .wave-play-palette__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.wave-topbar--play .wave-play-palette__kbd {
  font-size: 0.55rem;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.08rem 0.28rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.wave-topbar--play .wave-play-palette__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 100%;
  z-index: 1080;
  box-sizing: border-box;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.wave-topbar--play .wave-play-palette__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
}
.wave-topbar--play .wave-play-palette__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.12s ease;
}
.wave-topbar--play .wave-play-palette__item:hover,
.wave-topbar--play .wave-play-palette__item.is-active {
  background: rgba(255, 255, 255, 0.08);
}
.wave-topbar--play .wave-play-palette__item-icon {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.wave-topbar--play .wave-play-palette__item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wave-topbar--play .wave-play-palette__item-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.wave-topbar--play .wave-play-palette__item-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
.wave-topbar--play .wave-play-palette__item-grupo {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}
.wave-topbar--play .wave-play-palette__item-desc {
  display: block;
  width: 100%;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.wave-topbar--play .wave-play-palette__empty {
  display: none;
  margin: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
@media (max-width: 1199px) {
  .wave-topbar--play .wave-play-palette {
    width: 200px;
  }
  .wave-topbar--play .wave-play-palette__kbd {
    display: none;
  }
}

/* Play — textos do card do menu lateral alinhados à esquerda (o painel continua à direita) */
@media (min-width: 992px) {
  .wave-topbar--play .navbar-nav.side-nav {
    text-align: left;
    align-items: flex-start !important;
  }
  .wave-topbar--play .navbar-nav.side-nav .link-menu,
  .wave-topbar--play .navbar-nav.side-nav > .nav-item {
    text-align: left;
    align-self: flex-start;
    width: 100%;
  }
}

/* Play — menu lateral: espaçamento confortável entre links e ícones light padronizados */
.wave-topbar--play .navbar-nav.side-nav a.link-menu {
  margin-bottom: .45rem;
  padding-top: .15rem;
  padding-bottom: .15rem;
}
.wave-topbar--play .navbar-nav.side-nav a.link-menu > .bi {
  font-size: 1rem;
  line-height: 1;
  opacity: .85;
  width: 1.1em;
  text-align: center;
  flex: 0 0 auto;
}
