/* ==========================================================================
   RDA Hits — player de rádio
   Barra de 84 px, tema escuro, dourado e vermelho da Rádio das Antigas.
   ========================================================================== */

:root {
  --rda-bg: #120d17;
  --rda-bg-deep: #0d0911;
  --rda-panel: #1c1424;
  --rda-brass: #c89b3c;
  --rda-brass-light: #e8c873;
  --rda-gold: #f0d68c;
  --rda-cream: #f3ead2;
  --rda-muted: #a99cb3;
  --rda-red: #ff3b3b;
  --rda-line: rgba(200, 155, 60, 0.28);
  --rda-bar-h: 84px;
  --rda-font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rda-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--rda-bar-h);
  padding: 0 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #181020 0%, #120d17 100%);
  border-bottom: 1px solid var(--rda-line);
  color: var(--rda-cream);
  font-family: var(--rda-font);
  -webkit-font-smoothing: antialiased;
}

#rda-player-root {
  position: relative;
}

/* fundo ambiente: a capa da música desfocada, trocando em fade */
.rda-ambient {
  position: absolute;
  inset: -30px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.rda-ambient img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.18);
  filter: blur(30px) saturate(1.5) brightness(0.9);
  transition: opacity 1.1s ease;
  will-change: opacity;
}

.rda-ambient img.is-active {
  opacity: 0.6;
}

/* brilhos de fundo */
.rda-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 13, 23, 0.5), rgba(13, 9, 17, 0.68)),
    radial-gradient(120% 190% at 6% 50%, rgba(200, 155, 60, 0.11), transparent 55%),
    radial-gradient(90% 170% at 94% 50%, rgba(255, 59, 59, 0.07), transparent 60%);
}

/* brilho que atravessa a barra devagar */
.rda-bar::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(240, 214, 140, 0.07), transparent);
  transform: skewX(-18deg);
  animation: rdaSheen 10s ease-in-out infinite;
}

/* todo o conteúdo fica acima do fundo ambiente */
.rda-bar > *:not(.rda-ambient) {
  position: relative;
  z-index: 2;
}

@keyframes rdaSheen {
  0%, 70% { left: -40%; }
  100% { left: 135%; }
}

/* --------------------------------------------------------------------------
   Marca (canto esquerdo)
   -------------------------------------------------------------------------- */
.rda-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(200, 155, 60, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(46, 32, 56, 0.98), rgba(16, 11, 20, 0.96));
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rda-brand:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 200, 115, 0.78);
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(200, 155, 60, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rda-brand-halo {
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(240, 214, 140, 0.2), transparent 64%);
  opacity: 0.65;
  animation: rdaHalo 5.2s ease-in-out infinite;
}

@keyframes rdaHalo {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.rda-brand-logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.55));
}

.rda-brand-shine {
  position: absolute;
  top: -60%;
  left: -90%;
  width: 55%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: rdaBrandShine 7s ease-in-out infinite;
}

@keyframes rdaBrandShine {
  0%, 66% { left: -90%; }
  100% { left: 170%; }
}

.rda-sep {
  width: 1px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent, var(--rda-line), transparent);
}

/* --------------------------------------------------------------------------
   Capa do álbum
   -------------------------------------------------------------------------- */
.rda-cover {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid rgba(200, 155, 60, 0.5);
  border-radius: 9px;
  background: #0a0710;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.rda-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.rda-cover img.is-active {
  opacity: 1;
}

.rda-cover.is-changing img.is-active {
  animation: rdaCoverIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rdaCoverIn {
  0% { transform: rotateY(68deg) scale(0.9); opacity: 0; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.rda-cover-ring {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 214, 140, 0.18);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.rda-bar.is-playing .rda-cover-ring {
  opacity: 1;
}

.rda-cover-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  pointer-events: none;
}

.rda-cover:hover .rda-cover-shine {
  animation: rdaCoverShine 0.85s ease;
}

@keyframes rdaCoverShine {
  to { transform: translateX(130%); }
}

/* --------------------------------------------------------------------------
   Texto: artista + música
   -------------------------------------------------------------------------- */
.rda-meta {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.rda-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 13px;
  min-width: 0;
}

.rda-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rda-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rda-red);
  box-shadow: 0 0 7px 1px rgba(255, 59, 59, 0.82);
  animation: rdaBlink 1.6s steps(1) infinite;
}

