/* PR News Audio Player — player.css */
:root {
  --pr-color:   #c0392b;
  --pr-dark:    #9e2820;
  --pr-bg:      #ffffff;
  --pr-bg2:     #f5f6f7;
  --pr-border:  #e4e6ea;
  --pr-text:    #1a1a1a;
  --pr-muted:   #6b7280;
  --pr-radius:  12px;
  --pr-shadow:  0 4px 20px rgba(0,0,0,.10);
  --pr-trans:   .2s ease;
}

/* ── Inline Player ────────────────────────────────────────── */
.pr-player {
  position: relative;
  background: var(--pr-bg);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  box-shadow: var(--pr-shadow);
  overflow: hidden;
  margin: 0 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pr-player::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--pr-color), #e74c3c 60%, #ff7675);
}

.pr-player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  flex-wrap: wrap;
}

/* Brand */
.pr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pr-mic {
  width: 38px;
  height: 38px;
  background: var(--pr-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pr-label  { font-size: 13px; font-weight: 700; color: var(--pr-text); }
.pr-source { font-size: 11px; color: var(--pr-color); font-weight: 600; }

/* Controls */
.pr-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.pr-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pr-muted);
  padding: 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--pr-trans), background var(--pr-trans);
  line-height: 1;
}
.pr-btn:hover { color: var(--pr-color); background: rgba(192,57,43,.08); }

.pr-play-main {
  width: 42px;
  height: 42px;
  background: var(--pr-color) !important;
  color: #fff !important;
  border-radius: 50%;
}
.pr-play-main:hover { background: var(--pr-dark) !important; transform: scale(1.05); }
.pr-play-main.pr-loading .pr-icon-load {
  animation: pr-spin 1s linear infinite;
}
@keyframes pr-spin { to { transform: rotate(360deg); } }

.pr-speed {
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1px solid var(--pr-border) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  color: var(--pr-text) !important;
}

/* Progress */
.pr-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
  padding: 0 18px 12px;
}
.pr-time {
  font-size: 11px;
  color: var(--pr-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.pr-progress {
  flex: 1;
  height: 5px;
  background: var(--pr-border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}
.pr-progress-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--pr-color), #e74c3c);
  border-radius: 100px;
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}
.pr-progress-dot {
  position: absolute;
  top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px;
  background: var(--pr-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, left .1s linear;
}
.pr-progress:hover .pr-progress-dot { opacity: 1; }

/* Speed menu */
.pr-speed-menu {
  position: absolute;
  bottom: 100%;
  right: 12px;
  background: var(--pr-bg);
  border: 1px solid var(--pr-border);
  border-radius: 8px;
  box-shadow: var(--pr-shadow);
  padding: 5px;
  display: flex;
  gap: 3px;
  z-index: 100;
}
.pr-speed-menu button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pr-muted);
  transition: var(--pr-trans);
}
.pr-speed-menu button:hover,
.pr-speed-menu button.pr-active {
  background: var(--pr-color);
  color: #fff;
}

/* Wave */
.pr-wave {
  display: flex;
  align-items: flex-end;
  height: 24px;
  gap: 3px;
  padding: 0 18px 8px;
  opacity: 0;
  transition: opacity .3s;
}
.pr-player.pr-playing .pr-wave { opacity: 1; }
.pr-bar {
  flex: 1;
  background: linear-gradient(to top, var(--pr-color), rgba(192,57,43,.25));
  border-radius: 2px 2px 0 0;
  height: 5px;
}
.pr-player.pr-playing .pr-bar {
  animation: pr-wave .9s ease-in-out infinite alternate;
}
.pr-bar:nth-child(1)  { animation-delay: .00s; }
.pr-bar:nth-child(2)  { animation-delay: .07s; }
.pr-bar:nth-child(3)  { animation-delay: .14s; }
.pr-bar:nth-child(4)  { animation-delay: .21s; }
.pr-bar:nth-child(5)  { animation-delay: .05s; }
.pr-bar:nth-child(6)  { animation-delay: .28s; }
.pr-bar:nth-child(7)  { animation-delay: .10s; }
.pr-bar:nth-child(8)  { animation-delay: .18s; }
.pr-bar:nth-child(9)  { animation-delay: .03s; }
.pr-bar:nth-child(10) { animation-delay: .22s; }
.pr-bar:nth-child(11) { animation-delay: .11s; }
.pr-bar:nth-child(12) { animation-delay: .30s; }
.pr-bar:nth-child(13) { animation-delay: .06s; }
.pr-bar:nth-child(14) { animation-delay: .17s; }
.pr-bar:nth-child(15) { animation-delay: .25s; }
.pr-bar:nth-child(16) { animation-delay: .08s; }
@keyframes pr-wave {
  0%   { height: 3px; }
  100% { height: 22px; }
}

