/* Christinium's playback instrument. Scoped to the desktop pilot. */
@media (min-width: 761px) and (min-height: 761px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  #bandScene .band-scene-body { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr); gap: 34px; }
  #bandScene .band-scene-identity { pointer-events: none; padding-bottom: 20px; }
  #bandScene .band-scene-art-title { font-size: clamp(25px, 2.8vw, 42px); margin-top: 8px; }
  #bandScene #bandSceneCaption { display: none; }
  #bandScene .band-scene-transport { display: none !important; }
  #bandScene .band-scene-panel { padding: clamp(18px, 2.1vw, 30px); }
  #bandScene .band-scene-panel > h3 { font: 11px/1.5 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #dfc6d6; margin: 0 0 20px; }
  #bandScene .band-scene-console { background: linear-gradient(155deg, #19121b, #100c13 80%); border: 1px solid #67435b; border-radius: 10px; box-shadow: 0 12px 44px #0004; }
  #bandScene .band-scene-nav { margin: 0 14px; padding-inline: 0; }
  #bandScene .band-scene-nav button { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
  #bandScene .band-scene-content { overflow: auto; }
  .cr-byproducts { width: 100%; height: auto; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
  .cr-byproduct-picker { margin-block: auto; width: 100%; }
  .cr-byproduct-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .cr-byproduct-choices:has(> [hidden]) { grid-template-columns: minmax(0,1fr); }
  #bandScene .cr-byproduct-choice {
    min-height: 222px; padding: 24px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px;
    border-radius: 12px; border: 1px solid #ad7597; background: linear-gradient(150deg, #44323f, #201922 65%, #17121b); box-shadow: inset 0 1px 0 #e9c2d944, 0 12px 30px #0005;
    transition: border-color .15s, background-color .15s;
  }
  #bandScene .cr-byproduct-choice:hover { background: linear-gradient(150deg,#5c4053,#28202e 65%,#201925); border-color: #f2d1e6; }
  .cr-byproduct-choice svg { width: 72px; height: 72px; stroke: #ebc7da; fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
  .cr-byproduct-choice strong { font: 26px/1.2 system-ui,sans-serif; font-weight: 400; color: #fbecf6; }
  .cr-choice-verb { font: 10px/1.5 ui-monospace,monospace; letter-spacing: .14em; color: #dfbb8e; }
  .cr-picker-status { font: 12px/1.6 ui-monospace,monospace; color: #d1b6ca; }
  .cr-player { flex-shrink: 0; margin-block: auto; padding: 16px; border-radius: 12px; background: linear-gradient(120deg,#e2c5d2,#b59aaa 55%,#cfb3c3); border: 1px solid #fce7f3; box-shadow: inset 0 -4px 0 #7d6877, inset 0 2px 0 #fff9, 0 12px 24px #0006; color: #2c202a; width: 100%; }
  .cr-player-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .cr-player-brand { font: bold 11px/1.4 ui-monospace,monospace; letter-spacing: .17em; color: #3f293c; }
  #bandScene .cr-byproducts-back { padding: 3px 7px; border: 1px solid #8e6d86; border-radius: 4px; color: #352030; display: inline-flex; align-items: center; gap: 3px; min-height: 32px; font-size: 10px; background: #f0dce566; }
  .cr-byproducts-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; }
  .cr-display { padding: 16px 17px 13px; border: 2px solid #836576; border-radius: 7px; background: radial-gradient(ellipse at 15% 0%,#2c2331,#100d15 70%); box-shadow: inset 0 3px 14px #000b, 0 1px 0 #fff8; color: #f7c5e2; }
  .cr-display-row { display: flex; justify-content: space-between; gap: 10px; font: 10px/1.6 ui-monospace,monospace; letter-spacing: .08em; text-transform: uppercase; }
  .cr-source-tag { color: #dfc397; }
  .cr-status { color: #cbb7ca; text-align: right; }
  .cr-player[data-playing="true"] .cr-status { color: #f6d5e9; }
  .cr-time-row { display: flex; align-items: baseline; gap: 9px; margin: 5px 0 9px; white-space: nowrap; }
  .cr-time { font: 400 clamp(32px,3.6vw,54px)/1.25 ui-monospace,monospace; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px #e288bb44; }
  .cr-duration { font: 12px/1.5 ui-monospace,monospace; color: #bdb0c0; }
  .cr-spectrum { width: 100%; height: 68px; display: block; }
  .cr-signal-note { font: 8px/1.5 ui-monospace,monospace; letter-spacing: .14em; color: #b29dac; display: block; margin-top: 6px; }
  .cr-seek-label { display: block; margin: 14px 0 6px; }
  #bandScene input[type="range"] { accent-color: #6c3057; cursor: pointer; margin: 0; }
  .cr-seek { width: 100%; }
  .cr-transports { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
  #bandScene .cr-control { min-width: 43px; min-height: 42px; padding: 7px 10px; border: 1px solid #8d6d81; border-bottom: 3px solid #725b6d; border-radius: 5px; background: linear-gradient(#fbe9ef,#d6bacb); color: #422b3a; box-shadow: inset 0 1px 0 #fff9, 0 2px 2px #60405444; }
  #bandScene .cr-control:hover:not(:disabled), #bandScene .cr-byproducts-back:hover, #bandScene .cr-flat:hover { background: #fff0f5; border-color: #5d3f54; }
  .cr-control svg { height: 23px; width: 23px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
  #bandScene .cr-play { min-width: 72px; background: linear-gradient(#ead29c,#d7b37d); border-color: #a77d43; }
  #bandScene .cr-eq-toggle { margin-left: auto; font-weight: bold; letter-spacing: .1em; }
  #bandScene .cr-eq-toggle[aria-expanded="true"] { box-shadow: inset 0 2px 5px #633e6644; background: #b99aac; }
  .cr-volume { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; }
  .cr-volume svg { width: 22px; height: 22px; stroke: #483344; fill: none; stroke-width: 3; }
  .cr-volume input { min-width: 0; flex: 1; }
  .cr-volume output { min-width: 36px; font: 10px/1 ui-monospace,monospace; text-align: right; }
  .cr-player-notice { color: #30232f; font: 11px/1.6 ui-monospace,monospace; margin: 14px 0 0; border-top: 1px solid #957589; padding-top: 10px; }
  .cr-eq { margin-top: 15px; border-top: 1px solid #9d7b92; padding-top: 12px; }
  .cr-eq-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; font: 10px/1.5 ui-monospace,monospace; }
  .cr-check { display: flex; align-items: center; gap: 6px; font: 11px/1.5 ui-monospace,monospace; }
  .cr-check input { accent-color: #753c65; margin: 0; }
  #bandScene .cr-flat { color: #3d2938; border: 1px solid #957388; min-height: 28px; padding: 3px 8px; border-radius: 3px; font: 10px/1.5 ui-monospace,monospace; }
  .cr-eq-sliders { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 4px; margin-top: 13px; }
  .cr-eq-band { display: flex; flex-direction: column; align-items: center; gap: 7px; font: 9px/1.3 ui-monospace,monospace; }
  #bandScene .cr-eq-band input { writing-mode: vertical-lr; direction: rtl; width: 20px; height: 90px; }
  .cr-eq-band output { min-height: 12px; }
  .cr-eq.is-bypassed .cr-eq-sliders { opacity: .6; }
  .cr-preamp { display: flex; gap: 12px; align-items: center; margin-top: 15px; font: 9px/1.4 ui-monospace,monospace; }
  .cr-preamp input { flex: 1; min-width: 0; }
  .cr-preamp output { min-width: 32px; }
  #bandScene .cr-settings { flex: 0 0 auto; margin: 0 28px 16px; color: #c9adc1; font: 10px/1.5 ui-monospace,monospace; }
  .cr-settings summary { cursor: pointer; width: fit-content; padding: 6px 0; }
  .cr-settings > label { margin: 5px 0; }
  #bandScene input:focus-visible, #bandScene summary:focus-visible { outline: 2px solid #ffdfa0; outline-offset: 3px; }
  #bandScene .cr-player input:focus-visible, #bandScene .cr-player button:focus-visible { outline-color: #53213e; }
  .cr-video-stage { position: absolute; z-index: 2; left: 0; top: 0; width: calc((100% - 34px) * .5122); height: calc(100% - 106px); display: grid; align-content: center; border: 1px solid #533344; border-radius: 7px; background: #060508; overflow: hidden; }


  #bandScene[data-media-mode="video"] .band-scene-environment { visibility: hidden; }


}
@media (min-width: 761px) and (min-height: 761px) and (max-width: 1050px), (min-width: 761px) and (pointer: fine) and (max-width: 1050px), (min-width: 761px) and (pointer: none) and (max-width: 1050px) {
  #bandScene .band-scene-body { grid-template-columns: minmax(0,.9fr) minmax(340px,1.1fr); gap: 20px; }
  .cr-video-stage { width: calc((100% - 20px) * .45); }
  #bandScene .band-scene-panel { padding: 18px; }
  #bandScene .cr-byproduct-choice { min-height: 190px; }
  .cr-player { flex-shrink: 0; margin-block: auto; padding: 12px; }
}
@media (min-width: 761px) and (min-height: 761px) and (max-height: 720px), (min-width: 761px) and (pointer: fine) and (max-height: 720px), (min-width: 761px) and (pointer: none) and (max-height: 720px) {
  .cr-byproducts { min-height: 190px; justify-content: flex-start; }
  .cr-display { padding: 10px 12px; }
  .cr-time { font-size: 32px; }
  .cr-spectrum { height: 42px; }
  .cr-player-top { margin-bottom: 8px; }
  #bandScene .cr-settings { margin-bottom: 8px; }
  .cr-video-stage { height: calc(100% - 80px); }
  #bandScene .band-scene-panel > h3 { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-byproduct-choice { transition: none !important; }
}

@media (min-width: 761px) and (min-height: 761px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .cr-player:has(.cr-eq:not([hidden])) .cr-time { font-size: 34px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-spectrum { height: 38px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-display { padding-block: 10px; }
  #bandScene .cr-eq-band input { height: 70px; }
}
@media (min-width: 761px) and (min-height: 761px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  #bandScene .band-scene-panel { padding: 20px; }
  .cr-player:has(.cr-eq:not([hidden])) { padding: 12px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-player-top { margin-bottom: 8px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-time { font-size: 28px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-time-row { margin: 2px 0 4px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-spectrum { height: 24px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-seek-label { margin: 8px 0 4px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-transports { margin-top: 6px; }
  .cr-player:has(.cr-eq:not([hidden])) .cr-volume { margin-top: 8px; }
  .cr-eq { margin-top: 10px; padding-top: 8px; }
  .cr-eq-sliders { margin-top: 8px; }
  #bandScene .cr-eq-band input { height: 55px; }
  .cr-preamp { margin-top: 9px; }
}

/* Video v02: picture-owned controls. Audio hardware remains unchanged. */
@media (min-width: 761px) and (min-height: 761px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  #bandScene .cr-byproduct-choice[aria-pressed="true"] {
    opacity: 1; cursor: default; border-color: #e2c598;
    background: linear-gradient(150deg,#4d3a47,#26202b 70%);
    box-shadow: inset 0 0 0 1px #e2c59855, 0 10px 22px #0003;
  }
  .cr-video-routing { display: flex; justify-content: flex-end; margin-top: 18px; }
  #bandScene .cr-video-routing .cr-byproducts-back {
    color: #e2c5d5; border-color: #805c74; background: #291c2b; padding: 5px 10px;
  }
  .cr-video-picture { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
  .cr-video-picture video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
  #bandScene .cr-video-center-play {
    position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 82px; height: 82px; min-height: 0; padding: 21px; border-radius: 50%;
    border: 1px solid #f7dfb9; background: linear-gradient(145deg,#2f1c2ceb,#140f18ee);
    color: #f8dfaf; box-shadow: inset 0 1px 0 #fff2, 0 8px 28px #0006;
    display: grid; place-items: center; cursor: pointer;
  }
  #bandScene .cr-video-center-play:hover { background: #513447; color: #fff4d7; border-color: #fff4d7; }
  .cr-video-center-play svg { width: 100%; height: 100%; fill: currentColor; stroke: none; transform: translateX(2px); }
  .cr-video-message {
    position: absolute; z-index: 2; left: 18px; right: 18px; top: 16px;
    width: fit-content; max-width: calc(100% - 36px); margin: 0 auto; padding: 6px 12px;
    border-radius: 4px; background: #100b14de; color: #f0dce7;
    font: 11px/1.6 ui-monospace,monospace; text-align: center; pointer-events: none;
  }
  .cr-video-stage:not([data-ready="true"]) .cr-video-message { top: 50%; transform: translateY(-50%); }
  .cr-video-stage[data-error="true"] .cr-video-message { top: 14px; transform: none; }
  .cr-video-controls {
    position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; padding: 12px 14px 8px;
    color: #f4d5e6; background: linear-gradient(transparent,#120d17e8 35%,#100b14f5);
    border-radius: 0 0 5px 5px;
  }
  .cr-video-controls-row { display: flex; align-items: center; gap: 6px; }
  .cr-video-controls-spacer { flex: 1; min-width: 4px; }
  #bandScene .cr-video-control {
    display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px;
    height: 38px; min-height: 38px; padding: 7px; border-radius: 5px;
    border: 1px solid transparent; color: #f2cfe1; background: transparent;
  }
  #bandScene .cr-video-control:hover { border-color: #d9b88866; background: #6b455754; color: #ffedc9; }
  .cr-video-control svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
  #bandScene .cr-video-control[aria-label="Play video"] svg { fill: currentColor; stroke: none; }
  #bandScene .cr-video-control[aria-label="Pause video"] svg { stroke-width: 5; }
  #bandScene .cr-video-control[aria-pressed="true"] { color: #dfb78e; }
  #bandScene .cr-video-seek {
    --cr-played: 0%; --cr-buffered: 0%; display: block; width: 100%; height: 24px;
    padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 0;
    background: transparent; margin: 0; cursor: pointer;
  }
  #bandScene .cr-video-seek::-webkit-slider-runnable-track {
    height: 4px; border-radius: 3px;
    background: linear-gradient(to right,#e8c797 var(--cr-played),transparent var(--cr-played)),
      linear-gradient(to right,#a7849b var(--cr-buffered),#4d3748 var(--cr-buffered));
  }
  #bandScene .cr-video-seek::-moz-range-track {
    height: 4px; border-radius: 3px;
    background: linear-gradient(to right,#e8c797 var(--cr-played),transparent var(--cr-played)),
      linear-gradient(to right,#a7849b var(--cr-buffered),#4d3748 var(--cr-buffered));
  }
  #bandScene .cr-video-seek::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none; height: 12px; width: 12px; margin-top: -4px;
    border: 1px solid #ffecca; border-radius: 50%; background: #e8c797; box-shadow: 0 1px 4px #0008;
  }
  #bandScene .cr-video-seek::-moz-range-thumb { height: 10px; width: 10px; border: 1px solid #ffecca; border-radius: 50%; background: #e8c797; }
  #bandScene input.cr-video-volume { width: clamp(54px,6vw,100px); min-width: 0; height: 28px; accent-color: #e5bf98; }
  #bandScene .cr-video-stage button:focus-visible, #bandScene .cr-video-stage input:focus-visible, #bandScene .cr-video-stage:focus-visible {
    outline: 2px solid #ffe3a9; outline-offset: 2px;
  }
  #bandScene .cr-video-stage:focus { outline-offset: -3px; }
  .cr-video-stage:fullscreen { width: 100vw; height: 100vh; border: none; border-radius: 0; display: grid; place-items: center; }
  .cr-video-stage:fullscreen .cr-video-picture { width: 100%; height: 100%; aspect-ratio: auto; }
  .cr-video-stage:fullscreen .cr-video-controls { padding: 30px max(22px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-bottom)); }
  .cr-video-stage:fullscreen .cr-video-center-play { width: 96px; height: 96px; }
  .cr-video-stage:-webkit-full-screen { width: 100vw; height: 100vh; border: none; border-radius: 0; }
  .cr-video-stage:-webkit-full-screen .cr-video-picture { width: 100%; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 761px) and (min-height: 761px) and (max-width: 1050px), (min-width: 761px) and (pointer: fine) and (max-width: 1050px), (min-width: 761px) and (pointer: none) and (max-width: 1050px) {
  #bandScene .cr-video-center-play { width: 66px; height: 66px; padding: 16px; }
  .cr-video-controls { padding: 8px 9px 5px; }
  .cr-video-controls-row { gap: 3px; }
  #bandScene .cr-video-control { width: 36px; flex-basis: 36px; height: 36px; min-height: 36px; padding: 7px; }
}
