/* Базовые переменные и тема */
:root {
    --bg-color: #000000;
    --container-bg: #121212;
    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #2563eb; 
}

/* Фон вокруг телефона на десктопе */
body {
    margin: 0;
    background-color: #333; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Убиваем любой скролл вне телефона */
}

/* Мобильный контейнер (Сам телефон) */
.mobile-wrapper {
    width: 100%;
    max-width: 430px; 
    height: 100vh;
    max-height: 932px;
    background-color: var(--container-bg);
    color: var(--text-main);
    position: relative; 
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    overflow: hidden; 
}

/* Экран с контентом (Только он скроллится) */
.scroll-content {
    height: 100%;
    overflow-y: auto; 
    overflow-x: hidden; 
    padding-bottom: 120px; /* Место под меню снизу */
    scrollbar-width: none; /* Прячем ползунки Firefox */
    -ms-overflow-style: none; /* Прячем ползунки Edge */
}
.scroll-content::-webkit-scrollbar { display: none; } /* Прячем ползунки Chrome/Safari */

.section { padding: 20px 20px 0; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }

/* --- ИСПРАВЛЕННЫЙ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ --- */
.h-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    
    /* Добавляем воздух сверху, чтобы бейдж не срезался */
    padding-top: 8px; 
    padding-bottom: 10px;
    padding-right: 15px; /* Чтобы последняя карточка не прилипала к краю */
    margin-top: -8px; /* Возвращаем блок на место визуально */
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px; 
    background-color: #27272a;
    object-fit: cover;
    margin-bottom: 8px;
}
.artist-name { font-size: 12px; font-weight: 500; text-align: center; }

