* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.top-bar {
    height: 40px;
    background-color: #007acc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
}

.top-bar button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.top-bar img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 13px;
}

.slider-group input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.win-btn {
    width: 25px;
    height: 20px;
    background: #e81123;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.win-btn.minimize {
    background: rgba(0, 0, 0, 0.1);
}
.win-btn.minimize:hover {
    background: rgba(0, 0, 0, 0.2);
}
.win-btn.close:hover {
    background: #f1707a;
}

/* Прогресс-бар сверху */
.progress-container {
    height: 6px;
    background: #005999;
    width: 100%;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    width: 0%;
}

/* Рабочая область (Viewport) */
.viewport {
    flex: 1;
    background-color: #808080;
    position: relative;
    overflow: hidden;
}

#synthesia-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Тот самый серый квадратик (подложка для инфо-блока слева) */
.info-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.65); /* Темный полупрозрачный фон */
    padding: 10px 12px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-family: monospace;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.kiva-logo {
    width: 20px;
    height: 20px;
}

.app-name {
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    font-family: sans-serif;
}

.version {
    font-size: 10px;
    opacity: 0.8;
}

.stat-line {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    width: 150px;
    margin-bottom: 2px;
}

/* Пианино снизу */
.piano-footer {
    height: 130px;
    background: #111;
    border-top: 2px solid #007acc;
    display: flex;
    overflow-x: auto;
}

.piano-keyboard {
    display: flex;
    position: relative;
    height: 100%;
    margin: 0 auto;
}

.key {
    position: relative;
    box-sizing: border-box;
}

.key.white {
    width: 24px;
    height: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 3px 3px;
    z-index: 1;
}

.key.black {
    width: 14px;
    height: 60%;
    background: #000;
    position: absolute;
    z-index: 2;
    margin-left: -7px;
    border-radius: 0 0 2px 2px;
}