/* --- БОЛЬШОЙ ПЛЕЕР --- */
.player-fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000;
    z-index: 2000;
    color: #fff;
    overflow: hidden;
    
    /* АППАРАТНОЕ УСКОРЕНИЕ БЕЗ ЛАГОВ */
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.player-fullscreen.active {
    transform: translateY(0);
}

/* ФОН (Размытая обложка) */
.player-background-blur {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover; background-position: center;
    filter: blur(35px); /* Заблюрено, как ты просил */
    z-index: -2;
}
/* Затемнение, чтобы кнопки читались */
.player-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

/* КОНТЕНТ */
.player-content {
    display: flex; 
    flex-direction: column;
    height: 100%; 
    box-sizing: border-box; 
    
    /* Меняем 12vh на аккуратные 40px */
    padding: 20px 20px calc(40px + env(safe-area-inset-bottom));
}

/* ВЕРХ (Только 2 кнопки) */
.player-header {
    display: flex; justify-content: space-between; align-items: center;
}
.header-btn {
    background: transparent; border: none; color: #fff; font-size: 32px;
    padding: 10px; cursor: pointer; transition: transform 0.2s;
}
.header-btn:active { transform: scale(0.8); }

/* --- СРЕДНЯЯ СЕКЦИЯ (ТЕКСТ ПЕСНИ) --- */
.player-middle-section {
    flex-grow: 1;
    position: relative;
    overflow: hidden; 
    margin: 15px 0;
}

.lyrics-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow-y: auto; 
    overflow-x: hidden; /* ЖЕСТКО убиваем горизонтальный скролл */
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: center;
    
    /* Добавляем пустые зоны, чтобы первая и последняя строка могли дойти до центра */
    padding: 50% 10px; 
    scroll-behavior: smooth; /* Плавный скролл */
    
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.lyrics-container::-webkit-scrollbar { display: none; }

.lyrics-container.show {
    opacity: 1;
    pointer-events: all;
}

.lyric-line {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4); 
    margin: 25px 0; /* Чуть увеличим расстояние между строками */
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
    
    /* Разрешаем тексту переноситься на новую строку, если он не влезает */
    white-space: normal; 
    word-break: break-word;
}

.lyric-line.active {
    color: #fff;
    transform: scale(1.1); /* Легкое увеличение активной строки */
}


/* НИЗ */
.player-bottom-controls {
    display: flex; flex-direction: column; gap: 25px;
    /* Если захочешь еще приподнять, можно добавить margin-bottom здесь */
}

/* РЯД 1: Обложка, Текст, Действия */
.player-info-row {
    display: flex; align-items: center; gap: 15px;
}
.full-cover {
    width: 65px; height: 65px; border-radius: 14px; object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.full-text-wrap {
    flex-grow: 1; overflow: hidden;
}
.full-title { font-size: 18px; font-weight: 800; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-artist { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.full-actions { display: flex; gap: 8px; }
.action-btn { background: transparent; border: none; color: #fff; font-size: 26px; cursor: pointer; transition: transform 0.2s; }
.action-btn:active { transform: scale(0.8); }
.like-btn.liked { color: #ec4899; }

/* РЯД 2: Таймлайн */
.player-timeline {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 600;
}
.timeline-bar { flex-grow: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; position: relative; }
.timeline-progress { position: absolute; left: 0; top: 0; height: 100%; background: #fff; border-radius: 2px; }
.timeline-handle { position: absolute; top: 50%; width: 12px; height: 12px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* РЯД 3: Текст и Изменить */
.player-extra-actions { display: flex; gap: 15px; }
.extra-btn {
    flex: 1; background: rgba(255,255,255,0.1); border: none; color: #fff;
    border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; backdrop-filter: blur(10px);
}
.extra-btn:active { background: rgba(255,255,255,0.2); }

/* РЯД 4: Транспорт (Плей, пред, след, цикл) */
.player-transport {
    display: flex; justify-content: space-between; align-items: center;
}
.control-btn { background: transparent; border: none; color: #fff; cursor: pointer; transition: transform 0.2s; }
.control-btn:active { transform: scale(0.8); }

.mode-btn { font-size: 24px; color: rgba(255,255,255,0.5); }
.mode-btn.active { color: #fff; } /* Загорается белым, если включено */

.transport-btn { font-size: 36px; }
.play-pause-btn { font-size: 70px; }