/* ── Persistent Mini Player (footer) ─────────────────────── */
#pr-mini {
  position: fixed;
  bottom: -90px;
  left: 0; right: 0;
  z-index: 99999;
  background: #111827;
  border-top: 3px solid var(--pr-color);
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: bottom .32s cubic-bezier(.4,0,.2,1);
}
#pr-mini.pr-mini-show { bottom: 0; }

.pr-mini-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* mini-player: mic icon */
.pr-mini-mic {
  width: 32px; height: 32px;
  background: var(--pr-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* mini-player: track info */
.pr-mini-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pr-mini-src   { font-size: 10px; color: var(--pr-color); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.pr-mini-title { font-size: 13px; font-weight: 600; color: #f9fafb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mini-player: controls */
.pr-mini-ctrl { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.pr-mini-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  padding: 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
  line-height: 1;
}
.pr-mini-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.pr-mini-playpause {
  width: 36px; height: 36px;
  background: var(--pr-color) !important;
  color: #fff !important;
  border-radius: 50%;
}
.pr-mini-playpause:hover { filter: brightness(1.15); }
.pr-mini-speed {
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 5px !important;
  padding: 3px 7px !important;
  color: rgba(255,255,255,.8) !important;
}

/* mini-player: progress */
.pr-mini-prog {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pr-mini-bar-bg {
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pr-mini-bar-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--pr-color), #e74c3c);
  border-radius: 100px;
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}
.pr-mini-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,.45);
}

/* mini: wave */
.pr-mini-wave {
  display: flex;
  align-items: flex-end;
  height: 18px;
  gap: 2px;
  flex-shrink: 0;
}
.pr-mini-bar {
  width: 3px;
  background: var(--pr-color);
  border-radius: 2px 2px 0 0;
  height: 4px;
}
#pr-mini.pr-mini-playing .pr-mini-bar {
  animation: pr-wave .9s ease-in-out infinite alternate;
}
.pr-mini-bar:nth-child(1) { animation-delay: .0s; }
.pr-mini-bar:nth-child(2) { animation-delay: .15s; }
.pr-mini-bar:nth-child(3) { animation-delay: .3s; }
.pr-mini-bar:nth-child(4) { animation-delay: .08s; }
.pr-mini-bar:nth-child(5) { animation-delay: .22s; }

/* mini: speed dropdown */
.pr-mini-speed-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 16px;
  background: #1f2937;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 5px;
  display: flex;
  gap: 3px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.pr-mini-speed-menu button {
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.6);
  transition: .15s;
}
.pr-mini-speed-menu button:hover,
.pr-mini-speed-menu button.pr-active {
  background: var(--pr-color);
  color: #fff;
}

/* ── AJAX nav loading bar ─────────────────────────────────── */
#pr-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 999999;
  display: none;
}
#pr-nav-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pr-color), #ff7675);
  transition: width .18s ease;
  border-radius: 0 2px 2px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .pr-brand          { display: none; }
  .pr-mini-info      { display: none; }
  .pr-mini-wave      { display: none; }
  .pr-progress-wrap  { padding: 0 12px 10px; }
  .pr-player-top     { padding: 10px 12px; gap: 8px; }
  .pr-mini-inner     { padding: 8px 12px; gap: 8px; }
}

/* ── Admin ───────────────────────────────────────────────── */
.prnews-wrap { max-width: 780px; }
.prnews-header {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 18px 0 22px;
}
.prnews-header h1 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.prnews-header p  { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }
.prnews-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.prnews-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 8px;
  display: inline-block;
}
.prnews-card-info { background: #f8fafc; }
.prnews-notice-green {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.prnews-save-btn {
  background: #c0392b !important;
  border-color: #9e2820 !important;
  padding: 7px 22px !important;
  height: auto !important;
}
.prnews-save-btn:hover { background: #9e2820 !important; }
.form-table th { font-weight: 600; color: #374151; }
