/* Replay como plataforma: barra, acceso, perfiles, comunidad y mini reproductor.
   (Los colores y el reproductor de "Tu música" están en replay.css.) */
.r-barra { position: relative; z-index: 30; justify-content: space-between; align-items: center; }
.r-marca-logo { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.r-nav { display: flex; align-items: center; gap: 4px; }
.r-nav-link { color: var(--papel-2); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.r-nav-link:hover { color: var(--papel); background: var(--grafito); }
.r-nav-link.activa { color: var(--papel); background: var(--grafito-2); }
.r-menu { position: relative; margin-left: 6px; }
.r-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.r-menu summary::-webkit-details-marker { display: none; }
.r-menu-caja {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; z-index: 40;
  background: var(--grafito); border: 1px solid var(--linea); border-radius: 14px; padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column;
}
.r-menu-caja a, .r-menu-caja button { color: var(--papel); text-decoration: none; text-align: left; background: none; border: none; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.r-menu-caja a:hover, .r-menu-caja button:hover { background: var(--grafito-2); }
.r-menu-yo { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--linea); display: flex; flex-direction: column; }
.r-menu-yo small { color: var(--papel-3); }

.r-avatar {
  --t: 36px; position: relative; flex: none; width: var(--t); height: var(--t); border-radius: 50%;
  background: var(--grafito-2); display: inline-grid; place-items: center;
  font: 800 calc(var(--t) * 0.42) / 1 var(--sans); color: var(--papel); box-shadow: 0 0 0 1px var(--linea);
}
.r-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.r-avatar.es-saven { box-shadow: 0 0 0 2px var(--rec); }
.r-online { position: absolute; right: 2%; bottom: 2%; width: max(9px, calc(var(--t) * 0.22)); height: max(9px, calc(var(--t) * 0.22)); border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 2px var(--tinta); }
.r-verde { color: var(--verde); }
.r-suave { color: var(--papel-3); }
.pequeno { font-size: 13px; }
.r-boton-sec { display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--linea); color: var(--papel); border-radius: 10px; padding: 9px 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.r-boton-sec:hover { border-color: var(--papel-3); }
.r-boton.ancho { width: 100%; padding: 13px; font-size: 15px; }
a.r-boton { display: inline-flex; justify-content: center; text-decoration: none; }
.r-input { width: 100%; background: var(--tinta); border: 1px solid var(--linea); border-radius: 10px; padding: 11px 12px; color: var(--papel); font-size: 16px; }
.r-input:focus { outline: none; border-color: var(--cobalto); }
.r-input:disabled { color: var(--papel-3); }
.r-error-txt { color: #FF8A8A; font-size: 14px; }

/* Entrar, bienvenida, invitación y contraseña */
.r-acceso { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 20px 0; }
.r-acceso-caja { width: min(420px, 100%); background: var(--grafito); border: 1px solid var(--linea); border-radius: 22px; padding: 28px 24px; text-align: center; }
.r-acceso-caja h1 { font: 800 28px/1.1 var(--sans); margin: 14px 0 6px; letter-spacing: -0.02em; }
.r-acceso-caja a { color: var(--papel); }
.rec.grande { display: inline-block; width: 22px; height: 22px; }
.r-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 18px 0 12px; }
.r-form label { display: flex; flex-direction: column; gap: 5px; }
.r-form label > span:first-child, .r-campo-lista > span:first-child { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--papel-3); }
.r-clave-caja { position: relative; display: block; }
.r-clave-caja .r-input { padding-right: 44px; }
.r-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 15px; opacity: 0.6; padding: 6px; }
.r-arroba-grande { font: 700 18px var(--mono); color: var(--amarillo); margin: 10px 0 0; }
.r-arroba-campo { display: flex; align-items: center; background: var(--tinta); border: 1px solid var(--linea); border-radius: 10px; padding-left: 12px; }
.r-arroba-campo b { color: var(--amarillo); font-family: var(--mono); }
.r-arroba-campo .r-input { border: none; padding-left: 4px; }

