/* Global sticky mini-player (podcasts, songs, …). */
.kal-mini-player {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(820px, calc(100vw - 36px));
  background: rgba(20, 57, 69, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px 22px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(20, 57, 69, 0.32), 0 4px 12px rgba(20, 57, 69, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.kal-mini-player.on {
  opacity: 1;
  pointer-events: auto;
}
.kal-mini-player .mp-cv {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.kal-mini-player .mp-cv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kal-mini-player .mp-info { min-width: 0; }
.kal-mini-player .mp-t {
  font-family: var(--serif-fa, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kal-mini-player .mp-a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kal-mini-player .mp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kal-mini-player .mp-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}
.kal-mini-player .mp-controls button:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}
.kal-mini-player .mp-play {
  background: #fff !important;
  color: #143945 !important;
  width: 42px !important;
  height: 42px !important;
}
.kal-mini-player .mp-play:hover { background: #E1EEF3 !important; }
.kal-mini-player .mp-speed {
  width: auto !important;
  min-width: 38px;
  padding: 0 8px !important;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kal-mini-player .mp-prog {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}
.kal-mini-player .mp-prog .mp-tm {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}
.kal-mini-player .mp-prog .mp-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.kal-mini-player .mp-prog .mp-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
}

body.kal-mini-player-open { padding-bottom: 96px; }

@media (max-width: 720px) {
  .kal-mini-player {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: 12px;
    width: auto;
    padding: 10px 12px 18px;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }
  .kal-mini-player .mp-cv { width: 48px; height: 48px; }
  .kal-mini-player .mp-controls button { width: 34px; height: 34px; }
  .kal-mini-player .mp-play { width: 38px !important; height: 38px !important; }
  .kal-mini-player [data-mp="back"],
  .kal-mini-player [data-mp="fwd"],
  .kal-mini-player [data-mp="speed"] { display: none; }
}