@keyframes rdaBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

.rda-artist {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--rda-brass-light);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rda-title-row {
  position: relative;
  overflow: hidden;
}

.rda-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--rda-cream);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* marquee é o padrão quando o nome passa da linha; se ele não entrar
   (reduced-motion, rAF parado), o estado base acima mostra reticências */
.rda-title.is-marquee {
  display: inline-block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: rdaMarquee var(--rda-marquee-duration, 10s) ease-in-out infinite;
}

@keyframes rdaMarquee {
  0%, 10% { transform: translateX(0); }
  45%, 55% { transform: translateX(var(--rda-marquee-distance, 0)); }
  90%, 100% { transform: translateX(0); }
}

.rda-hint {
  display: none;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--rda-gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: rdaHintPulse 1.5s ease-in-out infinite;
}

.rda-bar.is-blocked .rda-hint {
  display: inline-flex;
}

.rda-bar.is-blocked .rda-artist {
  display: none;
}

@keyframes rdaHintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Equalizador
   -------------------------------------------------------------------------- */
.rda-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 26px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.85;
}

.rda-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rda-gold), var(--rda-brass));
  transform-origin: bottom;
  animation: rdaEq 0.95s ease-in-out infinite;
  animation-play-state: paused;
}

.rda-eq i:nth-child(1) { height: 42%; animation-delay: -0.15s; }
.rda-eq i:nth-child(2) { height: 78%; animation-delay: -0.55s; }
.rda-eq i:nth-child(3) { height: 55%; animation-delay: -0.3s; }
.rda-eq i:nth-child(4) { height: 100%; animation-delay: -0.75s; }
.rda-eq i:nth-child(5) { height: 66%; animation-delay: -0.45s; }

.rda-bar.is-playing .rda-eq i {
  animation-play-state: running;
}

@keyframes rdaEq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   Play / pause
   -------------------------------------------------------------------------- */
.rda-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(240, 214, 140, 0.68);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f8e6b4, #d8ad52 56%, #b8842c);
  color: #1a1120;
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(200, 155, 60, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rda-play:hover {
  transform: scale(1.06);
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(240, 214, 140, 0.42);
}

.rda-play:active {
  transform: scale(0.96);
}

.rda-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rda-play .rda-icon-pause {
  display: none;
}

.rda-bar.is-playing .rda-play .rda-icon-play {
  display: none;
}

.rda-bar.is-playing .rda-play .rda-icon-pause {
  display: block;
}

.rda-bar.is-blocked .rda-play::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(240, 214, 140, 0.55);
  border-radius: 50%;
  animation: rdaRing 1.7s ease-out infinite;
}

@keyframes rdaRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.38); opacity: 0; }
}

.rda-bar.is-loading .rda-play::before,
.rda-bar.is-reconnecting .rda-play::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: var(--rda-gold);
  border-radius: 50%;
  animation: rdaSpin 0.85s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Volume
   -------------------------------------------------------------------------- */
.rda-vol {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.rda-mute {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rda-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.rda-mute:hover {
  color: var(--rda-gold);
  background: rgba(240, 214, 140, 0.08);
}

.rda-mute svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rda-mute.is-muted {
  color: #ff9a9a;
}

.rda-mute .rda-icon-unmuted {
  display: none;
}

.rda-mute.is-muted .rda-icon-muted {
  display: block;
}

.rda-mute.is-muted .rda-icon-unmuted {
  display: none;
}

.rda-mute:not(.is-muted) .rda-icon-unmuted {
  display: block;
}

.rda-mute:not(.is-muted) .rda-icon-muted {
  display: none;
}

.rda-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 3px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--rda-gold) var(--rda-vol, 85%),
    rgba(255, 255, 255, 0.16) var(--rda-vol, 85%)
  );
}

.rda-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  background: var(--rda-gold);
  box-shadow: 0 0 8px rgba(240, 214, 140, 0.5);
}

