/* ===== Overlay ===== */
.mcp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 100000; /* por encima del admin bar */
}
.mcp-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Ajuste cuando admin bar está activo */
.admin-bar .mcp-overlay {
  top: 46px;
  height: calc(100% - 46px);
}
@media (min-width: 783px) {
  .admin-bar .mcp-overlay {
    top: 32px;
    height: calc(100% - 32px);
  }
}


.mcp-accordion-toggle button:hover{
  background:white!important;
}
/* ===== Offcanvas ===== */
.mcp-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  box-shadow: 3px 0 12px rgba(0,0,0,.2);
  z-index: 100001; /* por encima del overlay */
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s ease;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px;
}
.mcp-offcanvas.active {
  transform: translateX(0);
}

/* Ajuste altura con admin bar */
.admin-bar .mcp-offcanvas {
  top: 46px;
  height: calc(100% - 46px);
}
@media (min-width: 783px) {
  .admin-bar .mcp-offcanvas {
    top: 32px;
    height: calc(100% - 32px);
  }
}

/* Evitar scroll body cuando está abierto */
.no-scroll {
  overflow: hidden;
}

/* ===== Cabecera del offcanvas ===== */
.mcp-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mcp-offcanvas__brand img {
  max-height: 40px;
  height: auto;
}
.mcp-close-btn {
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

/* ===== Buscador dentro del offcanvas ===== */
.mcp-offcanvas__search form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mcp-offcanvas__search input[type="text"],
.mcp-offcanvas__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.mcp-offcanvas__search button[type="submit"] {
  flex: 0 0 auto;
}
.mcp-offcanvas__search .mcp-song-search {
  width: 100%;
}
.mcp-offcanvas__search .mcp-autocomplete-results {
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100002 !important;
}

/* ===== Lista del menú móvil ===== */
.mcp-offcanvas-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
/*
.mcp-offcanvas-item {
  border-bottom: 1px solid #eee;
}
  */
.mcp-offcanvas-link {
  display: block;
  padding: 12px 4px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.mcp-offcanvas-link:hover {
  background: #f7f7f7;
}

/* ===== Menú Desktop (Nav2) ===== */
.mcp-home-menu {
  display: flex;
  justify-content: left;
}
.mcp-home-menu__list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mcp-home-menu__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;

  transition: background .2s;
}
.mcp-home-menu__link:hover {
  background: #f7f7f7;
}





/* Cabecera del offcanvas con usuario a la izquierda y botón X a la derecha */
.mcp-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 15px;
}

.mcp-offcanvas__username {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcp-close-btn {
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}



/* Cabecera del offcanvas: user a la izquierda, X a la derecha */
.mcp-offcanvas__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}

/* Enlace del usuario (o "Iniciar sesión") */
.mcp-offcanvas__userlink{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; color:#111; font-weight:600;
  max-width: 75vw; /* evita desbordes en móviles muy angostos */
}
.mcp-offcanvas__avatar{
  width:24px; height:24px; border-radius:50%;
}
.mcp-offcanvas__name{
  display:inline-block;
  max-width: calc(75vw - 40px); /* avatar + gap + algo de margen */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Botón de cerrar */
.mcp-close-btn{
  background:none; border:0; font-size:22px; cursor:pointer; line-height:1;
}

/* Opcional: línea divisoria bajo la cabecera para separar del buscador */
.mcp-offcanvas__head{ border-bottom:1px solid #eee; padding-bottom:10px; }





