/* The mantel — the cast bar. It's the hearth's shelf: what's burning right now.
   Sits above the ambient glow; when live it warms up. */
.mantel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  min-height: var(--mantel-h);
  display: flex; align-items: center; gap: .8rem;
  padding: .5rem clamp(12px, 4vw, 24px) calc(.5rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(32,24,18,.92), rgba(20,15,11,.98));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow .6s var(--ease), border-color .6s;
}
.mantel[hidden] { display: none; }
.mantel.is-live {
  border-top-color: var(--ember-hot);
  box-shadow: 0 -1px 0 var(--ember-hot), 0 -14px 40px -12px var(--glow-hot);
}

.mantel__art {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 8px;
  background: var(--bg-card) center/cover; box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.mantel__mid { flex: 1; min-width: 0; }
.mantel__title {
  font-weight: 600; font-size: var(--step-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mantel__title .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .45rem;
  background: var(--ember-hot); box-shadow: 0 0 8px var(--ember-hot); vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.mantel__scrub { display: flex; align-items: center; gap: .55rem; margin-top: .25rem; }
.mantel__time { font-size: .7rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; min-width: 34px; }
.mantel__time:last-child { text-align: right; }
.mantel__range { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; background: var(--line); cursor: pointer; }
.mantel__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 3px rgba(240,161,90,.2); cursor: pointer;
}
.mantel__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ember); }
.mantel__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; }

.mantel__ctrls { display: flex; align-items: center; gap: .3rem; flex: 0 0 auto; }
.ic {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-dim); font-size: 1rem; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.ic:hover { background: var(--bg-hi); color: var(--ink); }
.ic--play {
  background: var(--ember); color: #241005; font-size: .82rem; font-weight: 700;
}
.ic--play:hover { background: var(--ember-soft); color: #241005; }

/* toast for cast feedback */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--mantel-h) + 18px); transform: translateX(-50%);
  z-index: 60; background: var(--bg-hi); border: 1px solid var(--line); color: var(--ink);
  padding: .6rem 1rem; border-radius: 999px; font-size: var(--step--1); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.is-err { border-color: var(--ember-hot); }