.rda-vol input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--rda-gold);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .rda-bar { gap: 9px; padding: 0 11px; }
  .rda-brand { width: 48px; height: 48px; }
  .rda-cover { width: 54px; height: 54px; }
  .rda-title { font-size: 16px; }
  .rda-artist { font-size: 12px; }
  .rda-live { font-size: 10px; }
  .rda-vol input[type="range"] { width: 66px; }
}

@media (max-width: 720px) {
  .rda-vol { display: none; }
  .rda-eq { display: none; }
}

@media (max-width: 560px) {
  .rda-bar { gap: 8px; padding: 0 9px; }
  .rda-brand { width: 42px; height: 42px; }
  .rda-sep { height: 34px; }
  .rda-cover { width: 47px; height: 47px; border-radius: 8px; }
  .rda-play { width: 44px; height: 44px; }
  .rda-play svg { width: 18px; height: 18px; }
  .rda-title { font-size: 15px; }
  .rda-artist { font-size: 11px; }
  .rda-live { font-size: 10px; }
}

@media (max-width: 400px) {
  .rda-bar { gap: 6px; padding: 0 7px; }
  .rda-title { font-size: 13px; }
  .rda-artist { font-size: 10px; }
  .rda-live { font-size: 9px; }
  .rda-cover { width: 43px; height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .rda-bar::after,
  .rda-brand-halo,
  .rda-brand-shine,
  .rda-eq i,
  .rda-cover.is-changing img.is-active {
    animation: none !important;
  }

  /* sem animação: o estado (aberto/fechado) tem que aparecer na hora */
  .rda-panel,
  .rda-details-icon,
  .rda-cover,
  .rda-details,
  .rda-cover img {
    transition: none !important;
  }

  /* marquee desligado: volta para a linha única com reticências */
  .rda-title.is-marquee,
  .rda-panel-title.is-marquee {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Capa como botão, rótulo de reconexão e foco visível
   -------------------------------------------------------------------------- */
.rda-cover {
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rda-cover:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 214, 140, 0.72);
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.52),
    0 0 18px rgba(200, 155, 60, 0.22);
}

.rda-live span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rda-status {
  display: none;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: #ffb4b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: rdaHintPulse 1.5s ease-in-out infinite;
}

.rda-bar.is-reconnecting .rda-status {
  display: inline-flex;
}

/* durante a reconexão o nome do DJ some, mas a linha continua reservada
   para o bloco de 3 linhas não pular */
.rda-bar.is-reconnecting .rda-artist {
  visibility: hidden;
}

.rda-bar button:focus-visible,
.rda-bar input:focus-visible,
.rda-panel button:focus-visible {
  outline: 2px solid var(--rda-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Gatilhos explícitos do painel: "i" ao lado do logo, metadados e selo na capa
   -------------------------------------------------------------------------- */
.rda-details {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(200, 155, 60, 0.42);
  border-radius: 50%;
  background: linear-gradient(180deg, #2a1d14 0%, #17100b 100%);
  color: var(--rda-brass-light);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rda-details svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rda-details:hover {
  border-color: rgba(240, 214, 140, 0.78);
  color: var(--rda-gold);
  box-shadow: 0 0 14px rgba(200, 155, 60, 0.22);
}

.rda-details.is-open {
  border-color: rgba(240, 214, 140, 0.85);
  background: linear-gradient(180deg, #3a2718 0%, #1d130c 100%);
  color: var(--rda-gold);
}

.rda-details-icon {
  display: grid;
  place-items: center;
  transition: transform 0.22s ease;
}

.rda-details.is-open .rda-details-icon {
  transform: rotate(180deg);
}

/* primeira visita: chama atenção para o botão até o painel ser aberto */
.rda-details.is-new {
  border-color: rgba(240, 214, 140, 0.85);
  color: var(--rda-gold);
  animation: rdaNudge 2.6s ease-in-out infinite;
}

@keyframes rdaNudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 214, 140, 0); }
  45% { box-shadow: 0 0 0 5px rgba(240, 214, 140, 0.16); }
}

.rda-meta[role="button"] {
  cursor: pointer;
  border-radius: 8px;
}

.rda-meta[role="button"]:hover .rda-title,
.rda-meta[role="button"]:hover .rda-artist {
  color: #fff;
}

/* capa não encontrada: logo circular + símbolo de "sem música" */
.rda-cover-nocover {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(240, 214, 140, 0.5);
  border-radius: 50%;
  background: linear-gradient(180deg, #2a1d14 0%, #17100b 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.rda-cover-nocover svg {
  width: 11px;
  height: 11px;
  fill: #e3c88b;
}

.rda-cover.is-fallback .rda-cover-nocover {
  display: grid;
}

.rda-cover.is-fallback img.is-active {
  object-fit: contain;
  padding: 3px;
}

/* --------------------------------------------------------------------------
   Painel de detalhes
   -------------------------------------------------------------------------- */
.rda-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  z-index: 40;
  width: min(392px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid rgba(200, 155, 60, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, #1b1324 0%, #120d17 100%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--rda-cream);
  font-family: var(--rda-font);
  font-size: 13px;
  text-align: left;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rda-panel.is-open {
  opacity: 1;
  transform: none;
}

/* o atributo hidden precisa vencer os display: flex/block das peças internas */
.rda-panel [hidden] {
  display: none !important;
}

.rda-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rda-panel-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 60, 0.45);
  border-radius: 10px;
  background: #0a0710;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.rda-panel-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rda-panel-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.rda-panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rda-panel-eyebrow {
  color: var(--rda-brass-light);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rda-panel-year {
  flex-shrink: 0;
  color: var(--rda-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.rda-panel-artist {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--rda-brass-light);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rda-panel-title {
  margin: 0;
  overflow: hidden;
  color: var(--rda-cream);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* mesmo comportamento da barra: marquee quando o nome não cabe */
.rda-panel-title.is-marquee {
  display: inline-block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: rdaMarquee var(--rda-marquee-duration, 12s) ease-in-out infinite;
}

.rda-panel-close {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--rda-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.rda-panel-close:hover {
  color: var(--rda-cream);
  background: rgba(255, 255, 255, 0.06);
}

.rda-panel-close svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.rda-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rda-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 9px;
  background: rgba(240, 214, 140, 0.05);
  color: var(--rda-cream);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rda-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rda-btn:hover {
  border-color: rgba(240, 214, 140, 0.62);
  background: rgba(240, 214, 140, 0.12);
}

.rda-btn.is-active {
  border-color: rgba(240, 214, 140, 0.7);
  color: var(--rda-gold);
}

.rda-sleep {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.rda-sleep-label {
  width: 100%;
  color: var(--rda-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rda-chip {
  padding: 6px 10px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--rda-cream);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.rda-chip:hover {
  border-color: rgba(240, 214, 140, 0.62);
  color: var(--rda-gold);
}

.rda-chip.is-cancel {
  border-color: transparent;
  color: var(--rda-muted);
}

.rda-panel-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 155, 60, 0.16);
}

.rda-panel-label {
  margin: 0 0 8px;
  color: var(--rda-brass-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rda-panel-next {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rda-history {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rda-hist {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.rda-hist-time {
  flex-shrink: 0;
  color: var(--rda-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.rda-hist-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rda-hist-text strong {
  font-weight: 600;
}

.rda-hist-artist {
  color: var(--rda-muted);
}

.rda-hist.is-empty {
  color: var(--rda-muted);
  font-size: 11px;
}

@media (max-width: 480px) {
  .rda-panel {
    left: 8px;
    width: calc(100vw - 16px);
    padding: 14px;
  }

  .rda-panel-title {
    margin-top: 2px;
    font-size: 16px;
  }

}


/* ajustes finais: precisam vir depois das regras base do botao de detalhes */
@media (max-width: 900px) {
  .rda-details { width: 26px; height: 26px; }
  .rda-details svg { width: 15px; height: 15px; }
  .rda-details-icon { width: 15px; height: 15px; }
}

@media (max-width: 560px) {
  .rda-details { width: 24px; height: 24px; }
  .rda-details svg { width: 14px; height: 14px; }
  .rda-cover-nocover { width: 15px; height: 15px; }
  .rda-cover-nocover svg { width: 9px; height: 9px; }
}
