/* pa-subs.css — subtitle display, CC gear, and settings panel */

/* Custom subtitle display (replaces native cue rendering) */
.pa-subs-display {
  position: absolute;
  left: 0; right: 0;
  bottom: 8%;
  display: none;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  pointer-events: none;
  z-index: 6;
  padding: 0 6%;
  line-height: 1.3;
  font-weight: 700;
}
.pa-subs-display .pa-subs-text {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  white-space: pre-wrap;
  max-width: 100%;
}

/* CC settings gear button (on the player) */
.pa-cc-gear {
  position: absolute;
  right: 12px;
  bottom: 66px;
  z-index: 7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #d8eeff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(18,184,255,0.35);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pa-cc-gear:hover {
  background: rgba(18,184,255,0.2);
  border-color: #12b8ff;
}

/* Settings panel */
.pa-subs-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 300px;
  max-width: calc(100vw - 36px);
  background: rgba(10,14,22,0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(18,184,255,0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 14px 16px;
  z-index: 9999;
  color: #dce8f5;
  font-size: 13px;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}
.pa-subs-panel.open { display: block; }
.pa-subs-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(18,184,255,0.2);
}
.pa-subs-close {
  background: none; border: 0; color: #9fb8cc;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.pa-subs-close:hover { color: #fff; }
.pa-subs-row { margin-bottom: 12px; }
.pa-subs-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9fb8cc;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pa-subs-row input[type="range"] { width: 100%; accent-color: #12b8ff; }
.pa-subs-row select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(18,184,255,0.25);
  border-radius: 6px;
  color: #dce8f5;
  padding: 6px 8px;
  font-size: 13px;
}
.pa-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-swatch {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
}
.pa-swatch.sel { border-color: #12b8ff; box-shadow: 0 0 8px rgba(18,184,255,0.7); }
.pa-subs-reset {
  width: 100%;
  margin-top: 4px;
  background: rgba(18,184,255,0.12);
  border: 1px solid rgba(18,184,255,0.3);
  border-radius: 7px;
  color: #cfe9ff;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}
.pa-subs-reset:hover { background: rgba(18,184,255,0.22); }
