/* Equal-height controls with a wider Play and a constant gap between edges. */
.study-player .study-player-transport {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  overflow:visible;
}
.study-player .study-player-transport .gallery-player-tools { display:contents; }
.study-player .study-player-transport :is(.study-player-button,[data-player-control]),
.study-player .study-player-transport .study-player-speed,
.study-player .study-player-transport .study-player-speed select {
  box-sizing:border-box;
  flex:0 0 44px;
  width:44px;
  min-width:44px;
  max-width:44px;
  height:44px;
  min-height:44px;
  max-height:44px;
  margin:0;
  padding:8px;
  border-radius:9px;
  justify-self:auto;
  align-self:center;
  line-height:1;
}
.study-player .study-player-transport :is(.study-player-button,button[data-player-control]) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dac1d2;
  background:#faf2f8;
  color:#704662;
}
.study-player .study-player-transport .study-player-button.study-player-play {
  flex-basis:128px;
  width:128px;
  min-width:128px;
  max-width:128px;
  gap:6px;
  color:#fff;
  background:#a52f7b;
  border-color:#a52f7b;
}
.study-player .study-player-transport [data-section-play-label] {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.study-player .study-player-transport .study-player-speed { display:block; padding:0; }
.study-player .study-player-transport .study-player-speed select {
  display:block;
  appearance:none;
  -webkit-appearance:none;
  padding:0 2px;
  background:#faf2f8;
  border:1px solid #dac1d2;
  color:#704662;
  font:500 12px/1 system-ui,sans-serif;
  text-align:center;
  text-align-last:center;
  cursor:pointer;
}
.study-player .study-player-transport :is(svg,.study-player-icon) {
  flex:0 0 20px;
  width:20px;
  height:20px;
}
.study-player .study-player-transport [data-action="section-audio-prev"] { order:1; }
.study-player .study-player-transport .study-player-play { order:2; }
.study-player .study-player-transport .study-player-speed { order:3; }
.study-player .study-player-transport [data-action="section-audio-next"] { order:4; }
.study-player .study-player-transport [data-action="section-audio-restart"] { order:5; }
.study-player .study-player-transport .study-player-list { order:6; }
.study-player .study-player-transport [data-action="audio-expand"] { order:7; }
.study-player .study-player-transport [data-action="audio-repeat"] { order:8; }
.study-player .study-player-transport [data-action="settings"] { order:9; }
.study-player .study-player-transport [data-action="audio-close"] { order:10; }
.study-player .study-player-transport button[aria-pressed=true],
.study-player .study-player-transport .study-player-list[aria-expanded=true] {
  background:#f1ddeb;
  color:#8c2468;
  border-color:#a52f7b;
}
@container study-player (max-width:620px) {
  .study-player .study-player-transport { justify-content:center; gap:6px; }
  .study-player .study-player-transport .study-player-button.study-player-play {
    flex-basis:88px;
    width:88px;
    min-width:88px;
    max-width:88px;
  }
  .study-player .study-player-transport [data-section-play-label] {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
}
/* The expanded reader and floating transport follow the same dimensions. */
#audio-player .audio-transport,
#reader-viewer .viewer-transport {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px;
}
#audio-player .audio-transport > button,
#reader-viewer .viewer-transport > button {
  box-sizing:border-box;
  display:inline-flex;
  flex:0 0 44px;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  max-width:44px;
  height:44px;
  min-height:44px;
  max-height:44px;
  margin:0;
  padding:8px;
  border-radius:9px;
}
#audio-player .audio-transport > .audio-play,
#reader-viewer .viewer-transport > .audio-play {
  flex-basis:88px;
  width:88px;
  min-width:88px;
  max-width:88px;
}
#audio-player .audio-transport .control-label,
#reader-viewer .viewer-transport .control-label { display:none; }
#audio-player .audio-transport :is(svg,.control-icon),
#reader-viewer .viewer-transport :is(svg,.control-icon) {
  width:20px;
  height:20px;
  flex:0 0 20px;
}
#audio-player .audio-transport :is(#audio-position,#audio-status) {
  flex:0 0 100%;
  width:100%;
  max-width:none;
  margin:0;
  text-align:center;
}
#audio-player.is-minimized .floating-player-basic > button,
#audio-player.is-minimized .floating-player-speed,
#audio-player.is-minimized .floating-player-speed select,
#audio-player.is-minimized .floating-player-size {
  box-sizing:border-box;
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  max-height:34px;
  margin:0;
}
#audio-player.is-minimized .floating-player-basic > .audio-play {
  flex-basis:68px;
  width:68px;
  min-width:68px;
  height:34px;
  min-height:34px;
}
#class-slide-viewer .slide-transport {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px;
}
#class-slide-viewer .slide-transport > button {
  box-sizing:border-box;
  display:inline-flex;
  flex:0 0 44px;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  max-width:44px;
  height:44px;
  min-height:44px;
  max-height:44px;
  margin:0;
  padding:8px;
  border-radius:9px;
}
#class-slide-viewer .slide-transport > .slide-play {
  flex-basis:88px;
  width:88px;
  min-width:88px;
  max-width:88px;
}
#class-slide-viewer .slide-transport .control-label { display:none; }
#class-slide-viewer .slide-transport .control-icon {
  flex:0 0 20px;
  width:20px;
  height:20px;
}

/* Reduce empty space while preserving every font and control dimension. */
.section-audio-dock { width:100%; max-width:none; container-type:inline-size; container-name:section-dock; margin-top:10px; margin-bottom:8px; }
.section-audio-dock > .study-player { width:100%; padding:6px 10px; }
.section-audio-dock .study-player-selection { max-width:none; }
.section-audio-dock .study-player-selection > label {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.section-audio-dock .study-player-progress { display:grid; grid-template-columns:36px minmax(0,1fr) 36px; align-items:center; gap:6px; margin-top:3px; }
.section-audio-dock .study-player-seek { grid-column:2; grid-row:1; margin:0; }
.section-audio-dock .study-player-times { display:contents; }
.section-audio-dock .study-player-times > span { font-size:11px; font-variant-numeric:tabular-nums; color:#76536d; }
.section-audio-dock .study-player-times > span:first-child { grid-column:1; grid-row:1; }
.section-audio-dock .study-player-times > span:last-child { grid-column:3; grid-row:1; text-align:right; }
.section-audio-dock .study-player .study-player-transport { margin-top:3px; }
.section-audio-dock .study-player-detail { margin-top:4px!important; line-height:1.35!important; }
@container section-dock (min-width:900px) {
  .section-audio-dock > .study-player { display:grid; grid-template-columns:minmax(220px,1fr) auto; grid-template-areas:"selection transport" "progress progress" "detail detail"; align-items:center; column-gap:14px; row-gap:2px; }
  .section-audio-dock .study-player-selection { grid-area:selection; }
  .section-audio-dock .study-player-transport { grid-area:transport; margin-top:0; }
  .section-audio-dock .study-player-progress { grid-area:progress; margin-top:0; }
  .section-audio-dock .study-player-detail { grid-area:detail; }
}
.study-player .study-player-transport { margin-top:8px; }

.study-player .study-player-transport button:disabled { opacity:.35; cursor:default; }
