/* Monstruo City v2 — complementos a styles.css (misma paleta). La intro no usa nada de aquí. */

/* ---------- Base y anti-desborde ---------- */
body { overflow-x: clip; }
.site-main.container > * { min-width: 0; }
.mc-desc, .mc-vcard, .mc-feature, .album-card, .mc-watch { overflow-wrap: anywhere; }
img { max-width: 100%; }

/* ---------- Títulos ---------- */
.mc-h {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; margin: 0 0 1.1rem; letter-spacing: .01em;
  position: relative; padding-bottom: .45rem;
}
.mc-h::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 12px rgba(0,217,255,.45);
}
.mc-section { margin-top: 3.2rem; }
.mc-page { padding-top: .5rem; }

/* ---------- Pills / chips ---------- */
.mc-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5;
  color: var(--cyan); background: rgba(0,217,255,.09); border: 1px solid rgba(0,217,255,.28); white-space: nowrap;
}
.mc-pill--lg { font-size: .85rem; vertical-align: middle; }
.mc-saved { color: #3ddc97; font-size: .78rem; white-space: nowrap; }
.mc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.mc-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: 5px 12px; border-radius: 999px; font-size: .88rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--fg);
}
.mc-chip--link { text-decoration: none; border-color: rgba(0,217,255,.35); color: var(--cyan); }
.mc-chip--link:hover { background: rgba(0,217,255,.12); }

