/* Tema claro - paleta Slate + Teal */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --like: #e11d48;
    --window-bg: #f8fafc;
    --window-header-bg: #ffffff;
    --taskbar-bg: rgba(255, 255, 255, 0.92);
    --text-color: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --button-bg: #ffffff;
    --button-hover-bg: #f1f5f9;
    --progress-bg: #e2e8f0;
    --progress-fill: var(--primary);
    --radioactive-glow: rgba(13, 148, 136, 0.25);
    --playing-bg: rgba(13, 148, 136, 0.06);
    --modal-overlay: rgba(15, 23, 42, 0.45);
    --chromatic-hue: 0deg;
}

body[data-theme="dark"] {
    --primary: #adb5bd;
    --primary-dark: #6c757d;
    --primary-light: #ced4da;
    --like: #ff6b6b;
    --window-bg: #1a1a1a;
    --window-header-bg: #2d2d2d;
    --taskbar-bg: rgba(33, 37, 41, 0.95);
    --text-color: #f8f9fa;
    --text-light: #adb5bd;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --button-bg: rgba(255, 255, 255, 0.08);
    --button-hover-bg: rgba(255, 255, 255, 0.15);
    --progress-bg: #404040;
    --radioactive-glow: rgba(173, 181, 189, 0.4);
    --playing-bg: rgba(173, 181, 189, 0.15);
    --modal-overlay: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--window-bg);
    touch-action: manipulation;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#desktop-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--window-bg);
}

#desktop {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
    overflow: hidden;
    min-width: 1200px;
    min-height: 700px;
}

#taskbar {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background-color: var(--taskbar-bg);
    backdrop-filter: blur(10px) brightness(var(--taskbar-brightness, 1));
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

body[data-theme="dark"] #taskbar {
    --taskbar-brightness: 0.9;
}

#start-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#start-button:hover,
#start-button.active {
    background-color: var(--button-hover-bg);
}

#start-menu {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 250px;
    padding: 5px;
    background-color: var(--taskbar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 -5px 15px var(--shadow-color);
    display: none;
    z-index: 9999;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.start-menu-item:hover {
    background-color: var(--button-hover-bg);
}

#taskbar-icons {
    display: flex;
    height: 100%;
    gap: 5px;
    align-items: center;
}

.taskbar-icon {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taskbar-icon:hover {
    background-color: var(--button-hover-bg);
}

.taskbar-icon.active {
    background-color: var(--button-bg);
    border-bottom-color: var(--primary);
}

.taskbar-icon i {
    font-size: 18px;
    color: var(--primary);
}

#clock {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    color: var(--text-color);
}

#time {
    font-size: 14px;
    font-weight: 500;
}

#theme-toggle {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.95;
}

#theme-toggle:hover {
    opacity: 1;
}

.window {
    position: absolute;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 340px;
    min-height: 500px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 140px);
    resize: none;
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    contain: content;
}

.window.minimized {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.window.active {
    box-shadow: 0 8px 25px var(--shadow-color);
}

.window-header {
    height: 40px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--window-header-bg);
    border-bottom: 1px solid var(--border-color);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-button {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--button-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.window-button.minimize:hover {
    background-color: #ffc107;
    color: #000;
}

.window-button.close:hover {
    background-color: #dc3545;
    color: white;
}

.window-button:hover {
    color: white;
}

.window-body {
    padding: 20px;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.player-artist-header {
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: transparent;
    min-height: 40px !important;
    max-height: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.player-artist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 50%,
        var(--primary) 100%
    );
    opacity: 0.9;
    z-index: 1;
}

.player-artist-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 100%);
    z-index: 2;
    pointer-events: none;
}

body[data-theme="dark"] .player-artist-header::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.player-artist-header .artist-name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    z-index: 3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.artist-name.glitch {
    animation: cyber-glitch-fix 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2 !important;
    position: relative !important;
    display: inline-block !important;
    /* Garantir contraste durante o efeito glitch */
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.player-artist-header .scanline {
    display: none;
}

#player-window-instance {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    height: auto !important;
    resize: none !important;
    overflow: hidden !important;
}

