/* ============================================
   Integrative Resets -- Floating Podcast Player
   Fixed-position badge (FAB) + slide-up panel
   ============================================ */

/* --- Floating Badge (Bottom-Left Horizontal Pill) --- */
.ir-podcast-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  height: 40px;
  padding: 0 1.25rem 0 0.85rem;
  border-radius: 28px;
  border: none;
  background: linear-gradient(135deg, var(--color-main), var(--color-darker));
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ir-podcast-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.ir-podcast-fab svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}

.ir-podcast-fab-text {
  font-family: var(--font-2, 'Lato', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.ir-podcast-fab.panel-open {
  transform: scale(0.95);
  opacity: 0.8;
}

/* --- Floating Panel --- */
.ir-podcast-panel {
  position: fixed;
  bottom: 4.5rem;
  left: 1.5rem;
  z-index: 899;
  width: 340px;
  background: var(--color-darker, #1D4026);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.ir-podcast-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ir-podcast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.3s;
}

.ir-podcast-close:hover { color: #ffffff; }

/* --- Panel Header --- */
.ir-podcast-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ir-podcast-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main, #5c9269), var(--color-darker, #1D4026));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ir-podcast-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.ir-podcast-info { flex: 1; }

.ir-podcast-label {
  font-family: var(--font-2, 'Lato', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-main, #5c9269);
  display: block;
  margin-bottom: 0.15rem;
}

.ir-podcast-title {
  font-family: var(--font-1, 'Philosopher', serif);
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
}

/* --- Panel Description --- */
.ir-podcast-desc {
  font-family: var(--font-2, 'Lato', sans-serif);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* --- Audio Controls --- */
.ir-podcast-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ir-podcast-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-main, #5c9269), var(--color-darker, #1D4026));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.ir-podcast-play:hover { opacity: 0.85; }

.ir-podcast-play svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  margin-left: 2px;
}

.ir-podcast-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ir-podcast-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ir-podcast-bar-fill {
  height: 100%;
  background: var(--color-main, #5c9269);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.ir-podcast-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-2, 'Lato', sans-serif);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .ir-podcast-fab {
    height: 36px;
    padding: 0 1rem 0 0.7rem;
    bottom: 1rem;
    left: 1rem;
  }

  .ir-podcast-fab svg { width: 18px; height: 18px; }
  .ir-podcast-fab-text { font-size: 10px; }

  .ir-podcast-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 4rem;
  }
}
