

/* ─── Аватарка профиля с skeleton ─── */
.avatar-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.avatar-img.avatar-loaded {
    opacity: 1;
}

.avatar-wrapper.avatar-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(90deg,
        rgba(60, 60, 60, 0.6) 25%,
        rgba(90, 90, 90, 0.7) 50%,
        rgba(60, 60, 60, 0.6) 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    z-index: 1;
}
.profile-page {
    padding-top: 80px;
}
/* ─── Аватарка в хедере с skeleton ─── */



/* ─── Шапка профиля ─── */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.avatar-section { position: relative; }

.avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2a2a2a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

.user-info {
    flex: 1;
    min-width: 220px;
}

.profile-name {
    font-size: 34px;
    margin: 0 0 8px 0;
}

.profile-login {
    font-size: 18px;
    margin: 0 0 20px 0;
}

.btn-edit {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #3a3a3a;
    background: #2a2a2a;
    transition: all 0.2s ease;
}


/* ─── Статистика ─── */
.profile-stats {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-top: 8px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

/* ─── О себе / жанры ─── */
.profile-section {
    margin-bottom: 28px;
}

.section-text {
    font-size: 16px;
    line-height: 1.7;
    max-width: 700px;
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 12px;
}

.genre-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag-display {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 14px;
}

/* ─── Табы активности ─── */
.activity-tabs-wrap {
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.activity-tabs-wrap::-webkit-scrollbar { display: none; }

.activity-tabs {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    width: max-content;
}

.activity-tab {
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #333;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}



/* ─── Список фильмов ─── */


.empty-history {
    color: #666;
    font-size: 15px;
    padding: 40px 0;
    text-align: center;
    grid-column: 1 / -1;
}




.movie-list {
    width: 90%;
    min-height: 200px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
    margin-inline: auto;
}
.movie-list.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    grid-column: 1 / -1;
}

/* ─── Адаптив ─── */
@media (max-width: 768px) {
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .user-info { text-align: center; }
    .profile-stats { justify-content: center; }
    .avatar-wrapper { width: 130px; height: 130px; }
    .profile-name { font-size: 26px; }
    .privacy-list { grid-template-columns: 1fr; }
    .edit-modal-body { padding: 18px 20px; }
    .modal-actions { padding: 14px 20px 18px; }
    #activity-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    #activity-content {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
}


@media (max-width: 480px) {
    #activity-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}