/* Historial de canciones v2.1.0 — armonizado con DinámicaPlay Glass + Wave/Gold */
.rd-history{
  --rd-navy:#131E3D; --rd-navy-2:#1D2E5C; --rd-coral:#E0A96D; --rd-amber:#FFE0A3;
  --rd-wave:#38BDF8; --rd-muted:#A4AECB; --rd-line:rgba(255,255,255,.1); --rd-radius-lg:22px;
  --rd-card:rgba(18,28,58,.74); --rd-text:#F6F3EC; --rd-heart:#EF6B53;
  font-family:inherit; color:var(--rd-text);
  margin-top:14px;
}
.rd-history h2{font-family:'Fraunces',serif; font-size:1.4rem; margin-bottom:5px;}
.rd-history > p{color:var(--rd-muted); font-size:.88rem; margin-bottom:16px;}
.rd-history h3{font-family:'Inter',sans-serif; color:var(--rd-muted); font-weight:700; letter-spacing:.1em; text-transform:uppercase;}
.rd-history *{box-sizing:border-box;}
.rd-history svg{display:inline-block; vertical-align:middle; flex-shrink:0;}
@keyframes rd-pulse{0%,100%{box-shadow:0 0 0 0 rgba(56,189,248,.6);}50%{box-shadow:0 0 0 6px rgba(56,189,248,0);}}

.rd-history .hist-top-bar{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px;}
.rd-history .station-toggle{display:flex; gap:6px; flex-wrap:wrap;}
.rd-history .station-toggle button{
  font:inherit; font-size:0.82rem; font-weight:600; padding:8px 14px; border-radius:999px;
  border:1px solid var(--rd-line); background:var(--rd-card); color:var(--rd-muted); cursor:pointer;
  transition:all .15s;
}
.rd-history .station-toggle button.active{
  background:linear-gradient(135deg, var(--rd-amber), var(--rd-coral));
  color:#070D1F; border-color:transparent;
}

.rd-history .hist-mode-tabs{
  display:inline-flex; background:rgba(7,13,31,.6); border:1px solid var(--rd-line);
  border-radius:999px; padding:3px; gap:3px;
}
.rd-history .hist-mode-tabs button{
  display:inline-flex; align-items:center; gap:5px;
  border:none; background:none; color:var(--rd-muted); font:inherit; font-size:0.78rem; font-weight:600;
  padding:6px 12px; border-radius:999px; cursor:pointer; transition:all .15s;
}
.rd-history .hist-mode-tabs button.active{background:rgba(224,169,109,.2); color:var(--rd-amber);}

.rd-history .now-playing-card{
  background:linear-gradient(145deg, rgba(22,36,74,.9), rgba(12,20,46,.92));
  color:#fff; border-radius:var(--rd-radius-lg); padding:20px;
  display:flex; align-items:center; gap:16px;
  border:1px solid rgba(255,255,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 18px 36px -18px rgba(0,0,0,.6);
}
.rd-history .np-cover{
  width:78px; height:78px; color:#070D1F; border-radius:16px; flex-shrink:0;
  background:linear-gradient(135deg, var(--rd-wave), var(--rd-amber));
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.18);
}
.rd-history .np-body{flex:1; min-width:0;}
.rd-history .np-label{font-size:0.68rem; text-transform:uppercase; letter-spacing:0.09em; color:#bae6fd; font-weight:700; margin-bottom:5px; display:flex; align-items:center; gap:7px;}
.rd-history .np-live-dot{width:7px; height:7px; border-radius:50%; background:var(--rd-wave); display:inline-block; animation:rd-pulse 1.6s infinite;}
.rd-history .np-title{font-family:'Fraunces',serif; font-weight:600; font-size:1.2rem; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rd-history .np-artist{color:#C7CAE0; margin-top:3px; font-size:0.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rd-history .np-actions{display:flex; gap:6px; margin-top:11px; flex-wrap:wrap;}

.rd-history .song-chip{
  display:inline-flex; align-items:center; gap:5px; font-size:0.72rem; font-weight:600;
  padding:5px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06); color:#e4e7f2; text-decoration:none; cursor:pointer;
  transition:all .15s;
}
.rd-history .song-chip:hover{border-color:var(--rd-coral); color:var(--rd-amber);}
.rd-history .song-chip.liked{background:rgba(239,107,83,.22); border-color:var(--rd-heart); color:#ff9682;}
.rd-history .song-chip.yt:hover{border-color:#ff4d4d; color:#ff8080;}
.rd-history .song-chip.sp:hover{border-color:#1db954; color:#5ee88d;}

.rd-history .history-list{display:flex; flex-direction:column; gap:10px; max-height:540px; overflow-y:auto; padding-right:2px;}
.rd-history .history-row{
  background:var(--rd-card); border:1px solid var(--rd-line); border-radius:16px;
  padding:12px 14px; display:flex; align-items:center; gap:12px;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.rd-history .h-cover{
  width:48px; height:48px; border-radius:12px; flex-shrink:0;
  background:linear-gradient(135deg, var(--rd-navy), var(--rd-navy-2));
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center; color:var(--rd-amber);
  border:1px solid rgba(255,255,255,.1);
}
.rd-history .h-info{flex:1; min-width:0;}
.rd-history .history-row .h-title{font-size:0.92rem; font-weight:600; color:var(--rd-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rd-history .history-row .h-artist{font-size:0.8rem; color:var(--rd-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:1px;}
.rd-history .h-links{display:flex; gap:5px; margin-top:7px; flex-wrap:wrap;}
.rd-history .h-right{display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0;}
.rd-history .history-row .h-time{font-size:0.74rem; color:var(--rd-muted); white-space:nowrap; font-family:'JetBrains Mono',monospace;}
.rd-history .fav-heart-btn{
  width:32px; height:32px; border-radius:50%; border:1px solid var(--rd-line); background:rgba(255,255,255,.05);
  color:var(--rd-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s;
}
.rd-history .fav-heart-btn:hover{border-color:var(--rd-heart); color:#ff9682;}
.rd-history .fav-heart-btn.liked{background:rgba(239,107,83,.22); border-color:var(--rd-heart); color:#ff836b;}
.rd-history .history-empty{padding:28px; text-align:center; color:var(--rd-muted); background:var(--rd-card); border:1px dashed var(--rd-line); border-radius:var(--rd-radius-lg); font-size:0.88rem;}
