/* Card statie + player radio */

/* ---------- breadcrumb (doar mobil) ---------- */

.rs-crumbs {
  font-size: .8rem;
  color: #8e9bb3;
  margin-bottom: .6rem;
}

.rs-crumbs a { color: #92c66c; text-decoration: none; }
.rs-crumbs-sep { margin: 0 .35rem; }
.rs-crumbs-current { color: #c6cfdd; }

/* ---------- cardul ---------- */

.rs-card {
  background: #12121f;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
}

/* ---------- zona 1: identitate ---------- */

.rs-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.rs-logo {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.rs-ident {
  flex: 1 1 auto;
  min-width: 0;
}

.rs-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .55rem;
  border: 1px solid rgba(146, 198, 108, .3);
  border-radius: 999px;
  background: rgba(146, 198, 108, .14);
  color: #92c66c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.rs-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #92c66c;
  animation: rp-blink 1.6s ease-in-out infinite;
}

.rs-ident h1 {
  margin: .55rem 0 .15rem;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.rs-slogan {
  display: block;
  color: #8e9bb3;
  font-size: .9rem;
}

.rs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.rs-tags a {
  padding: .25rem .6rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #c6cfdd;
  font-size: .75rem;
  line-height: 1.4;
  text-decoration: none;
}

.rs-tags a:hover {
  border-color: #92c66c;
  color: #fff;
}

.rs-fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.rs-fav:hover { background: rgba(255, 255, 255, .12); }

.rs-fav .heart-icon {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  fill: rgba(223, 24, 80, .45);
}

/* ---------- zona 2: player ---------- */

.rs-deck {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.rp {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rp-btn {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #92c66c;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
  box-shadow: 0 4px 14px rgba(146, 198, 108, .3);
  -webkit-tap-highlight-color: transparent;
}

.rp-btn:hover { background: #7fb559; }
.rp-btn:active { transform: scale(.94); }
.rp-btn:focus-visible { outline: 3px solid #92c66c; outline-offset: 3px; }

.rp-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  pointer-events: none;
}

.rp-btn .rp-ico-pause,
.rp-btn .rp-spinner { display: none; }

.rp.is-playing .rp-ico-play { display: none; }
.rp.is-playing .rp-ico-pause { display: block; }

.rp.is-loading .rp-ico-play,
.rp.is-loading .rp-ico-pause { display: none; }
.rp.is-loading .rp-spinner { display: block; }

.rp.is-error .rp-btn {
  background: #c0392b;
  box-shadow: 0 4px 14px rgba(192, 57, 43, .3);
}

/* Inel pulsatoriu cat timp canta */
.rp.is-playing .rp-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #92c66c;
  opacity: 0;
  animation: rp-pulse 2s ease-out infinite;
}

@keyframes rp-pulse {
  0%   { transform: scale(.95); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}

.rp-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rp-spin .8s linear infinite;
}

@keyframes rp-spin { to { transform: rotate(360deg); } }

.rp-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.rp-label {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
}

.rp-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  color: #8e9bb3;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
}

.rp-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c757d;
}

.rp.is-playing .rp-status { color: #c6cfdd; }
.rp.is-playing .rp-dot { background: #e63946; animation: rp-blink 1.4s ease-in-out infinite; }
.rp.is-error .rp-status { color: #e06c75; }
.rp.is-error .rp-dot { background: #e06c75; }

@keyframes rp-blink { 50% { opacity: .25; } }

/* Volum */
.rp-vol {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 200px;
}

.rp-vol button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #8e9bb3;
  line-height: 0;
  cursor: pointer;
}

.rp-vol button:hover { color: #fff; }
.rp-vol svg { width: 18px; height: 18px; fill: currentColor; }
.rp-vol .rp-ico-muted { display: none; }
.rp.is-muted .rp-vol .rp-ico-sound { display: none; }
.rp.is-muted .rp-vol .rp-ico-muted { display: block; }

.rp-vol-val {
  flex: 0 0 auto;
  min-width: 34px;
  color: #8e9bb3;
  font-size: .75rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rp-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  outline: none;
  cursor: pointer;
}

.rp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: #92c66c;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.rp-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: #92c66c;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

/* ---------- zona 3: actiuni ---------- */

.rs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1.25rem;
}

.rs-acts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem;
}

.rs-act {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #8e9bb3;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.rs-act:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.rs-act svg {
  width: 15px;
  height: 15px;
  margin: 0 !important;
  fill: currentColor;
}

/* Buton "copiaza link" din dropdown-ul de distribuire */
.copylink-box {
  display: inline-block;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background-color: #525a6b;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.copylink-box:hover { background-color: #414856; }

.copylink-box svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  vertical-align: middle;
}

.rs-votes {
  display: flex;
  flex: 0 0 auto;
  gap: .4rem;
}

.rs-vote {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #c6cfdd;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.rs-vote svg {
  width: 15px;
  height: 15px;
  margin: 0 !important;
  fill: currentColor;
}

/* app.css da #down height:10px + line-height:22px, deci cifra iese sub pastila */
.rs-vote #up,
.rs-vote #down {
  display: inline-block;
  height: auto;
  line-height: 1;
}

.rs-vote[data-action="up"]:hover { border-color: #92c66c; color: #92c66c; }
.rs-vote[data-action="down"]:hover { border-color: #e06c75; color: #e06c75; }

/* ---------- cardul "Despre" ---------- */

.rs-about-title {
  margin-bottom: .6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.rs-about-text { margin-bottom: .5rem; }

.rs-website {
  display: inline-block;
  margin-top: .25rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- mobil ---------- */

@media (max-width: 767.98px) {
  .rs-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
  }

  .rs-logo { width: 112px; height: 112px; }
  .rs-ident h1 { font-size: 1.4rem; }
  .rs-tags { justify-content: center; }
  .rs-fav { top: .8rem; right: .8rem; }

  .rs-deck { padding: 1.25rem 1rem; }

  .rp { flex-direction: column; gap: .85rem; }
  .rp-btn { width: 76px; height: 76px; }
  .rp-btn svg { width: 32px; height: 32px; }
  .rp-spinner { width: 32px; height: 32px; }

  .rp-meta {
    align-items: center;
    width: 100%;
    gap: .25rem;
  }

  .rp-status { max-width: 100%; }
  .rp-vol { width: 100%; }

  .rs-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem .75rem .75rem;
  }

  .rs-acts {
    justify-content: space-between;
    gap: 0;
  }

  .rs-act {
    flex: 1 1 0;
    flex-direction: column;
    gap: .35rem;
    padding: .55rem .2rem;
    font-size: .68rem;
    text-align: center;
  }

  .rs-act svg { width: 17px; height: 17px; }

  .rs-votes {
    justify-content: center;
    margin-top: .5rem;
    padding-top: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .rs-vote { flex: 1 1 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rp.is-playing .rp-btn::after,
  .rp.is-playing .rp-dot,
  .rs-live-dot { animation: none; }
}
