/* Disciples Core audio player – modern card in the site's burgundy + gold. */
.dcp {
  --dcp-bg1: #3a161a;
  --dcp-bg2: #22090c;
  --dcp-gold: #e2bd63;
  --dcp-gold-2: #f3d58a;
  --dcp-text: #fff;
  --dcp-muted: rgba(255, 255, 255, 0.68);
  --dcp-track: rgba(255, 255, 255, 0.16);
  --dcp-buffer: rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "play main tools";
  align-items: center;
  gap: 6px 16px;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(226, 189, 99, 0.25);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--dcp-bg1), var(--dcp-bg2));
  color: var(--dcp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 10px 26px rgba(58, 22, 26, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.dcp *,
.dcp *::before,
.dcp *::after {
  box-sizing: border-box;
}

.dcp audio {
  display: none;
}

.dcp button,
.dcp a.dcp-dl {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Play / pause */
.dcp-play {
  grid-area: play;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--dcp-gold-2), var(--dcp-gold));
  color: #2a0f13;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(226, 189, 99, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dcp-play:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(226, 189, 99, 0.5);
}

.dcp-play:active {
  transform: scale(0.96);
}

.dcp-play svg {
  width: 24px;
  height: 24px;
}

.dcp-play .dcp-i-pause,
.dcp.is-playing .dcp-play .dcp-i-play {
  display: none;
}

.dcp.is-playing .dcp-play .dcp-i-pause {
  display: block;
}

.dcp.is-loading .dcp-play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: var(--dcp-gold);
  border-radius: 50%;
  animation: dcp-spin 0.8s linear infinite;
}

/* Title + progress */
.dcp-main {
  grid-area: main;
  min-width: 0;
}

.dcp-title {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--dcp-text);
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dcp-title small {
  color: var(--dcp-muted);
  font-weight: 400;
}

.dcp-bar {
  position: relative;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}

.dcp-bar::before,
.dcp-buf,
.dcp-fill {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  margin-top: -3px;
  border-radius: 6px;
}

.dcp-bar::before {
  right: 0;
  background: var(--dcp-track);
}

.dcp-buf {
  width: 0;
  background: var(--dcp-buffer);
}

.dcp-fill {
  width: 0;
  background: linear-gradient(90deg, var(--dcp-gold), var(--dcp-gold-2));
}

.dcp-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.dcp-bar:hover .dcp-thumb,
.dcp-bar:focus-visible .dcp-thumb,
.dcp.is-dragging .dcp-thumb,
.dcp.is-playing .dcp-thumb {
  transform: scale(1);
}

.dcp-bar:focus-visible {
  outline: 2px solid var(--dcp-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.dcp-times {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--dcp-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Tools */
.dcp-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dcp-btn,
.dcp a.dcp-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--dcp-text) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dcp-btn:hover,
.dcp a.dcp-dl:hover {
  border-color: var(--dcp-gold);
  background: rgba(226, 189, 99, 0.14);
  color: var(--dcp-gold-2) !important;
}

.dcp-btn:focus-visible,
.dcp a.dcp-dl:focus-visible,
.dcp-play:focus-visible {
  outline: 2px solid var(--dcp-gold);
  outline-offset: 2px;
}

.dcp-btn svg,
.dcp a.dcp-dl svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dcp-speed {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

.dcp a.dcp-dl {
  border-color: rgba(226, 189, 99, 0.5);
  color: var(--dcp-gold-2) !important;
}

.dcp-resume {
  display: none;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dcp-gold-2);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.dcp.has-resume .dcp-resume {
  display: inline-block;
}

/* Phones: play + progress on one row, tools underneath. */
@media (max-width: 640px) {
  .dcp {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "play main" "tools tools";
    gap: 10px 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .dcp-play {
    width: 50px;
    height: 50px;
  }

  .dcp-tools {
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dcp-tools .dcp-btn,
  .dcp-tools a.dcp-dl {
    flex: 1 1 0;
  }
}

@media (max-width: 380px) {
  .dcp-dl span {
    display: none;
  }
}

@keyframes dcp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcp-play,
  .dcp-thumb {
    transition: none;
  }

  .dcp.is-loading .dcp-play::after {
    animation: none;
  }
}

@media print {
  .dcp {
    display: none !important;
  }
}
