/* Prep2College Modern Responsive Audio Player */
.p2c-audio-player {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  color: #1e293b;
}

.p2c-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.p2c-player-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p2c-player-title .audio-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #bfdbfe;
}

.p2c-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p2c-play-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.p2c-play-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

.p2c-play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.p2c-progress-wrap {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p2c-time-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.p2c-time-buffer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #cbd5e1;
  width: 0%;
  transition: width 0.2s ease;
}

.p2c-time-current {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #2563eb;
  width: 0%;
}

.p2c-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.p2c-player-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.p2c-speed-select {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.p2c-transcript-toggle {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.p2c-toggle-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p2c-toggle-btn:hover {
  text-decoration: underline;
}

.p2c-transcript-content {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
  border-left: 3px solid #3b82f6;
  display: none;
}

.p2c-transcript-content.show {
  display: block;
}
