* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

html, body {
    /* Minimalistyczny, nowoczesny kursor w stylu strzałki */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="%23ffffff" stroke="%23000000" stroke-width="1" points="3,2 18,11 11,13 9,21"/></svg>') 2 2, auto;
}

/* Custom kursory dla zmiany rozmiaru - w podobnym stylu */
.resize-n, .resize-s {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="%23ffffff" stroke="%23000000" stroke-width="1" points="12,2 7,9 10,9 10,15 7,15 12,22 17,15 14,15 14,9 17,9"/></svg>') 12 12, ns-resize;
}

.resize-e, .resize-w {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="%23ffffff" stroke="%23000000" stroke-width="1" points="2,12 9,7 9,10 15,10 15,7 22,12 15,17 15,14 9,14 9,17"/></svg>') 12 12, ew-resize;
}

.resize-ne, .resize-sw {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="%23ffffff" stroke="%23000000" stroke-width="1" points="6,3 3,6 8,11 5,11 5,13 11,13 11,7 9,7 9,10"/></svg>') 12 12, nesw-resize;
}

.resize-nw, .resize-se {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="%23ffffff" stroke="%23000000" stroke-width="1" points="18,3 21,6 16,11 19,11 19,13 13,13 13,7 15,7 15,10"/></svg>') 12 12, nwse-resize;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pulpit */
.desktop {
    width: 100vw;
    height: 100vh;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Ikony na pulpicie */
.desktop-icons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    align-content: start;
    height: calc(100vh - 50px);
    overflow-y: auto;
    width: fit-content;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: inherit;
    transition: transform 0.15s ease-out;
    user-select: none;
    width: 110px;
    text-align: center;
}

.desktop-icon:hover {
    transform: translateY(-3px);
}

.desktop-icon.selected {
    transform: translateY(-3px);
}

.desktop-icon-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 40px;
    color: #ffffff;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 1)) 
            drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.5))
            drop-shadow(-1px -1px 0px rgba(0, 0, 0, 0.3));
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
    position: relative;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1),
                 1px 1px 0px rgba(0, 0, 0, 1),
                 -1px -1px 0px rgba(255, 255, 255, 0.2);
    background: transparent;
}

.desktop-icon-image::before {
    display: none;
}

.desktop-icon:hover .desktop-icon-image {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 1)) 
            drop-shadow(3px 3px 0px rgba(255, 255, 255, 0.6))
            drop-shadow(-1px -1px 0px rgba(0, 0, 0, 0.3));
}

.desktop-icon-label {
    color: #ffffff;
    font-size: 13px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1),
                 2px 2px 0px rgba(0, 0, 0, 1),
                 1px 1px 0px rgba(0, 0, 0, 1),
                 -1px -1px 0px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    max-width: 110px;
    line-height: 1.3;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Okna */
.windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    pointer-events: none;
}

.window {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    min-height: 300px;
    max-width: 90vw;
    max-height: 85vh;
    width: 1200px;
    height: 700px;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    backdrop-filter: blur(10px);
    animation: windowOpen 0.3s ease-out;
    overflow: hidden;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.window-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff;
    border-radius: 8px 8px 0 0;
    cursor: inherit;
    user-select: none;
}

.window-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-title i {
    font-size: 16px;
}

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

.window-control {
    width: 32px;
    height: 32px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    cursor: inherit;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 14px;
}

.window-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.window-control.close:hover {
    background: rgba(255, 0, 0, 0.3);
}

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.window-content .remix-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    width: 100%;
}

.window-content .empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
}

.window.active {
    z-index: 1000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

/* Uchwyty zmiany rozmiaru */
.window-resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-n {
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.resize-s {
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.resize-e {
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
}

.resize-w {
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
}

.resize-ne {
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
}

.resize-nw {
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
}

.resize-se {
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
}

.resize-sw {
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
}

.window-resize-handle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Zawartość okna - kategorie i remixy */
.remix-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
}

.remix-folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    cursor: inherit;
    transition: transform 0.15s ease-out;
    user-select: none;
    text-align: center;
}

.remix-folder-icon:hover {
    transform: translateY(-3px);
}

.remix-folder-icon.selected {
    transform: translateY(-3px);
}

.remix-folder-icon-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 48px;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 1)) 
            drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.5))
            drop-shadow(-1px -1px 0px rgba(0, 0, 0, 0.3));
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
    position: relative;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    background: transparent;
}

.remix-folder-icon:hover .remix-folder-icon-image {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 1)) 
            drop-shadow(3px 3px 0px rgba(255, 255, 255, 0.6))
            drop-shadow(-1px -1px 0px rgba(0, 0, 0, 0.3));
}

.remix-folder-icon-label {
    color: #ffffff;
    font-size: 13px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1),
                 2px 2px 0px rgba(0, 0, 0, 1),
                 1px 1px 0px rgba(0, 0, 0, 1),
                 -1px -1px 0px rgba(0, 0, 0, 0.5);
    max-width: 120px;
    line-height: 1.3;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-weight: bold;
    letter-spacing: 0.5px;
    word-wrap: break-word;
}