/* Плейлисты */
.grid-playlists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.playlist-card {
    background-color: #27272a;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}
.playlist-icon {
    font-size: 24px;
    color: var(--accent);
}

/* Заглушки */
.placeholder-block {
    height: 120px;
    background: #27272a;
    border-radius: 16px;
    margin-bottom: 15px;
}

/* --- БЕЙДЖИ УВЕДОМЛЕНИЙ --- */
.artist-avatar-wrapper {
    position: relative;
    margin-bottom: 8px;
}
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 10; /* Жестко вытаскиваем поверх всех слоев */
    background-color: #ef4444; /* Сигнальный красный */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--container-bg); /* Имитация "выреза" в фоне */
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* --- АКЦЕНТНЫЕ ПЛЕЙЛИСТЫ --- */
.playlist-card {
    background: linear-gradient(145deg, #222225, #18181b);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.playlist-card:active { transform: scale(0.96); }

/* Подложки для иконок с прозрачностью (8px padding для квадрата) */
.icon-wrap {
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-liked { color: #ec4899; background: rgba(236, 72, 153, 0.15); }
.icon-downloaded { color: #3b82f6; background: rgba(59, 130, 246, 0.15); }
.icon-foryou { color: #a855f7; background: rgba(168, 85, 247, 0.15); }
.icon-charts { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }

/* --- КАРТОЧКИ НОВЫХ РЕЛИЗОВ --- */
.release-card {
    display: flex;
    align-items: center;
    background-color: #1f1f22;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 10px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.release-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #3f3f46;
    object-fit: cover;
    flex-shrink: 0;
}
.release-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Обрезка длинных названий */
}
.release-title { 
    font-weight: 600; 
    font-size: 14px; 
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.release-artist { 
    font-size: 12px; 
    color: var(--text-secondary); 
}
.release-play {
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.release-play:hover { opacity: 1; }

/* --- БЛОК НОВОСТЕЙ/РЕКЛАМЫ --- */
.news-banner {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: 20px 20px 0;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
.news-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.news-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; z-index: 1;}
.news-subtitle { font-size: 12px; opacity: 0.9; z-index: 1;}

/* ========================================= */
/* ЛОГИКА ЭКРАНОВ (SPA)                      */
/* ========================================= */
.app-screen {
    display: none; /* Скрыто по умолчанию */
    animation: fadeIn 0.3s ease forwards;
}
.app-screen.active {
    display: block; /* Показываем активный экран */
}

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

/* ========================================= */
/* ЭКРАН ПОИСКА                              */
/* ========================================= */
.search-container { padding: 20px 20px 0; }

/* 1. Строка поиска */
.search-header-wrap { margin-bottom: 25px; position: sticky; top: 0; z-index: 10; background-color: var(--container-bg); padding-top: 10px; padding-bottom: 10px; }
.search-input-box {
    position: relative;
    display: flex; align-items: center;
    background-color: #27272a; border-radius: 16px;
    padding: 12px 16px; transition: background 0.2s;
}
.search-input-box:focus-within { background-color: #3f3f46; }
.search-icon { font-size: 20px; color: var(--text-secondary); margin-right: 12px; }
.search-input {
    background: transparent; border: none; outline: none;
    color: var(--text-main); font-size: 16px; width: 100%; font-weight: 500;
}
.search-input::placeholder { color: #71717a; }

/* 2. Баннер-рекомендация */
.search-recommendation-banner {
    background: linear-gradient(135deg, #ec4899, #8b5cf6); /* Яркий розово-фиолетовый градиент */
    border-radius: 16px; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; position: relative; overflow: hidden;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}
.banner-text { position: relative; z-index: 2; max-width: 70%; }
.banner-text h3 { margin: 0 0 5px 0; font-size: 16px; font-weight: 800; color: #fff; }
.banner-text p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.9); line-height: 1.4; }
.banner-play-btn {
    position: relative; z-index: 2;
    background: #fff; color: #ec4899; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.banner-play-btn:active { transform: scale(0.9); }
/* Декор баннера */
.banner-decor { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); z-index: 1; }
.decor-1 { width: 100px; height: 100px; top: -30px; right: 20px; }
.decor-2 { width: 60px; height: 60px; bottom: -20px; right: 80px; }

/* 3. История поиска */
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.history-header h2 { margin: 0; font-size: 18px; }
.clear-history-btn { background: transparent; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }

.history-list { display: flex; flex-direction: column; gap: 15px; }
.history-item { display: flex; align-items: center; gap: 15px; }
.history-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px; background: #27272a;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-secondary); flex-shrink: 0;
}
.history-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.history-info { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.history-title { font-size: 15px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.history-subtitle { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-remove { background: transparent; border: none; color: #52525b; font-size: 20px; padding: 5px; cursor: pointer; transition: color 0.2s; }
.history-remove:hover { color: #ef4444; }

/* ========================================= */
/* ЭКРАН МОИ ПЕСНИ (БИБЛИОТЕКА)              */
/* ========================================= */
.library-container { padding: 20px 20px 0; }

/* Капсулы (Верхний блок) */
.library-top-capsules { display: flex; flex-direction: column; gap: 15px; margin-bottom: 35px; }

.library-capsule {
    display: flex; align-items: center; padding: 15px 20px;
    border-radius: 20px; cursor: pointer; transition: transform 0.2s;
}
.library-capsule:active { transform: scale(0.97); }

/* Яркая капсула любимых треков */
.liked-capsule {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}
/* Строгая капсула скачанных */
.downloaded-capsule {
    background: #27272a;
    border: 1px solid rgba(255,255,255,0.05);
}

.capsule-icon {
    width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-right: 15px;
}
.downloaded-capsule .capsule-icon { background: rgba(255,255,255,0.05); color: var(--accent); }

.capsule-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.capsule-info h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 700; color: #fff; }
.capsule-info p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.8); }
.downloaded-capsule .capsule-info p { color: var(--text-secondary); }

.capsule-play { font-size: 32px; color: #fff; opacity: 0.9; transition: transform 0.2s; }
.capsule-play:active { transform: scale(0.8); }

/* Заголовок Плейлисты + Кнопка */
.library-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.library-section-header h2 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.add-playlist-btn {
    background: transparent; border: none; color: var(--accent);
    font-size: 24px; cursor: pointer; padding: 5px; transition: transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.add-playlist-btn:active { transform: scale(0.8); }

/* Сетка плейлистов */
.playlists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 20px; }
.playlist-grid-card { display: flex; flex-direction: column; cursor: pointer; transition: transform 0.2s; }
.playlist-grid-card:active { transform: scale(0.95); }

.playlist-cover {
    width: 100%; 
    aspect-ratio: 1; /* Всегда идеальный квадрат */
    border-radius: 12px;
    background: #27272a; margin-bottom: 8px; overflow: hidden;
    position: relative; border: 1px solid rgba(255,255,255,0.03);
}
.playlist-cover img { width: 100%; height: 100%; object-fit: cover; }
.empty-cover-icon {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #52525b;
}

.playlist-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-count { font-size: 12px; color: var(--text-secondary); }

/* ========================================= */
/* ОБНОВЛЕНИЕ БАЗОВЫХ КОНТЕЙНЕРОВ (ВАЖНО!)   */
/* ========================================= */
/* Добавляем Flexbox, чтобы шапка не уезжала при скролле */
.mobile-wrapper {
    width: 100%; max-width: 430px; height: 100vh; max-height: 932px;
    background-color: var(--container-bg); color: var(--text-main);
    position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.5); overflow: hidden; 
    
    /* Новые свойства: */
    display: flex; 
    flex-direction: column;
}

.scroll-content {
    /* Занимает всё оставшееся место под шапкой */
    flex-grow: 1; 
    height: 0; /* Обязательно для правильного скролла */
    
    overflow-y: auto; overflow-x: hidden; 
    padding-bottom: 120px; scrollbar-width: none; -ms-overflow-style: none; 
}


/* ========================================= */
/* ГЛОБАЛЬНАЯ ШАПКА (HEADER)                 */
/* ========================================= */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    /* env(...) защищает шапку от "челки" (выреза) на iPhone */
    padding: calc(20px + env(safe-area-inset-top)) 20px 10px; 
    background-color: var(--container-bg);
    z-index: 100;
    flex-shrink: 0; /* Запрещаем шапке сжиматься */
}

.header-left { 
    display: flex; align-items: center; gap: 12px; 
}

.user-avatar { 
    width: 36px; height: 36px; border-radius: 50%; 
    object-fit: cover; border: 2px solid rgba(255,255,255,0.05); 
}

.header-title { 
    font-size: 18px; font-weight: 700; color: var(--text-main); 
}

/* Кнопка "Поддержать" */
.support-btn {
    background: rgba(255, 255, 255, 0.08); border: none;
    color: var(--text-main); font-size: 13px; font-weight: 600;
    padding: 8px 14px; border-radius: 20px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}

.support-btn:active { 
    transform: scale(0.95); background: rgba(255,255,255,0.15); 
}

.support-btn i { 
    color: #f59e0b; font-size: 18px; /* Желтая монетка */
}

/* Кнопка "Назад" в шапке */
.back-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}
.back-btn:active { opacity: 0.7; }
.back-btn i { font-size: 24px; color: var(--accent); } /* Сделаем стрелочку акцентного цвета */

/* ========================================= */
/* ЭКРАН НАСТРОЕК                            */
/* ========================================= */
.settings-container { 
    padding: 20px 20px 40px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

/* Блоки-карточки (как в iOS) */
.settings-block {
    background-color: #1f1f22;
    border-radius: 16px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.03);
}

.settings-row, .settings-link-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; text-decoration: none; color: var(--text-main);
}
.settings-link-row:active { opacity: 0.7; }

.settings-info {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 500;
}
.settings-info i { font-size: 22px; color: var(--text-secondary); }

.settings-divider {
    height: 1px; background-color: rgba(255,255,255,0.05);
    margin-left: 34px; /* Отступ, чтобы линия начиналась от текста, а не от иконки */
}
.chevron { color: #52525b; font-size: 18px; }

/* Сегментированный контрол (Переключатели) */
.segmented-control {
    display: flex; background: #27272a; border-radius: 10px;
    padding: 3px; gap: 2px;
}
.segment {
    padding: 6px 12px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.segment.active {
    background: #3f3f46; color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Блок Куки */
.cookie-block { padding: 15px; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2); }
.cookie-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #60a5fa; font-weight: 600; font-size: 14px; }
.cookie-header i { font-size: 20px; }
.cookie-text { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.7); }
.cookie-text b { color: rgba(255,255,255,0.9); }

/* Футер (О приложении) */
.about-app-section {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; margin-top: 20px;
}
.app-logo-wrap {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, var(--container-bg), #27272a);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05);
}
.app-logo-wrap i { font-size: 32px; color: var(--text-main); }

.app-name { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text-main); }
.app-version { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* --- Обновленный блок разработчика --- */
.developer-info { margin-bottom: 10px; }
.developer-info p { 
    margin: 0; 
    font-size: 13px; 
    color: rgba(255,255,255,0.8);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; /* Расстояние между именем и иконкой */
}
.developer-info b { color: var(--text-main); }

.dev-link { 
    color: var(--text-secondary); /* Делаем иконку спокойного цвета */
    font-size: 18px; 
    display: flex; 
    align-items: center; 
    transition: color 0.2s, transform 0.2s; 
    text-decoration: none; 
}
.dev-link:active { transform: scale(0.9); }
.dev-link:hover { color: var(--accent); /* При наведении/нажатии загорается фирменным цветом */ }

.update-date { font-size: 11px; color: #52525b; margin-bottom: 25px; }

.disclaimer-text {
    font-size: 11px; line-height: 1.5; color: #52525b;
    margin: 0; padding: 0 10px;
}

/* --- Блок Поддержки (Донаты) --- */
.donation-block { 
    padding: 16px; 
    /* Легкое розово-фиолетовое свечение фона */
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05)); 
    border: 1px solid rgba(236, 72, 153, 0.2); 
}

.donation-header { 
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; 
    color: #ec4899; font-weight: 700; font-size: 16px; 
}
.donation-header i { font-size: 24px; }

.donation-text { 
    margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.9); 
}

.donation-spoiler {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.2);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 2px solid #8b5cf6;
}

/* Кнопка доната */
.donate-btn {
    width: 100%; 
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff; border: none; padding: 14px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); 
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-btn:active { 
    transform: scale(0.97); 
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}
.donate-btn i { font-size: 22px; }

/* ========================================= */
/* ЭКРАН ПРОФИЛЯ                             */
/* ========================================= */
.profile-container { padding: 10px 20px 40px; }

/* Аватар и Имя */
.profile-header-info { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.profile-avatar-wrap { position: relative; margin-bottom: 15px; }
.profile-main-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #27272a; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.edit-avatar-btn {
    position: absolute; bottom: 0; right: 0;
    width: 32px; height: 32px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--container-bg); color: #fff; cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4); transition: transform 0.2s;
}
.edit-avatar-btn:active { transform: scale(0.9); }
.profile-name { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--text-main); }
.profile-status { font-size: 13px; color: var(--text-secondary); }

/* Заголовки секций */
.profile-section-title { margin: 0 0 15px; font-size: 18px; font-weight: 700; color: #fff; }

/* Статистика (Сетка 3 колонки) */
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.stat-card {
    background: #27272a; border-radius: 16px; padding: 15px 10px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}
.stat-icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.stat-number { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.stat-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

/* Фаворит месяца */
.top-artist-card {
    display: flex; align-items: center; gap: 15px;
    background: linear-gradient(145deg, #222225, #18181b);
    border-radius: 16px; padding: 12px 15px; margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: transform 0.2s;
}
.top-artist-card:active { transform: scale(0.97); }
.top-artist-medal { font-size: 24px; display: flex; align-items: center; }
.top-artist-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.top-artist-info { flex-grow: 1; display: flex; flex-direction: column; }
.top-artist-name { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.top-artist-stats { font-size: 12px; color: var(--text-secondary); }

/* Рекламный блок в профиле */
.profile-ad-block {
    background: #1f1f22; border-radius: 16px; padding: 16px;
    border: 1px dashed rgba(255,255,255,0.2); position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
}
.ad-badge {
    background: rgba(255,255,255,0.1); color: var(--text-secondary);
    font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
    text-transform: uppercase; margin-bottom: 10px;
}
.ad-content h4 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.ad-content p { margin: 0 0 15px; font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.ad-btn {
    width: 100%; background: #fff; color: #000; border: none;
    padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: transform 0.2s;
}
.ad-btn:active { transform: scale(0.97); background: #e4e4e7; }

/* ========================================= */
/* ЭКРАН СВЯЗАТЬСЯ С НАМИ                    */
/* ========================================= */
.contact-container { padding: 10px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-header-text h2 { margin: 0 0 5px; font-size: 24px; color: #fff; }
.contact-header-text p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

.contact-text-wrap { display: flex; flex-direction: column; }
.contact-title { font-size: 15px; color: var(--text-main); font-weight: 500; }
.contact-subtitle { font-size: 12px; color: var(--text-secondary); }

/* Форма */
.form-block { padding: 20px 15px; }
.form-title { margin: 0 0 15px; font-size: 16px; font-weight: 700; color: #fff; }

.contact-input {
    width: 100%; box-sizing: border-box;
    background: #121212; border: 1px solid rgba(255,255,255,0.05);
    color: #fff; font-size: 14px; padding: 12px 15px;
    border-radius: 12px; margin-bottom: 12px;
    font-family: inherit; transition: border-color 0.2s;
}
.contact-input::placeholder { color: #52525b; }
.contact-input:focus { outline: none; border-color: var(--accent); }
textarea.contact-input { resize: none; }

.submit-contact-btn {
    width: 100%; background: var(--text-main); color: var(--bg-color);
    border: none; padding: 14px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    transition: transform 0.2s; margin-top: 5px;
}
.submit-contact-btn:active { transform: scale(0.97); }

/* Сообщение об успехе */
.contact-success-msg {
    display: flex; align-items: center; gap: 10px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399; padding: 15px; border-radius: 12px;
    margin-top: 15px; font-size: 13px; font-weight: 500; line-height: 1.4;
}
.contact-success-msg i { font-size: 20px; }

/* ========================================= */
/* ЭКРАН ПОЛЬЗОВАТЕЛЬСКОЕ СОГЛАШЕНИЕ         */
/* ========================================= */
.terms-container { padding: 10px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.terms-header-text h2 { margin: 0 0 5px; font-size: 24px; color: #fff; }
.terms-header-text p { margin: 0; font-size: 13px; color: var(--text-secondary); }

.terms-content { padding: 20px 15px; }
.terms-section-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.terms-text { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.terms-text:last-child { margin-bottom: 0; }
.terms-text b { color: #fff; }