/**
 * МОБИЛЬНАЯ АДАПТАЦИЯ ЛИЧНОГО КАБИНЕТА
 * Сохраняем дизайн десктопа, адаптируем под маленький экран
 */

@media (max-width: 768px) {
    /* Убираем подсветку при тапе */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* САЙДБАР */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-nav {
        padding: 70px 20px 20px;
    }

    .sidebar-bottom {
        padding: 0 20px 30px;
    }

    /* ХЕДЕР */
    .header {
        padding: 10px 16px;
        height: 56px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 0;
    }

    /* Убираем логотип */
    .logo {
        display: none !important;
    }

    /* Кнопка меню */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
    }

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Оверлей */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Правая часть хедера */
    .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Баланс */
    .balance {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .balance-icon {
        width: 18px;
        height: 18px;
    }

    /* Скрываем уведомления */
    .notifications-container {
        display: none !important;
    }

    /* Аватар */
    .user-info {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .avatar {
        width: 36px;
        height: 36px;
    }

    /* Показываем никнейм */
    .user-info span {
        display: inline-block;
        font-size: 14px;
        font-weight: 500;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* МЕНЮ ПОЛЬЗОВАТЕЛЯ */
    .user-menu {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1001;
        transition: right 0.3s ease;
    }

    .user-menu.active {
        right: 0;
    }

    /* ОСНОВНОЙ КОНТЕНТ */
    .main-content {
        margin-left: 0;
        margin-top: 56px;
        padding: 20px 16px;
        width: 100%;
    }

    /* РЕЛИЗЫ НА ГЛАВНОЙ - сохраняем дизайн */
    .releases {
        padding: 0;
    }

    .releases-header {
        margin-bottom: 20px;
    }

    .releases-header h2 {
        font-size: 22px;
    }

    .view-all-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Сетка - 3 колонки как на десктопе, но меньше */
    .releases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .release-card {
        padding: 6px;
    }

    .release-cover-container {
        margin-bottom: 10px;
    }

    .release-card h3 {
        font-size: 14px;
    }

    .release-card .artist {
        font-size: 13px;
    }

    /* ДОПОЛНИТЕЛЬНЫЙ КОНТЕНТ */
    .additional-content {
        padding: 20px 0;
    }

    .additional-content h2 {
        font-size: 22px;
    }

    /* КНОПКИ */
    .create-release-btn {
        display: none !important;
    }

    /* МОДАЛЬНЫЕ ОКНА */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}

/* СРЕДНИЕ ЭКРАНЫ */
@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }

    .balance {
        padding: 6px 12px;
        font-size: 13px;
    }

    .user-info span {
        max-width: 70px;
        font-size: 13px;
    }

    /* 2 колонки на маленьких экранах */
    .releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* МАЛЕНЬКИЕ ЭКРАНЫ */
@media (max-width: 380px) {
    .balance {
        padding: 6px 10px;
        font-size: 12px;
    }

    .balance-icon {
        width: 16px;
        height: 16px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .user-info span {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .releases-grid {
        gap: 10px;
    }
}
