Загрузка данных
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MusicBee Player CSS Only</title>
<!-- Подключение Font Awesome для иконок -->
<link rel="stylesheet" href="https://cloudflare.com">
<style>
/* Темный интерфейс MusicBee */
body {
margin: 0;
padding: 40px;
background-color: #1e1e1e;
font-family: 'Segoe UI', sans-serif;
color: #cccccc;
display: flex;
justify-content: center;
}
/* Панель плеера */
.musicbee-panel {
display: flex;
align-items: center;
background-color: #252526;
border: 1px solid #333333;
border-radius: 6px;
padding: 10px 20px;
width: 100%;
max-width: 750px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
gap: 20px;
}
/* Блок кнопок */
.controls {
display: flex;
align-items: center;
gap: 12px;
}
.btn-side {
background: none;
border: none;
color: #b5b5b5;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 6px;
border-radius: 4px;
transition: all 0.15s ease;
}
.btn-side:hover {
background-color: #383838;
color: #ffffff;
}
/* МАГИЯ ЧЕКБОКСА ДЛЯ PLAY/PAUSE */
#play-trigger {
display: none; /* Полностью прячем сам чекбокс */
}
/* Оформляем label как кнопку Play */
.btn-play-label {
background-color: #333333;
border: 1px solid #444444;
width: 34px;
height: 34px;
color: #ffffff;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
}
.btn-play-label:hover {
background-color: #444444;
border-color: #555555;
}
/* По умолчанию показываем иконку Play и прячем Pause */
.btn-play-label .fa-pause {
display: none;
}
.btn-play-label .fa-play {
display: block;
}
/* Когда чекбокс АКТИВЕН (включен): меняем отображение иконок */
#play-trigger:checked + .btn-play-label .fa-play {
display: none; /* Прячем треугольник */
}
#play-trigger:checked + .btn-play-label .fa-pause {
display: block; /* Показываем две полоски паузы */
}
/* БЛОК ИНФОРМАЦИИ (Центр) */
.track-info-zone {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 6px;
}
.meta-data {
font-size: 13px;
}
.track-title {
color: #ffffff;
font-weight: 600;
}
.track-artist {
color: #888888;
margin-left: 5px;
}
/* Полоса прогресса */
.timeline-container {
display: flex;
align-items: center;
gap: 10px;
font-size: 11px;
color: #888888;
}
.progress-bar {
flex-grow: 1;
height: 4px;
background-color: #3e3e42;
border-radius: 2px;
}
.progress-fill {
width: 40%;
height: 100%;
background-color: #007acc; /* Фирменный синий MusicBee */
border-radius: 2px;
}
/* ГРОМКОСТЬ (Справа) */
.volume-zone {
display: flex;
align-items: center;
gap: 8px;
color: #b5b5b5;
}
.volume-slider {
width: 70px;
height: 4px;
background-color: #3e3e42;
border-radius: 2px;
}
.volume-fill {
width: 75%;
height: 100%;
background-color: #b5b5b5;
border-radius: 2px;
}
</style>
</head>
<body>
<div class="musicbee-panel">
<!-- 1. КНОПКИ УПРАВЛЕНИЯ -->
<div class="controls">
<button class="btn-side" title="Предыдущий трек">
<i class="fas fa-step-backward"></i>
</button>
<!-- Скрытый чекбокс + Label, заменяющий кнопку -->
<input type="checkbox" id="play-trigger">
<label for="play-trigger" class="btn-play-label" title="Воспроизвести / Пауза">
<i class="fas fa-play"></i>
<i class="fas fa-pause"></i>
</label>
<button class="btn-side" title="Следующий трек">
<i class="fas fa-step-forward"></i>
</button>
</div>
<!-- 2. ИНФОРМАЦИЯ О ТРЕКЕ -->
<div class="track-info-zone">
<div class="meta-data">
<span class="track-title">Riders on the Storm</span>
<span class="track-artist">· The Doors</span>
</div>
<div class="timeline-container">
<span>1:45</span>
<div class="progress-bar">
<div class="progress-fill"></div>
</div>
<span>4:55</span>
</div>
</div>
<!-- 3. ГРОМКОСТЬ -->
<div class="volume-zone">
<i class="fas fa-volume-low"></i>
<div class="volume-slider">
<div class="volume-fill"></div>
</div>
</div>
</div>
</body>
</html>