/* GiC Unified Playback Speed v1 — scoped controls; no changes to card geometry */
.gic-ah-audio-row,.gic5-actions{position:relative!important}
.gic-speed-trigger{
  display:inline-flex;justify-content:center;align-items:center;
  border:1px solid #b9d1c9;background:#f5faf7;color:#145e56;
  font:800 12px/1.1 system-ui,-apple-system,sans-serif;white-space:nowrap;
  border-radius:999px;min-width:46px;min-height:31px;padding:4px 8px;
  box-shadow:0 2px 8px rgba(11,58,51,.09);cursor:pointer;
  touch-action:manipulation;box-sizing:border-box;z-index:5;
}
.gic-speed-trigger:focus-visible,.gic-speed-option:focus-visible,.gic-speed-all-row:focus-within{
  outline:2px solid #157d70;outline-offset:2px;
}
.gic-speed-trigger.gic-speed-overlay{position:absolute;right:auto;bottom:auto;min-width:44px;min-height:29px;padding:4px 6px}
.gic-speed-trigger.gic-speed-inline{display:inline-flex;vertical-align:middle;margin:8px 0 0 9px}
.gic-ah-dialogue-front .gic-speed-inline{margin-top:18px}
.gic-speed-strip{display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:35px;gap:8px;padding:3px 7px 5px;box-sizing:border-box}
.gic-speed-strip .gic-speed-trigger{margin:0;min-height:29px}
.gic-speed-popover{
  position:fixed;z-index:100000;box-sizing:border-box;
  padding:14px;background:#fff;border:1px solid #cddcd5;border-radius:18px;
  box-shadow:0 14px 45px rgba(6,47,41,.23);color:#183c35;
  font-family:system-ui,-apple-system,sans-serif;
}
.gic-speed-title{font-weight:800;font-size:15px;margin-bottom:11px}
.gic-speed-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.gic-speed-option{border:1px solid #d4e3de;border-radius:10px;background:#f7faf8;color:#245e55;
  padding:8px 1px;font-size:12px;font-weight:750;min-height:38px;cursor:pointer;white-space:nowrap}
.gic-speed-option.is-selected{border-color:#126e64;background:#126e64;color:#fff}
.gic-speed-all-row{display:flex;align-items:center;gap:10px;margin-top:14px;padding:9px 2px 7px;
  border-top:1px solid #e6eeea;font-weight:750;font-size:13px;cursor:pointer}
.gic-speed-all-row input{height:18px;width:18px;margin:0;accent-color:#12766b}
.gic-speed-hint{font-size:11px;color:#70827d;line-height:1.5;margin:0}
html[data-gic-theme="dark"] .gic-speed-popover{background:#17332d;border-color:#476359;color:#e9f6ee}
html[data-gic-theme="dark"] .gic-speed-trigger,
html[data-gic-theme="dark"] .gic-speed-option{background:#1f483f;color:#e9f6ee;border-color:#66847a}
html[data-gic-theme="dark"] .gic-speed-option.is-selected{background:#267d6c;color:#fff}
html[data-gic-theme="dark"] .gic-speed-hint{color:#b5ccc2}
@media(max-width:430px){.gic-speed-trigger{font-size:12px;min-width:43px}.gic-speed-popover{padding:12px}.gic-speed-option{font-size:11px}}

/* GIC-SPEED-BADGE-POLISH-V1 */
.gic-speed-trigger.gic-speed-overlay{
  margin-top:-5px;
  min-width:40px;
  min-height:26px;
  padding:3px 7px;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid rgba(181,140,50,.5);
}
html[data-gic-theme="dark"] .gic-speed-trigger.gic-speed-overlay{
  background:#143229;
  color:#f1dfae;
  border-color:rgba(226,190,100,.6);
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}
