/* PROMAX5 UI FIXES v3.0
   Programación compacta AL AIRE + DESPUÉS, hover, blur y carátulas seguras. */

#section-mini-schedule {
  width: 100%;
  margin: 0;
}
#section-mini-schedule .section-content,
.player-mini-schedule {
  width: 100%;
}

.mini-schedule-container {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-schedule {
  position: relative;
  min-width: 0;
  min-height: 128px;
  overflow: hidden;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg-layout, #fff) 82%, transparent);
  box-shadow: var(--player-box-shadow-normal, 0 8px 24px rgba(0,0,0,.14));
  isolation: isolate;
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

/* Imagen del propio programa desenfocada detrás de la tarjeta. */
.mini-schedule-bg {
  position: absolute;
  z-index: 0;
  inset: -18px;
  background-image: var(--schedule-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
  opacity: .25;
  pointer-events: none;
}
.mini-schedule::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: color-mix(in srgb, var(--bg-layout, #fff) 76%, transparent);
  pointer-events: none;
}
.mini-schedule.is-current::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--current-primary, var(--primary)) 15%, var(--bg-layout, #fff)) 0%,
    color-mix(in srgb, var(--bg-layout, #fff) 80%, transparent) 100%);
}
.mini-schedule.is-next::after {
  background: color-mix(in srgb, var(--bg-layout, #fff) 76%, transparent);
}

/* Hover suave y elegante. */
.mini-schedule:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}
.mini-schedule:hover .mini-schedule-bg {
  opacity: .34;
}
.mini-schedule:hover .mini-schedule-art {
  transform: scale(1.06);
}

.mini-schedule-wrapper {
  min-height: 128px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-areas:
    "picture meta"
    "picture description";
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 1rem;
  row-gap: .28rem;
  padding: 1rem 1.1rem;
}

.mini-schedule-picture {
  grid-area: picture;
  width: 80px;
  height: 80px;
  border-radius: .65rem;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
  background: var(--bg-subtle, rgba(0,0,0,.08));
  align-self: center;
}
.mini-schedule-art {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform .3s ease;
}

/* Texto centrado verticalmente, no pegado arriba. */
.mini-schedule-meta {
  grid-area: meta;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  align-self: end;
}
.mini-schedule-description {
  grid-area: description;
  min-width: 0;
  align-self: start;
  color: var(--color-text, #555);
  font-size: .86rem;
  line-height: 1.35;
}

.status-minimal {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: #fff;
  background: var(--current-primary, var(--primary));
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}
.status-minimal.status-off {
  background: color-mix(in srgb, var(--color-title, #222) 12%, var(--bg-layout, #fff));
  color: var(--color-title, #222);
}
.player-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: promaxLive 1.6s infinite;
}
.status-minimal.status-off .player-live-indicator { display: none; }
@keyframes promaxLive {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.mini-schedule-title {
  min-width: 0;
  color: var(--color-title, #222);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
}
.mini-schedule-desc {
  opacity: .82;
  margin-top: 0;
}
.mini-schedule-time {
  margin-top: .14rem;
  opacity: .68;
  white-space: nowrap;
  font-size: .82rem;
}

.mini-schedule .schedule-progress.mini-progress {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  height: 4px;
  width: 100%;
  background: color-mix(in srgb, var(--current-primary, var(--primary)) 18%, transparent);
  overflow: hidden;
}
.mini-schedule .schedule-progress.mini-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--song-progress, 0%);
  background: var(--current-primary, var(--primary));
}

/* Nunca permitir carátulas gigantes en el reproductor. */
.player-picture,
.player-picture-wrapper {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}
.player-picture-wrapper img {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  object-fit: cover !important;
  border-radius: .5rem;
}

/* Menú lateral compacto. */
#aside-menu .nav-item { width: auto; }
#aside-menu .nav-link { min-height: 40px; }
#aside-menu .nav-link.is-here {
  color: #fff;
  background: var(--current-primary, var(--primary));
}

@media (max-width: 767px) {
  .mini-schedule-container { grid-template-columns: 1fr; }
  .mini-schedule,
  .mini-schedule-wrapper { min-height: 112px; }
  .mini-schedule-wrapper {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: .85rem;
    column-gap: .8rem;
  }
  .mini-schedule-picture { width: 68px; height: 68px; }
  .mini-schedule-title { font-size: .93rem; }
  .mini-schedule-description { font-size: .78rem; }
}

@media (max-width: 420px) {
  .mini-schedule-wrapper {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "picture meta"
      "picture description";
  }
  .mini-schedule-picture { width: 60px; height: 60px; }
  .mini-schedule-meta { flex-wrap: wrap; align-self: end; }
  .mini-schedule-desc { display: none; }
}

/* PROMAX5 UI FIXES v3.1
   Programación semanal visible y menú lateral en una sola línea. */

/* La programación semanal usa el diseño de tarjetas original.
   No forzamos display en .tab-content porque eso rompe el sistema de pestañas. */
#section-schedule .schedule-wrapper.tab-wrapper,
#last-schedule .schedule-wrapper.tab-wrapper {
  width: 100%;
}

#section-schedule .tab-content.card-schedule,
#last-schedule .tab-content.card-schedule {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

#section-schedule .schedule-item.card-item,
#last-schedule .schedule-item.card-item {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--bg-layout, #fff);
  box-shadow: var(--player-box-shadow-normal, 0 8px 24px rgba(0,0,0,.12));
  transition: transform .25s ease, box-shadow .25s ease;
}

#section-schedule .schedule-item.card-item:hover,
#last-schedule .schedule-item.card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

#section-schedule .schedule-wrapper.card-wrapper,
#last-schedule .schedule-wrapper.card-wrapper {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

#section-schedule .schedule-picture.card-picture,
#last-schedule .schedule-picture.card-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

#section-schedule .schedule-art.card-art,
#last-schedule .schedule-art.card-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

#section-schedule .schedule-meta.card-meta,
#last-schedule .schedule-meta.card-meta {
  z-index: 2;
}

/* Menú: icono + texto siempre en una sola línea. */
#aside-menu .nav-item {
  width: 100%;
}
#aside-menu .nav-link {
  width: 100%;
  min-height: 40px;
  padding: .62rem 1.35rem;
  gap: .7rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-size: .95rem;
  line-height: 1.15;
}
#aside-menu .nav-link svg {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

@media (max-width: 420px) {
  #aside-menu .nav-link {
    padding-inline: 1.1rem;
    font-size: .92rem;
  }
}

