/* public/css/party-audio.css - Account-free room audio panel (radio, local files, YouTube) */
.pa-shell {
  background: linear-gradient(160deg, rgba(13, 18, 36, 0.98), rgba(7, 10, 20, 0.98));
  border: 1px solid rgba(0, 243, 255, 0.32);
  border-radius: 16px;
  padding: 12px;
  color: var(--text-primary, #e2e8f0);
  box-sizing: border-box;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(0, 243, 255, 0.025);
}
.pa-shell.compact { padding: 10px; }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pa-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pa-brand-icon { font-size: 1.6rem; filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4)); }
.pa-title { font-weight: 900; color: #fff; font-size: 1rem; letter-spacing: 0.2px; }
.pa-sub { color: #94a3b8; font-size: 0.72rem; font-weight: 600; }
.pa-pill { border-radius: 99px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.7px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.14); color: #cbd5e1; white-space: nowrap; }
.pa-pill.on { color: #052e1b; background: #2ed573; border-color: #2ed573; }
.pa-pill.off { background: rgba(255, 255, 255, 0.05); }
.pa-now { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 9px 0; border-radius: 12px; background: rgba(0, 243, 255, 0.055); border: 1px solid rgba(0, 243, 255, 0.16); min-width: 0; }
.pa-now-art { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(0, 0, 0, 0.35); flex-shrink: 0; }
.pa-now-meta { min-width: 0; }
.pa-now-name { font-weight: 900; color: #fff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-now-sub { color: #94a3b8; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 8px 0 9px; }
.pa-tab { border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.035); color: #cbd5e1; border-radius: 9px; padding: 7px 4px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pa-tab.active { color: #041018; background: var(--accent-cyan, #00f3ff); border-color: var(--accent-cyan, #00f3ff); }
.pa-body { min-width: 0; }
.pa-stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pa-station { display: flex; align-items: center; gap: 7px; text-align: left; padding: 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); color: #e2e8f0; cursor: pointer; min-width: 0; }
.pa-station:hover { border-color: rgba(0, 243, 255, 0.4); }
.pa-station.active { border-color: var(--accent-cyan, #00f3ff); background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 12px rgba(0, 243, 255, 0.12); }
.pa-station-icon { font-size: 1.2rem; flex-shrink: 0; }
.pa-station b { display: block; font-size: 0.76rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-station small { display: block; font-size: 0.62rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-controls { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.pa-controls.compact { margin-top: 6px; justify-content: center; }
.pa-btn { border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #e2e8f0; border-radius: 10px; padding: 8px 12px; font-size: 0.8rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.pa-btn:hover { border-color: rgba(0, 243, 255, 0.45); }
.pa-btn.primary { background: linear-gradient(135deg, #00f3ff, #00a8cc); color: #041018; border-color: #00f3ff; flex: 1; }
.pa-btn.icon { min-width: 42px; padding: 8px 10px; }
.pa-btn.tiny { padding: 5px 8px; font-size: 0.7rem; border-radius: 8px; }
.pa-progress { margin-top: 8px; }
.pa-seek { width: 100%; accent-color: var(--accent-cyan, #00f3ff); height: 18px; cursor: pointer; }
.pa-time { display: flex; justify-content: space-between; color: #64748b; font-size: 0.63rem; font-weight: 800; margin-top: -2px; }
.pa-live { margin-top: 7px; color: #ff6b81; font-size: 0.66rem; font-weight: 900; letter-spacing: 1px; text-align: center; }
.pa-volume { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #94a3b8; font-size: 0.8rem; }
.pa-volume input[type="range"] { flex: 1; accent-color: var(--accent-gold, #ffd700); min-width: 40px; }
.pa-vol-val { font-size: 0.66rem; color: #cbd5e1; font-weight: 800; width: 32px; text-align: right; }
.pa-empty { padding: 13px; border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 10px; color: #94a3b8; font-size: 0.78rem; line-height: 1.4; text-align: center; }
.pa-file { display: block; padding: 12px; border: 1px dashed rgba(0, 243, 255, 0.36); border-radius: 10px; color: var(--accent-cyan, #00f3ff); font-size: 0.8rem; font-weight: 800; text-align: center; cursor: pointer; background: rgba(0, 243, 255, 0.04); }
.pa-file input { display: none; }
.pa-tracks { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow-y: auto; margin-top: 7px; }
.pa-track { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #cbd5e1; border-radius: 8px; padding: 7px 8px; text-align: left; font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.pa-track span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-track.active { border-color: var(--accent-gold, #ffd700); color: #fff; background: rgba(255, 215, 0, 0.08); }
.pa-input { width: 100%; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.35); color: #fff; border-radius: 9px; padding: 9px 10px; font-size: 0.8rem; }
.pa-yt-form { display: flex; gap: 6px; align-items: stretch; }
.pa-yt-form .pa-btn { flex: 0 0 auto; }
.pa-yt-link { margin-top: 6px; font-size: 0.72rem; }
.pa-yt-link a { color: var(--accent-cyan, #00f3ff); }
.pa-yt-card { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 7px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); text-decoration: none; color: inherit; }
.pa-yt-card img { width: 82px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pa-yt-card b { display: block; font-size: 0.78rem; color: #fff; }
.pa-yt-card small { display: block; font-size: 0.65rem; color: #94a3b8; }
.pa-note { color: #64748b; font-size: 0.66rem; line-height: 1.35; margin-top: 7px; }
.pa-provider-note { color: #475569; font-size: 0.6rem; line-height: 1.35; margin-top: 4px; }
.pa-error { margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.35); color: #ffb3ba; font-size: 0.72rem; font-weight: 700; }
.pa-dock {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 9000;
  width: min(340px, calc(100vw - 20px));
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(7, 10, 20, 0.94);
  border: 1px solid rgba(0, 243, 255, 0.38);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}
.pa-dock-art { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 243, 255, 0.12); flex-shrink: 0; }
.pa-dock-meta { min-width: 0; flex: 1; }
.pa-dock-meta b { display: block; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-dock-meta small { display: block; font-size: 0.62rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-yt-wrap {
  position: fixed;
  left: 10px;
  bottom: 66px;
  z-index: 9200;
  width: 328px;
  max-width: calc(100vw - 20px);
  background: #070a14;
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.pa-yt-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; background: rgba(0, 243, 255, 0.08); color: #fff; font-size: 0.72rem; font-weight: 900; }
.pa-yt-head button { border: none; background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 6px; padding: 3px 7px; cursor: pointer; }
#paYtPlayer { width: 100%; aspect-ratio: 16 / 9; }
#paYtPlayer iframe { width: 100%; height: 100%; display: block; border: 0; }
.pa-shell.tv .pa-stations { grid-template-columns: 1fr; }
.pa-shell.tv .pa-title { font-size: 0.92rem; }
.pa-shell.tv .pa-now-name { font-size: 0.86rem; }
.pa-shell.tv .pa-note { font-size: 0.62rem; }

/* Compact TV sidebar strip (players and join QR need the space) */
.pa-shell.tv-room { padding: 7px 9px; }
.pa-tv-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pa-tv-line .pa-now-art { width: 30px; height: 30px; font-size: 1.05rem; }
.pa-tv-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.pa-tv-meta b { font-size: 0.8rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-tv-meta small { font-size: 0.62rem; font-weight: 700; color: #94a3b8; }
.pa-tv-line .pa-btn { padding: 4px 7px; font-size: 0.75rem; }

@media (max-width: 520px) {
  .pa-stations { grid-template-columns: 1fr; }
  .pa-shell { padding: 10px; }
  .pa-yt-form { flex-direction: column; }
  .pa-yt-form .pa-btn { width: 100%; }
  .pa-now { padding: 7px 8px; }
  .pa-now-art { width: 32px; height: 32px; font-size: 1.15rem; }
  .pa-title { font-size: 0.9rem; }
  .pa-btn { padding: 7px 9px; font-size: 0.74rem; }
  .pa-dock { bottom: 8px; left: 8px; width: calc(100vw - 16px); }
  .pa-yt-wrap { left: 8px; bottom: 60px; width: calc(100vw - 16px); }
}
