.p3-sound {
  --audio-ink: #101d4c;
  --audio-mint: #a1faee;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex: none;
  color: white;
  border: 1px solid #92afce;
  border-radius: 2px;
  isolation: isolate;
  font: 700 12px/1.2 Manrope, 'Microsoft YaHei', sans-serif;
}
.p3-sound[hidden], .p3-sound audio { display: none; }
.p3-sound button, .p3-sound summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 33px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.p3-play i { display: block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid var(--audio-mint); }
.p3-sound[data-sound-state="playing"] .p3-play i { width: 8px; height: 10px; border: 0; border-inline: 3px solid var(--audio-mint); }
.p3-sound[data-sound-state="muted"] .p3-play i { width: 10px; height: 10px; border: 1px solid #aec6d4; border-radius: 50%; background: linear-gradient(135deg, transparent 42%, #aec6d4 45% 55%, transparent 58%); }
.p3-sound .p3-mixer summary { min-width: 26px; padding-inline: 5px; border-left: 1px solid #7893b2; list-style: none; }
.p3-mixer summary::-webkit-details-marker { display: none; }
.p3-mixer summary span { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.p3-mixer[open] summary span { transform: translateY(2px) rotate(225deg); }
.p3-sound .p3-play:hover, .p3-sound summary:hover, .p3-mixer[open] summary { background: #27446a; }
.p3-sound :focus-visible { outline: 3px solid #ffc75e; outline-offset: 2px; }
.p3-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: -1px;
  width: 292px;
  max-width: calc(100vw - 22px);
  max-height: calc(100dvh - 84px);
  overflow: auto;
  padding: 16px;
  background: var(--audio-ink);
  color: #fff;
  border: 1px solid #89c2d3;
  border-top: 3px solid var(--audio-mint);
  box-shadow: 0 7px 20px #08112b40;
}
.p3-caption { display: block; margin-bottom: 8px; color: var(--audio-mint); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.p3-caption > span[aria-hidden] { margin-inline: 3px; color: #acc1d4; }
.p3-panel select { width: 100%; min-width: 0; height: 35px; border: 1px solid #93adc9; background: #172b50; color: white; font: inherit; }
.p3-position, .p3-volume, .p3-switches, .p3-switches label { display: flex; gap: 8px; align-items: center; }
.p3-position, .p3-volume { min-height: 37px; }
.p3-position output { flex: none; font: 400 10px/1.2 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.p3-panel input { accent-color: #a1faee; cursor: pointer; }
.p3-panel input[type=range] { flex: 1; min-width: 20px; margin: 0; }
.p3-switches { justify-content: space-between; gap: 4px; padding-top: 7px; border-top: 1px solid #536584; }
.p3-switches label { min-height: 32px; gap: 4px; cursor: pointer; }
.p3-switches input { width: 15px; height: 15px; margin: 0; }
.p3-status:not(:empty) { display: block; padding-top: 8px; color: var(--audio-mint); font-size: 11px; }
.p3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .p3-mixer .p3-panel { position: fixed; top: 56px; right: 10px; }
  .masthead .p3-mixer .p3-panel { top: calc(100% + 4px); }
  .p3-sound button { gap: 4px; padding-inline: 5px; }
  .p3-sound .p3-mixer summary { min-width: 24px; }
}
@media (max-width: 360px) {
  .mast-actions, .header-tools { gap: 4px; }
  .mast .mast-inner { width: 96%; gap: 4px; }
  .mast .wordmark { font-size: 27px; }
  .mast .brand-sign { width: 20px; margin-right: 4px; }
}
@media (max-width: 380px) {
  .masthead .brand-slash, .masthead .brand-project { display: none; }
}
