/* ===== ПЛЕЕР ===== */

/* ===== ЯЗЫЧОК ===== */
.player-tab {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    width: 60px;
    height: 20px;
    background: rgba(30, 15, 18, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 50, 50, 0.06);
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.player-tab.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.player-tab.active {
    height: 80px;
    width: 100%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
    background: rgba(20, 10, 12, 0.95);
    border-color: rgba(255, 50, 50, 0.08);
}

.player-tab-handle {
    color: #4a3a3a;
    font-size: 14px;
    transition: all 0.3s;
}

.player-tab.active .player-tab-handle {
    display: none;
}

/* ===== МИНИ-ПЛЕЕР ===== */
.player-mini {
    display: none;
    width: 100%;
    padding: 8px 12px 8px 8px;
    align-items: center;
    gap: 10px;
    animation: miniIn 0.3s ease;
}

.player-tab.active .player-mini {
    display: flex;
}

@keyframes miniIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-mini-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a0d10;
}

.player-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-mini-info {
    flex: 1;
    min-width: 0;
}

.player-mini-title {
    font-size: 14px;
    font-weight: 500;
    color: #f0e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-mini-artist {
    font-size: 12px;
    color: #8a757a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-mini-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.player-mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #e63946);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.player-mini-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.player-mini-time {
    font-size: 11px;
    color: #6a555a;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
}

.player-mini-btn {
    background: none;
    border: none;
    color: #b5a0a0;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
}

.player-mini-btn:active {
    transform: scale(0.85);
    color: #ff6b6b;
}

.player-mini-btn.active {
    color: #ff6b6b;
}

.player-mini-btn .fa-heart {
    transition: all 0.3s;
}

.player-mini-btn .fa-heart.liked {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* ===== ПОЛНОЭКРАННЫЙ ПЛЕЕР ===== */
.player-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, #1a0d10, #0a0508);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    animation: fullIn 0.4s ease;
}

.player-fullscreen.active {
    display: flex;
}

@keyframes fullIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Хедер */
.player-full-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 16px 0;
    flex-shrink: 0;
}

.player-full-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-full-logo img {
    height: 24px;
    width: auto;
}

.player-full-logo span {
    font-size: 16px;
    color: #8a757a;
    font-weight: 300;
}

.player-full-close {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.player-full-close:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

/* Обложка */
.player-full-cover {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    min-height: 200px;
}

.player-full-cover img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1/1;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Информация */
.player-full-info {
    padding: 12px 0 8px 0;
    flex-shrink: 0;
}

.player-full-title {
    font-size: 22px;
    font-weight: 600;
    color: #f0e8e8;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s;
}

.player-full-title:active {
    color: #ff6b6b;
}

.player-full-artist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    cursor: pointer;
}

.artist-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #0a0508;
}

.player-full-artist span {
    font-size: 16px;
    color: #b5a0a0;
}

.player-full-artist:active span {
    color: #ff6b6b;
}

/* Прогресс */
.player-full-progress {
    padding: 12px 0 4px 0;
    flex-shrink: 0;
}

.player-full-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.player-full-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #e63946);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-full-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6a555a;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* Основные кнопки */
.player-full-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    flex-shrink: 0;
}

.player-full-btn {
    background: none;
    border: none;
    color: #b5a0a0;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
}

.player-full-btn:active {
    transform: scale(0.85);
    color: #ff6b6b;
}

.player-full-btn.active {
    color: #ff6b6b;
}

.player-full-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255, 50, 50, 0.2);
}

.player-full-play:active {
    transform: scale(0.92);
}

/* Сайд-кнопки */
.player-full-side {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 8px 0 4px 0;
    flex-shrink: 0;
}

.player-full-side-btn {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.2s;
}

.player-full-side-btn:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.player-full-side-btn.active {
    color: #ff6b6b;
}

/* ===== BOTTOM SHEET ===== */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.bottom-sheet.active {
    display: flex;
}

.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bottom-sheet-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    background: radial-gradient(ellipse at 50% 0%, #1a0d10, #0a0508);
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 50, 50, 0.06);
    border-bottom: none;
    padding: 20px 24px 30px 24px;
    animation: sheetIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

@keyframes sheetIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.05);
    margin-bottom: 12px;
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: #f0e8e8;
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.bottom-sheet-close:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.bottom-sheet-body {
    color: #b5a0a0;
}

.sheet-artist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.sheet-artist-item:active {
    background: rgba(255, 50, 50, 0.05);
}

.sheet-artist-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #0a0508;
    flex-shrink: 0;
}

.sheet-artist-item .name {
    font-size: 15px;
    color: #f0e8e8;
}

/* SHS кнопки */
.shs-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 8px;
}

.shs-btn:active {
    transform: scale(0.97);
}

.shs-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #8a757a;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .player-tab.active {
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        bottom: 70px;
        height: 74px;
    }
    .player-mini {
        padding: 6px 10px 6px 6px;
        gap: 8px;
    }
    .player-mini-cover {
        width: 40px;
        height: 40px;
    }
    .player-mini-title {
        font-size: 13px;
    }
    .player-mini-artist {
        font-size: 11px;
    }
    .player-mini-btn {
        font-size: 16px;
    }
    .player-fullscreen {
        padding: 16px;
    }
    .player-full-title {
        font-size: 18px;
    }
    .player-full-artist span {
        font-size: 14px;
    }
    .player-full-play {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .player-full-btn {
        font-size: 18px;
        padding: 6px;
    }
    .player-full-side-btn {
        font-size: 15px;
    }
    .bottom-sheet-content {
        padding: 16px;
        max-height: 60vh;
    }
}
/* ===== КНОПКА ТЕКСТА ===== */
.player-full-lyrics-btn {
    position: absolute;
    top: 16px;
    right: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #b5a0a0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.player-full-lyrics-btn:active {
    transform: scale(0.9);
    background: rgba(255, 50, 50, 0.1);
    color: #ff6b6b;
}