/* Perfil (como un canal) */
.r-perfil { max-width: 980px; margin: 0 auto; }
.r-banner { aspect-ratio: 3 / 1; border-radius: 18px; background: linear-gradient(120deg, #1C1D22, #2A3CFF 55%, #FF2B2B) center / cover no-repeat; border: 1px solid var(--linea); }
.r-perfil-cab { display: flex; align-items: flex-start; gap: 16px; padding: 12px 18px 0; flex-wrap: wrap; }
.r-perfil-cab > .r-avatar { box-shadow: 0 0 0 5px var(--tinta); margin-top: -70px; }
.r-perfil-cab > .r-boton-sec { margin-left: auto; }
.r-perfil-cab > .r-avatar.es-saven { box-shadow: 0 0 0 3px var(--rec), 0 0 0 6px var(--tinta); }
.r-perfil-txt { flex: 1; min-width: 200px; padding-bottom: 4px; }
.r-perfil-txt h1 { font: 800 30px/1.1 var(--sans); margin: 0; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-arroba { margin: 4px 0 0; font: 600 14px var(--mono); color: var(--papel-2); }
.r-aka { margin: 4px 0 0; color: var(--papel-3); font-size: 14px; }
.r-sello { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rec); border: 1px solid var(--rec); border-radius: 999px; padding: 2px 8px; }
.r-bio { margin: 14px 18px 0; color: var(--papel-2); white-space: pre-line; max-width: 640px; }
.r-redes { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 18px 0; }
.r-red { --t: 38px; flex: none; width: var(--t); height: var(--t); border-radius: 50%; background: var(--fondo); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; transition: transform 0.12s; }
.r-red:hover { transform: translateY(-2px); }
.r-red svg { width: 56%; height: 56%; }
.r-sec-tit { font: 800 20px var(--sans); margin: 28px 18px 10px; }
.r-musica-perfil { list-style: none; padding: 0; margin: 0 18px; display: flex; flex-direction: column; gap: 10px; }
.r-musica-perfil li { background: var(--grafito); border: 1px solid var(--linea); border-radius: 14px; padding: 12px; }
.r-musica-perfil li.oculto { border-style: dashed; }
.r-mp-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.r-chip-oculto { font: 600 11px var(--mono); color: var(--papel-3); border: 1px solid var(--linea); border-radius: 999px; padding: 2px 8px; }
.r-visible { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--linea); border-radius: 999px; padding: 5px 12px 5px 6px; color: var(--papel-2); font: 700 12px var(--sans); }
.r-interruptor { width: 30px; height: 18px; border-radius: 999px; background: var(--grafito-2); position: relative; box-shadow: inset 0 0 0 1px var(--linea); transition: background 0.15s; }
.r-interruptor::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--papel-3); transition: transform 0.15s, background 0.15s; }
.r-visible.si { color: var(--papel); border-color: rgba(61, 220, 132, 0.5); }
.r-visible.si .r-interruptor { background: rgba(61, 220, 132, 0.35); }
.r-visible.si .r-interruptor::after { transform: translateX(12px); background: var(--verde); }
.r-perfil .r-muro { margin: 0 18px; }

