@font-face {
    font-family: 'Topaz a500a1000a2000';
    src: url('Topaza500a1000a2000.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-smooth: never;
    font-display: swap;
}

body {
    background: black;
    margin: 0;
    padding: 20px;
    font-family: "Topaz a500a1000a2000";
     text-shadow: 0.06rem 0 0.06rem #ea36af, -0.125rem 0 0.06rem #75fa69;
      animation-duration: 0.01s;
   animation-name: textflicker;
   animation-iteration-count: infinite;
   animation-direction: alternate;
    
}

@keyframes textflicker {
    from {
      text-shadow: 1px 0 0 #ea36af, -2px 0 0 #75fa69;
    }
    to {
      text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
    }
}

/* Селектор плейлистов */
.playlist-selector {
    max-width: 700px;
    margin: 0 auto 20px;
}

.playlist-selector select {
    width: 100%;
    padding: 10px;
    font-family: "Topaz a500a1000a2000";
    font-size: 16px;
    background: grey;
    color: white;
    border: 2px solid #555;
    border-radius: 0px;
    cursor: pointer;
}

.playlist-selector select:hover {
    background: #666;
}

.playlist-selector select option {
    background: black;
    color: white;
}

/* Базовые стили для контейнера плеера */
.bc-player {
    width: 100%;
    max-width: 700px;
    max-height: 10000px;
    margin: 0 auto;
    font-family: "Topaz a500a1000a2000";
    border: 0px solid #e1e1e1;
    border-radius: 0px;
    overflow: hidden;
    background: transparent;
}

/* Сообщение при отсутствии плейлиста */
.no-playlist {
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    font-style: italic;
    background: rgba(0, 0, 0, 0.3);
}

/* Остальные стили остаются такими же как в предыдущей версии... */

/* Стили для обложки альбома */
.album-cover {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mode-btn[data-mode="single-no-repeat"] {
    font-size: 12px;
}

.album-cover:hover img {
    transform: scale(1);
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    font-size: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.album-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: white;
}

.album-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    color: white;
}

/* Стили для контролов плеера */
.player-controls {
    padding: 20px;
    background: transparent;
    border-top: 1px solid #333;
}

.track-info {
    margin-bottom: 15px;
}

.track-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.track-artist {
    font-size: 14px;
    color: #fff;
}

/* Прогресс-бар */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: white;
    border-radius: 0px;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: cyan;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #fff;
    margin-top: 5px;
}

/* Кнопки управления */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.control-btn {
    background: grey;
    border: 2px solid #555;
    cursor: pointer;
    color: white;
    font-size: 20px;
    padding: 8px;
    border-radius: 0px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #666;
}

.play-pause {
    width: 50px;
    height: 50px;
    background: #00aaff;
    color: white;
    font-size: 24px;
}

.play-pause:hover {
    background: #0088cc;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.volume-slider {
    width: 100px;
    height: 10px;
    background: white;
    border-radius: 0px;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    background: cyan;
    width: 80%;
    border-radius: 0px;
}

