/* The player bar of Watch and Coach mode, as video sites lay it out (shared/player_bar.js runs its menus and its fade).
   It lies over the video's foot on a dark gradient, in the positioned box that holds the video; icon buttons with no
   frame, menus over the video, and on a phone (600 px or less) each menu is a sheet from the foot of the screen, under
   the thumb. The gradient lets a press through to the video; the seek bar, the buttons and the menus take it. .idle on
   the player (PadelPlayerBar.autoHide) fades it out. */
.ctrls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; color: #fff; border-radius: 0 0 10px 10px; padding: 22px 8px 4px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55) 40%, rgba(0,0,0,.85)); transition: opacity .3s; pointer-events: none; }
.ctrls > :not(.pbar), .ctrls .grp { pointer-events: auto; }
.idle .ctrls { opacity: 0; }
.idle .ctrls, .idle .ctrls * { pointer-events: none !important; }
.ctrls [hidden] { display: none !important; }
.seek { display: block; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.grp { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.grp.end { justify-content: flex-end; margin-left: auto; }
.ctrls .ic, .ctrls .zc button { background: transparent; border: 0; color: #fff; border-radius: 8px; min-width: 40px; min-height: 40px; padding: 6px 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .9em; font-variant-numeric: tabular-nums; }
.ctrls .ic:hover, .ctrls .zc button:hover, .ctrls .ic[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.ctrls .zc button[aria-pressed="true"] { background: var(--accent); }
.ctrls svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
/* Play and full screen hold both icons; the state class shows one. */
.ic .i-pause, .ic.playing .i-play, .ic .i-exit, .ic.full .i-full { display: none; }
.ic.playing .i-pause, .ic.full .i-exit { display: block; }
.zc { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ctrls .gap { width: 40px; flex: none; }   /* zoom stays well clear of full screen, so a tap meant for one never lands on the other */
.ctrls .clock { font-size: .85em; color: rgba(255,255,255,.85); padding: 0 6px; font-variant-numeric: tabular-nums; }
.ctrls .chip { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 4px 10px; font-size: .8em; }
.menu { position: absolute; right: 8px; bottom: calc(100% + 6px); z-index: 9; min-width: 250px; max-width: calc(100vw - 24px); max-height: min(65vh, 440px);
  overflow: auto; background: rgba(24,25,28,.96); color: #fff; border-radius: 12px; padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.menu[hidden] { display: none; }
.menu.down { top: calc(100% + 4px); bottom: auto; }   /* a menu under its button, as in a panel's header */
.menu .mh { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); padding: 6px 16px 4px; }
.menu .mi { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; margin: 0;
  background: transparent; border: 0; border-radius: 0; color: #fff; text-align: left; font-size: .92em; cursor: pointer; }
.menu .mi:hover { background: rgba(255,255,255,.1); }
.menu .mi[hidden] { display: none; }
.menu .msep { height: 1px; margin: 6px 0; background: rgba(255,255,255,.14); }
.menu .mi kbd { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.menu [data-speed]::after, .menu [data-level]::after { content: ""; width: 1em; }
.menu [data-speed].on::after, .menu [data-level].on::after { content: "✓"; }
.menu .mrow { display: flex; gap: 6px; padding: 4px 12px; }
.menu .mrow[hidden] { display: none; }
.menu .mrow button { flex: 1; background: rgba(255,255,255,.08); border: 0; color: #fff; padding: 9px 10px; white-space: nowrap; }
.menu .mrow button:hover { background: rgba(255,255,255,.16); }
.menu .mrow button.on { background: var(--accent); }
.menu select { flex: 1; min-width: 0; background: rgba(255,255,255,.1); color: #fff; border: 0; }
.menu select option { color: #000; }
/* A switch for each on/off choice. */
.menu input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px; height: 20px; margin: 0; padding: 0; border: 0;
  border-radius: 10px; background: #6b6e75; cursor: pointer; transition: background .15s; }
.menu input[type=checkbox]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.menu input[type=checkbox]:checked { background: var(--accent); }
.menu input[type=checkbox]:checked::before { transform: translateX(16px); }
@media (max-width: 600px) {
  .ctrls .lbl { display: none; }
  .ctrls .mclock { display: none; }   /* PA-1176: a phone's clock is the video's time only, not the match's */
  .ctrls .gap { width: 28px; }
  .menu, .menu.down { position: fixed; left: 0; right: 0; top: auto; bottom: 0; max-width: none; max-height: 70vh; z-index: 1002; border-radius: 14px 14px 0 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .menu .mi { padding: 13px 18px; }
}