#player-window-instance .window-body {
    padding: 16px;
    text-align: center;
    contain: content;
    min-height: 500px !important;
    max-height: 500px !important;
    height: auto !important;
    overflow: hidden !important;
}

.player-main-view {
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.player-main-view.blur {
    filter: blur(2px);
    pointer-events: none;
}

.cover-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    background-color: var(--progress-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: transform;
}

.cover-container:hover {
    border-color: var(--primary);
}

.cover-container.vinyl-mode {
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--radioactive-glow);
    animation: rotate 10s linear infinite;
}

.cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: var(--cover-image, none);
}

.info {
    margin-bottom: 12px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 8px;
}

.title-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 8px;
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 26px !important;
    max-height: 26px !important;
    height: 26px !important;
    width: 280px !important;
    flex-shrink: 0 !important;
    margin: 0 auto 8px !important;
}

.title-wrapper {
    width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.title-normal {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.title-marquee {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-color);
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: title-marquee-scroll 15s linear infinite;
    animation-play-state: running;
}

.title-marquee.paused {
    animation-play-state: paused;
}

.title-wrapper:hover .title-marquee {
    animation-play-state: paused;
}

.title-fade-left,
.title-fade-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--window-bg) 0%, transparent 100%);
}

.title-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--window-bg) 0%, transparent 100%);
}

.title-marquee:not(.paused) ~ .title-fade-left,
.title-marquee:not(.paused) ~ .title-fade-right {
    opacity: 1;
}

.progress-container {
    margin: 16px 0 0;
    width: 100%;
}

.progress-bar {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
}

.progress-filled {
    width: 0%;
    height: 100%;
    border-radius: 9999px;
    background: var(--progress-fill);
    transition: width .1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 0 8px 0;
    font-size: 12px;
    color: var(--text-light);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto;
    max-width: 200px;
}

.volume-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 9999px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.volume-btn:hover {
    background: var(--button-hover-bg);
    color: var(--primary);
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: var(--progress-bg);
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    box-shadow: 0 4px 6px var(--shadow-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-play {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary-dark);
}

.btn-play:hover:not(:disabled) {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--radioactive-glow);
    border-color: var(--primary);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--text-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart {
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.heart.liked {
    color: var(--like) !important;
}

.heart:hover {
    transform: scale(1.2);
}

.shuffle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.shuffle:hover {
    transform: scale(1.2);
    background: var(--button-hover-bg);
    color: var(--primary);
}

.shuffle.active {
    color: var(--primary);
    background: var(--button-hover-bg);
}

.player-side-panels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.side-panel {
    position: absolute;
    top: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--shadow-color);
    overflow: hidden;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    contain: content;
    position: absolute !important;
    z-index: 100 !important;
}

.side-panel.left {
    left: 0;
    transform: translateX(-100%);
    border-right: none;
}

.side-panel.right {
    right: 0;
    transform: translateX(100%);
    border-left: none;
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow-color);
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 15;
}

