* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    font-size: 12px;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .icon {
        min-height: 44px; /* Minimum touch target size */
        touch-action: manipulation;
    }
    
    .window-controls button {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .taskbar-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .start-button {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .start-menu-item {
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* Responsive design */
@media (min-width: 769px) {
    .skills-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .skill-category {
        flex: 1;
        min-width: 300px;
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 10px;
    }
    
    .desktop-icons {
        gap: 10px;
    }
    
    .icon {
        width: 80px;
        padding: 8px;
    }
    
    .icon img {
        width: 48px;
        height: 48px;
    }
    
    .icon span {
        font-size: 10px;
        max-width: 70px;
    }
    
    .window {
        min-width: 300px;
        min-height: 250px;
        max-height: 70vh;
    }
    
    .window-content {
        padding: 15px;
        max-height: calc(70vh - 100px);
    }
    
    .window-content h2 {
        font-size: 16px;
    }
    
    .window-content h3 {
        font-size: 13px;
    }
    
    .skills-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .skill-category {
        flex: none;
        min-width: auto;
        max-width: none;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .start-menu {
        width: 320px;
    }
    
    .start-menu-container {
        height: 400px;
    }
    
    .start-menu-right {
        width: 140px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 9px;
    }
    
    .desktop-icons {
        gap: 8px;
    }
    
    .icon {
        width: 70px;
        padding: 6px;
    }
    
    .icon img {
        width: 40px;
        height: 40px;
    }
    
    .icon span {
        font-size: 9px;
        max-width: 60px;
    }
    
    .window {
        min-width: 250px;
        min-height: 200px;
        max-height: 60vh;
    }
    
    .window-content {
        padding: 12px;
        max-height: calc(60vh - 80px);
    }
    
    .window-content h2 {
        font-size: 14px;
    }
    
    .window-content h3 {
        font-size: 12px;
    }
    
    .skills-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .skill-category {
        flex: none;
        min-width: auto;
        max-width: none;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .start-menu {
        width: 280px;
    }
    
    .start-menu-container {
        height: 350px;
    }
    
    .start-menu-right {
        width: 120px;
    }
    
    .start-menu-item {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .start-menu-item img {
        width: 18px;
        height: 18px;
    }
}

/* Desktop */
.desktop {
    background: url('background.jpg') center center / cover no-repeat;
    height: calc(100vh - 40px);
    position: relative;
    overflow: hidden;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icon {
    width: 100px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon.selected {
    background: rgba(51, 153, 255, 0.3);
    outline: 1px dotted rgba(255, 255, 255, 0.5);
}

.icon img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
}

.icon span {
    display: block;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 90px;
    line-height: 1.2;
}

/* Windows */
.window {
    position: absolute;
    min-width: 350px;
    min-height: 300px;
    max-width: 75vw;
    max-height: 80vh;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 1;
    resize: both;
    overflow: hidden;
}

.window.active {
    z-index: 100;
}

/* About Me window - smaller size */
#about-me {
    width: 550px;
    height: 500px;
    max-width: 65vw;
    max-height: 75vh;
    min-width: 450px;
    min-height: 400px;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 40px) !important;
    border-radius: 0;
}

.window.resizing {
    user-select: none;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

.resize-handle.n {
    top: -3px;
    left: 3px;
    right: 3px;
    height: 6px;
    cursor: n-resize;
}

.resize-handle.s {
    bottom: -3px;
    left: 3px;
    right: 3px;
    height: 6px;
    cursor: s-resize;
}

.resize-handle.e {
    top: 3px;
    right: -3px;
    bottom: 3px;
    width: 6px;
    cursor: e-resize;
}

.resize-handle.w {
    top: 3px;
    left: -3px;
    bottom: 3px;
    width: 6px;
    cursor: w-resize;
}

.resize-handle.ne {
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    cursor: ne-resize;
}

.resize-handle.nw {
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    cursor: nw-resize;
}

.resize-handle.se {
    bottom: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    cursor: se-resize;
}

.resize-handle.sw {
    bottom: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    cursor: sw-resize;
}

/* Window Header */
.window-header {
       background: linear-gradient(to bottom, #656565 0%, #373737 100%);
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}

.window:not(.active) .window-header {
    background: linear-gradient(to bottom, #A0A0A0 0%, #808080 100%);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.window-title img {
    width: 16px;
    height: 16px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-controls button {
    width: 21px;
    height: 21px;
    border: none;
   background: linear-gradient(to bottom, #ffffff 0%, #d1d1d1 100%);
    border: 1px solid #434343;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-controls button:hover {
    background: linear-gradient(to bottom, #FFFAED 0%, #FFF0CC 100%);
}

.window-controls button:active {
    background: linear-gradient(to bottom, #FFE5B8 0%, #FFF4E0 100%);
}

.window-controls .close {
    background: linear-gradient(to bottom, #FF6B6B 0%, #EE4444 100%);
    color: white;
}

.window-controls .close:hover {
    background: linear-gradient(to bottom, #FF8888 0%, #FF6666 100%);
}

/* Window Menu */
.window-menu {
    background: linear-gradient(to bottom, #F5F5F5 0%, #E0E0E0 100%);
    border-bottom: 1px solid #999;
    padding: 3px 5px;
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.window-menu span {
    cursor: pointer;
    padding: 2px 6px;
}

.window-menu span:hover {
    background: #FFD580;
    border: 1px solid #F0A850;
    padding: 1px 5px;
}

/* Window Content */
.window-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 8px 8px;
    max-height: calc(80vh - 120px);
    min-height: 200px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.window-content h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    border-bottom: 2px solid #F0A850;
    padding-bottom: 6px;
}

.window-content h3 {
    color: #E88D28;
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 13px;
}

.window-content p {
    line-height: 1.5;
    margin-bottom: 8px;
    color: #333;
    font-size: 12px;
}

.window-content ul {
    margin-left: 16px;
    margin-bottom: 12px;
}

.window-content li {
    margin-bottom: 6px;
    line-height: 1.4;
    color: #333;
    font-size: 11px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 10px);
    margin-bottom: 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: fit-content;
}

.skill-bar {
    margin-bottom: 12px;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
    font-size: 11px;
}

.progress-bar {
    background: #E0E0E0;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #999;
}

.progress {
    background: linear-gradient(to bottom, #F0A850 0%, #E88D28 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    transition: width 0.8s ease;
}

/* Experience */
.experience-item {
    background: #F5F5F5;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #F0A850;
    border-radius: 3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-item li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-item h3 {
    margin-top: 0;
    color: #E88D28;
}

.company {
    color: #666;
    font-style: italic;
    font-size: 11px;
    margin-bottom: 8px;
}

/* Projects */
.project-item {
    background: #F9F9F9;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #DDD;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-item h3 {
    margin-top: 0;
    color: #E88D28;
}

/* Contact */
.contact-info {
    background: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 12px;
}

.contact-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #DDD;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.contact-item a {
    color: #E88D28;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #363636 0%, #242424 100%);
    display: flex;
    align-items: center;
    padding: 0 3px;
    border-top: 1px solid #6A6A6A;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.start-button {
    background: linear-gradient(to bottom, #FF8C42 0%, #E6632A 100%);
    border: 1px solid #CC4A00;
    border-radius: 6px 6px 0 0;
    padding: 6px 20px 5px 15px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    margin: 2px 4px 2px 2px;
}

.start-button:hover {
    background: linear-gradient(to bottom, #FFA052 0%, #FF7C3A 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 4px rgba(0, 0, 0, 0.6);
}

.start-button:active,
.start-button.active {
    background: linear-gradient(to bottom, #E6632A 0%, #CC4A00 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.start-button img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.start-button span {
    color: white;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Tahoma', sans-serif;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    margin-left: 6px;
    overflow-x: auto;
    padding: 2px 0;
}

.taskbar-item {
    background: linear-gradient(to bottom, #4A4A4A 0%, #2A2A2A 100%);
    border: 1px solid #1A1A1A;
    border-top: 1px solid #6A6A6A;
    border-left: 1px solid #5A5A5A;
    border-radius: 0;
    padding: 4px 12px;
    height: 32px;
    color: #E0E0E0;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Tahoma', sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.taskbar-item:hover {
    background: linear-gradient(to bottom, #5A5A5A 0%, #3A3A3A 100%);
    border-top: 1px solid #7A7A7A;
    border-left: 1px solid #6A6A6A;
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #FF8C42 0%, #E6632A 100%);
    border: 1px solid #CC4A00;
    border-top: 1px solid #FFB366;
    border-left: 1px solid #FFA052;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.taskbar-item img {
    width: 16px;
    height: 16px;
}

.system-tray {
    background: linear-gradient(to bottom, #3A3A3A 0%, #1A1A1A 100%);
    padding: 6px 8px;
    border: 1px solid #0A0A0A;
    border-top: 1px solid #393939;
    border-left: 1px solid #4A4A4A;

    display: flex;
    align-items: center;
    gap: 8px;
    color: #CCCCCC;
    font-size: 11px;
    margin-left: 6px;
    font-weight: normal;
    font-family: 'Tahoma', sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tray-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tray-icons img {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    cursor: pointer;
    filter: brightness(1.1);
}

.tray-icons img:hover {
    opacity: 1;
    filter: brightness(1.3);
}

.tray-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, #2A2A2A 0%, #5A5A5A 50%, #2A2A2A 100%);
    margin: 0 6px;
    margin-left: 0;
}

.tray-chevron {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background 0.2s;
}

.tray-chevron:hover {
    background: linear-gradient(to bottom, #5A5A5A 0%, #3A3A3A 100%);
}

.tray-chevron img {
    width: 12px;
    height: 16px;
    opacity: 0.8;
}

#clock {
    color: #CCCCCC;
    font-size: 11px;
    font-weight: normal;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9);
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
 
    width: 380px;
    background: #1a1a1a;
    border: 1px solid #000;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow: hidden;
}

.start-menu-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.start-menu-header {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.start-menu-header img {
    width: 28px;
    height: 28px;
}

.start-menu-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Painel esquerdo - Programas */
.start-menu-left {
    flex: 1;
    padding: 4px 0;
    overflow-y: auto;
    background: #1a1a1a;
}

.start-menu-left::-webkit-scrollbar {
    width: 8px;
}

.start-menu-left::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.start-menu-left::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.start-menu-left::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Painel direito - Links do sistema */
.start-menu-right {
    width: 160px;
    padding: 4px 0;
    overflow-y: auto;
    background: #1a1a1a;
    border-left: 1px solid #333;
}

.start-menu-right::-webkit-scrollbar {
    width: 8px;
}

.start-menu-right::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.start-menu-right::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.start-menu-right::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Itens do menu */
.start-menu-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
    transition: background 0.15s;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.start-menu-left .start-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-right .start-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.start-menu-right .start-menu-item:active,
.start-menu-right .start-menu-item.selected {
    background: rgba(255, 255, 255, 0.25);
}

.start-menu-item img {
    width: 20px;
    height: 20px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
}

.start-menu-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rodapé do menu */
.start-menu-footer {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    padding: 6px 8px;
    border-top: 1px solid #333;
    display: flex;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.start-menu-power-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 12px;
    color: white;
    font-size: 10px;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: background 0.2s;
    border-radius: 3px;
}

.start-menu-power-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-power-btn#good-bye {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.start-menu-power-btn#good-bye::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E74C3C;
    border: 2px solid #C0392B;
    display: block;
}

.shutdown-button {
    background: linear-gradient(to bottom, #FF6B6B 0%, #EE4444 100%);
    border: 1px outset #CC0000;
    border-radius: 3px;
    padding: 6px 12px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tahoma', sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.shutdown-button:hover {
    background: linear-gradient(to bottom, #FF8888 0%, #FF6666 100%);
}

.shutdown-button:active {
    background: linear-gradient(to bottom, #EE4444 0%, #FF6B6B 100%);
    border: 1px inset #CC0000;
}

.shutdown-button img {
    width: 16px;
    height: 16px;
}

/* Scrollbar customization */
.window-content::-webkit-scrollbar {
    width: 12px;
}

.window-content::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 6px;
}

.window-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #FFD580 0%, #F0A850 100%);
    border: 1px solid #B87333;
    border-radius: 6px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #FFE5A0 0%, #FFB860 100%);
}

/* Ensure scroll works */
.window-content {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window {
    animation: fadeIn 0.2s ease;
}

/* Media Player */
.media-player-window {
    min-width: 500px;
    min-height: 400px;
    width: 600px;
    height: 450px;
}

.media-player-header {
    background: linear-gradient(to bottom, #656565 0%, #373737 100%);
}

.media-player-header .window-title {
    color: white;
}

.media-player-menu {
    background: linear-gradient(to bottom, #F5F5F5 0%, #E0E0E0 100%);
    border-bottom: 1px solid #999;
}

.media-player-menu span {
    color: #000;
}

.media-player-menu span:hover {
    background: #FFD580;
    border: 1px solid #F0A850;
    padding: 1px 5px;
}

.media-player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}

/* Scrollbar customization for media player */
.media-player-content::-webkit-scrollbar {
    width: 12px;
}

.media-player-content::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 6px;
}

.media-player-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #FFD580 0%, #F0A850 100%);
    border: 1px solid #B87333;
    border-radius: 6px;
}

.media-player-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #FFE5A0 0%, #FFB860 100%);
}

.media-player-visualization {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 250px;
}

#visualization-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.media-player-info {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F0A850;
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
    border-top: 1px solid #444;
}

.media-info {
    color: #F0A850;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.media-time {
    color: #F0A850;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.media-player-controls {
    background: linear-gradient(to bottom, #E8E8E8 0%, #D0D0D0 100%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}

.media-btn {
    width: 32px;
    height: 32px;
    border: 1px outset #C0C0C0;
    background: linear-gradient(to bottom, #F5F5F5 0%, #E0E0E0 100%);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.1s;
}

.media-btn:hover {
    background: linear-gradient(to bottom, #FFF 0%, #F0F0F0 100%);
    border: 1px inset #C0C0C0;
}

.media-btn:active {
    background: linear-gradient(to bottom, #E0E0E0 0%, #D0D0D0 100%);
    border: 1px inset #999;
}

.media-btn svg {
    width: 16px;
    height: 16px;
}

.media-volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #C0C0C0;
    border: 1px solid #999;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: linear-gradient(to bottom, #F0A850 0%, #E88D28 100%);
    border: 1px solid #D35400;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: linear-gradient(to bottom, #F0A850 0%, #E88D28 100%);
    border: 1px solid #D35400;
    border-radius: 2px;
    cursor: pointer;
}

/* Error Window */
.error-window {
    min-width: 450px;
    min-height: 280px;
    width: 500px;
    height: 320px;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 35px;
    gap: 20px;
}

.error-icon {
    font-size: 56px;
    margin-bottom: 5px;
    line-height: 1;
}

.error-content h2 {
    color: #F0A850;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #E88D28;
    text-underline-offset: 4px;
    line-height: 1.2;
}

.error-joke {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
    max-width: 420px;
    padding: 0 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.error-ok-btn {
    background: linear-gradient(to bottom, #F5F5F5 0%, #E0E0E0 100%);
    border: 1px outset #C0C0C0;
    border-radius: 3px;
    padding: 10px 32px;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Tahoma', sans-serif;
    transition: all 0.1s;
    min-width: 80px;
}

.error-ok-btn:hover {
    background: linear-gradient(to bottom, #FFF 0%, #F0F0F0 100%);
    border: 1px inset #C0C0C0;
}

.error-ok-btn:active {
    background: linear-gradient(to bottom, #E0E0E0 0%, #D0D0D0 100%);
    border: 1px inset #999;
}