/* ===== РЕЖИМ ТЕКСТА ===== */
.lyrics-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: none;
    pointer-events: none;
}

.lyrics-mode.active {
    display: block;
    pointer-events: auto;
}

.lyrics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lyrics-mode.active .lyrics-overlay {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-container {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(20, 10, 12, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 50, 50, 0.06);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lyrics-mode.active .lyrics-container {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.05);
    flex-shrink: 0;
}

.lyrics-title {
    font-size: 16px;
    font-weight: 500;
    color: #f0e8e8;
}

.lyrics-close {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.lyrics-close:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.lyrics-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

/* Текущая строка */
.lyrics-current {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #ff6b6b;
    padding: 12px 0;
    min-height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Все строки */
.lyrics-all {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.lyrics-line {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 18px;
    color: #b5a0a0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    line-height: 1.5;
}

.lyrics-line.active {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 20px;
    background: rgba(255, 50, 50, 0.05);
    transform: scale(1.05);
}

.lyrics-line .countdown {
    color: #ffaa00;
    font-weight: bold;
}

.lyrics-line .knock {
    color: #ffffff;
}

/* Скрываем плеер в режиме текста */
.lyrics-mode.active ~ .player-full-cover,
.lyrics-mode.active ~ .player-full-info,
.lyrics-mode.active ~ .player-full-progress,
.lyrics-mode.active ~ .player-full-controls,
.lyrics-mode.active ~ .player-full-side {
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .lyrics-container {
        top: 40px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
    .lyrics-line {
        font-size: 15px;
        padding: 6px 8px;
    }
    .lyrics-line.active {
        font-size: 17px;
    }
    .lyrics-current {
        font-size: 17px;
        min-height: 40px;
    }
    .player-full-lyrics-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        right: 60px;
        top: 14px;
    }
}
/* ===== КНОПКА ТЕКСТА ===== */
.player-full-lyrics-btn {
    position: absolute;
    top: 16px;
    right: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #b5a0a0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.player-full-lyrics-btn:active {
    transform: scale(0.9);
    background: rgba(255, 50, 50, 0.1);
    color: #ff6b6b;
}

/* ===== РЕЖИМ ТЕКСТА ===== */
.lyrics-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: none;
    pointer-events: none;
}

.lyrics-mode.active {
    display: block;
    pointer-events: auto;
}

.lyrics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lyrics-mode.active .lyrics-overlay {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-container {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(20, 10, 12, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 50, 50, 0.06);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lyrics-mode.active .lyrics-container {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.05);
    flex-shrink: 0;
}

.lyrics-title {
    font-size: 16px;
    font-weight: 500;
    color: #f0e8e8;
}

.lyrics-close {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.lyrics-close:active {
    color: #ff6b6b;
    transform: scale(0.9);
}

.lyrics-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

/* Текущая строка */
.lyrics-current {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #ff6b6b;
    padding: 12px 0;
    min-height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Все строки */
.lyrics-all {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.lyrics-line {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 18px;
    color: #b5a0a0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    line-height: 1.5;
}

.lyrics-line.active {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 20px;
    background: rgba(255, 50, 50, 0.05);
    transform: scale(1.05);
}

.lyrics-line .countdown {
    color: #ffaa00;
    font-weight: bold;
}

.lyrics-line .knock {
    color: #ffffff;
}

/* Скрываем плеер в режиме текста */
.lyrics-mode.active ~ .player-full-cover,
.lyrics-mode.active ~ .player-full-info,
.lyrics-mode.active ~ .player-full-progress,
.lyrics-mode.active ~ .player-full-controls,
.lyrics-mode.active ~ .player-full-side {
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .lyrics-container {
        top: 40px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
    .lyrics-line {
        font-size: 15px;
        padding: 6px 8px;
    }
    .lyrics-line.active {
        font-size: 17px;
    }
    .lyrics-current {
        font-size: 17px;
        min-height: 40px;
    }
    .player-full-lyrics-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        right: 60px;
        top: 14px;
    }
}
/* ===== АНИМАЦИЯ ТОЧЕК ===== */
.lyrics-line .dots {
    display: inline-block;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.lyrics-line .dots span {
    display: inline-block;
    animation: dotBounce 1.2s ease-in-out infinite;
}

.lyrics-line .dots span:nth-child(1) { animation-delay: 0s; }
.lyrics-line .dots span:nth-child(2) { animation-delay: 0.2s; }
.lyrics-line .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== СТРОКИ ТЕКСТА ===== */
.lyrics-line.active {
    color: #ff6b6b !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    background: rgba(255, 50, 50, 0.05) !important;
    transform: scale(1.02) !important;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.lyrics-line {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 18px;
    color: #b5a0a0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    line-height: 1.6;
}

.lyrics-current {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #ff6b6b;
    padding: 12px 0;
    min-height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}