.remix-folder-icon-label.truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tracks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.track-group {
    margin-bottom: 30px;
}

.track-group-header {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffffff;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.preview-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: inherit;
}

/* YouTube - karta bardziej pozioma */
.preview-card-youtube {
    grid-column: span 2; /* zajmuje więcej szerokości w siatce */
}

/* Reszta (Spotify, SoundCloud) - bardziej pionowa karta */
.preview-card-vertical {
    /* utrzymuje standardową szerokość kolumny */
    max-width: 360px;
}

.preview-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.preview-card-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    cursor: inherit;
}

.preview-embed {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

/* Tylko YouTube z bardziej poziomą ramką (większa szerokość w obrębie karty) */
.preview-embed.youtube-embed iframe {
    width: 100%;
    height: 360px;
    border: none;
    border-radius: 6px;
}

.preview-embed iframe {
    width: 100%;
    border: none;
    border-radius: 6px;
}

.spotify-embed iframe {
    height: 352px;
}

.soundcloud-embed iframe {
    height: 400px;
}

/* Sekcja odtwarzacza audio */
.audio-player-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ffffff;
}

.audio-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.audio-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.audio-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.audio-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.audio-player-wrapper {
    width: 100%;
}

.audio-player-wrapper audio {
    width: 100%;
    height: 54px;
    outline: none;
}

.audio-player-wrapper audio::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #ffffff;
    border-radius: 4px;
}

.audio-player-wrapper audio::-webkit-media-controls-play-button {
    background-color: #ffffff;
    border-radius: 50%;
}

.audio-player-wrapper audio::-webkit-media-controls-current-time-display,
.audio-player-wrapper audio::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
}

/* Custom Audio Player */
.custom-audio-player {
    padding: 20px;
    color: #ffffff;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.player-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    margin-bottom: 5px;
    word-wrap: break-word;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.player-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffffff;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.player-progress {
    margin-bottom: 20px;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffffff;
    border-radius: 4px;
    cursor: inherit;
    margin-bottom: 10px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: inherit;
}

.progress-handle:active {
    cursor: inherit;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.player-volume i {
    font-size: 18px;
    color: #ffffff;
}

.volume-slider-container {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffffff;
    border-radius: 3px;
    cursor: inherit;
    user-select: none;
}

.volume-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    width: 70%;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: inherit;
}

.volume-handle:active {
    cursor: inherit;
}

.volume-percent {
    color: #ffffff;
    font-size: 12px;
    min-width: 35px;
    text-align: right;
}


/* Pasek zadań */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.taskbar-start {
    display: flex;
    align-items: center;
    position: relative;
}

.start-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 6px;
    cursor: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 18px;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.start-button.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Rozwijane menu Start */
.start-menu {
    position: absolute;
    bottom: 60px;
    left: 10px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffffff;
    border-radius: 8px;
    min-width: 200px;
    display: none;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: menuSlideUp 0.2s ease-out;
}

.start-menu.show {
    display: block;
}

@keyframes menuSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-profile {
    padding: 20px;
    border-bottom: 2px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.start-menu-profile-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.start-menu-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.start-menu-profile-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1),
                 2px 2px 0px rgba(0, 0, 0, 1),
                 1px 1px 0px rgba(0, 0, 0, 1);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    letter-spacing: 0.5px;
}

.start-menu-content {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: inherit;
}

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

.menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-size: 14px;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 5px;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.taskbar-app {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    cursor: inherit;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
    max-width: 180px;
    height: 36px;
    overflow: hidden;
    flex-shrink: 1;
}

.taskbar-app i {
    flex-shrink: 0;
}

.taskbar-app span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

/* Mniejsze przyciski gdy jest ich dużo */
.taskbar-app-small {
    padding: 6px 8px;
    max-width: 100px;
    font-size: 11px;
}

.taskbar-app-small span {
    max-width: 50px;
}

/* Tylko ikona gdy jest bardzo dużo przycisków */
.taskbar-app-icon-only {
    padding: 6px 10px;
    min-width: 36px;
    max-width: 36px;
    justify-content: center;
}

.taskbar-app-icon-only span {
    display: none !important;
}

