/* Optional Windows programs inherit the desktop theme. Winamp keeps its own skin. */
.extras-window {
  --chat-action: #7b217b;
  color: var(--text);
  font: 14px/1.5 Tahoma, Verdana, Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
:root[data-theme="dark"] .extras-window { --chat-action: #e8a4e8; }
.extras-window button, .extras-window input, .extras-window textarea { font: inherit; }
.extras-window button { cursor: pointer; }
.extras-window :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.extras-titlebar { gap: 8px; min-height: 35px; }
.extras-titlebar h2 { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: #fff; font: bold 13px/1.3 Tahoma, Verdana, Arial, sans-serif; }
.extras-title-actions { display: flex; flex-shrink: 0; gap: 4px; }
.extras-titlebar .extras-title-button { color: var(--text); }
.extras-titlebar .extras-title-button:focus-visible { outline-color: var(--link); outline-offset: -4px; }
.extras-title-button:active { box-shadow: var(--inset); }
.extras-launcher-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; font: bold 22px/1 monospace; }
[data-extras-menu] { display: flex; flex-wrap: wrap; gap: 8px; }
.start-links [data-extras-menu] { display: block; }
.start-links [data-extras-menu] .extras-launcher { justify-content: flex-start; box-shadow: none; }
.extras-player { --link: #e2e4da; color-scheme: dark; --surface: #484b59; --highlight: #9a9eac; --shadow: #20222c; --edge: #11131b; --inset: inset 1px 1px #20222c, inset -1px -1px #9a9eac; --raised: inset 1px 1px #9a9eac, inset -1px -1px #20222c; position: fixed; z-index: 12; right: 14px; bottom: calc(64px + env(safe-area-inset-bottom)); width: 308px; max-width: calc(100% - 16px); max-height: calc(100dvh - 84px - env(safe-area-inset-bottom)); overflow: auto; }
.extras-player .extras-titlebar { min-height: 28px; padding: 3px 4px; gap: 8px; background: linear-gradient(#646875, #2c2f3e 48%, #4b4f5d); border: 1px solid; border-color: #989da8 #20222d #161822 #838893; }
.extras-player .extras-titlebar h2 { margin-right: auto; color: #eef0f5; font: bold 11px/1 Tahoma, Verdana, sans-serif; letter-spacing: .16em; text-shadow: 1px 1px #171923; }
.extras-player .extras-title-button, .extras-shade-play { color: #e2e4da; background: #454955; border: 1px solid; border-color: #b0b4bd #171923 #171923 #8d929e; box-shadow: inset -1px -1px #292c37; }
.extras-player .extras-title-button { width: 26px; height: 25px; }
.extras-player .extras-title-button:focus-visible, .extras-shade-play:focus-visible { outline-color: #e2e4da; outline-offset: -4px; }
.extras-shade-time, .extras-shade-play { display: none; }
.extras-shade-time { flex-shrink: 0; color: #b3f86c; font: 14px/1 'Courier New', monospace; font-variant-numeric: tabular-nums; }
.extras-shade-play { width: 26px; height: 25px; padding: 0; place-items: center; }
.extras-player-body { padding: 9px; background: #30323e; }
.extras-player-screen { padding: 8px 10px; background: #101812; border: 1px solid; border-color: #0b0c0f #767884 #767884 #0b0c0f; color: #a7f167; font-family: "Courier New", monospace; }
.extras-player-readout { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.extras-player-time { color: #b3f86c; font: 28px/1 "Courier New", monospace; font-variant-numeric: tabular-nums; }
.extras-player-state { color: #b3dd98; font-size: 9px; }
.extras-track { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.extras-equalizer { height: 23px; display: flex; align-items: flex-end; gap: 4px; padding: 4px 1px 0; }
.extras-equalizer i { width: 9px; height: 4px; background: #81c94e; }
.extras-player.is-playing .extras-equalizer i { height: 18px; transform-origin: bottom; animation: extras-levels .7s steps(4) infinite alternate; }
.extras-player.is-playing .extras-equalizer i:nth-child(3n) { animation-duration: .43s; animation-delay: -.3s; }
.extras-player.is-playing .extras-equalizer i:nth-child(3n + 1) { animation-duration: .97s; animation-delay: -.6s; }
@keyframes extras-levels { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.extras-progress-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.extras-player-progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 2px 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.extras-player-progress::-webkit-slider-runnable-track { height: 8px; background: #171b22; border: 1px solid; border-color: #11131b #767884 #767884 #11131b; }
.extras-player-progress::-moz-range-track { height: 6px; background: #171b22; border: 1px solid; border-color: #11131b #767884 #767884 #11131b; }
.extras-player-progress::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 18px; margin-top: -6px; border: 1px solid; border-color: #fafbf1 #11131b #11131b #fafbf1; border-radius: 0; background: #c2c3bd; box-shadow: inset -1px -1px #66686a; }
.extras-player-progress::-moz-range-thumb { width: 12px; height: 16px; border: 1px solid; border-color: #fafbf1 #11131b #11131b #fafbf1; border-radius: 0; background: #c2c3bd; box-shadow: inset -1px -1px #66686a; }
.extras-player .extras-player-progress:focus-visible { outline-color: #fff; outline-offset: 0; }
.extras-player-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.extras-control { display: grid; place-items: center; min-width: 0; min-height: 36px; padding: 4px; background: #c2c3bd; color: #14181e; border: 1px solid; border-color: #fafbf1 #0b0c0f #0b0c0f #fafbf1; box-shadow: inset -1px -1px #66686a; }
.extras-control:hover { background: #d3d4cc; }
.extras-shade-play:hover { background: #585d6b; }
.extras-shade-play:active { box-shadow: var(--inset); }
.extras-control:active { box-shadow: inset 1px 1px #555; border-color: #0b0c0f #fafbf1 #fafbf1 #0b0c0f; }
.extras-control:focus-visible { outline-color: #003f80; outline-offset: -4px; }
.extras-playlist-heading { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 4px 6px; border: 1px solid; border-color: #878c99 #161923 #161923 #787e8c; background: #444856; color: #d6d9c3; font: 9px/1.2 Tahoma, Verdana, sans-serif; letter-spacing: .08em; }
.extras-playlist-heading span:last-child { letter-spacing: normal; }
.extras-playlist { list-style: none; margin: 0; padding: 2px; max-height: 180px; overflow: auto; overscroll-behavior: contain; background: #101812; border: 2px solid; border-color: #161822 #73798a #73798a #161822; }
.extras-playlist button { display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: 28px; padding: 4px 6px; border: 0; background: transparent; color: #b3dd98; text-align: left; font: 11px/1.5 "Courier New", monospace; }
.extras-playlist button span:first-child { min-width: 0; overflow-wrap: anywhere; }
.extras-playlist button span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.extras-playlist button[aria-pressed="true"] { background: #2d4330; color: #d4ffaa; }
.extras-playlist button:hover { background: #243a27; }
.extras-playlist button:focus-visible { outline-color: #d4ffaa; outline-offset: -2px; }
.extras-track-info { margin-top: 6px; border: 1px solid #73798a; background: #101812; color: #b3dd98; font: 11px/1.5 "Courier New", monospace; }
.extras-track-info summary { min-height: 36px; padding: 9px 6px; cursor: pointer; }
.extras-track-info dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; padding: 0 8px 8px; }
.extras-track-info dt { color: inherit; }
.extras-track-info dd { margin: 0; overflow-wrap: anywhere; }
.extras-player-note { margin: 8px 0 0; color: #e2e3e8; font-size: 10px; line-height: 1.4; }
.extras-player.is-compact .extras-player-body { display: none; }
.extras-player.is-compact .extras-shade-time { display: inline; }
.extras-player.is-compact .extras-shade-play { display: inline-grid; }
.extras-dialog { position: fixed; z-index: 12; inset: auto 14px calc(64px + env(safe-area-inset-bottom)) auto; width: min(640px, calc(100% - 20px)); max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); margin: 0; overflow: auto; }
.extras-dialog:not([open]) { display: none; }
.extras-dialog::backdrop { background: transparent; backdrop-filter: none; }
.extras-dialog[open] { animation: extras-window-rise 180ms ease-out; }
.extras-window[data-inactive="false"] { z-index: 14; }
.extras-program-icon, .extras-mirc-icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.extras-titlebar .extras-program-icon { width: 18px; height: 18px; }
.extras-player .extras-titlebar .extras-program-icon { width: 14px; height: 14px; }
.extras-launcher-icon .extras-program-icon { width: 24px; height: 24px; }
.extras-task-button { width: 140px; min-width: 0; border: 0; background: var(--surface); box-shadow: var(--raised); font-weight: 400; }
.extras-task-button[aria-pressed="true"] { box-shadow: var(--inset); font-weight: 700; }
.taskbar:has(.extras-task-button:not([hidden])) .taskbar-note { display: none; }
@keyframes extras-window-rise { from { transform: translateY(calc(100% + 80px)); } to { transform: translateY(0); } }
.extras-dialog-note { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 12px; }
.extras-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 120px; margin: 0 8px; border: 1px solid; border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow); }
.extras-chat-log { height: min(310px, 42dvh); min-height: 110px; padding: 10px; background: var(--paper); color: var(--text); overflow: auto; overscroll-behavior: contain; font: 13px/1.6 "Courier New", monospace; }
.extras-chat-log p { margin: 0 0 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.extras-chat-system { color: var(--muted); }
.extras-chat-bot { color: var(--link); }
.extras-chat-action { color: var(--chat-action); }
.extras-chat-users { display: flex; flex-direction: column; gap: 6px; padding: 10px 7px; border-left: 1px solid var(--shadow); background: var(--surface); color: var(--text); font: 12px/1.5 "Courier New", monospace; overflow-wrap: anywhere; }
.extras-chat-users strong { color: var(--link); }
.extras-chat-form { margin: 0; padding: 8px; }
.extras-chat-form label { display: block; margin-bottom: 4px; font: 12px/1.4 "Courier New", monospace; }
.extras-chat-entry { display: flex; gap: 6px; }
.extras-chat-entry input { width: 100%; min-width: 0; min-height: 38px; padding: 6px 8px; background: var(--paper); color: var(--text); border: 1px solid var(--shadow); border-radius: 0; font: 14px/1.4 "Courier New", monospace; }
.extras-chat-entry input::placeholder { color: var(--muted); opacity: 1; }
.extras-chat-entry .extras-send { flex-shrink: 0; padding-inline: 12px; min-height: 38px; }
.extras-chat-hint, .extras-notepad-status { margin: 0; padding: 0 10px 9px; color: var(--muted); font-size: 11px; }
.extras-notepad { right: auto; left: max(14px, calc((100vw - 980px) / 2)); width: min(530px, calc(100% - 20px)); }
.extras-notepad textarea { display: block; width: calc(100% - 16px); height: min(340px, 48dvh); min-height: 100px; resize: vertical; margin: 0 8px 8px; padding: 10px; background: var(--paper); color: var(--text); border: 1px solid; border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow); border-radius: 0; font: 14px/1.6 "Courier New", monospace; }
@media (max-width: 650px) {
  .extras-titlebar { min-height: 43px; }
  .extras-titlebar .extras-title-button { width: 38px; height: 36px; }
  .extras-player .extras-titlebar { min-height: 44px; }
  .extras-shade-play { width: 38px; height: 36px; }
  .extras-player { right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .extras-control { min-height: 44px; }
  .extras-playlist button { min-height: 36px; font-size: 12px; }
  .extras-player-progress { height: 38px; }
  .extras-dialog-note { padding: 8px; }
  .extras-dialog { right: 10px; left: auto; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .extras-task-button { flex: 0 0 auto; width: auto; }
  .extras-task-button .extras-program-icon { width: 18px; height: 18px; }
  .taskbar:has(.extras-task-button:not([hidden])) > .task-button:not(.extras-task-button) { overflow: hidden; white-space: nowrap; }
  .taskbar:has(.extras-task-button:not([hidden])) .tray { display: none; }
  .extras-chat-entry input, .extras-chat-entry .extras-send { min-height: 44px; font-size: 16px; }
  .extras-notepad textarea { font-size: 16px; }
}
@media (max-width: 420px) {
  .extras-chat-layout { grid-template-columns: minmax(0, 1fr); }
  .extras-chat-users { flex-direction: row; flex-wrap: wrap; gap: 5px 13px; border-left: 0; border-top: 1px solid var(--shadow); padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .extras-dialog[open] { animation: none; }
  .extras-player.is-playing .extras-equalizer i { animation: none; transform: none; height: 8px; }
  .extras-player.is-playing .extras-equalizer i:nth-child(3n) { height: 14px; }
}
@media (forced-colors: active) {
  .extras-window, .extras-player-body, .extras-player-screen, .extras-track-info, .extras-chat-log, .extras-chat-users { background: Canvas; color: CanvasText; }
  .extras-player-time, .extras-player-state, .extras-player-note, .extras-chat-log p, .extras-chat-users strong { color: CanvasText; }
  .extras-window button, .extras-window input, .extras-window textarea { border: 1px solid ButtonText; }
  .extras-equalizer i { background: CanvasText; }
  .extras-player-progress::-webkit-slider-runnable-track { background: Canvas; border-color: ButtonText; }
  .extras-player-progress::-moz-range-track { background: Canvas; border-color: ButtonText; }
  .extras-player-progress::-webkit-slider-thumb { background: ButtonText; border-color: ButtonText; box-shadow: none; }
  .extras-player-progress::-moz-range-thumb { background: ButtonText; border-color: ButtonText; box-shadow: none; }
}
@media print { .extras-window, [data-extras-menu], [data-open-extra] { display: none !important; } }