.side-panel-toggle:hover {
    background: var(--button-hover-bg);
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.side-panel-toggle.left {
    left: 0;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.side-panel-toggle.right {
    right: 0;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.side-panel-toggle.open {
    transform: translateY(-50%) rotate(180deg);
}

.side-panel-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--window-header-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.side-panel-header.compact {
    padding: 10px 12px;
    min-height: 44px;
}

.side-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.side-panel-title.compact {
    font-size: 14px;
    font-weight: 600;
}

.panel-track-count {
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

.side-panel-back-btn {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-panel-back-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text-color);
}

.side-panel-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-panel-close:hover {
    background: var(--button-hover-bg);
    color: var(--text-color);
}

.side-panel-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.side-panel-content.compact-scroll {
    padding: 10px;
}

.side-panel-content.compact-scroll::-webkit-scrollbar {
    width: 4px;
}

.side-panel-content.compact-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.side-panel-content.compact-scroll::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 2px;
    opacity: 0.3;
}

.side-panel-footer {
    padding: 12px 15px;
    background: var(--window-header-bg);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.footer-btn {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.footer-btn.back-btn {
    background: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.footer-btn.back-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text-color);
}

.side-panel-tracks-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-panel-track-compact {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    min-height: 42px;
    overflow: hidden;
}

.side-panel-track-compact:hover {
    background: var(--button-hover-bg);
    border-color: var(--primary);
    transform: translateX(2px);
}

.side-panel-track-compact.playing {
    background: var(--playing-bg);
    border-color: var(--primary);
    font-weight: 600;
}

.side-panel-track-compact.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.track-background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    opacity: 0.3;
    border-radius: 6px;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.track-background-blur.active {
    opacity: 0.5;
}

body[data-theme="dark"] .track-background-blur {
    filter: blur(8px) brightness(0.4);
}

.track-title-compact {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.2;
    flex-grow: 1;
    padding-right: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-panel-track-compact.playing .track-title-compact {
    color: var(--primary);
}

.track-artist-compact {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.8;
    text-align: right;
    flex-basis: 40%;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-actions-compact {
    display: flex;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.track-action-compact {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-light);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.track-action-compact:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.track-action-compact.play-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.track-action-compact.like-btn.liked {
    color: var(--like) !important;
}

.track-action-compact.like-btn.liked:hover {
    background: var(--like) !important;
    color: white !important;
    border-color: var(--like) !important;
}

.track-action-compact:active {
    transform: scale(0.95);
}

.side-panel-artist-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    gap: 12px;
    margin-bottom: 4px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.side-panel-artist-item:hover {
    background: var(--button-hover-bg);
    border-color: var(--primary);
    transform: translateX(2px);
}

.artist-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

.artist-info {
    flex-grow: 1;
    min-width: 0;
}

.artist-name:not(.player-artist-header .artist-name) {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-album-count {
    font-size: 11px;
    color: var(--text-light);
}

.side-panel-album-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease;
}

.side-panel-album-item:hover {
    background: var(--button-hover-bg);
    border-color: var(--primary);
    transform: translateX(4px);
}

.album-background-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.7;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.side-panel-album-item:hover .album-background-blur {
    filter: blur(16px);
    opacity: 0.8;
    transform: scale(1.15);
}

.album-cover-foreground {
    width: 56px;
    height: 56px;
    margin-right: 14px;
    flex-shrink: 0;
    background: var(--progress-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

body[data-theme="dark"] .album-cover-foreground {
    background: #111;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.side-panel-album-item:hover .album-cover-foreground {
    transform: scale(1.08);
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.album-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    z-index: 2;
}

.album-info {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.album-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-details {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 8px;
}

.empty-panel-compact {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-light);
    font-style: italic;
}

.empty-panel-compact i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.empty-panel-compact p {
    margin-bottom: 4px;
    font-size: 13px;
}

.empty-panel-compact small {
    font-size: 11px;
    opacity: 0.6;
}

.radioativo-search-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--window-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

.radioativo-search-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.radioativo-search-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    padding-left: 12px;
    position: relative;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.radioativo-search-title i {
    font-size: 20px;
}

.radioativo-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.radioativo-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.radioativo-input-wrapper.searching {
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
}

.radioativo-input-wrapper.searching .radioativo-input-icon i {
    color: #ffaa00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.radioativo-input-icon {
    padding: 0 16px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
}

.radioativo-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    min-width: 0;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-color);
    outline: none;
}

.radioativo-input::placeholder {
    color: var(--text-light);
}

.radioativo-clear-btn {
    width: 36px;
    height: 36px;
    margin: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.radioativo-clear-btn:hover {
    background: var(--button-hover-bg);
    color: var(--text-color);
}

.radioativo-results-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background: var(--window-bg);
}

.radioativo-results-inner {
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.radioativo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-light);
}

.radioativo-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.radioativo-empty-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.radioativo-empty-subtitle {
    font-size: 14px;
    opacity: 0.7;
    max-width: 300px;
    line-height: 1.5;
}

.radioativo-search-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    text-align: center;
    background: var(--window-header-bg);
    border-top: 1px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.radioativo-search-footer i {
    color: var(--primary);
}

.radioativo-stats-count {
    font-weight: 600;
    color: var(--text-color);
}

.radioativo-results-container::-webkit-scrollbar {
    width: 8px;
}

.radioativo-results-container::-webkit-scrollbar-track {
    background: transparent;
}

.radioativo-results-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.radioativo-results-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.search-item-system {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dark"] .search-item-system {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-item-system:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.search-item-system.playing {
    background: var(--playing-bg);
    border-color: var(--primary);
}

.search-item-cover {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: white;
    font-size: 24px;
    position: relative;
}

.search-item-cover i {
    z-index: 1;
}

.search-item-info {
    flex: 1;
    margin-left: 16px;
    overflow: hidden;
    min-width: 0;
}

.search-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-artist,
.search-item-album {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-item-artist i,
.search-item-album i {
    font-size: 11px;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.search-item-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.search-item-system:hover .search-item-actions {
    opacity: 1;
    transform: translateX(0);
}

.search-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.search-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.search-action-btn.liked {
    color: var(--like) !important;
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.2);
}

.search-action-btn.liked:hover {
    background: var(--like) !important;
    color: white !important;
}

.search-action-btn.play-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#notification-area {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 12px 18px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    box-shadow: 0 4px 10px var(--shadow-color);
    animation: slide-in 0.5s ease-out, fade-out 0.5s ease-in 2.5s forwards;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--modal-overlay);
    opacity: 0;
    visibility: hidden;
    z-index: 10002;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    padding: 24px;
    max-width: 400px;
    width: 90%;
    background: var(--window-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.confirm-modal-overlay.active .confirm-modal {
    transform: translateY(0);
}

.confirm-modal-header {
    margin-bottom: 20px;
}

.confirm-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.confirm-modal-title i {
    color: var(--like);
}

.confirm-modal-message {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.confirm-modal-body {
    margin-bottom: 24px;
}

.confirm-modal-track-info {
    padding: 12px;
    margin-bottom: 16px;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.confirm-modal-track-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.confirm-modal-track-details {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
}

.confirm-modal-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px;
    background: var(--button-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.confirm-modal-option:hover {
    background: var(--button-hover-bg);
}

.confirm-modal-checkbox {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.confirm-modal-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.confirm-modal-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.confirm-modal-option-label {
    font-size: 13px;
    color: var(--text-color);
    flex-grow: 1;
}

.confirm-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-modal-btn.cancel {
    background: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.confirm-modal-btn.cancel:hover {
    background: var(--button-hover-bg);
}

.confirm-modal-btn.confirm {
    background: var(--like);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    background: #be123c;
    transform: translateY(-1px);
}

.brand-logo {
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cover-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cover-error {
    opacity: 0.3;
    filter: grayscale(1);
}

.bg-loaded {
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.bg-error {
    opacity: 0.1;
    filter: grayscale(1);
}

@keyframes windowShake {
    0% { transform: translateX(0) translateY(0) scale(1); }
    20% { transform: translateX(-5px) translateY(-3px) scale(1.02); }
    40% { transform: translateX(5px) translateY(3px) scale(1.02); }
    60% { transform: translateX(-3px) translateY(-2px) scale(1.01); }
    80% { transform: translateX(3px) translateY(2px) scale(1.01); }
    100% { transform: translateX(0) translateY(0) scale(1); }
}

.window-locate {
    animation: windowShake 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) both;
}

@keyframes title-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes loadingWave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.side-panel-track-compact.track-starting {
    animation: loadingWave 1s ease;
}

.side-panel-track-compact,
.search-item-system,
.side-panel-artist-item,
.side-panel-album-item {
    animation: fadeInUp 0.3s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chromatic-shift {
    0% {
        background-position: 0% 50%;
        filter: blur(15px) hue-rotate(0deg);
    }
    25% {
        background-position: 50% 100%;
        filter: blur(15px) hue-rotate(90deg);
    }
    50% {
        background-position: 100% 50%;
        filter: blur(15px) hue-rotate(180deg);
    }
    75% {
        background-position: 50% 0%;
        filter: blur(15px) hue-rotate(270deg);
    }
    100% {
        background-position: 0% 50%;
        filter: blur(15px) hue-rotate(360deg);
    }
}

@keyframes text-shimmer {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2),
                     0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% {
        background-position: 100% 50%;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4),
                     0 0 15px rgba(255, 255, 255, 0.2),
                     0 0 20px rgba(255, 255, 255, 0.1);
    }
    100% {
        background-position: 0% 50%;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2),
                     0 0 10px rgba(255, 255, 255, 0.1);
    }
}

@keyframes cyber-glitch-fix {
    0% { 
        transform: translate(0); 
        text-shadow: none; 
    }
    10% { 
        transform: translate(-1px, 1px); 
        text-shadow: 1px 0 var(--primary), -1px 0 var(--like); 
    }
    20% { 
        transform: translate(1px, -1px); 
        text-shadow: -1px 0 var(--primary), 1px 0 var(--like); 
    }
    30% { 
        transform: translate(-1px, -1px); 
        text-shadow: 1px 0 var(--primary), -1px 0 var(--like); 
    }
    40% { 
        transform: translate(1px, 1px); 
        text-shadow: -1px 0 var(--primary), 1px 0 var(--like); 
    }
    50% { 
        transform: translate(-1px, 1px); 
        text-shadow: 2px 0 var(--primary), -2px 0 var(--like); 
    }
    60% { 
        transform: translate(1px, -1px); 
        text-shadow: -2px 0 var(--primary), 2px 0 var(--like); 
    }
    70% { 
        transform: translate(-1px, -1px); 
        text-shadow: 2px 0 var(--primary), -2px 0 var(--like); 
    }
    80% { 
        transform: translate(1px, 1px); 
        text-shadow: -2px 0 var(--primary), 2px 0 var(--like); 
    }
    90% { 
        transform: translate(0); 
        text-shadow: none; 
    }
    100% { 
        transform: translate(0); 
        text-shadow: none; 
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

@media (max-width: 768px) {
    #desktop-container {
        overflow: auto;
    }
    
    #desktop {
        min-width: auto;
        min-height: auto;
        padding: 10px;
    }
    
    .window {
        position: relative !important;
        top: 10px !important;
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        resize: none !important;
        overflow: hidden !important;
    }
    
    #player-window-instance {
        width: calc(100vw - 20px) !important;
        height: auto !important;
        resize: none;
    }
    
        .player-artist-header {
        height: 35px !important;
        padding: 0 10px !important;
    }
    
    .player-artist-header .artist-name {
        font-size: 13px !important;
    }
    
    .title-normal,
    .title-marquee {
        font-size: 18px;
    }
    
    .side-panel {
        width: 260px;
    }
    
    .side-panel-track-compact {
        padding: 5px 6px;
        min-height: 38px;
        gap: 6px;
    }
    
    .track-title-compact {
        font-size: 12px;
    }
    
    .track-artist-compact {
        font-size: 10px;
        flex-basis: 35%;
    }
    
    .track-action-compact {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .side-panel-artist-item,
    .side-panel-album-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .artist-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .album-cover-foreground {
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }
    
    .confirm-modal {
        padding: 20px;
        width: 95%;
    }
    
    .confirm-modal-footer {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }
}

.heart.liked,
.track-action-compact.like-btn.liked,
.search-action-btn.liked {
    color: var(--like) !important;
}

.heart.liked:hover,
.track-action-compact.like-btn.liked:hover,
.search-action-btn.liked:hover {
    color: white !important;
}

.btn, .btn-play, .volume-btn, .shuffle, 
.window-button, .side-panel-toggle, .search-action-btn,
.track-action-compact, .footer-btn {
    color: var(--text-color) !important;
    background: var(--button-bg) !important;
    border-color: var(--border-color) !important;
}

.btn-play {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary-dark) !important;
}

.btn:hover:not(:disabled),
.volume-btn:hover,
.shuffle:hover,
.side-panel-toggle:hover {
    background: var(--button-hover-bg) !important;
    color: var(--primary) !important;
}

.btn-play:hover:not(:disabled) {
    background: var(--primary-dark) !important;
    color: white !important;
}

body[data-theme="light"] .player-artist-header .artist-name {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25) !important;
}

body[data-theme="light"] .player-artist-header .artist-name.glitch {
    animation: cyber-glitch-fix 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2 !important;
}

/* Refinamentos tema claro */
body[data-theme="light"] #taskbar {
    border-top-color: #e2e8f0;
    box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .window {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .window.active {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .btn,
body[data-theme="light"] .volume-btn,
body[data-theme="light"] .window-button {
    border: 1px solid var(--border-color);
}

body[data-theme="light"] .notification {
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
}