.taskbar-time {
    color: #ffffff;
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffff;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsywność */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .desktop-icon {
        width: 80px;
    }

    .desktop-icon-image {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .window {
        position: fixed !important;
        left: 2vw !important;
        top: 2vh !important;
        right: 2vw !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 60px) !important;
        max-width: 96vw !important;
        min-width: unset !important;
        min-height: unset !important;
        margin: 0 !important;
    }
    
    .window-content {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 10px;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
    }
    
    .remix-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .remix-folder-icon {
        width: 100%;
        padding: 10px;
    }
    
    .remix-folder-icon-image {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .remix-folder-icon-label {
        font-size: 11px;
    }
    
    /* Pasek zadań na telefonach */
    .taskbar {
        height: 50px;
        padding: 5px 10px;
    }
    
    .start-button {
        width: 36px;
        height: 36px;
        padding: 6px;
        font-size: 14px;
    }
    
    .start-button i {
        font-size: 14px;
    }
    
    .taskbar-apps {
        gap: 5px;
        overflow-x: auto;
        flex: 1;
        max-width: calc(100vw - 130px);
    }
    
    .taskbar-app {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 36px;
        max-width: 36px;
        height: 32px;
        flex-shrink: 0;
        justify-content: center;
    }
    
    .taskbar-app span {
        display: none !important;
    }
    
    .taskbar-app i {
        margin: 0;
    }
    
    .taskbar-time {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    /* Player na telefonie */
    .custom-audio-player {
        padding: 15px;
    }
    
    .player-title {
        font-size: 14px;
    }
    
    .player-controls {
        gap: 15px;
    }
    
    .player-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .play-pause-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    /* Większe paski do przesuwania na telefonie */
    .progress-bar-container {
        height: 16px;
        padding: 5px 0;
        touch-action: none;
    }
    
    .progress-handle {
        width: 24px;
        height: 24px;
    }
    
    .volume-slider-container {
        height: 14px;
        padding: 5px 0;
        touch-action: none;
    }
    
    .volume-handle {
        width: 20px;
        height: 20px;
    }
    
    /* Embedy na telefonie */
    .preview-card {
        width: 100% !important;
        grid-column: span 1 !important;
    }
    
    .preview-card-youtube {
        grid-column: span 1 !important;
    }
    
    .youtube-embed iframe {
        width: 100%;
        height: 200px;
    }
    
    .spotify-embed iframe {
        height: 152px;
    }
    
    .soundcloud-embed iframe {
        height: 300px;
    }
    
    /* Kosz w prawym górnym rogu - mniejszy na telefonie */
    .desktop > div[style*="position: absolute"][style*="right"] {
        top: 10px !important;
        right: 10px !important;
    }
    
    /* Start Menu */
    .start-menu {
        width: calc(100vw - 20px);
        left: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .start-menu-profile {
        padding: 15px;
    }
    
    .start-menu-profile-image {
        width: 50px;
        height: 50px;
    }
    
    .menu-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Windows container */
    .windows-container {
        height: calc(100% - 50px);
    }
}

/* Bardzo małe telefony */
@media (max-width: 400px) {
    .window {
        left: 1vw !important;
        top: 1vh !important;
        right: 1vw !important;
        width: auto !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .window-content {
        max-height: calc(100vh - 120px);
        padding: 8px;
    }
    
    .remix-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 5px;
    }
    
    .remix-folder-icon {
        padding: 8px;
    }
    
    .remix-folder-icon-image {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .desktop-icon-label {
        font-size: 10px;
    }
    
    .window-title span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .taskbar-apps {
        max-width: calc(100vw - 110px);
    }
    
    .taskbar-app {
        min-width: 40px;
        max-width: 60px;
        padding: 5px;
    }
}

/* Telefon w poziomie (landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .window {
        position: fixed !important;
        left: 1vw !important;
        top: 1vh !important;
        right: 1vw !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 50px) !important;
        max-width: 98vw !important;
        min-width: unset !important;
        min-height: unset !important;
    }
    
    .window-header {
        padding: 5px 10px;
    }
    
    .window-control {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .window-title {
        font-size: 12px;
    }
    
    .window-content {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 5px;
    }
    
    .remix-folders-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        padding: 5px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .remix-folder-icon {
        padding: 3px;
        flex-shrink: 0;
        min-width: 55px;
        max-width: 65px;
    }
    
    .remix-folder-icon-image {
        width: 32px;
        height: 32px;
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .remix-folder-icon-label {
        font-size: 8px;
        line-height: 1.1;
        max-width: 60px;
    }
    
    /* Mniejszy taskbar w landscape */
    .taskbar {
        height: 40px;
    }
    
    .windows-container {
        height: calc(100% - 40px);
    }
    
    .start-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .taskbar-app {
        height: 28px;
        min-width: 28px;
        max-width: 28px;
        padding: 4px;
    }
    
    .taskbar-time {
        font-size: 9px;
        padding: 4px 6px;
    }
    
    /* Player w landscape */
    .custom-audio-player {
        padding: 8px;
    }
    
    .player-info {
        margin-bottom: 8px;
    }
    
    .player-title {
        font-size: 12px;
    }
    
    .player-controls {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .player-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .play-pause-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .player-progress {
        margin-bottom: 8px;
    }
    
    .player-volume {
        margin-bottom: 8px;
    }
    
    .progress-bar-container {
        height: 10px;
    }
    
    .progress-handle {
        width: 16px;
        height: 16px;
    }
    
    .volume-slider-container {
        height: 8px;
    }
    
    .volume-handle {
        width: 14px;
        height: 14px;
    }
}
