.wb-player {
  position: fixed; z-index: 13;
  box-sizing: border-box;
  color: #fff; color-scheme: dark;
  font-family: var(--sans, Arial, Helvetica, sans-serif);
}
.wb-player *, .wb-player *::before, .wb-player *::after { box-sizing: border-box; }
.wb-player[hidden], .wb-player [hidden], [data-player-toggle][hidden] { display: none !important; }
.installation > .wb-player, .installation > [data-player-toggle] { position: fixed; }
.wb-player[data-mode="mini"] {
  width: min(max(220px, 13.5rem), calc(100vw - .5rem));
  right: max(clamp(.45rem, 1.28vw, 1.25rem), env(safe-area-inset-right));
  top: max(.75rem, env(safe-area-inset-top));
  padding: .23rem .30rem .4rem;
  border: 2px solid #98a2ab;
  border-color: #d9dfe4 #8b929c #485059 #d0d5da;
  border-radius: 16px 16px 18px 18px / 17px 17px 21px 21px;
  background: radial-gradient(ellipse 110% 57% at 111% 111%, #e8eced 0%, #bec5ce 24%, #606971 46%, #3d4348 65%, transparent 66%),
              linear-gradient(147deg, #11141a 0%, #25292e 14%, #090b0e 39%, #020305 58%, #16191e 76%, #424a50 94%);
  box-shadow: inset 1px 1px 1px #f2f5f6a6, inset -1px -2px 1px #0c1015, 0 0 0 1px #161b24,
              0 3px 0 #43484d, inset 0 -3px 1px #8c939b, 0 7px 14px #02030d88;
}
.wb-mini-bar {
  display: flex; align-items: center; gap: .28rem; padding-left: .3rem;
  min-width: 0; min-height: 1.16rem; padding-right: .3rem;
  color: #ecf2f6;
  background: linear-gradient(#29333e, #121922 72%, #212731);
  border-radius: 3px 3px 0 0; border: 1px solid #2c363e; border-bottom: 0;
}
.wb-mini-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; line-height: 1.2; }
.wb-mini-bar small { margin-left: auto; flex-shrink: 0; font: .65rem/1 ui-monospace,monospace; color: #e0e8ed; }
.wb-mini-rim [data-mini-close] {
  border: 0; background: none; color: #e9edf1; padding: 0; flex: 0 0 1.5rem; height: 1.5rem;
  line-height: 1; font-size: 1.03rem;
}
.wb-mini-stage { position: relative; width: 100%; overflow: hidden; background: #071124; }
.wb-player[data-mode="mini"] .wb-mini-stage {
  aspect-ratio: 1.16; min-height: 204px; border: 2px solid; border-color: #090b0e #4d555b #626b73 #11151b;
  border-radius: 0 0 3px 3px;
}
.wb-mini-stage :is(iframe,video), .wb-mini-poster, .wb-mini-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.wb-mini-stage video { object-fit: contain; background: #000; }
.wb-mini-poster { color: white; background: #101a52; padding: 0; }
.wb-mini-poster img { object-fit: contain; }
.wb-mini-poster span { position: absolute; top: 10%; left: 7%; font: 1.4rem/1 VT323,monospace; text-shadow: 1px 1px #111c4e; }
.wb-mini-panel { display: grid; place-items: center; margin-top: .4rem; margin-bottom: .12rem; }
.wb-mini-wheel {
  position: relative; isolation: isolate; width: 56%; max-width: 7.1rem; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #555a5c; background: #171a1b;
  box-shadow: 0 0 0 1px #080b0d, 0 1px 1px 1px #a2a6a8, inset 0 1px 2px #000;
}
.wb-mini-wheel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-radial-gradient(circle, transparent 0 1px, rgb(255 255 255 / 3%) 1px 1.5px, transparent 1.5px 2.5px),
              linear-gradient(150deg, #434647, #343638 54%, #55595b);
  box-shadow: inset 0 1px 1px #777c7d99, inset 0 -1px 1px #26282a;
  transform: perspective(150px) rotateX(var(--wheel-x, 0deg)) rotateY(var(--wheel-y, 0deg));
  transition: transform 160ms cubic-bezier(.17,.82,.29,1), box-shadow 130ms ease-out, filter 100ms;
}
.wb-mini-wheel[data-pressed="top"] { --wheel-x: 14deg; --edge-y: 4px; --legend-y: 1.5px; }
.wb-mini-wheel[data-pressed="bottom"] { --wheel-x: -14deg; --edge-y: -4px; --legend-y: -1.5px; }
.wb-mini-wheel[data-pressed="left"] { --wheel-y: -14deg; --edge-x: 4px; --legend-x: 1.5px; }
.wb-mini-wheel[data-pressed="right"] { --wheel-y: 14deg; --edge-x: -4px; --legend-x: -1.5px; }
.wb-mini-wheel[data-pressed]:not([data-pressed="center"])::before {
  box-shadow: inset var(--edge-x,0px) var(--edge-y,0px) 6px #121416ce,
              inset calc(-1 * var(--edge-x,0px)) calc(-1 * var(--edge-y,0px)) 3px #aaaeb0a6;
  transition-duration: 45ms;
}
.wb-mini-wheel :is(a,button) {
  display: grid; place-items: center; position: absolute; padding: 0; border: 0;
  min-width: 1.6rem; min-height: 1.56rem; text-decoration: none;
  background: transparent; border-radius: .25rem; color: #fff; cursor: pointer;
  font: 700 .78rem/1 var(--sans,Arial,sans-serif); text-shadow: 0 1px #2b2d30;
}
.wb-mini-wheel :is(a,button):hover { color: #fff; text-decoration: none; }
.wb-mini-wheel [data-mini-tv] { top: .08em; left: 50%; transform: translateX(-50%); width: 55%; height: 24%; max-width: 3.6rem; font-size: .56rem; text-align: center; line-height: 1.02; white-space: normal; }
.wb-mini-wheel [data-mini-channel] { top: 50%; transform: translateY(-50%); width: 26%; height: 34%; }
.wb-mini-wheel [data-mini-channel="-1"] { left: 1%; }
.wb-mini-wheel [data-mini-channel="1"] { right: 1%; }
.wb-wheel-skip { display: block; position: relative; width: 16px; height: 11px; border-right: 2px solid currentColor; }
.wb-wheel-skip::before, .wb-wheel-skip::after { content: ""; position: absolute; width: 0; height: 0; top: 1px; border-block: 4.5px solid transparent; border-left: 6px solid currentColor; }
.wb-wheel-skip::before { left: 1px; } .wb-wheel-skip::after { left: 7px; }
[data-mini-channel="-1"] .wb-wheel-skip { transform: scaleX(-1); }
.wb-mini-wheel [data-mini-transport] { bottom: 1%; left: 50%; transform: translateX(-50%); width: 40%; height: 24%; }
.wb-wheel-play { position: relative; width: 17px; height: 10px; border-right: 3px solid currentColor; }
.wb-wheel-play::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 0; border-block: 5px solid transparent; border-left: 7px solid currentColor; }
.wb-wheel-play::after { content: ""; position: absolute; top: 0; right: 2px; width: 3px; height: 10px; background: currentColor; }
.wb-mini-wheel [data-mini-sound] {
  top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38%; height: 38%; border-radius: 50%;
  border: 0; color: #fff; background: #191c1e;
  box-shadow: 0 0 0 1px #64676a; font-size: .63rem; line-height: 1.08;
}
.wb-mini-wheel [data-mini-sound]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #191d21; pointer-events: none;
  background: linear-gradient(149deg, #464e54, #161a20 45%, #3a424a 50%, #7c858c 80%, #363c40);
  box-shadow: inset 0 1px 1px #90969999;
  transition: transform 110ms ease-out, box-shadow 110ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .wb-mini-wheel:not([data-pressed])[data-hovered="top"] { --wheel-x: 4deg; --edge-y: 1.2px; }
  .wb-mini-wheel:not([data-pressed])[data-hovered="bottom"] { --wheel-x: -4deg; --edge-y: -1.2px; }
  .wb-mini-wheel:not([data-pressed])[data-hovered="left"] { --wheel-y: -4deg; --edge-x: 1.2px; }
  .wb-mini-wheel:not([data-pressed])[data-hovered="right"] { --wheel-y: 4deg; --edge-x: -1.2px; }
  .wb-mini-wheel:not([data-pressed])[data-hovered]:not([data-hovered="center"])::before {
    box-shadow: inset var(--edge-x,0px) var(--edge-y,0px) 3px #22272c9c,
                inset calc(-1 * var(--edge-x,0px)) calc(-1 * var(--edge-y,0px)) 2px #a1a9af8c;
    filter: brightness(1.04);
  }
  .wb-mini-wheel:not([data-pressed])[data-hovered="center"] [data-mini-sound]::before {
    box-shadow: inset 0 1px 2px #090d1177, inset 0 -1px 1px #c0c4ca88;
    filter: brightness(1.06);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wb-mini-wheel:not([data-pressed])[data-hovered="center"] [data-mini-sound]::before { transform: translateY(.35px) scale(.975); }
}
.wb-mini-wheel [data-mini-sound] svg { position: relative; }
.wb-mini-wheel[data-pressed="center"] [data-mini-sound]::before {
  transform: translateY(1px) scale(.91);
  box-shadow: inset 0 3px 5px #060809ee, inset 0 -1px 1px #969ca1;
  transition-duration: 40ms;
}
.wb-mini-wheel[data-pressed="center"] [data-mini-sound] svg { translate: 0 1px; scale: .92; }
.wb-mini-wheel :is(.wb-wheel-play,.wb-wheel-skip) { translate: var(--legend-x,0) var(--legend-y,0); }
.wb-mini-wheel[data-pressed="top"] [data-mini-tv] { padding-top: 3px; }
.wb-player[data-muted] [data-mini-sound] { outline: 1px solid #d6e4f4; outline-offset: 1px; }
@media(prefers-reduced-motion: reduce) {
  .wb-mini-wheel::before, .wb-mini-wheel [data-mini-sound]::before { transition: none !important; }
  .wb-mini-wheel::before, .wb-mini-wheel[data-pressed="center"] [data-mini-sound]::before { transform: none; }
  .wb-mini-wheel :is(.wb-wheel-play,.wb-wheel-skip), .wb-mini-wheel[data-pressed="center"] [data-mini-sound] svg { translate: none; scale: revert-layer; }
  .wb-mini-wheel[data-pressed="top"] [data-mini-tv] { padding-top: 0; }
}
.wb-player :is(button, a):focus-visible { outline: 2px solid white; outline-offset: 1px; }
.wb-player[data-mode="tv"] { z-index: 3; top: var(--set-top); left: var(--set-left); width: var(--set-width); height: var(--set-height); }
.wb-player[data-mode="tv"] :is(.wb-mini-rim, .wb-mini-bar, .wb-mini-panel) { display: none; }
.wb-player[data-mode="tv"] .wb-mini-stage { height: 100%; border-radius: 1.3% / 1.7%; }
.wb-mini-stage:fullscreen { width: 100vw; height: 100vh !important; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; }
[data-player-toggle] {
  position: fixed; z-index: 12; right: max(.7rem, env(safe-area-inset-right)); top: max(.75rem, env(safe-area-inset-top)); width: 2.65rem; height: 2.65rem; min-width: 0; padding: .4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid #c8ced5; border-radius: 6px; color: #fff; font: 700 .8rem var(--sans,Arial,sans-serif);
  background: linear-gradient(125deg,#5a626a,#292d32 42%,#13171b 70%,#565f67); box-shadow: inset 0 1px #bbbdc288,0 2px 3px #050d3e70;
}
.wb-channel-bank [data-tv-sound] { align-self: center; padding: .28rem .63rem; border: 1px solid #9faac6; border-radius: 3px; background: #152052; color: white; cursor: pointer; font: .85rem var(--wb-mono); }
.wb-player[data-mode="mini"][data-positioned] { left: var(--mini-x); top: var(--mini-y); right: auto; bottom: auto; }
.wb-mini-rim { display: flex; align-items: center; min-width: 0; }
.wb-mini-rim [data-mini-grip] {
  flex: 1; align-self: stretch; min-height: 24px; padding: 0 .35rem; border: 0; background: none;
  color: #dfe2e6; font: italic 800 .65rem/1 Arial,sans-serif; letter-spacing: .13em; text-align: left;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.wb-mini-rim [data-mini-grip][data-dragging] { cursor: grabbing; }
.wb-mini-rim [data-mini-close] { cursor: pointer; }
.wb-player-blackout {
  display: none; position: absolute; inset: 0; z-index: 5; align-items: center; justify-content: center;
  background: #020203; color: #f7f8fa; pointer-events: auto;
  font: italic 900 clamp(.85rem, 2.6vw, 2.55rem)/1 Arial,sans-serif; letter-spacing: .09em;
}
.wb-player[data-mode="mini"] .wb-player-blackout { font-size: .87rem; }
.wb-player[data-loading] .wb-player-blackout, html[data-display-loading] .wb-player-blackout { display: flex; }
.wb-channel-links .wb-volume { display: block; }
.wb-channel-bank [data-tv-sound] { display: inline-grid; place-items: center; padding: .23rem; min-width: 30px; min-height: 30px; }
.wb-channel-bank [data-tv-sound][hidden] { display: none; }
.wb-volume .volume-cross, [aria-pressed="false"] > .wb-volume .volume-waves { display: none; }
[aria-pressed="false"] > .wb-volume .volume-cross { display: inline; }
.deck-launch[data-player-toggle] { width: 2.65rem; height: 2.65rem; min-width: 0; padding: .37rem; }
.deck-launch .pod-outline { display: block; width: 22px; height: 28px; }



.wb-player[data-loading] .wb-mini-bar { background: #020203; border-color: #101114; }
.wb-player[data-loading] .wb-mini-bar > * { visibility: hidden; }
.wb-player[data-powered-off] :is(.wb-mini-stage, .wb-mini-bar) {
  background: #030405;
  border-color: #101114;
}
.wb-player[data-powered-off] :is(.wb-mini-stage, .wb-mini-bar) > *,
.wb-player[data-powered-off] [data-mini-source],
.wb-player[data-powered-off][data-mode="tv"] { visibility: hidden; }
.wb-mini-panel [data-mini-source] { font: 600 .65rem/1.2 var(--sans,Arial,sans-serif); color: #fff; margin-top: .4rem; text-decoration: underline; }

/* The portable unit has its own small front panel on phones. Scale only the live
   video surface so the provider retains its native layout and all touch input. */
@media (max-width: 740px), (max-height: 500px) and (orientation: landscape) {
  .wb-player[data-mode="mini"], .deck-launch[data-player-toggle] {
    top: max(.3rem, env(safe-area-inset-top), var(--player-menu-edge, 3.8rem));
    right: max(6px, env(safe-area-inset-right));
  }
  .wb-player[data-mode="mini"] {
    width: clamp(112px, 30.5vw, 124px);
    padding: 2px 3px 4px;
    border-width: 1px;
    border-radius: 10px 10px 12px 12px;
  }
  .wb-mini-rim [data-mini-grip] { min-height: 24px; padding: 0 3px; font-size: 8px; letter-spacing: .07em; }
  .wb-mini-rim [data-mini-close] { width: 24px; flex-basis: 24px; height: 24px; font-size: 15px; }
  .wb-mini-bar { padding: 0 2px; min-height: 13px; gap: 2px; }
  .wb-mini-bar strong { font-size: 9px; line-height: 1; }
  .wb-mini-bar small { font-size: 7.7px; }
  .wb-player[data-mode="mini"] .wb-mini-stage { aspect-ratio: 1.23; min-height: 0; border-width: 1px; }
  .wb-player[data-mode="mini"] .wb-mini-stage:not(:fullscreen) iframe {
    width: 250%; height: 250%; transform: scale(.4); transform-origin: 0 0;
  }
  .wb-player[data-mode="mini"] .wb-player-blackout { font-size: 10px; }
  .wb-mini-panel { margin: 4px 0 1px; }
  .wb-mini-wheel { width: 84px; max-width: 100%; }
  .wb-mini-wheel :is(a,button) { min-width: 24px; min-height: 24px; }
  .wb-mini-wheel [data-mini-tv] { top: 0; width: 38px; height: 24px; font-size: 9px; }
  .wb-mini-wheel [data-mini-transport] { bottom: 0; height: 24px; width: 38px; }
  .wb-mini-wheel [data-mini-sound] { width: 30px; height: 30px; }
  .wb-mini-wheel [data-mini-channel] { width: 24px; height: 32px; }
  .wb-mini-wheel [data-mini-channel="-1"] { left: 1px; }
  .wb-mini-wheel [data-mini-channel="1"] { right: 1px; }
  .wb-mini-wheel .wb-volume { width: 16px; height: 16px; }
  .wb-mini-wheel .wb-wheel-skip, .wb-mini-wheel .wb-wheel-play { scale: .83; }
  .wb-mini-panel [data-mini-source] { font-size: 8.5px; }
  .deck-launch[data-player-toggle] { width: 36px; height: 36px; padding: 4px; }
}


/* Keep a paused native decoder's layout when the case is minimized. WebKit can reset the
   media clock after a display:none surface becomes visible again. The shell is also inert. */
.wb-player[data-native][data-mode="closed"][hidden] {
  display: block !important; width: 220px; height: 204px; opacity: 0; pointer-events: none;
  top: 0; right: 0; z-index: -1;
}
.wb-player[data-native][data-mode="closed"] :is(.wb-mini-rim,.wb-mini-bar,.wb-mini-panel) { display: none; }
.wb-player[data-native][data-mode="closed"] .wb-mini-stage { height: 100%; }
