/* ==================== ?? ????? ????????? ?????? (?? 480px) ==================== */

/* --- 1. ????? ? ????????? --- */
.header-inner {
    padding: 0 12px;
}

.logo {
    font-size: 20px;
}

.search {
    display: none;
}

.menu-toggle {
    display: flex;
    margin-left: auto;
}

/* --- 2. ???????? ??????? --- */
.content {
  padding: 0px 0px;
    padding-top: calc(var(--header-height, 35px) + 0px);
}

/* --- 3. ????? --- */
.vk-footer {
    padding: 20px 16px;
}

.footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.footer-links {
    justify-content: center;
    gap: 10px 16px;
}

.footer-copy {
    margin-top: 8px;
    font-size: 11px;
}

/* --- 4. ??????? --- */
.profile-content {    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-avatar img {
        width: 200px;
        height: 100px;
        border-width: 0px;
        margin-top: -110px;
}

.online-status {
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.profile-stats {
  margin: 0px 0px;
        padding: 0px 0px;
}

.stat-number {
    font-size: 12px;
}

/* --- 5. ????? --- */
.post {
    padding: 0px;
        border-radius: 2px;
}
.post-content{
    margin-bottom: 9px;
    line-height: 1.6;
    color: var(--vk-text);
    font-size: 15px;
}

.post-header {
    gap: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
}

/* --- 6. ????????? ? ??? (? ????? ?????) --- */
.messages-page {
    max-width: 100%;
    padding: 0 0px;
}

.dialogs-list {    border-radius: 10px;
}

.dialog-item {
    padding: 12px;
}

.dialog-avatar {
    width: 44px;
    height: 44px;
}

.conversation-page {
height: calc(102vh - 120px);
 padding: 0px 0px;;
}

.conversation-header {
    background: var(--fon-message3);
    padding: 1px 1px;
}

.partner-avatar {
    margin: 0px 11px;
    width: 36px;
    height: 36px;
}

.partner-info h2 {
    font-size: 15px;
}

/* ?? ???? ??? ????????? */
.messages-container {
    border-radius: 0px;
    scrollbar-width: thin;
        scrollbar-color: #381b61 #37373700;
   margin: -3% -0.1%;
    padding: 12px 8px;
    background-image: url('/uploads/images/fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.message {
    max-width: 88%;
}

.message-content {
    background: var(--bg-message);
    padding: 8px 12px;
    font-size: 14px;
}
.message.outgoing .message-content { background: var(--bg-message2);}

.message-avatar { 
    margin: -24px -16px;
       width: 28px;
    height: 28px;
}

.message-audio audio {
    width: 100%;
    max-width: 200px;
    height: 32px;
}

/* --- 7. ?????? ?????? --- */
.emoji-panel {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
}

.emoji-btn {
    font-size: 20px;
    padding: 6px;
}

/* --- 8. ?????? --- */
.friends-grid {
    grid-template-columns: 1fr;
}

.friend-card {
    padding: 12px;
}

.friend-avatar {
    width: 50px;
    height: 50px;
}

/* --- 9. ???? ? ??????? --- */
.albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* --- 10. ?????-?????? --- */
.admin-stats {    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card {
    padding: 15px 10px;
}

.stat-card .number {
    font-size: 24px;
}

/* --- 11. ??????????? ????? --- */
.track-item {
    grid-template-columns: 28px 40px 1fr auto;
    gap: 8px;
    padding: 8px;
}

.track-art {
    width: 40px;
    height: 40px;
}

.track-title {
    font-size: 13px;
}

.track-artist {
    font-size: 11px;
}

/* --- 12. ????????? ???? ????????? (???? ??? 480px) --- */
.message-menu {
    min-width: calc(100vw - 48px);
    border-radius: 20px;
}

/* ????????? ??? ???? ?? ????????? */
.dialog-item:active {
    transform: scale(0.98);
}

.send-btn, .emoji-toggle, .attachment-toggle {
    width: 34px;
    height: 33px;
}

#message-input {
    font-size: 16px; /* ????????????? ??? ?? iOS */}

.profile-details .status {
              top: 175px;
        position: sticky;
        font-size: 14px;
}
.profile-details h1 {
          position: static;
        color: #ffffff;
}
.profile-sidebar
{
    background: var(--app-bg);
    border-radius: 0px;
    padding: 0px;
    height: fit-content;
    box-shadow: -1px -1px 0px 2px rgba(0, 0, 0, 0.15);
}
    .vk-player .vk-btn-icon {
        display: none;
        width: 28px !important;
        height: 32px !important;
    }


    