/* ---------- Tarjeta de video (cuadrícula) ---------- */
.mc-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem 1.1rem; }
.mc-vcard {
  min-width: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mc-vcard:hover { transform: translateY(-3px); border-color: rgba(0,217,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 18px rgba(0,217,255,.12); }
.mc-vcard[hidden] { display: none; }
.mc-vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.mc-vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mc-vcard:hover .mc-vcard__thumb img { transform: scale(1.04); }
.mc-vcard__play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .2s; border: 1px solid rgba(255,255,255,.3);
}
.mc-vcard:hover .mc-vcard__play { opacity: 1; }
.mc-dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: .75rem;
  padding: 1px 7px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.mc-vcard__body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.mc-vcard__title { margin: 0; font-size: 1.08rem; line-height: 1.3; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-vcard__title a { color: var(--fg); text-decoration: none; }
.mc-vcard__title a:hover { color: var(--cyan); }
.mc-vcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .82rem; color: var(--muted); }
.mc-vcard__genre { margin: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-vcard__desc { display: none; margin: 0; font-size: .9rem; line-height: 1.5; color: #c3c7cc;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Vista lista ---------- */
.mc-videos--list { grid-template-columns: 1fr; gap: .7rem; }
.mc-videos--list .mc-vcard { flex-direction: row; align-items: stretch; }
.mc-videos--list .mc-vcard:hover { transform: translateX(3px); }
.mc-videos--list .mc-vcard__thumb { flex: 0 0 220px; aspect-ratio: 16 / 9; }
.mc-videos--list .mc-vcard__body { padding: .7rem 1rem; justify-content: center; }
.mc-videos--list .mc-vcard__desc { display: -webkit-box; }
.mc-videos--compact .mc-vcard__thumb { flex-basis: 140px; }
.mc-videos--compact .mc-vcard__desc, .mc-videos--compact .mc-vcard__genre { display: none; }
.mc-videos--compact .mc-vcard__title { font-size: .95rem; }

/* ---------- Barra de filtros ---------- */
.mc-toolbar {
  position: sticky; top: 64px; z-index: 5; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(10,12,16,.88); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: .7rem;
}
.mc-toolbar[hidden] { display: none; }
.mc-search, .mc-select {
  font: inherit; color: var(--fg); background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  padding: .55rem .8rem; min-height: 40px;
}
.mc-search { width: 100%; }
.mc-search:focus, .mc-select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,217,255,.15); }
.mc-select { max-width: 100%; }
.mc-chipbar { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.mc-fchip {
  flex: 0 0 auto; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: .4rem .9rem; border-radius: 999px;
  color: var(--fg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.mc-fchip:hover { border-color: rgba(0,217,255,.5); }
.mc-fchip.is-on { color: #001014; background: var(--cyan); border-color: var(--cyan); }
.mc-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.mc-count { color: var(--muted); font-size: .88rem; margin-left: auto; }
.mc-viewswitch { display: inline-flex; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; }
.mc-vbtn { font: inherit; font-size: 1.05rem; cursor: pointer; width: 42px; height: 38px; color: var(--muted); background: transparent; border: 0; }
.mc-vbtn + .mc-vbtn { border-left: 1px solid rgba(255,255,255,.14); }
.mc-vbtn.is-on { color: #001014; background: var(--cyan); }
.mc-empty { color: var(--muted); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Home ---------- */
.mc-feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.mc-feature__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 .5rem; line-height: 1.2; }
.mc-feature__title a { color: var(--fg); text-decoration: none; }
.mc-feature__title a:hover { color: var(--cyan); }
.mc-feature__desc { color: #c3c7cc; font-size: .98rem; line-height: 1.65; margin: .8rem 0 1rem; }
.mc-player { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.5); }
.mc-player video.video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 75vh; background: #000; }
.embed.mc-yt { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.embed.mc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tarjetas de disco */
.mc-acard .album-card__cover, .mc-acard .album-card__cover img { width: 100%; }
.mc-acard .album-card__cover img { aspect-ratio: 1; object-fit: cover; display: block; }
.mc-acard .album-card__title { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.mc-acard .album-card__title a { color: var(--fg); text-decoration: none; }
.mc-acard .album-card__title a:hover { color: var(--cyan); }
.mc-clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.5; margin: .6rem 0 0; }

/* ---------- Página de video / canción ---------- */
.mc-watchpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.mc-watch { min-width: 0; }
.mc-watch__title { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: 1.1rem 0 .8rem; }
.mc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .5rem; }
.mc-desc { font-size: 1.02rem; line-height: 1.75; color: #d6d9dd; max-width: 72ch; }
.mc-desc p { margin: 0 0 1rem; }
.mc-desc hr { border: 0; height: 1px; margin: 1.4rem 0; background: linear-gradient(90deg, rgba(0,217,255,.5), rgba(255,45,245,.3), transparent); }
.mc-lyrics { margin: 1.5rem 0; max-width: 72ch; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); }
.mc-lyrics summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; font-size: 1.05rem; list-style: none; }
.mc-lyrics summary::-webkit-details-marker { display: none; }
.mc-lyrics summary::before { content: "▶"; display: inline-block; margin-right: .6rem; color: var(--cyan); transition: transform .2s; font-size: .8em; }
.mc-lyrics[open] summary::before { transform: rotate(90deg); }
.mc-lyrics__text { padding: 0 1.1rem 1rem; font-size: 1rem; line-height: 1.8; }
.mc-lyrics__text p { margin: 0 0 1.2rem; }
.mc-ly-tag { color: var(--muted); font-size: .85em; font-style: italic; }
.mc-side { min-width: 0; position: sticky; top: 80px; }
.mc-side__h { font-size: 1rem; margin: 0 0 .7rem; color: var(--muted); font-weight: 600; }
.mc-side__h a { color: var(--cyan); text-decoration: none; }
.mc-side .mc-videos { margin-bottom: 1.5rem; }
.mc-upnext { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: .35rem;
  max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.mc-upnext a { display: flex; gap: .7rem; align-items: center; padding: .35rem; border-radius: 8px; color: var(--fg); text-decoration: none; }
.mc-upnext a:hover { background: rgba(255,255,255,.05); }
.mc-upnext img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.mc-upnext__t { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; line-height: 1.3; min-width: 0; }
.mc-upnext__t small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.mc-upnext li.is-current a { background: rgba(0,217,255,.1); box-shadow: inset 3px 0 0 var(--cyan); }
.mc-song { max-width: 860px; margin: 0 auto; }
.mc-song .mc-player { max-width: 520px; margin: 0 auto; background: transparent; box-shadow: none; }
.mc-song .mc-art { margin: 0 0 .8rem; }
.mc-song .mc-art img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.mc-song audio { width: 100%; }

/* ---------- Página de disco ---------- */
.mc-disco .album-sidebar { padding: 1rem 1.25rem 1rem 0; }
.mc-disco .playlist-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
#dp-list .track.active .track__title { color: var(--cyan); }
#dp-list .track__title { font-size: 1rem; font-weight: 600; }
.mc-st { display: inline-block; margin-left: .5rem; font-size: .68rem; font-weight: 700; padding: 0 6px; border-radius: 4px;
  color: var(--muted); border: 1px solid rgba(255,255,255,.18); vertical-align: middle; }
.mc-st--ok { color: #3ddc97; border-color: rgba(61,220,151,.45); }
.mc-disco .tracklist__cell--desc { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mc-watchpage { grid-template-columns: 1fr; }
  .mc-side { position: static; }
  .mc-upnext { max-height: none; }
}
@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-bar { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .logo { font-size: 1.35rem; }
  .lang-switch .btn { padding: 6px 10px; min-height: 36px; }
  .hero h2 { font-size: 1.7rem; }
  .mc-feature { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .mc-videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .mc-toolbar { top: 56px; padding: .7rem; }
  .mc-count { margin-left: 0; }
  .mc-videos--list .mc-vcard__thumb { flex-basis: 130px; }
  .mc-videos--list .mc-vcard__body { padding: .5rem .7rem; gap: .2rem; }
  .mc-videos--list .mc-vcard__desc, .mc-videos--list .mc-vcard__genre { display: none; }
  .mc-videos--list .mc-vcard__title { font-size: .98rem; }
  .mc-upnext img { width: 96px; }
}
.mc-credits { max-width: 72ch; color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.mc-credits p { margin: .3rem 0; }
.mc-hashtags span { color: var(--violet); margin-right: .3rem; }

/* Páginas legales */
.mc-legal { max-width: 760px; margin: 0 auto; line-height: 1.75; }
.mc-legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2rem; }
.mc-legal h2 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }
.mc-legal a { color: var(--cyan); }
.mc-legal li { margin-bottom: .4rem; }

.mc-ytalt { margin: .4rem 0 0; font-size: .85rem; }
.mc-ytalt .btn--link { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.mc-ytalt .btn--link:hover { color: var(--cyan); }
