/* Radio Rheinland – Hörer-Aktionen: Herz-Button */

/* ---------- Herz ---------- */
/* Gleiche Form wie die Streaming-Buttons der Playlist (34px, 8px Radius), aber immer in Herz-Pink:
   Umriss = noch nicht gemocht, gefüllt = gemocht. */
.rr-like{--heart:#ff6b81;display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid color-mix(in srgb,var(--heart) 38%,#354b5d);background:#15212c;color:var(--heart);cursor:pointer;font-size:15px;line-height:1;transition:color .15s,border-color .15s,background .15s;flex:0 0 auto}
.rr-like:hover:not(:disabled){border-color:var(--heart);background:color-mix(in srgb,var(--heart) 14%,#15212c)}
.rr-like:focus-visible{outline:3px solid #8dbf24;outline-offset:2px}
.rr-like:disabled{opacity:.35;cursor:default;color:#9fb3c2;border-color:#354b5d}
.rr-like.is-liked{background:var(--heart);border-color:var(--heart);color:#fff}
.rr-like.is-liked:hover:not(:disabled){background:color-mix(in srgb,var(--heart) 85%,#000)}
.rr-like.is-pop i{animation:rr-heart-pop .45s ease}
@keyframes rr-heart-pop{0%{transform:scale(1)}35%{transform:scale(1.45)}70%{transform:scale(.9)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.rr-like.is-pop i{animation:none}}

/* Pille mit Text ("Mag ich") – Startseite & Playlist "Läuft gerade" */
.rr-like--pill{width:auto;height:auto;display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700;align-self:flex-start;margin-top:8px}
html body .rr-onair__song .rr-like--pill .rr-like__text{font-size:13px;color:inherit;white-space:nowrap;overflow:visible}
.rr-like--pill.is-liked .rr-like__text::after{content:" ✓"}

/* Startseite: Künstlerzeile behält ihr Aussehen (vorher per span:last-child) */
html body .rr-onair__song .api_lfm_currentsong_artist{font-size:14px;color:var(--rr2-muted,#9fb3c2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Player-Leiste: Herz rechts im Titelbereich, ohne das Raster zu ändern */
.rr-livebar__track{position:relative;padding-right:44px}
.rr-like--livebar{position:absolute;right:0;top:50%;transform:translateY(-50%);width:34px;height:34px;font-size:14px}
.rr-like--livebar:hover:not(:disabled){transform:translateY(-50%)}
.rr-popup-player .rr-like--livebar{position:static;transform:none;margin-top:10px}
.rr-popup-player .rr-livebar__track{padding-right:0}

/* Zuletzt gespielt (Startseite) */
/* Ältere Styles legen ein zweispaltiges Raster mit !important fest – das Herz bekommt eine eigene dritte Spalte rechts. */
html body #song-history-container .playlist-history__item{grid-template-columns:auto minmax(0,1fr) 34px!important;align-items:center!important;padding:12px 14px!important}
html body #song-history-container .playlist-history__content{min-width:0!important;max-width:100%;overflow:hidden}
html body #song-history-container .playlist-history__content > *{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #song-history-container .playlist-history__item .rr-like{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0}

/* Playlist: Herz rechts, durch eine Trennlinie von den Streaming-Links abgesetzt */
.playlist-track__links .rr-like{order:10;margin-left:6px;position:relative}
.playlist-track__links .rr-like::before{content:"";position:absolute;left:-7px;top:6px;bottom:6px;width:1px;background:#354b5d}
@media (max-width:700px){.playlist-track__links .rr-like{width:30px;height:30px;font-size:13px}}
.pl-now__actions .rr-like--pill{margin-top:0;align-self:auto}

/* ---------- Toast ---------- */
.rr-toast{position:fixed;left:50%;bottom:104px;z-index:1200;transform:translate(-50%,16px);opacity:0;pointer-events:none;display:flex;align-items:center;gap:10px;max-width:min(92vw,520px);padding:12px 18px;border-radius:12px;background:#1b2c39;border:1px solid #354b5d;box-shadow:0 12px 32px rgba(0,0,0,.45);color:#eef3f7;font-size:14px;line-height:1.45;transition:opacity .2s,transform .2s}
.rr-toast.is-visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.rr-toast i{color:#ff6b81;flex:0 0 auto}
.rr-toast a{color:#80c4f2;font-weight:700}
