/* Monstruo City — reproductor global, página de disco y canción (móvil primero) */

/* ---------- Reproductor global ---------- */
body.mc-has-player { padding-bottom: 76px; }
body.mc-sheet-open { overflow: hidden; }
.mc-pl[hidden] { display: none; }
.mc-pl__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 68px;
  display: flex; align-items: center; gap: .75rem; padding: 0 .9rem;
  background: rgba(9,11,15,.94); backdrop-filter: blur(14px) saturate(130%);
  border-top: 1px solid rgba(0,217,255,.18); box-shadow: 0 -10px 30px rgba(0,0,0,.45);
}
.mc-pl__progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(255,255,255,.08); }
.mc-pl__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 8px rgba(0,217,255,.6); }
.mc-pl__info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .7rem; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; font: inherit; }
.mc-pl__info img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: #111; }
.mc-pl__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mc-pl__txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .98rem; }
.mc-pl__txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-pl__ctrls { display: flex; align-items: center; gap: .2rem; }
.mc-pl__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--fg); font-size: 1.05rem;
  cursor: pointer; display: inline-grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.mc-pl__btn:hover { background: rgba(255,255,255,.08); }
.mc-pl__btn:active { transform: scale(.94); }
.mc-pl__btn--play { background: var(--cyan); color: #001014; font-size: .95rem; box-shadow: 0 0 16px rgba(0,217,255,.4); }
.mc-pl__btn--play:hover { background: #4fe6ff; }
.mc-pl__btn[data-pl="shuffle"], .mc-pl__btn[data-pl="repeat"] { color: var(--muted); font-size: 1.45rem; }
.mc-pl__btn.is-on { color: var(--cyan) !important; text-shadow: 0 0 10px rgba(0,217,255,.7); }
.mc-pl__desk { display: flex; align-items: center; gap: .8rem; }
.mc-pl__time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
#pl-vol { width: 100px; accent-color: var(--cyan); }

.mc-pl__sheet {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(900px 600px at 50% -10%, rgba(0,217,255,.14), transparent 60%), linear-gradient(180deg, #0b0f15, #07090c 70%);
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom));
  animation: mc-sheet-in .22s ease-out;
}
@keyframes mc-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mc-pl__sheet[hidden] { display: none; }
.mc-pl__sheet-top { display: flex; align-items: center; justify-content: space-between; padding: .5rem .8rem; }
.mc-pl__sheet-top .mc-pl__btn { font-size: 1.6rem; }
.mc-pl__from { font-size: .75rem; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.mc-pl__from a { display: block; color: var(--fg); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .95rem; text-decoration: none; }
.mc-pl__sheet-body { max-width: 520px; margin: 0 auto; padding: .5rem 1.4rem 0; }
.mc-pl__big { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 25px 60px rgba(0,0,0,.6), 0 0 40px rgba(0,217,255,.12); }
.mc-pl__meta h2 { margin: 1.3rem 0 .2rem; font-size: 1.6rem; line-height: 1.2; }
.mc-pl__meta p { margin: 0; }
.mc-pl__seek { margin-top: 1.1rem; }
#pl-seek { width: 100%; accent-color: var(--cyan); height: 28px; }
.mc-pl__times { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.mc-pl__big-ctrls { display: flex; align-items: center; justify-content: space-between; margin: .9rem 0 1.2rem; }
.mc-pl__btn--lg { width: 56px; height: 56px; font-size: 1.5rem; }
.mc-pl__btn--xl { width: 76px; height: 76px; font-size: 1.6rem; }
.mc-pl__links { text-align: center; }
.mc-pl__qh { font-size: 1rem; color: var(--muted); margin: 1.6rem 0 .5rem; }
.mc-pl__queue { list-style: none; margin: 0; padding: 0; }
.mc-pl__queue button { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .45rem; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.mc-pl__queue button:hover { background: rgba(255,255,255,.05); }
.mc-pl__queue img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.mc-pl__queue span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-pl__queue b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-pl__queue small, .mc-pl__queue em { color: var(--muted); font-size: .78rem; font-style: normal; }
.mc-pl__queue .is-current b { color: var(--cyan); }

/* Indicador de navegación */
body.mc-loading::after {
  content: ""; position: fixed; top: 0; left: 0; height: 2px; width: 40%; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta)); animation: mc-load 1s linear infinite;
}
@keyframes mc-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Página de disco ---------- */
.mc-album__head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.5rem; }
.mc-album__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.55), 0 0 30px rgba(0,217,255,.1); }
.mc-album__kind { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); }
.mc-album__title { margin: .2rem 0 .6rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05;
  background: linear-gradient(90deg, #eaf8ff 0%, #a6f0ff 30%, #ffd8ff 60%, #fffbe1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-album .mc-actions { margin-top: 1rem; }
.mc-btn-play { font-size: 1.05rem; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; }
.mc-album .btn { cursor: pointer; font: inherit; font-weight: 700; }
.mc-about { margin: 0 0 1.2rem; }
.mc-tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.06); }
.mc-track { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.mc-track__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .55rem .4rem; min-height: 64px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent;
}
.mc-track__main:hover { background: rgba(255,255,255,.04); }
.mc-track__n { width: 28px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.mc-track__eq { display: none; height: 14px; align-items: flex-end; gap: 2px; justify-content: center; }
.mc-track__eq i { width: 3px; background: var(--cyan); animation: mc-eq .9s ease-in-out infinite; }
.mc-track__eq i:nth-child(2) { animation-delay: .2s; }
.mc-track__eq i:nth-child(3) { animation-delay: .4s; }
@keyframes mc-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.mc-track.is-playing .mc-track__num { display: none; }
.mc-track.is-playing .mc-track__eq { display: inline-flex; }
body:not(.mc-playing) .mc-track.is-playing .mc-track__eq i { animation-play-state: paused; }
.mc-track.is-playing .mc-track__txt b { color: var(--cyan); }
.mc-track__art { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.mc-track__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mc-track__txt b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-track__txt small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-track__dur { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.mc-track__more { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; border-radius: 50%; opacity: .7; }
.mc-track__more:hover { opacity: 1; background: rgba(255,255,255,.06); }
.mc-track.is-yt .mc-track__txt small::after { content: " · YouTube"; }

/* ---------- Canción: portada grande con botón ---------- */
.mc-song .mc-art { position: relative; max-width: 460px; margin: 0 auto; }
.mc-song .mc-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 25px 60px rgba(0,0,0,.55); }
.mc-art__play {
  position: absolute; right: 16px; bottom: 16px; width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cyan); color: #001014; font-size: 1.7rem; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 24px rgba(0,217,255,.5);
}
.mc-art__play:active { transform: scale(.95); }
.mc-song .mc-watch__title { text-align: center; }
.mc-song .mc-actions { justify-content: center; }

/* Tarjetas de disco: botón de reproducir siempre visible en pantallas táctiles */
.album-card__overlay .album-card__action { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
@media (hover: none) {
  .album-card__overlay { opacity: 1; transform: none; inset: auto 10px 10px auto; }
  .album-card__overlay .album-card__action { border-radius: 999px; padding: 10px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
}

@media (max-width: 768px) {
  .mc-pl__desk, .mc-pl__btn--desk { display: none; }
  .mc-pl__bar { height: 64px; gap: .5rem; padding: 0 .6rem; }
  body.mc-has-player { padding-bottom: 72px; }
  .mc-album__head { grid-template-columns: 1fr; gap: 1rem; }
  .mc-album .mc-actions .btn { flex: 1 1 auto; text-align: center; }
  .mc-track__gen { display: none; }
  .mc-track__art { width: 46px; height: 46px; }
  .mc-track__main { gap: .7rem; padding: .5rem .2rem; }
}