/* Editar perfil */
.r-editar { max-width: 760px; margin: 0 auto; }
.r-editar h1 { font: 800 28px var(--sans); margin: 4px 0 14px; }
.r-editar .r-estado { margin: 0 0 14px; }
.r-ed-banner { position: relative; aspect-ratio: 3 / 1; border-radius: 18px; background: linear-gradient(120deg, #1C1D22, #2A3CFF 55%, #FF2B2B) center / cover no-repeat; border: 1px solid var(--linea); margin-bottom: 64px; }
.r-ed-cambiar { position: absolute; right: 12px; top: 12px; background: rgba(14, 14, 16, 0.75); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.r-ed-quitar { position: absolute; right: 12px; top: 52px; background: rgba(14, 14, 16, 0.75); border: 1px solid rgba(255, 255, 255, 0.15); color: var(--papel-2); border-radius: 999px; padding: 5px 11px; font-size: 12px; }
.r-ed-foto { position: absolute; left: 20px; bottom: -56px; }
.r-ed-foto .r-avatar { box-shadow: 0 0 0 5px var(--tinta); }
.r-ed-cambiar.foto { left: auto; right: -2px; top: auto; bottom: 0; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.r-ed-tam { margin: 0 0 6px; }
.r-campo-lista { display: flex; flex-direction: column; gap: 6px; }
.r-chips-edit { display: flex; gap: 6px; flex-wrap: wrap; }
.r-chips-edit:empty { display: none; }
.r-chip-ed { display: inline-flex; align-items: center; gap: 6px; background: var(--grafito-2); border: 1px solid var(--linea); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; }
.r-chip-ed button { background: none; border: none; color: var(--papel-3); padding: 2px 4px; }
.r-fila-add { display: flex; gap: 8px; }
.r-redes-edit { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.r-redes-edit:empty { display: none; }
.r-redes-edit li { display: flex; align-items: center; gap: 10px; background: var(--grafito); border: 1px solid var(--linea); border-radius: 12px; padding: 7px 8px; }
.r-redes-edit li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-redes-edit small { color: var(--papel-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-redes-edit li > button { background: none; border: none; color: var(--papel-3); padding: 6px; }
.r-ed-botones { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Comunidad */
.r-com { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.r-composer { display: flex; gap: 12px; align-items: flex-start; background: var(--grafito); border: 1px solid var(--linea); border-radius: 18px; padding: 14px; }
.r-comp-cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.r-comp-tipos { display: flex; gap: 6px; flex-wrap: wrap; }
.r-comp-tipos button { background: none; border: 1px solid var(--linea); color: var(--papel-2); border-radius: 999px; padding: 5px 11px; font: 700 13px var(--sans); }
.r-comp-tipos button.activo { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.r-comp-ayuda { margin: 0; font-size: 13px; color: var(--papel-3); }
.r-comp-pie { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.r-comp-adjunto { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--grafito-2); border: 1px dashed var(--papel-3); border-radius: 10px; padding: 8px 12px; font-size: 13px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-comp-prog { flex: 1 1 120px; height: 6px; border-radius: 3px; background: var(--grafito-2); overflow: hidden; }
.r-comp-prog i { display: block; height: 100%; width: 0; background: var(--cobalto); transition: width 0.2s; }
.r-muro { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.r-post { background: var(--grafito); border: 1px solid var(--linea); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.r-post.tipo-verso { border-color: rgba(255, 79, 216, 0.45); }
.r-post.tipo-respuesta { background: var(--grafito-2); }
.r-post-cab { display: flex; align-items: center; gap: 10px; }
.r-post-av { line-height: 0; }
.r-post-quien { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-post-quien a { color: var(--papel); text-decoration: none; }
.r-post-quien .r-suave { font-size: 12px; }
.r-tipo { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--grafito-2); color: var(--papel-2); white-space: nowrap; }
.r-tipo.t-verso { background: rgba(255, 79, 216, 0.16); color: #FF9BEA; }
.r-tipo.t-tema { background: rgba(255, 43, 43, 0.14); color: #FF8A8A; }
.r-tipo.t-archivo { background: rgba(125, 139, 255, 0.18); color: #C3C9FF; }
.r-tipo.t-respuesta { background: rgba(255, 210, 0, 0.14); color: var(--amarillo); }
.r-post-borrar { background: none; border: none; color: var(--papel-3); padding: 4px 6px; border-radius: 6px; }
.r-post-borrar:hover { color: var(--papel); background: var(--grafito-2); }
.r-post-txt { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.r-post-txt a, .r-com-txt a { color: #7D8BFF; }
.r-preparando { margin: 0; font-size: 13px; }
.r-descarga { align-self: flex-start; font-size: 12px; color: var(--papel-3); text-decoration: none; }
.r-descarga:hover { color: var(--papel); }
.r-adjunto { display: flex; align-items: center; gap: 10px; background: var(--grafito-2); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; color: var(--papel); text-decoration: none; }
.r-adj-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.r-adjunto small { color: var(--papel-3); }
.r-post-pie { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-reacciones { display: flex; gap: 4px; flex-wrap: wrap; }
.r-reac { background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px; font-size: 15px; opacity: 0.45; display: inline-flex; align-items: center; gap: 4px; }
.r-reac:hover { opacity: 1; background: var(--grafito-2); }
.r-reac.con { opacity: 1; border-color: var(--linea); }
.r-reac.mia { opacity: 1; border-color: var(--amarillo); background: rgba(255, 210, 0, 0.1); }
.r-reac b { font: 700 12px var(--mono); }
.r-post-coment { margin-left: auto; color: var(--papel-2); text-decoration: none; font-weight: 700; font-size: 13px; }
.r-post-coment:hover { color: var(--papel); }
.r-mas-posts { display: block; margin: 14px auto 0; }
.r-com-lado { background: var(--grafito); border: 1px solid var(--linea); border-radius: 18px; padding: 14px; align-self: start; }
.r-com-lado .r-etq { margin-top: 0; }
.r-gente { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.r-gente a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; color: var(--papel); text-decoration: none; }
.r-gente a:hover { background: var(--grafito-2); }
.r-gente a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.r-gente small { color: var(--papel-3); }

/* Un post abierto */
.r-hilo { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.r-volver { color: var(--papel-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.r-hilo h3 { font: 800 16px var(--sans); margin: 4px 0 8px; }
.r-versos { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid rgba(255, 79, 216, 0.5); padding-left: 12px; }
.r-subir-verso { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--grafito); border: 1px dashed rgba(255, 79, 216, 0.5); border-radius: 14px; padding: 10px; }
.r-subir-verso .r-input { flex: 1 1 200px; width: auto; }
.r-subir-verso .r-comp-adjunto { margin-right: 0; }
.r-comentarios ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; }
.r-comentarios li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--linea); }
.r-comentarios li > a { line-height: 0; }
.r-com-txt { flex: 1; min-width: 0; }
.r-com-txt p { margin: 0 0 2px; overflow-wrap: anywhere; }
.r-com-txt .r-suave { font-size: 12px; }
.r-t-chip { background: var(--amarillo); color: var(--tinta); border: none; border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.r-comentar { display: flex; gap: 8px; align-items: center; }
.r-comentar .r-input { flex: 1; min-width: 0; width: auto; }
.r-seg-actual { color: var(--amarillo); font-size: 12px; white-space: nowrap; }
.r-pista-ayuda { font-size: 12px; margin: 6px 0 0; }

/* Mini reproductor (muro y perfiles) */
.r-pm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.r-pm-play { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--rec); color: #fff; font-size: 14px; display: grid; place-items: center; padding: 0; }
.r-pm-play.sonando { background: var(--papel); color: var(--tinta); }
.r-pm-onda { position: relative; height: 56px; cursor: pointer; }
.r-pm-onda canvas { position: absolute; left: 0; top: 0; display: block; }
.r-pm-prog { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; pointer-events: none; }
.r-pm-marca { position: absolute; bottom: -4px; transform: translateX(-50%); line-height: 0; z-index: 2; }
.r-pm-marca .r-avatar { box-shadow: 0 0 0 2px var(--tinta); }
.r-pm-t { font-size: 12px; color: var(--papel-3); white-space: nowrap; }
.r-pm-t b { color: var(--papel); font-weight: 600; }
.r-yo-av { line-height: 0; }

@media (min-width: 900px) {
  .r-com { grid-template-columns: minmax(0, 1fr) 280px; }
  .r-com-lado { position: sticky; top: 16px; }
}
@media (max-width: 560px) {
  .r-nav-link { padding: 7px 9px; font-size: 13px; }
  .r-sub { display: none; }
  .r-perfil-cab { padding: 8px 8px 0; gap: 12px; }
  .r-perfil-cab > .r-avatar { --t: 88px !important; margin-top: -50px; }
  .r-perfil-txt h1 { font-size: 24px; }
  .r-bio, .r-redes, .r-sec-tit, .r-musica-perfil, .r-perfil .r-muro { margin-left: 8px; margin-right: 8px; }
  .r-composer > .r-avatar { display: none; }
  .r-pm-t { display: none; }
}
