/* Audora Player – consolidated styles (modal + embeds) */

/* Modal (custom, not Bootstrap) */
.os-player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1050;
}
.os-player-modal.open { display: flex; }
.os-player-modal .modal-content {
  width: min(720px, 92vw);
  max-height: 88vh;
  background: #0e2330;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden;
}
.os-player-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
}
.os-player-modal .modal-title { font-weight: 700; }
.os-player-modal .modal-close {
  appearance: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.os-player-modal .modal-body { padding: 14px; }
.os-player-modal .modal-body p { margin: 0 0 12px 0; line-height: 1.45; }
.os-player-modal .modal-body .warn { font-weight: 700; color: #ffd06e; }

.os-player-modal .iframe-wrap { width: 100%; height: min(70vh, 80dvh); background: #001018; }
.os-player-modal .iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Embedded circular audio player (shared) */
.os-player-embed { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0 24px; }
.os-player-embed .center-stack { display:flex; flex-direction:column; align-items:center; gap:14px; }
.os-player-embed .play-wrap { position:relative; width: clamp(180px, 40vw, 240px); height: clamp(180px, 40vw, 240px); display:grid; place-items:center; }
.os-player-embed .ring-svg { position:absolute; inset:0; pointer-events: none; }
.os-player-embed .ring-track { stroke: rgba(255, 255, 255, 0.25); }
.os-player-embed .ring-progress { stroke: #ffffff; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.os-player-embed .play-toggle { width:68%; height:68%; border-radius:50%; display:grid; place-items:center; background: rgba(255,255,255,0.12); color:#fff; border:2px solid rgba(255,255,255,0.35); cursor:pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease; z-index:1; }
.os-player-embed .play-toggle:hover { transform: scale(1.02); background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.os-player-embed .icon { width:40%; height:40%; display:block; }
.os-player-embed .btn { border-radius: 999px; padding: 10px 16px; font-weight:600; }
.os-player-embed .btn-rate { background: rgba(255,255,255,0.85); color: #0b2b2f; }
.os-player-embed .btn-hint { background: rgba(255,255,255,0.92); color: #0b2b2f; }

/* AudoraPlay header hero */
.audora-hero h2, .audora-hero p { color: #fff; }
.audora-hero-input { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.audora-hero-input::placeholder { color: rgba(255,255,255,0.85); }
.audora-hero { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 20px; }
@media (max-width: 767.98px) { .audora-hero { min-height: 54vh; padding: 12px 0 16px; } }
.audora-hero .play-wrap { position: relative; width: clamp(180px, 40vw, 220px); height: clamp(180px, 40vw, 220px); display: grid; place-items: center; }
.audora-hero .ring-svg { position: absolute; inset: 0; pointer-events: none; }
.audora-hero .ring-track { stroke: rgba(255, 255, 255, 0.25); }
.audora-hero .ring-progress { stroke: #ffffff; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.audora-hero .play-toggle { width: 68%; height: 68%; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.35); cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease; }
.audora-hero .play-toggle:hover { transform: scale(1.02); background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.audora-hero .icon { width: 40%; height: 40%; display: block; }

/* Header player positioning (woche1.html) */
.header-player { display:flex; justify-content:center; margin-top: 40px; }
@media (min-width: 768px) { .header-player { margin-top: 80px; } }
.header-player-title { color: #fff; margin: 0 0 12px 0; font-weight: 700; }

/* Larger, responsive rating modal iframe inside Bootstrap modal */
#rateModal .modal-dialog { max-width: 100%; }
@media (min-width: 576px) {
  #rateModal .modal-dialog { max-width: 500px; }
}
@media (min-width: 992px) {
  #rateModal .modal-dialog { max-width: 800px; }
}
#rateModal .modal-body { padding: 0; }
#rateModal .iframe-wrap { width: 100%; height: 80vh; background: #fff; }
#rateModal .iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575.98px) {
  #rateModal .iframe-wrap { height: 70vh; }
}

/* Index Hörprobe color tweaks */
#sample-player .play-toggle { background: var(--cyan); border-color: var(--cyan); }
#sample-player .play-toggle:hover { filter: brightness(0.96); }
#sample-player .ring-svg { color: var(--cyan); }
#sample-player .ring-progress { stroke: currentColor; }
#sample-player .ring-track { stroke: currentColor; opacity: .28; }

/* Icons initial hidden pause icon */
#iconPause { display: none; }
