/* ===== СТРАНИЦА ПРОФИЛЯ ===== */
.profile-page {
    padding-bottom: 20px;
}

/* ===== ШАПКА ПРОФИЛЯ ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 4px 24px 4px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.06);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #0a0508;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(255, 50, 50, 0.2);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #f5edf0;
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    color: #9a858a;
    font-size: 13px;
}

.profile-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-stats i {
    font-size: 14px;
}

/* ===== СЕКЦИИ ПРОФИЛЯ ===== */
.profile-section {
    background: rgba(30, 15, 18, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 16px 16px 8px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 50, 50, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #e0d0d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-count {
    font-size: 13px;
    color: #8a757a;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.view-all {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: 500;
}

.view-all:active {
    background: rgba(255, 50, 50, 0.1);
}

.view-all i {
    font-size: 11px;
    transition: transform 0.3s;
}

.section-sub {
    font-size: 12px;
    color: #6a555a;
}

/* ===== СПИСОК ТРЕКОВ ===== */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-item-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: default;
    border: 1px solid transparent;
}

.track-item-profile:active {
    background: rgba(255, 50, 50, 0.05);
    transform: scale(0.98);
}

.track-item-profile .track-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a1518, #1a0d10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff6b6b;
    flex-shrink: 0;
    overflow: hidden;
}

.track-item-profile .track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-item-profile .track-info-profile {
    flex: 1;
    min-width: 0;
}

.track-item-profile .track-name-profile {
    font-size: 15px;
    font-weight: 500;
    color: #f0e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item-profile .track-artist-profile {
    font-size: 13px;
    color: #8a757a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item-profile .track-duration {
    font-size: 13px;
    color: #6a555a;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.track-item-profile .track-like {
    color: #ff6b6b;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.track-item-profile .track-like:active {
    transform: scale(1.3);
}

/* Скрытые треки (для показа всех) */
.track-item-profile.hidden {
    display: none;
}

.track-item-profile.show-all {
    display: flex;
    animation: trackAppear 0.3s ease forwards;
}

@keyframes trackAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== КНОПКА "ПОКАЗАТЬ ВСЕ" ===== */
.show-all-container {
    padding: 8px 0 4px 0;
    text-align: center;
}

.show-all-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 50, 50, 0.08);
    color: #9a858a;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.show-all-btn:active {
    background: rgba(255, 50, 50, 0.05);
    transform: scale(0.97);
}

.show-all-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.show-all-btn.active i {
    transform: rotate(180deg);
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    color: #6a555a;
    gap: 6px;
}

.empty-state-mini i {
    font-size: 28px;
    color: #4a3a3a;
}

.empty-state-mini p {
    font-size: 14px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .profile-header {
        padding: 6px 0 16px 0;
    }
    .profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .profile-name {
        font-size: 18px;
    }
    .profile-stats {
        font-size: 12px;
        gap: 12px;
    }
    .track-item-profile {
        padding: 8px 10px;
    }
    .track-item-profile .track-cover {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .track-item-profile .track-name-profile {
        font-size: 14px;
    }
    .track-item-profile .track-artist-profile {
        font-size: 12px;
    }
    .section-header h3 {
        font-size: 15px;
    }
    .view-all {
        font-size: 12px;
    }
    .profile-section {
        padding: 12px 12px 6px 12px;
    }
    /* ===== НЕДОСТУПНЫЕ ТРЕКИ ===== */
.track-item-profile .track-cover.unavailable {
    opacity: 0.4;
    filter: grayscale(1);
}

.track-item-profile .track-name-profile.unavailable {
    color: #4a3a3a;
    text-decoration: line-through;
}

.track-item-profile .track-artist-profile.unavailable {
    color: #3a2a2a;
}

.track-item-profile .track-duration.unavailable {
    color: #3a2a2a;
}

.track-item-profile.unavailable-track {
    opacity: 0.6;
}

.track-item-profile.unavailable-track .track-like {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== МОДАЛЬНОЕ ОКНО ОШИБКИ ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: authFadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: radial-gradient(ellipse at 50% 0%, #1a0d10, #0a0508);
    border: 1px solid rgba(255, 50, 50, 0.1);
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: authFadeIn 0.3s ease;
}

.modal-close-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.modal-close-btn:active {
    transform: scale(0.95);
}
}