/* App/win98/css/multimedia.css — Phase 3 multimedia: the trackbar control,
   Sounds Properties, Volume Control, Media Player 6.4, CD Player, Sound
   Recorder, Imaging and the CD-ROM drive's dialogs. */

/* ── trackbar (msctls_trackbar32) ── */
.trackbar { position: relative; flex: none; outline: none; touch-action: none; }
.trackbar.tb-h { height: 26px; }
.trackbar.tb-v { width: 30px; }
.trackbar .tb-chan { position: absolute; background: var(--window-bg, #fff); box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilight), inset 2px 2px var(--dkshadow), inset -2px -2px var(--light); }
.trackbar.tb-h .tb-chan { left: 0; right: 0; top: 8px; height: 4px; }
.trackbar.tb-v .tb-chan { top: 0; bottom: 0; left: 8px; width: 4px; }
.trackbar .tb-thumb { position: absolute; background: var(--face); box-shadow: inset -1px -1px var(--dkshadow), inset 1px 1px var(--hilight), inset -2px -2px var(--shadow), inset 2px 2px var(--light); }
.trackbar.tb-h .tb-thumb { top: 0; width: 11px; height: 21px; }
.trackbar.tb-h .tb-thumb.ptr { clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); }
.trackbar.tb-v .tb-thumb { left: 0; width: 21px; height: 11px; }
.trackbar.tb-v .tb-thumb.ptr { clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%); }
.trackbar .tb-ticks i { position: absolute; background: var(--text, #000); }
.trackbar.tb-h .tb-ticks i { top: 23px; width: 1px; height: 3px; }
.trackbar.tb-v .tb-ticks i { left: 24px; width: 3px; height: 1px; }
.trackbar:focus-visible .tb-thumb { outline: 1px dotted var(--text, #000); outline-offset: 1px; }
.trackbar.dis .tb-thumb { opacity: .6; }
.trackbar.dis { pointer-events: none; }

/* ── Sounds Properties ── */
.snd-pane { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; }
.snd-events { height: 128px; padding: 1px; }
.snd-events .opt { padding: 0 2px; gap: 3px; height: 18px; }
.snd-events .snd-ev { padding-left: 22px; }
.snd-events .snd-evico { width: 16px; height: 16px; display: inline-flex; }
.snd-events .snd-evico svg { width: 16px; height: 16px; }
.snd-events .snd-ev span:last-child { padding: 0 2px; }
.snd-events .snd-ev.sel { background: none; color: inherit; }
.snd-events .snd-ev.sel span:last-child { background: var(--sel-bg); color: var(--sel-text); }
.snd-events:focus .snd-ev.sel span:last-child { outline: 1px dotted var(--sel-text); outline-offset: -1px; }
.snd-pane fieldset { margin: 2px 0 0; padding: 4px 8px 8px; }
.snd-row { display: flex; gap: 10px; align-items: flex-start; }
.snd-col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.snd-name, .snd-scheme { width: 100%; }
.snd-btns { display: flex; gap: 6px; margin-top: 5px; }
.snd-btns.right { justify-content: flex-end; }
.snd-prev { display: flex; flex-direction: column; gap: 3px; }
.snd-prevrow { display: flex; align-items: flex-end; gap: 4px; }
.snd-previco { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.snd-previco svg { width: 32px; height: 32px; }
.snd-play { min-width: 0; width: 25px; height: 23px; padding: 0; display: flex; align-items: center; justify-content: center; }
.snd-tri { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.snd-play.on .snd-tri { width: 7px; height: 7px; border: 0; background: currentColor; }
.snd-play:disabled .snd-tri { border-left-color: var(--shadow); filter: drop-shadow(1px 1px var(--hilight)); }
.snd-details { gap: 8px; }
.snd-dgrid, .mp-pgrid, .sr-pgrid, .cd-pgrid, .im-pgrid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; }

/* ── Volume Control ── */
.sndvol .sv-cols { display: flex; padding: 4px 2px 6px; }
.sv-col { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 0 2px; }
.sv-sep { width: 2px; flex: none; border-left: 1px solid var(--shadow); border-right: 1px solid var(--hilight); margin: 0 2px; }
.sv-head { font-weight: normal; margin: 2px 0 6px; white-space: nowrap; }
.sv-lab { align-self: flex-start; margin: 2px 0 0 8px; }
.sv-bal { display: flex; align-items: center; gap: 2px; }
.sv-spk { width: 9px; height: 12px; flex: none; position: relative; }
.sv-spk::before { content: ""; position: absolute; top: 2px; width: 3px; height: 6px; background: #000; }
.sv-spk::after { content: ""; position: absolute; top: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.sv-spk.l::before { left: 6px; } .sv-spk.l::after { left: 1px; border-right: 5px solid #000; }
.sv-spk.r::before { left: 0; } .sv-spk.r::after { left: 3px; border-left: 5px solid #000; }
.sv-vol { display: flex; justify-content: center; margin: 2px 0 4px; }
.sv-mute { display: flex; align-items: center; gap: 4px; margin-top: 4px; white-space: nowrap; }
.sv-adv { min-width: 70px; margin-top: 6px; }
.sv-tone { display: grid; grid-template-columns: 48px auto auto auto; align-items: center; gap: 6px; margin: 4px 0; }
.sv-props { gap: 6px; }
.sv-props fieldset { display: flex; flex-direction: column; gap: 3px; }
.sv-props label { display: flex; gap: 4px; align-items: center; }
.sv-prow { display: flex; gap: 8px; align-items: center; }
.sv-prow select { flex: 1; }
.sv-show { height: 96px; }
.sv-pop { position: absolute; z-index: 90500; padding: 6px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--face); box-shadow: inset -1px -1px var(--dkshadow), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--hilight); }

/* ── Windows Media Player 6.4 ── */
.mplayer .body { background: var(--face); }
.mp { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mp-screen { position: relative; background: #000; flex: none; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto; }
.mp-screen:not([style*="width"]) { align-self: stretch; height: 140px; }
.mplayer.max .mp-screen, .mp-screen.mp-stretch { flex: 1; width: auto !important; height: auto !important; align-self: stretch; }
.mp-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.mp-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: italic 18px "Times New Roman", serif; }
.mp-logo-in { display: flex; align-items: center; gap: 8px; }
.mp-logo-ico svg { width: 32px; height: 32px; }
.mp-display { flex: none; background: #000; color: #00ff00; padding: 3px 6px; font-size: 11px; border-top: 1px solid #404040; }
.mp-drow { display: grid; grid-template-columns: 64px 1fr; white-space: nowrap; overflow: hidden; }
.mp-drow span:first-child { color: #c0c0c0; }
.mp-seekrow { flex: none; padding: 2px 4px 0; }
.mp-seekrow .trackbar { width: 100% !important; height: 18px; }
.trackbar.mp-seek .tb-chan, .trackbar.sr-seek .tb-chan { top: 6px; height: 4px; }
.trackbar.mp-seek .tb-thumb, .trackbar.sr-seek .tb-thumb { width: 9px; height: 16px; top: 0; }
.mp-ctrls { flex: none; display: flex; align-items: center; gap: 0; padding: 2px 4px 3px; }
.mp-tb { min-width: 0; width: 24px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mp-tb .mp-g svg, .mp-tb > svg { width: 16px; height: 15px; }
.mp-tb:disabled .mp-g { opacity: .45; }
.mp-sep { width: 6px; }
.mp-fill { flex: 1; }
.mp-mute svg { width: 16px; height: 16px; }
.trackbar.mp-vol { height: 22px; }
.trackbar.mp-vol .tb-chan { top: 8px; height: 4px; }
.trackbar.mp-vol .tb-thumb { width: 7px; height: 14px; top: 3px; }
.mp-status { flex: none; display: flex; gap: 2px; padding: 0 2px 2px; }
.mp-status > div { height: 18px; padding: 2px 6px; box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilight); white-space: nowrap; overflow: hidden; }
.mp-st-l { flex: 1; } .mp-st-r { flex: none; min-width: 96px; text-align: right; }
.mplayer.mp-compact .mp-tb { width: 20px; height: 19px; }
.mplayer.mp-compact .mp-ctrls > :nth-child(n+5):nth-child(-n+8) { display: none; }
.mplayer.mp-minimal .mp-ctrls > :nth-child(n+4):not(.mp-fill):not(.mp-mute):not(.mp-vol) { display: none; }
.mplayer.mp-minimal .mp-mute, .mplayer.mp-minimal .mp-vol { display: none; }
.mp-full { position: absolute; inset: 0; z-index: 95000; background: #000; display: flex; align-items: center; justify-content: center; }
.mp-full .mp-video { width: 100%; height: 100%; display: block !important; }
.mp-pico { display: flex; align-items: center; gap: 8px; }
.mp-pico svg { width: 32px; height: 32px; }
.mp-favs { flex: 1; min-height: 100px; }

/* ── CD Player ── */
.cdplayer .body { background: var(--face); }
.cd { display: flex; flex-direction: column; padding: 2px 4px 2px; gap: 6px; }
.cd-top { display: flex; gap: 8px; align-items: stretch; }
.cd-led { background: #000; display: flex; align-items: center; justify-content: center; min-width: 186px; height: 44px; padding: 4px 10px; }
.cd-led svg rect.on, .cd-led svg rect { fill: #00ff00; }
.cd-led svg rect.off { fill: none; }
.cd-led svg path.onl { stroke: #00ff00; }
.cd-led.blink svg { animation: cd-blink 1s steps(1) infinite; }
@keyframes cd-blink { 50% { opacity: 0; } }
.cdplayer.cd-small .cd-led { min-width: 140px; height: 32px; }
.cd-btns { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.cd-row1, .cd-row2 { display: flex; gap: 0; }
.cd-b { min-width: 0; width: 24px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.cd-row1 .cd-play { width: 72px; }
.cd-b:disabled .cd-g { opacity: .45; }
.cd-info { display: grid; grid-template-columns: auto 1fr; gap: 3px 6px; align-items: center; }
.cd-info select, .cd-info input { width: 100%; }
.cd-info input[readonly] { background: var(--window-bg, #fff); }
.cd-status { display: flex; gap: 2px; }
.cd-status > div { flex: 1; height: 18px; padding: 2px 4px; box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilight); white-space: nowrap; overflow: hidden; }
.cd-toolbar { margin: 0 -4px 0; }
.cd-tbb { min-width: 0; width: 23px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.cd-tsep { width: 6px; }
.cd-prefs { gap: 6px; }
.cd-prefs fieldset { display: flex; flex-direction: column; gap: 3px; }
.cd-prefs label { display: flex; gap: 4px; align-items: center; }
.cd-prow { display: flex; gap: 6px; align-items: center; }
.cd-edit { gap: 8px; }
.cd-egrid { display: grid; grid-template-columns: 50px 1fr; gap: 4px 8px; align-items: center; }
.cd-lists { display: flex; gap: 8px; }
.cd-lcol { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-plist { height: 140px; }
.cd-mid { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.cd-namerow { display: flex; gap: 6px; align-items: center; }
.cd-namerow input { flex: 1; }
.cd-insert .cd-disclist { height: 120px; margin: 4px 0; }
.cd-insnow { color: var(--shadow); margin-bottom: 4px; }
.cd-props { gap: 6px; }
.cd-prow { display: flex; gap: 8px; align-items: center; }
.cd-prow svg, .cd-pdrive svg { width: 32px; height: 32px; }
.cd-pdrive { display: flex; gap: 8px; align-items: center; }

/* ── Sound Recorder ── */
.sndrec .body { background: var(--face); }
.sr { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 6px; }
.sr-top { display: flex; align-items: center; gap: 8px; }
.sr-side { width: 66px; display: flex; flex-direction: column; gap: 2px; }
.sr-side.right { text-align: right; }
.sr-scopebox { padding: 2px; box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilight), inset 2px 2px var(--dkshadow), inset -2px -2px var(--light); background: #000; line-height: 0; }
.sr-scope { width: 140px; height: 40px; image-rendering: pixelated; }
.sr-seekrow .trackbar { width: 100% !important; height: 18px; }
.sr-btns { display: flex; gap: 0; justify-content: center; }
.sr-b { min-width: 0; width: 48px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sr-b svg { width: 16px; height: 15px; }
.sr-b:disabled svg { opacity: .45; }
.sr-props, .sr-conv { gap: 8px; }
.sr-pico { display: flex; align-items: center; gap: 8px; }
.sr-pico svg { width: 32px; height: 32px; }
.sr-prow { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.sr-cgrid { display: grid; grid-template-columns: 70px 1fr; gap: 6px 8px; align-items: center; }

/* ── Imaging ── */
.imaging .body { background: var(--face); }
.im { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.im-toolbar { flex-wrap: wrap; }
.im-tb { min-width: 0; width: 23px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.im-sep { width: 4px; height: 20px; border-left: 1px solid var(--shadow); border-right: 1px solid var(--hilight); margin: 0 3px; }
.im-zoomsel { width: 88px; }
.im-page { width: 56px; height: 20px; text-align: center; }
.im-main { flex: 1; display: flex; min-height: 0; gap: 2px; }
.im-stage { flex: 1; overflow: auto; background: #808080; display: flex; align-items: safe center; justify-content: safe center; padding: 10px; }
.im-canvas { flex: none; background: #fff; box-shadow: 2px 2px 0 #404040; }
.im-thumbs { display: none; overflow: auto; background: #808080; padding: 6px; align-content: flex-start; flex-wrap: wrap; gap: 8px; }
.im-main.im-thumbs .im-thumbs { display: flex; flex: 1; }
.im-main.im-thumbs .im-stage { display: none; }
.im-main.im-both .im-thumbs { display: flex; flex-direction: column; flex-wrap: nowrap; width: 128px; flex: none; align-items: center; }
.im-thumb { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; padding: 3px; cursor: default; }
.im-tframe { width: 100px; height: 124px; display: flex; align-items: center; justify-content: center; }
.im-tcan { background: #fff; box-shadow: 1px 1px 0 #404040; }
.im-thumb.sel .im-tframe { outline: 2px solid var(--sel-bg, #000080); }
.im-thumb.sel > div:last-child { background: var(--sel-bg, #000080); color: var(--sel-text, #fff); }
.imaging .statusbar .im-stz { width: 96px; }
