* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, html { margin: 0; padding: 0; height: 100%; font-family: "Tahoma", sans-serif; overflow: hidden; background: #000; }

.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.boot-logo {
    width: 250px; /* Отрегулируй размер под свое лого */
    height: auto;
    margin-bottom: 20px;
    /* Можно добавить небольшое свечение логотипу */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.boot-title {
    color: white;
    font-family: sans-serif;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    font-size: 24px;
}


.desktop { 
    background-color: #0080ff; /* Это цвет по умолчанию */
    background-image: none; /* Или твоя стандартная картинка без !important */
    height: calc(100dvh - 30px); 
    width: 100%;
    display: flex; 
    flex-direction: column; 
    flex-wrap: wrap; 
    align-content: flex-start; 
    padding: 15px; 
}


.icon { width: 85px; height: 90px; display: flex; flex-direction: column; align-items: center; color: white; text-shadow: 1px 1px 2px black; font-size: 12px; margin-bottom: 15px; cursor: pointer; text-align: center; }
.icon img { width: 42px; height: 42px; margin-bottom: 5px; }

/* КЛАССИЧЕСКОЕ ОКНО (СЕРОЕ) */
.window { 
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); 
    width: 90%; max-width: 360px; background: #ece9d8; border: 3px solid #0053ee; border-radius: 8px 8px 0 0; z-index: 100; box-shadow: 5px 5px 20px rgba(0,0,0,0.5); 
}
.window-header { background: linear-gradient(to bottom, #0058e6, #2576ff); padding: 6px 10px; display: flex; justify-content: space-between; color: white; font-weight: bold; align-items: center; }
.window-content { padding: 15px; color: black; background: #ece9d8; min-height: 180px; overflow-y: auto; }

/* ТОЛЬКО ДЛЯ ПЛЕЕРА (ТЕМНО-СИНИЙ НЕОН) */
.window.player-mode { border-color: #ff00ff; box-shadow: 0 0 25px #ff00ff; }
.window.player-mode .window-header { background: linear-gradient(to bottom, #ff00ff, #800080); }
.window.player-mode .window-content { background: #000033 !important; color: #ff00ff; padding: 0; }

.synth-player { padding: 15px; text-align: center; }
.main-cover { width: 160px; height: 160px; border: 2px solid #ff00ff; box-shadow: 0 0 10px #ff00ff; object-fit: cover; margin-bottom: 10px; }
.neon-text { font-size: 14px; font-weight: bold; text-shadow: 0 0 5px #ff00ff; margin-bottom: 10px; }
audio { width: 100%; filter: invert(1) hue-rotate(270deg); height: 35px; margin: 10px 0; }
.tr-item { padding: 10px; font-size: 13px; border-bottom: 1px solid #333; cursor: pointer; text-align: left; }
.tr-item:hover { background: #ff00ff; color: white; }

/* Исправляем фон: когда окно в режиме плеера, всё окно внутри синеет */
.window.player-mode { 
    background: #000033 !important; /* Темно-синий фон самого окна */
    border-color: #ff00ff; 
    box-shadow: 0 0 20px #ff00ff;
}

/* Убираем белый фон у контента, когда открыт плеер */
.window.player-mode #player-container {
    background: #000033;
    color: #ff00ff;
}

.playlist-container {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.4);
    height: 140px; /* Высота примерно на 4-5 треков, остальное — скролл */
    overflow-y: auto;
    border: 1px solid rgba(255, 0, 255, 0.3);
}



/* Панель задач */
.taskbar { height: 30px; background: linear-gradient(to bottom, #245edb, #1941a5); position: fixed; bottom: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 200; }
.start-button { background: linear-gradient(to bottom, #388038, #62b362); color: white; padding: 0 15px; height: 100%; display: flex; align-items: center; border-radius: 0 10px 10px 0; font-weight: bold; cursor: pointer; }
.time { color: white; padding-right: 10px; font-size: 13px; font-weight: bold; }

/* Загрузка */
#boot-screen { position: fixed; inset: 0; background: black; z-index: 2000; display: flex; justify-content: center; align-items: center; }
.progress-bar { width: 150px; height: 12px; border: 1px solid #777; position: relative; overflow: hidden; }
.progress-bar span { position: absolute; width: 50px; height: 100%; background: #245edb; animation: load 2s infinite linear; }
@keyframes load { from { left: -50px; } to { left: 150px; } }
.close-btn { background: #e04343; color: white; border: 1px solid white; cursor: pointer; font-size: 12px; padding: 2px 8px; font-weight: bold; }

/* Настройки 3D обложки */
.flip-card {
    background-color: transparent;
    width: 220px; /* Увеличили размер */
    height: 220px;
    perspective: 1000px;
    margin: 0 auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Класс, который добавляется при клике через JS (classList.toggle) */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Подгоняем картинку под новый размер */
.main-cover {
    width: 220px !important;
    height: 220px !important;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
    object-fit: cover;
}

/* Сетка в секретной папке */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 10px;
    padding: 10px;
}
.secret-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid #000;
    cursor: pointer;
}

/* Стили просмотрщика */
#photo-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#viewer-img { max-width: 90%; max-height: 80%; border: 3px solid white; }
.close-viewer { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 50px; cursor: pointer; padding: 20px; }
.prev { left: 10px; }
.next { right: 10px; }

.close-viewer {
    line-height: 1;
    user-select: none;
}
.close-viewer:hover {
    color: #ff00ff; /* Станет розовым при наведении */
}
.nav-btn {
    z-index: 5002; /* Кнопки навигации выше всего */
}

#bsod {
    position: fixed;
    inset: 0;
    background: #0000aa;
    color: white;
    font-family: 'Lucida Console', Monaco, monospace;
    padding: 50px;
    z-index: 9999;
    font-size: 18px;
    line-height: 1.5;
    cursor: pointer;
}
.bsod-content { max-width: 800px; margin: 0 auto; }
.hint-text { color: #ffff00; font-weight: bold; } /* Желтая подсказка */

@media (max-width: 600px) {
    #bsod { font-size: 12px; padding: 20px; }
}
