/* Download button overlay for ThisVid player */
.ph-download-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10020;
  background: var(--brand-accent);
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.ph-download-button:hover { background: var(--brand-accent-hover); }
.ph-download-button:active { transform: translateY(1px); }
.ph-dl-icon { font-size: 14px; line-height: 1; }
.ph-dl-text { line-height: 1; }

/* Popover */
.ph-quality-popover {
  position: absolute;
  min-width: 170px;
  max-width: 240px;
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  overflow: hidden;
}
.ph-popover-header {
  font-weight: 600;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-dark);
}
.ph-popover-content { padding: 6px; }
.ph-popover-loading, .ph-popover-error { font-size: 12px; color: var(--text-subtle); padding: 8px; }
.ph-popover-list { display: flex; flex-direction: column; gap: 4px; }
.ph-popover-item {
  appearance: none;
  border: none;
  background: var(--bg-darker);
  color: var(--text-primary);
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.ph-popover-item:hover { background: var(--border-dark); }
.ph-popover-q { font-weight: 600; }
.ph-popover-type { font-size: 11px; opacity: 0.85; color: var(--text-muted); }
