/* ═══════════════════════════════════════════════════════════════
   WINDOWS MEDIA PLAYER — LIVE LOSSLESS STREAM
   WMP9-style chrome, transport, VU meter, spectrogram & spectrum UI.
   Ported from nathexia.online.
   ═══════════════════════════════════════════════════════════════ */

.window.wmp-window {
    background: linear-gradient(
        160deg,
        #e8edf2 0%,
        #c8cfd8 30%,
        #a8b2be 70%,
        #8890a0 100%
    );
    border: 1px solid #556;
    border-radius: 10px 10px 8px 8px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 460px;
    min-height: 360px;
}

.wmp-window .title-bar {
    background: linear-gradient(
        to bottom,
        #c0cce0,
        #8899b8 40%,
        #7788aa 60%,
        #6677a0
    );
    border-radius: 9px 9px 0 0;
    border-bottom: 1px solid #556;
    height: 28px;
    padding: 3px 8px;
}

.wmp-window .title-bar-text {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Connection LED in title bar */
.wmp-connection-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    margin-right: 6px;
    flex-shrink: 0;
    transition:
        background 0.4s,
        box-shadow 0.4s;
}
.wmp-connection-led.good {
    background: radial-gradient(circle at 35% 35%, #7f7, #0a0);
    box-shadow:
        0 0 6px rgba(0, 255, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.wmp-connection-led.fair {
    background: radial-gradient(circle at 35% 35%, #fe8, #c80);
    box-shadow:
        0 0 6px rgba(255, 165, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.wmp-connection-led.poor {
    background: radial-gradient(circle at 35% 35%, #f88, #a00);
    box-shadow:
        0 0 6px rgba(255, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.wmp-view-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.wmp-view-btn {
    font-family: Tahoma, "Segoe UI", sans-serif;
    font-size: 9.5px;
    font-weight: bold;
    padding: 2px 7px;
    height: 24px;
    border: 1px solid #667282;
    border-radius: 3px;
    background: linear-gradient(to bottom, #f0f4fa, #c6d0dc 45%, #aeb8c6 100%);
    color: #223242;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.18);
    transition: all 0.1s ease;
    user-select: none;
    white-space: nowrap;
}
.wmp-view-btn:hover {
    background: linear-gradient(to bottom, #f6f9fe, #d2dbe8 45%, #bac5d4 100%);
    border-color: #3b5f90;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 5px rgba(80, 120, 200, 0.3);
}
.wmp-view-btn.active {
    background: linear-gradient(to bottom, #2b5cb8, #163e84 80%, #102e64 100%);
    color: #fff;
    border-color: #0f2c60;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.45),
        0 0 6px rgba(40, 100, 200, 0.5);
}
.wmp-view-btn svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}
.wmp-popout-btn,
.wmp-popout-icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 3px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    color: #384a62;
    transition: all 0.12s ease;
    flex-shrink: 0;
}
.wmp-popout-btn:hover,
.wmp-popout-icon-btn:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    color: #0c1c2e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.wmp-popout-btn svg,
.wmp-popout-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Display area (contains either Session Screen or Spectrogram) */
.wmp-video-area {
    background: #000000;
    margin: 4px 8px 0 8px;
    border-radius: 3px 3px 0 0;
    border: 1px solid #334;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85);
    position: relative;
    flex: 1;
    min-height: 190px;
    overflow: hidden;
    cursor: pointer;
}
.wmp-view-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.wmp-screen-view {
    display: none;
}
.wmp-spectrogram-view,
.wmp-spectrum-view {
    display: block;
    background: #000000;
}

/* Spectrogram Controls Strip - Windows Media Player 9 XP Style */
.wmp-spectro-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 8px;
    margin: 0 8px;
    background: linear-gradient(
        to bottom,
        #dbe3ed 0%,
        #c4cfde 45%,
        #b2c0d2 100%
    );
    border: 1px solid #758294;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #5a6678;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.wmp-spectro-controls::-webkit-scrollbar {
    display: none;
}
.wmp-spectro-ctrl-grp {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.wmp-spectro-separator {
    width: 1px;
    height: 14px;
    background: #9aa8ba;
    border-right: 1px solid #ffffff;
    flex-shrink: 0;
}
.wmp-spectro-lbl {
    font-family: Tahoma, sans-serif;
    font-size: 8.5px;
    font-weight: bold;
    color: #243242;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    user-select: none;
}
.wmp-spectro-dash {
    font-family: Tahoma, sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: #4a586a;
    user-select: none;
}
.wmp-spectro-select {
    background: #ffffff;
    color: #112;
    border: 1px solid #7f9db9;
    border-radius: 2px;
    font-family: Tahoma, sans-serif;
    font-size: 9px;
    padding: 1px 2px;
    height: 18px;
    cursor: pointer;
    outline: none;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.wmp-spectro-range {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 3px;
    background: linear-gradient(to bottom, #728092, #98a8ba);
    border: 1px solid #546274;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.wmp-spectro-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #88b4f0, #285ca0);
    border: 1px solid #163668;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.wmp-spectro-range::-moz-range-thumb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #88b4f0, #285ca0);
    border: 1px solid #163668;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.wmp-spectro-num {
    background: #ffffff;
    color: #112;
    border: 1px solid #7f9db9;
    border-radius: 2px;
    font-family: Tahoma, sans-serif;
    font-size: 9px;
    width: 40px;
    height: 16px;
    padding: 0 2px;
    text-align: center;
    outline: none;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
    -moz-appearance: textfield;
}
.wmp-spectro-num::-webkit-inner-spin-button,
.wmp-spectro-num::-webkit-outer-spin-button {
    opacity: 0.6;
}
.wmp-spectro-val {
    font-family: "Lucida Console", monospace;
    font-size: 8.5px;
    font-weight: bold;
    color: #1a3c70;
    min-width: 20px;
    text-align: right;
    user-select: none;
}
.wmp-screen-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #708098;
    background: radial-gradient(circle at center, #101420 0%, #05060a 100%);
    pointer-events: none;
}
.wmp-screen-ph-icon {
    font-size: 38px;
    margin-bottom: 6px;
    opacity: 0.65;
}
.wmp-screen-ph-title {
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #889bb0;
    text-transform: uppercase;
}
.wmp-screen-ph-sub {
    font-size: 9px;
    color: #556677;
    margin-top: 3px;
}
.wmp-video-area video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000000;
    z-index: 2;
}
.wmp-spectrogram-canvas,
.spectrogram-canvas,
.wmp-spectrum-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

/* Hz Scale Overlay */
.wmp-hz-scale {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36px;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 65%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 4px;
    box-sizing: border-box;
    z-index: 5;
}
.wmp-hz-label {
    font-family: "Lucida Console", "Consolas", monospace;
    font-size: 8px;
    font-weight: bold;
    color: #b0d0ff;
    text-shadow:
        0 1px 2px #000,
        0 0 3px #000;
    line-height: 1;
    user-select: none;
    transition: top 0.15s ease;
}

.wmp-overlay-status {
    position: absolute;
    top: 8px;
    left: 44px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 6;
}
.wmp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(10, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Lucida Console", "Consolas", monospace;
    font-size: 9px;
    letter-spacing: 0.8px;
    color: #8899aa;
    text-transform: uppercase;
}
.wmp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667;
    transition:
        background 0.3s,
        box-shadow 0.3s;
}
.wmp-live-dot.active,
.wmp-live-pill.active .wmp-live-dot {
    background: #22dd66;
    box-shadow: 0 0 6px #22dd66;
    animation: wmpPulse 1.8s infinite;
}
.wmp-live-pill.active {
    color: #aaeebb;
    border-color: rgba(34, 221, 102, 0.3);
}
@keyframes wmpPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.wmp-stream-title {
    font-family: Tahoma, sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quality readout bar */
.wmp-quality-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 3px 10px;
    margin: 0 8px;
    background: linear-gradient(to bottom, #10141d, #090c12);
    border-radius: 0 0 3px 3px;
    border: 1px solid #5a6678;
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wmp-readout {
    font-family: "Lucida Console", "Consolas", monospace;
    font-size: 8.5px;
    color: #6888b2;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.wmp-readout-value {
    color: #9cd4ff;
    font-weight: bold;
}
.wmp-readout-separator {
    color: #252e3c;
}

/* Transport + controls strip */
.wmp-controls-strip {
    margin: 4px 8px 8px 8px;
    background: linear-gradient(
        to bottom,
        #dbe2ed 0%,
        #c4cfde 35%,
        #adbccf 70%,
        #9aa8bc 100%
    );
    border-radius: 5px;
    border: 1px solid #758294;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.25);
    padding: 5px 8px;
}
.wmp-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Transport controls */
.wmp-transport-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.wmp-transport-btn {
    width: 26px;
    height: 24px;
    background: linear-gradient(to bottom, #e4e8f0, #c0c8d4 45%, #a4acbc);
    border: 1px solid #667;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}
.wmp-transport-btn:hover {
    background: linear-gradient(to bottom, #edf2fa, #cad4e2 45%, #adb8cc);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 5px rgba(80, 120, 200, 0.35);
}
.wmp-transport-btn:active {
    background: linear-gradient(to bottom, #949ca8, #a4acbc 45%, #b8c0cc);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.wmp-transport-btn svg {
    width: 11px;
    height: 11px;
    fill: #334;
}
.wmp-transport-btn:hover svg {
    fill: #112;
}
.wmp-transport-btn.play-pause-btn {
    width: 32px;
    height: 26px;
    background: linear-gradient(
        to bottom,
        #eaf2ff,
        #bbd4f7 40%,
        #7aa8e8 70%,
        #558cd6
    );
    border-color: #4068a0;
}
.wmp-transport-btn.play-pause-btn:hover {
    background: linear-gradient(
        to bottom,
        #f2f7ff,
        #c8e0ff 40%,
        #8bb9f5 70%,
        #639ce6
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 7px rgba(70, 140, 255, 0.45);
}
.wmp-transport-btn.play-pause-btn svg {
    width: 13px;
    height: 13px;
    fill: #183868;
}
.wmp-transport-btn.play-pause-btn.play-active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 10px rgba(60, 130, 255, 0.7);
    border-color: #2b5cb8;
}

/* Master Volume & Integrated VU Meter Module */
.wmp-master-vu-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    max-width: 250px;
}
.wmp-vu-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.wmp-vu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1px;
    user-select: none;
}
.wmp-vu-title {
    font-family: Tahoma, sans-serif;
    font-size: 8px;
    font-weight: bold;
    color: #28374a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wmp-vu-scale {
    display: flex;
    justify-content: space-between;
    width: 76%;
    font-family: "Lucida Console", monospace;
    font-size: 7.5px;
    color: #4a5c74;
    user-select: none;
}
.wmp-vu-fader-track {
    position: relative;
    height: 12px;
    min-height: 12px;
    max-height: 12px;
    flex-shrink: 0;
    background: #080c10;
    border: 1px solid #4a5668;
    border-radius: 2px;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: visible;
    display: flex;
    align-items: center;
}
.wmp-vu-meter-bar {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    right: 1px;
    pointer-events: none;
    overflow: hidden;
}
.wmp-vu-meter-level {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        to right,
        #00d455 0%,
        #00d455 52%,
        #f5b000 75%,
        #ff3030 95%
    );
    box-shadow: 0 0 6px rgba(0, 212, 85, 0.5);
    transition: width 0.04s ease-out;
    position: relative;
}
/* LED Segment effect overlay */
.wmp-vu-meter-level::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.55) 3px,
        rgba(0, 0, 0, 0.55) 4px
    );
    pointer-events: none;
}
.wmp-vu-peak-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0%;
    width: 2px;
    background: #ffffff;
    box-shadow:
        0 0 3px #ffffff,
        0 0 5px #ff3b30;
    pointer-events: none;
    transition: left 0.06s ease-out;
}
.wmp-vu-slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 5;
}
.wmp-vu-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 18px;
    background: linear-gradient(
        to bottom,
        #f8faff 0%,
        #cbd4e2 40%,
        #94a2b6 55%,
        #bcc7d6 100%
    );
    border: 1px solid #3c4858;
    border-radius: 2px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
.wmp-vu-slider::-webkit-slider-thumb:hover {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #d8e2ee 40%,
        #a4b4c8 55%,
        #c8d4e4 100%
    );
    border-color: #2b5cb8;
    box-shadow:
        0 1px 5px rgba(40, 100, 200, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
.wmp-vu-slider::-moz-range-thumb {
    width: 11px;
    height: 18px;
    background: linear-gradient(
        to bottom,
        #f8faff 0%,
        #cbd4e2 40%,
        #94a2b6 55%,
        #bcc7d6 100%
    );
    border: 1px solid #3c4858;
    border-radius: 2px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
.wmp-vu-readout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    width: 104px;
    min-width: 104px;
    max-width: 104px;
    box-sizing: border-box;
}
.wmp-vol-val {
    font-family: Tahoma, sans-serif;
    font-size: 10px;
    color: #1e2c3c;
    font-weight: bold;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    text-align: right;
    flex-shrink: 0;
    box-sizing: border-box;
}
.wmp-vu-db {
    font-family: "Lucida Console", monospace;
    font-size: 9.5px;
    font-weight: bold;
    color: #38e698;
    background: #070c12;
    border: 1px solid #283748;
    border-radius: 3px;
    padding: 2px 4px;
    height: 18px;
    line-height: 12px;
    text-shadow: 0 0 4px rgba(56, 230, 152, 0.5);
    width: 66px;
    min-width: 66px;
    max-width: 66px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Extra controls (Fullscreen) */
.wmp-extra-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Fullscreen handling.
           Widths/heights are percentages rather than vw/vh: under the root
           `zoom` (GUI scale) viewport units overshoot, while the fullscreen
           element is promoted to the top layer with the viewport as its
           containing block, so 100% is exact. */
.wmp-video-area:fullscreen,
.wmp-video-area:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #000 !important;
    z-index: 999999 !important;
    cursor: default;
}
.wmp-video-area:fullscreen .wmp-view-content,
.wmp-video-area:-webkit-full-screen .wmp-view-content {
    width: 100% !important;
    height: 100% !important;
}
.wmp-video-area:fullscreen canvas,
.wmp-video-area:-webkit-full-screen canvas {
    width: 100% !important;
    height: 100% !important;
}
.wmp-video-area:fullscreen video,
.wmp-video-area:-webkit-full-screen video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Pop-Out Spectrogram Window */
.window.spectrogram-window {
    background: linear-gradient(
        160deg,
        #e8edf2 0%,
        #c8cfd8 30%,
        #a8b2be 70%,
        #8890a0 100%
    );
    border: 1px solid #556;
    border-radius: 10px 10px 8px 8px;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 440px;
    min-height: 300px;
}
.spectrogram-window .spectrogram-body {
    position: relative;
    background: #000000;
    flex: 1;
    margin: 6px 8px 8px 8px;
    border: 1px solid #334;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85);
    min-height: 180px;
}
.spectrogram-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    margin: 4px 8px 0 8px;
    background: #0d0f18;
    border: 1px solid #222a3a;
    border-radius: 4px 4px 0 0;
    font-family: "Lucida Console", "Consolas", monospace;
    font-size: 9px;
    color: #8899aa;
}
.spectrogram-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.spectrogram-gradient-bar {
    width: 80px;
    height: 7px;
    border-radius: 2px;
    border: 1px solid #445;
    background: linear-gradient(
        to right,
        #000,
        #4a0072,
        #9c179e,
        #e65100,
        #ffb703,
        #ffffff
    );
}

/* WMP title-bar buttons follow the player's steel skin */
.wmp-window .title-bar-controls button {
    background: linear-gradient(180deg, #d4dcea, #98a8c8);
    border: 1px solid #556080;
}
.wmp-window .title-bar-controls button:active {
    background: linear-gradient(180deg, #98a8c8, #d4dcea);
}
.wmp-window .title-bar-controls .close-btn {
    background: linear-gradient(180deg, #f77658, #a91e00);
    border-color: #7f1700;
}

/* ─── Pop-Out Spectrogram Desktop Window ─── */
.window.spectrogram-window {
    background: linear-gradient(
        160deg,
        #e8edf2 0%,
        #c8cfd8 30%,
        #a8b2be 70%,
        #8890a0 100%
    );
    border: 1px solid #556;
    border-radius: 10px 10px 8px 8px;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 440px;
    min-height: 300px;
}
.spectrogram-window .title-bar {
    background: linear-gradient(
        to bottom,
        #c0cce0,
        #8899b8 40%,
        #7788aa 60%,
        #6677a0
    );
    border-radius: 9px 9px 0 0;
    border-bottom: 1px solid #556;
    height: 28px;
    padding: 3px 8px;
}
.spectrogram-window .title-bar-text {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.spectrogram-window .window-body {
    background: transparent;
    border: none;
}
