/* apps-2: player, screensavers, looks, system. Scoped by app. */
.win.b95-ghost { display: none !important; }

/* ================= CD-Hymn Player ================= */
.pl-body { padding: 0 !important; background: #1b1b1f; overflow: auto; }
.pl { display: flex; flex-direction: column; gap: 5px; padding: 6px; min-height: 100%; color: #c8d0d8; font-family: var(--font); background: linear-gradient(#34363d, #1c1d22 40%, #131418); box-shadow: inset 1px 1px #5a5d68, inset -1px -1px #08080a; }
.pl-head { display: flex; align-items: center; gap: 6px; }
.pl-logo { font: 700 13px/1 "Silkscreen", var(--font); color: #7dff6a; text-shadow: 0 0 5px #3f3; letter-spacing: 1px; }
.pl-logo2 { font: 10px/1 "Silkscreen", var(--font); color: #8a93a4; flex: 1; }
.pl select { background: #0b0c0e; color: #7dff6a; border: 1px solid #50535e; box-shadow: none; font: 11px var(--mono); font-size: 15px; min-height: 22px; max-width: 130px; }
.pl-lcd { background: #031004; border: 2px solid; border-color: #08080a #4c4f5a #4c4f5a #08080a; padding: 5px 6px; color: #5dff4e; font-family: var(--mono); box-shadow: inset 0 0 14px rgba(0,255,60,.12); }
.pl-row { display: flex; gap: 8px; align-items: flex-end; justify-content: space-between; }
.pl-left { display: flex; flex-direction: column; }
.pl-state { font: 13px/1 var(--mono); color: #36b52c; letter-spacing: 2px; }
.pl-time { font: 46px/0.9 var(--mono); color: #6dff5a; text-shadow: 0 0 8px #2f2; letter-spacing: 2px; }
.pl-spec { width: 96px; height: 34px; background: #000; border: 1px solid #0b3a0f; image-rendering: pixelated; flex: none; }
.pl-marq { overflow: hidden; white-space: nowrap; margin-top: 4px; border-top: 1px solid #0c4a10; border-bottom: 1px solid #0c4a10; font-size: 17px; line-height: 20px; }
.pl-marq span { display: inline-block; padding-left: 100%; animation: pl-scroll 16s linear infinite; }
@keyframes pl-scroll { to { transform: translateX(-100%); } }
html[data-motion="off"] .pl-marq span { animation: none; padding-left: 0; }
.pl-row2 { display: flex; justify-content: space-between; font-size: 14px; color: #36b52c; margin-top: 2px; }
.pl-prog { height: 5px; background: #052007; margin-top: 3px; border: 1px solid #0c4a10; }
.pl-prog i { display: block; height: 100%; width: 0; background: #5dff4e; }
.pl-trans { display: flex; gap: 3px; }
.pl-b, .pl-t { background: linear-gradient(#6a6e7a, #3d4049 50%, #2c2e35); color: #e8ecf4; border: 1px solid #0a0a0c; box-shadow: inset 1px 1px #9aa0ae, inset -1px -1px #1a1b20; font: 13px/1 var(--font); height: 28px; flex: 1; padding: 0 2px; cursor: pointer; }
.pl-b:active, .pl-t:active, .pl-t[aria-pressed="true"], .pl-b.on { background: linear-gradient(#2c2e35, #3d4049); box-shadow: inset 1px 1px #111, inset -1px -1px #7a8090; }
.pl-b.on { color: #7dff6a; text-shadow: 0 0 5px #3f3; }
.pl-t { height: 20px; font: 10px/1 "Silkscreen", var(--font); flex: 0 0 auto; padding: 0 6px; }
.pl-t[aria-pressed="true"] { color: #7dff6a; text-shadow: 0 0 4px #3f3; }
.pl-ctl { display: flex; align-items: center; gap: 4px; }
.pl-vl { font: 9px "Silkscreen", var(--font); color: #8a93a4; }
.pl-vol { flex: 1; min-width: 40px; accent-color: #5dff4e; height: 18px; }
.pl-eq { background: #0f1014; border: 1px solid #3a3d48; padding: 4px 6px; }
.pl-eqhead { display: flex; justify-content: space-between; align-items: center; font: 10px "Silkscreen", var(--font); color: #7dff6a; margin-bottom: 4px; }
.pl-eqrow { display: flex; justify-content: space-between; gap: 2px; }
.pl-band { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; font: 9px var(--font); color: #8a93a4; }
.pl-rail { position: relative; width: 16px; height: 64px; }
.pl-rail input { position: absolute; left: 50%; top: 50%; width: 64px; height: 14px; margin: -7px 0 0 -32px; transform: rotate(-90deg); accent-color: #5dff4e; }
.pl-tabs { display: flex; gap: 2px; margin-top: 2px; }
.pl-tabs button { flex: 1; font: 10px "Silkscreen", var(--font); background: #2a2c33; color: #9aa0ae; border: 1px solid #0a0a0c; height: 22px; box-shadow: inset 1px 1px #50535e; cursor: pointer; }
.pl-tabs button[aria-selected="true"] { background: #0b0c0e; color: #7dff6a; box-shadow: inset 0 -2px #5dff4e; }
.pl-pane { flex: 1; min-height: 120px; background: #0b0c0e; border: 1px solid #3a3d48; overflow: auto; }
.pl-list { margin: 0; padding: 0; list-style: none; font: 16px/1.15 var(--mono); }
.pl-list li { display: flex; gap: 6px; padding: 2px 6px; color: #5dff4e; cursor: pointer; min-height: 22px; align-items: center; }
.pl-list li .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-list li .n, .pl-list li .d { color: #36b52c; }
.pl-list li:hover { background: #12301a; }
.pl-list li.cur { background: #1e5a2a; color: #fff; }
.pl-cd, .pl-tapewrap { padding: 8px; color: #c8d0d8; text-align: center; }
.pl-drive { position: relative; height: 92px; margin: 0 auto 8px; max-width: 280px; background: linear-gradient(#d8d4c4, #b4b0a0); border: 2px solid #55524a; box-shadow: inset 1px 1px #fff; overflow: hidden; }
.pl-slot { position: absolute; left: 8px; right: 8px; top: 8px; height: 8px; background: #1a1a1a; box-shadow: inset 0 1px 3px #000; }
.pl-tray { position: absolute; left: 14px; right: 14px; top: 12px; height: 74px; background: #8f8b7c; border: 1px solid #55524a; transform: scaleY(.14); transform-origin: top; transition: transform .7s steps(8); display: flex; align-items: center; justify-content: center; }
.pl-cd.open .pl-tray { transform: scaleY(1); }
.pl-disc { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#f0a, #0cf, #fe0, #8f4, #f0a); border: 2px solid #ccd; box-shadow: inset 0 0 0 16px rgba(220,220,235,.55), inset 0 0 0 20px transparent; position: relative; }
.pl-disc::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #8f8b7c; border: 1px solid #556; }
.pl.playing .pl-disc { animation: pl-spin 1.2s linear infinite; }
.pl-cd:not(.open) .pl-tray { display: flex; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
html[data-motion="off"] .pl.playing .pl-disc { animation: none; }
.pl-drive-l { position: absolute; right: 8px; bottom: 3px; font: 8px "Silkscreen", var(--font); color: #55524a; }
.pl-case { display: none; margin-top: 10px; text-align: left; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.pl-cd.open .pl-case { display: flex; }
.pl-jewel { flex: 0 0 140px; }
.pl-jewel svg, .pl-jewel img { width: 140px; height: auto; display: block; image-rendering: auto; }
.pl-liner { flex: 1 1 140px; background: #fdf6d8; color: #222; padding: 6px 8px; font: 12px/1.35 "Times New Roman", serif; border: 1px solid #999; }
.pl-liner h4 { margin: 0 0 4px; font: 700 12px Arial, sans-serif; color: #2a2a9a; }
.pl-liner p { margin: 0 0 5px; }
.pl-fine { font-size: 10px !important; color: #777; }
.pl-tape svg { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; image-rendering: auto; }
.pl.playing .reel { animation: pl-spin 1.6s linear infinite; transform-box: view-box; }
html[data-motion="off"] .pl.playing .reel { animation: none; }
.pl-tapewrap .pl-fine { color: #8a93a4; margin-top: 6px; }
.pl-cd .btn.sm { color: #000; }

/* ================= Screensavers ================= */
.ss { display: flex; flex-direction: column; gap: 0; min-height: 100%; }
.ss-panel { flex: 1; }
.ss-crt { width: 190px; margin: 4px auto 10px; }
.ss-screen { background: #cfcfc0; padding: 12px 14px 14px; border-radius: 10px; box-shadow: inset 2px 2px #fff, inset -2px -2px #8a8a7c, 0 0 0 1px #555; }
.ss-prev { display: block; width: 152px; height: 112px; background: #000; border-radius: 6px / 8px; box-shadow: inset 0 0 0 2px #222, inset 0 0 12px #000; image-rendering: pixelated; }
.ss-base { width: 110px; height: 8px; margin: 0 auto; background: #b4b4a4; box-shadow: inset 1px 1px #fff, inset -1px -1px #77776a; }
.ss-sel { max-width: 100%; flex: 1; min-width: 140px; }
.ss .ss-min { width: 56px; }
.ss-info, .ss-fine { font-size: 11px; color: var(--text); margin: 4px 0 0; opacity: .85; }
.saver-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.saver-play { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 3; }
.saver-rest { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 24px)); background: #c0c0c0; color: #000; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; padding: 3px; font: 12px "MS Sans", Tahoma, Arial, sans-serif; z-index: 2; }
.rest-title { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; padding: 2px 4px; }
.rest-body { display: flex; gap: 12px; padding: 14px 12px 8px; align-items: flex-start; }
.rest-ic { width: 32px; height: 32px; flex: none; background: url("../assets/icons/shutdown.svg") center / contain no-repeat; }
.rest-body p { margin: 0 0 8px; }
.rest-v { font: italic 14px Georgia, serif; }
.rest-v span { font: 11px Arial, sans-serif; font-style: normal; }
.rest-btn { text-align: center; padding: 0 0 8px; }
.rest-btn .btn { color: #000; background: #c0c0c0; }

/* ================= Desktop Themes ================= */
.lk { display: flex; flex-direction: column; min-height: 100%; }
.lk-panels { flex: 1; min-height: 0; overflow: auto; }
.lk-cols { display: flex; gap: 10px; align-items: flex-start; }
.lk-left { flex: 1 1 50%; min-width: 0; }
.lk-right { flex: 1 1 50%; min-width: 0; }
.lk-lbl { margin: 0 0 3px; }
.lk-list { height: 190px; }
.lk-list li { cursor: default; }
.lk-monbox { margin-bottom: 6px; }
.lk-desc { text-align: center; font-size: 11px; margin-top: 4px; min-height: 28px; }
.lk-mon { width: 100%; max-width: 190px; margin: 0 auto; }
.lk-scr { background: #cfcfc0; padding: 8px; border-radius: 8px; box-shadow: inset 2px 2px #fff, inset -2px -2px #8a8a7c, 0 0 0 1px #555; }
.lk-stand { width: 60%; height: 7px; margin: 0 auto; background: #b4b4a4; box-shadow: inset 1px 1px #fff, inset -1px -1px #77776a; }
.lk-desk { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 2px #222; font: 700 7px/1 Arial, sans-serif; }
.lk-mbar { position: absolute; left: 0; right: 0; top: 0; height: 9px; padding: 1px 4px; font-size: 6px; border-bottom: 1px solid #000; }
.lk-win { position: absolute; left: 16%; top: 22%; width: 62%; height: 46%; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, 0 0 0 1px #000; padding: 2px; }
.lk-tb { height: 9px; padding: 1px 3px; font-size: 6px; }
.lk-bd { margin-top: 2px; height: calc(100% - 12px); padding: 4px; display: flex; flex-direction: column; gap: 3px; box-shadow: inset 1px 1px #808080; }
.lk-bd i { display: block; height: 3px; width: 85%; opacity: .7; }
.lk-bd b { display: block; width: 40%; height: 5px; margin-top: auto; }
.lk-ic { position: absolute; left: 4px; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #fff; }
.lk-ic u { width: 8px; height: 8px; border: 1px solid; display: block; }
.lk-ic span { font-size: 5px; text-shadow: 1px 1px #000; }
.lk-task { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; box-shadow: inset 0 1px #fff; padding: 1px; }
.lk-task b { display: inline-block; padding: 1px 4px; font-size: 6px; box-shadow: inset -1px -1px #000, inset 1px 1px #fff; }
.lk-btns { margin-top: 10px; }
.lk-modes { display: flex; flex-direction: column; gap: 2px; }
.lk-sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-width: 280px; }
.lk-sw button { height: 22px; border: 0; box-shadow: inset 1px 1px #000, inset -1px -1px #fff; cursor: pointer; padding: 0; }
.lk-curs { display: flex; flex-direction: column; gap: 4px; }
.lk-curs label { gap: 6px; }
.lk-cpv { width: 24px; height: 24px; display: inline-block; background: center / contain no-repeat #fff; border: 1px solid var(--dk); }
.lk-fine { font-size: 11px; opacity: .85; margin: 8px 0 0; }
.lk-evs { height: 240px; }
.lk-evs li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 3px; }
.lk-evs li.sel .btn, .lk-evs li:hover .btn { color: #000; }

/* ================= My Computer / Control Panel / Add-Remove ================= */
.mc { display: flex; flex-direction: column; height: 100%; min-height: 220px; }
.mc .toolbar { flex: none; }
.mc-addr { flex: 1; min-width: 100px; }
.mc-split { display: flex; flex: 1; min-height: 0; gap: 3px; }
.mc-left { flex: 0 0 150px; background: var(--paper); box-shadow: var(--bevel-field); overflow: auto; padding: 3px; color: var(--text); }
.mc-tree, .mc-tree ul { list-style: none; margin: 0; padding: 0; }
.mc-tree ul { padding-left: 14px; }
.mc-tree button { display: flex; align-items: center; gap: 3px; width: 100%; text-align: left; background: none; border: 0; padding: 1px 2px; color: var(--text); white-space: nowrap; }
.mc-tree button.sel { background: var(--sel); color: var(--seltext); }
.mc-pane { flex: 1; min-width: 0; background: var(--paper); box-shadow: var(--bevel-field); overflow: auto; padding: 6px; color: var(--text); }
.mc-pane.v-icons { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.mc-it { background: none; border: 1px dotted transparent; color: inherit; padding: 4px 2px; }
.mc-pane.v-icons .mc-it { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.mc-pane.v-icons .lbl { font-size: var(--font-size); overflow-wrap: anywhere; line-height: 1.15; }
.mc-it.sel .lbl, .mc-pane.v-details .mc-it.sel { background: var(--sel); color: var(--seltext); }
.mc-pane.v-details .mc-it, .mc-hd { display: grid; grid-template-columns: 22px 1.5fr 70px 1.5fr; align-items: center; width: 100%; text-align: left; gap: 4px; }
.mc-hd { grid-template-columns: 1.5fr 70px 1.5fr; padding: 1px 2px 1px 26px; box-shadow: var(--bevel-btn); background: var(--face); margin-bottom: 2px; }
.mc-pane.v-details .mc-it .n, .mc-pane.v-details .mc-it .s, .mc-pane.v-details .mc-it .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-empty { margin: 8px; }
.cp { display: flex; flex-wrap: wrap; gap: 8px 4px; padding: 10px; align-content: flex-start; background: var(--paper); color: var(--text); min-height: 100%; }
.cp-it { width: 88px; background: none; border: 1px dotted transparent; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: inherit; }
.cp-it:hover, .cp-it:focus { background: var(--sel); color: var(--seltext); }
.ar { padding: 8px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.ar p { margin: 0; }
.ar-list { flex: 1; min-height: 100px; }
.ar-list li { display: flex; gap: 6px; align-items: center; }
.ar-list li span { flex: 1; }
.ar-list li em { font-style: normal; opacity: .7; }
@media (max-width: 640px) {
  .mc-split { flex-direction: column; }
  .mc-left { flex: 0 0 96px; }
  .lk-cols { flex-direction: column; }
  .lk-left, .lk-right { flex-basis: auto; width: 100%; }
  .lk-list { height: 130px; }
  .lk-panels { padding: 6px; }
  .mc-pane.v-details .mc-it { grid-template-columns: 22px 1fr 60px; }
  .mc-pane.v-details .mc-it .t { display: none; }
  .mc-hd span:last-child { display: none; }
  .mc-hd { grid-template-columns: 1fr 60px; }
}

/* ================= Recycle Bin (Deleted Doubts) ================= */
.rb { padding: 8px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.rb-top { flex-wrap: nowrap; }
.rb-top .rb-in { flex: 1; min-width: 0; }
.rb-list { flex: 1; min-height: 110px; transition: opacity .6s, transform .6s; }
.rb-list.whoosh { opacity: 0; transform: translateY(40px) scale(.9); }
.rb-it { display: flex; gap: 6px; align-items: center; padding: 3px 4px; }
.rb-it .n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.rb-it .s { opacity: .7; }
.rb-none { opacity: .7; font-style: italic; }
.rb-fine { margin: 0; font-size: 10px; opacity: .75; }
.rb-btns .btn { min-width: 0; }

/* ================= BSOD / Shut down ================= */
.bsod { position: absolute; inset: 0; background: #0000aa; color: #fff; font: 20px/1.35 "Lucida Console", "Courier New", monospace; padding: 8vh 6vw; overflow: auto; cursor: none; }
.bsod p { margin: 0 0 1.2em; max-width: 78ch; }
.bsod-title { text-align: center; margin-bottom: 1.6em; }
.bsod-title span { background: #aaa; color: #0000aa; padding: 0 10px; }
@media (max-width: 640px) { .bsod { font-size: 14px; padding: 6vh 5vw; } }
.sd-black { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1.2s ease-in; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.sd-black.on { opacity: 1; }
.sd-safe { color: #ff8c00; font: 30px/1.35 "VT323", "Courier New", monospace; text-shadow: 0 0 4px rgba(255,140,0,.5); }
.sd-back { position: absolute; bottom: 14px; left: 0; right: 0; color: #5a3200; font: 14px "VT323", monospace; cursor: pointer; }
.sd-back:hover { color: #ff8c00; }
.sd { width: 100%; }
.sd-top { display: flex; gap: 12px; align-items: flex-start; }
.sd-top p { margin: 0 0 8px; }
.sd-opts { display: flex; flex-direction: column; gap: 6px; }
.sd-opts label { align-items: flex-start; }
.sd-btns { display: flex; gap: 6px; justify-content: center; padding-top: 12px; flex-wrap: wrap; }
.sd-btns .btn { min-width: 75px; }

/* ================= About ================= */
.ab { width: 100%; }
.ab-word { font: 700 34px/1 "Silkscreen", var(--font); letter-spacing: -1px; display: flex; align-items: center; gap: 8px; text-shadow: 2px 2px 0 var(--lo); }
.ab-word b { color: #c00000; }
.ab-flag { width: 36px; height: 30px; background: url("../assets/icons/start.svg") center / contain no-repeat; display: inline-block; }
.ab-ver { margin-top: 2px; }
.ab p { margin: 6px 0; line-height: 1.4; }
.ab-credits { font-size: 10px; opacity: .85; }
.ab-res span { display: block; margin-bottom: 2px; }

/* ================= Defrag ================= */
.df { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.df-t { margin: 0; font-weight: 700; }
.df-cv { width: 100%; height: auto; background: #808080; padding: 2px; box-shadow: var(--bevel-field); image-rendering: pixelated; display: block; }
.df-leg { display: flex; gap: 12px; flex-wrap: wrap; }
.df-leg i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border: 1px solid #000; vertical-align: -1px; }
.df-line { font-weight: 700; }

/* ================= Gags ================= */
.cd, .dl, .ds { width: 100%; }
.cd-top { display: flex; gap: 12px; align-items: center; }
.cd-disc { flex: none; width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#f0a, #0cf, #fe0, #8f4, #f0a); border: 2px solid #aab; position: relative; box-shadow: inset 0 0 0 18px rgba(230,230,245,.5); }
.cd-disc::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--face); border: 1px solid #667; }
.cd-disc.go { animation: pl-spin .7s linear infinite; }
html[data-motion="off"] .cd-disc.go { animation: none; }
.cd-msg { line-height: 1.35; }
.cd-w { font-size: 20px; margin-bottom: 4px; }
.cd .progress { margin-top: 8px; }
.dl-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.dl-eta, .dl-st { margin: 6px 0 0; }
.dl-r { white-space: pre-line; margin: 6px 0; font-size: 10px; opacity: .85; }
.dl-chk { margin: 4px 0; }
.ds-top { display: flex; gap: 12px; align-items: flex-start; }
.ds-top .dlg-text { flex: 1; min-width: 0; }
.win.dialog .body:has(.sd), .win.dialog .body:has(.ab), .win.dialog .body:has(.cd), .win.dialog .body:has(.dl), .win.dialog .body:has(.ds) { display: block; }
.pl-rail::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 3px; margin-left: -1px; background: #0c4a10; box-shadow: 0 0 0 1px #052007; }
.pl-rail input { background: transparent; }
