/* Artist day calendar — beside sticky footer player */

.mifa-bottom-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1040;
  display: flex;
  flex-direction: row; /* RTL page: first child (calendar) sits on the right */
  direction: rtl;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.mifa-bottom-dock > * {
  pointer-events: auto;
}

.mifa-bottom-dock .mifa-footer-player {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: none;
}

.mifa-bottom-dock .mifa-footer-player.is-visible {
  display: block;
}

.mifa-artist-day {
  flex: 0 0 250px;
  max-width: min(250px, 34vw);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 153, 20, 0.22), transparent 55%),
    rgba(14, 14, 18, 0.94);
  border: 1px solid rgba(255, 153, 20, 0.35);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  direction: rtl;
  animation: mfp-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mifa-artist-day__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
}

.mifa-artist-day__close {
  margin-right: auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mifa-artist-day__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mifa-artist-day__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 153, 20, 0.95), rgba(255, 179, 71, 0.9));
  color: #1a1208;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.mifa-artist-day__badge svg {
  width: 12px;
  height: 12px;
}

.mifa-artist-day__date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.mifa-artist-day__viewport {
  position: relative;
  height: 72px;
  overflow: hidden;
  margin: 6px 0 8px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.mifa-artist-day__track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.mifa-artist-day__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.mifa-artist-day__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mifa-artist-day__card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 12px 8px;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 0;
}

.mifa-artist-day__card:hover .mifa-artist-day__name {
  color: #ffb347 !important;
}

.mifa-artist-day__card:hover .mifa-artist-day__link {
  background: rgba(255, 153, 20, 0.3);
  color: #fff !important;
}

.mifa-artist-day__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 153, 20, 0.35);
}

.mifa-artist-day__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
}

.mifa-artist-day__kind {
  display: block;
  color: #ffb347;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.mifa-artist-day__name {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mifa-artist-day__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 153, 20, 0.18);
  border: 1px solid rgba(255, 153, 20, 0.4);
  color: #ffb347 !important;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mifa-artist-day__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 0 8px;
}

.mifa-artist-day__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mifa-artist-day__dot.is-active {
  background: #ffb347;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.2);
}

.mifa-artist-day__dots:empty {
  display: none;
}

.mifa-artist-day__empty {
  padding: 10px 12px 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.mifa-artist-day--empty .mifa-artist-day__viewport {
  display: none;
}

/* Compact footer player when docked with calendar — desktop/tablet only.
   On mobile, footer-player.css 3-row layout must win (4-col here caused control overlap). */
@media (min-width: 768px) {
  .mifa-bottom-dock--with-day .mifa-footer-player__shell {
    padding: 8px 10px 10px;
    border-radius: 18px;
    gap: 8px 10px;
    grid-template-columns: auto minmax(72px, 120px) minmax(0, 1fr) auto;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__cover-wrap {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__title {
    font-size: 12.5px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__artist {
    font-size: 11px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__sc {
    height: 36px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__btn {
    width: 36px;
    height: 36px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__btn--play {
    width: 42px;
    height: 42px;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__label {
    margin: 0 4px 6px 0;
    padding: 4px 10px;
    font-size: 11px;
  }
}

body.has-mifa-footer-player {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

body.has-mifa-artist-day:not(.has-mifa-footer-player) {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991.98px) {
  .mifa-artist-day {
    flex-basis: 210px;
    max-width: min(210px, 38vw);
  }
}

@media (max-width: 767.98px) {
  .mifa-bottom-dock {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .mifa-bottom-dock .mifa-footer-player {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto;
    align-self: stretch;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    box-sizing: border-box;
  }

  .mifa-artist-day {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    overflow: hidden;
  }

  .mifa-artist-day__card {
    min-width: 0;
  }

  .mifa-artist-day__meta {
    min-width: 0;
    overflow: hidden;
  }

  .mifa-bottom-dock .mifa-footer-player__shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mifa-bottom-dock--with-day .mifa-footer-player__shell {
    border-radius: 0;
  }

  body.has-mifa-footer-player:not(.has-mifa-artist-day) {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mifa-artist-day:not(.has-mifa-footer-player) {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mifa-footer-player.has-mifa-artist-day {
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mifa-footer-player.mifa-queue-open {
    padding-bottom: calc(62vh + env(safe-area-inset-bottom, 0px));
  }
}

.mifa-artist-day[hidden] { display: none !important; }


/* Keep footer label above dock siblings and readable on mobile */
@media (max-width: 767.98px) {
  .mifa-bottom-dock--with-day .mifa-footer-player__label {
    float: none;
    display: inline-flex;
    margin: 0 12px 8px 12px;
    position: relative;
    z-index: 2;
    background: #ff9914 !important;
    color: #1a1208 !important;
    -webkit-text-fill-color: #1a1208 !important;
  }
}

/* Dual calendar line on today cards */
.mifa-artist-day__when {
  display: block;
  font-size: 11px;
  color: rgba(16, 43, 101, 0.65);
  margin-top: 2px;
  line-height: 1.35;
}