/* Настройки плеера */
.player-settings {
    padding: 10px 0;
    margin: 15px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-label {
    font-size: 14px;
    color: #fff;
    font-weight: normal;
}

.playback-mode {
    display: flex;
    gap: 5px;
}

.mode-btn {
    padding: 5px 12px;
    border: 2px solid #555;
    background: grey;
    color: white;
    border-radius: 0px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: #666;
}

.mode-btn.active {
    background: cyan;
    color: black;
    border-color: cyan;
}

/* Список треков */
.tracklist {
    border-top: 1px solid #333;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
}

.track {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.track:hover {
    background: rgba(255, 255, 255, 0.1);
}

.track.active {
    background: rgba(0, 255, 255, 0.2);
    border-left: 3px solid cyan;
}

.track-number {
    color: #fff;
    font-size: 14px;
    min-width: 20px;
}

.track-title-small {
    flex: 1;
    font-size: 14px;
    color: #fff;
}

.track-duration {
    color: #fff;
    font-size: 12px;
}

/* Кастомные скроллбары */
.tracklist::-webkit-scrollbar {
    width: 8px;
}

.tracklist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.tracklist::-webkit-scrollbar-thumb {
    background: cyan;
    border-radius: 0px;
}

.tracklist::-webkit-scrollbar-thumb:hover {
    background: #00dddd;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .bc-player {
        max-width: 100%;
        margin: 0 10px;
        padding: 15px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-button {
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .album-cover {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* УВЕЛИЧЕННАЯ ОБЛОЖКА ДЛЯ ТЕЛЕФОНОВ */
    .album-cover img {
        width: 250px !important; /* Увеличиваем до 250px */
        height: 250px !important; /* Увеличиваем до 250px */
        max-width: 80vw; /* Максимально 80% ширины экрана */
        max-height: 80vw; /* Максимально 80% высоты экрана */
        margin: 0 auto 20px; /* Увеличиваем отступ снизу */
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.1);
    }
    
    .album-info {
        width: 100%;
        text-align: center;
    }
    
    .album-info h2 {
        font-size: 24px !important; /* Увеличиваем размер шрифта */
        margin-bottom: 8px;
        line-height: 1.2;
        color: cyan;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .album-info p {
        font-size: 18px !important; /* Увеличиваем размер шрифта */
        color: #aaa;
        margin-bottom: 15px;
    }
    
    .player-controls {
        padding: 20px 15px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .track-info {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .track-title {
        font-size: 20px !important;
        margin-bottom: 5px;
        color: white;
    }
    
    .track-artist {
        font-size: 16px !important;
        color: #aaa;
    }
    
    .progress-container {
        margin: 25px 0;
    }
    
    .progress-bar {
        height: 8px !important; /* Увеличиваем для удобства касания */
        margin: 20px 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
    }
    
    .progress {
        height: 100%;
        background: linear-gradient(90deg, #00bcd4, #4a00e0);
        border-radius: 4px;
    }
    
    .time-display {
        font-size: 14px;
        margin-top: 10px;
        color: #aaa;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
    }
    
    .control-btn {
        width: 60px !important; /* Увеличиваем кнопки */
        height: 60px !important; /* Увеличиваем кнопки */
        font-size: 24px !important; /* Увеличиваем иконки */
        margin: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }
    
    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .play-pause {
        width: 70px !important; /* Увеличиваем кнопку play/pause */
        height: 70px !important; /* Увеличиваем кнопку play/pause */
        font-size: 28px !important; /* Увеличиваем иконку */
        background: linear-gradient(135deg, #00bcd4, #4a00e0);
        border: none;
    }
    
    .play-pause:hover {
        background: linear-gradient(135deg, #00a4c4, #3a00c0);
        transform: scale(1.08);
    }
    
    .player-settings {
        margin: 20px 0;
        text-align: center;
    }
    
    .settings-label {
        margin-bottom: 10px;
        color: #aaa;
        font-size: 14px;
    }
    
    .playback-mode {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .mode-btn {
        width: 45px !important; /* Увеличиваем кнопки режимов */
        height: 45px !important; /* Увеличиваем кнопки режимов */
        font-size: 18px !important; /* Увеличиваем иконки */
        margin: 5px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mode-btn.active {
        background: rgba(0, 188, 212, 0.3);
        border-color: #00bcd4;
        color: #00bcd4;
    }
    
    .volume-control {
        order: 3;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 15px;
        gap: 10px;
    }
    
    .volume-slider {
        width: 120px !important; /* Увеличиваем слайдер громкости */
    }
    
    .tracklist {
        max-height: 300px;
        margin-top: 25px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        padding: 15px;
    }
    
    .track {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .track.active {
        background: rgba(0, 188, 212, 0.1);
        border-left: 3px solid #00bcd4;
    }
    
    .track-title-small {
        font-size: 16px !important; /* Увеличиваем шрифт названий треков */
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .track-number {
        font-size: 16px;
        margin-right: 15px;
    }
    
    .track-duration {
        font-size: 14px;
    }
    
    /* Инфо-панель */
    .info-panel {
        padding: 20px;
        margin: 15px auto;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .info-title {
        font-size: 22px !important; /* Увеличиваем заголовок */
        margin-bottom: 10px;
        color: white;
    }
    
    .info-meta {
        font-size: 16px !important; /* Увеличиваем мета-информацию */
        margin-bottom: 15px;
        color: #aaa;
    }
    
    .info-description {
        font-size: 15px !important; /* Увеличиваем описание */
        line-height: 1.5;
        color: #ccc;
    }
}

/* Для планшетов и больших телефонов */
@media (max-width: 768px) and (min-width: 481px) {
    .album-cover img {
        width: 280px !important; /* Еще больше для планшетов */
        height: 280px !important; /* Еще больше для планшетов */
        max-width: 70vw;
        max-height: 70vw;
    }
    
    .album-info h2 {
        font-size: 26px !important;
    }
    
    .album-info p {
        font-size: 20px !important;
    }
    
    .track-title {
        font-size: 22px !important;
    }
    
    .track-artist {
        font-size: 18px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .bc-player {
        padding: 10px 8px;
    }
    
    /* Обложка занимает почти всю ширину */
    .album-cover img {
        width: 220px !important; /* Уменьшаем немного для очень маленьких экранов */
        height: 220px !important; /* Уменьшаем немного для очень маленьких экранов */
        max-width: 85vw;
        max-height: 85vw;
        margin-bottom: 15px;
    }
    
    .album-info h2 {
        font-size: 22px !important;
        margin-bottom: 6px;
    }
    
    .album-info p {
        font-size: 16px !important;
        margin-bottom: 10px;
    }
    
    .player-controls {
        padding: 15px 10px;
    }
    
    .control-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 22px !important;
    }
    
    .play-pause {
        width: 65px !important;
        height: 65px !important;
        font-size: 26px !important;
    }
    
    .mode-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .track-title-small {
        font-size: 15px !important;
        max-width: 180px;
    }
    
    .tracklist {
        max-height: 250px;
    }
    
    .info-panel {
        padding: 15px;
        margin: 10px auto;
    }
    
    .info-title {
        font-size: 20px !important;
    }
}

/* Для вертикальной ориентации - делаем обложку еще больше */
@media (max-width: 768px) and (orientation: portrait) {
    .album-cover img {
        width: 260px !important;
        height: 260px !important;
        max-width: 75vw;
        max-height: 75vw;
    }
    
    .album-info h2 {
        font-size: 24px !important;
    }
    
    .album-info p {
        font-size: 18px !important;
    }
}

/* Для горизонтальной ориентации - можно сделать меньше */
@media (max-width: 768px) and (orientation: landscape) {
    .album-cover {
        flex-direction: row;
        text-align: left;
        margin-bottom: 15px;
    }
    
    .album-cover img {
        width: 150px !important;
        height: 150px !important;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .album-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .album-info h2 {
        font-size: 20px !important;
    }
    
    .album-info p {
        font-size: 16px !important;
    }
}

/* Улучшение для iOS */
@supports (-webkit-touch-callout: none) {
    .album-cover img {
        -webkit-touch-callout: none;
    }
    
    /* Для iPhone с вырезом (notch) */
    @media (max-width: 480px) and (min-height: 800px) {
        .bc-player {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .album-cover img {
            width: 240px !important;
            height: 240px !important;
        }
    }
}

/* Анимация для обложки при загрузке */
@keyframes fadeInAlbum {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.album-cover img {
    animation: fadeInAlbum 0.5s ease-out;
}

/* Тень и свечение для обложки */
.album-cover img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.album-cover img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 15px 30px rgba(0, 188, 212, 0.3));
}

/* Для мобильных устройств уменьшаем эффект при наведении */
@media (max-width: 768px) {
    .album-cover img:hover {
        transform: none;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    }
    
    /* Вместо этого добавляем активное состояние */
    .album-cover img:active {
        transform: scale(0.98);
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    }
}