.news-container {
    max-width: 760px;
    margin: 20px auto;
    padding: 0 20px;
}

.news-header {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 1px;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-time {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.news-subtitle {
    text-align: center;
    font-size: 15px;
    margin-bottom: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-content {
    font-size: 15px;
    color: #222;
    line-height: 1.6;
    margin-bottom: 15px;
}



.no-news {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 50px;
}

.news-footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
}
.news-author-top {
    display: flex;
    align-items: center;
}

.news-author-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.author-avatar, .author-avatar-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ccc;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.author-meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.author-name {
    font-weight: 700;
    color: #222;
}

.news-time, .news-date {
    font-size: 13px;
    color: #887;
}

.comment-btn,
.share-btn,
.open-comments-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: color 0.3s;
}

.comment-btn:hover,
.share-btn:hover,
.open-comments-btn:hover {
    color: #0077ff;
}

#comments {
    margin-top: 40px;
}



#comment-form textarea,
.comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    resize: vertical;
    transition: border-color 0.3s;
}

#comment-form button,
.comment-form button {
    padding: 8px 16px;
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#comment-form button:hover,
.comment-form button:hover {
    background-color: #0056b3;
}

.comment-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.comments-block {
    margin-top: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
}

.comment-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}



.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


.u-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 11000;
}

.u-modal.u-open {
    display: flex;
}



.u-modal__content.modal-news-content {
    max-width: 700px;
    max-height: 90vh;
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    overflow: hidden; /* скругление работает */
}
.u-modal__content.modal-news-content {
    overflow-y: auto;
    scrollbar-gutter: stable; /* фикс для современных браузеров */
}
.u-modal__close {
    position: fixed; /* фиксируем вне модального окна */
    top: 20px;       /* отступ сверху */
    right: 20px;     /* отступ справа */
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 12000; /* выше, чем у модалки */
}

.u-modal__close:hover {
    color: #007BFF;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}
#addNewsForm input[type="text"],
#addNewsForm textarea,
#addNewsForm input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    resize: vertical;
}

#addNewsForm input[type="text"]:focus,
#addNewsForm textarea:focus {
    border-color: #007BFF;
    outline: none;
}

#addNewsForm button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    background-color: #007BFF;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addNewsForm button[type="submit"]:hover {
    background-color: #0056b3;
}

#addNewsModal .u-modal__content {
    background: #fefefe;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#addNewsModal h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.subcategories {
    display: none;
    margin-left: 10px;
    list-style: none;
    padding-left: 15px;
}

.subcategories.show {
    display: block;
}

.news-report {
    text-align: right;
    margin-top: 4px;
    margin-bottom: 4px;
}

.report-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.3;
}
.report-btn-news{
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.3;
}
.report-btn:hover {
    opacity: 1;
}

#modalCommentList {
    overflow-x: hidden;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

#modalLikeBtn.liked {
    color: red;
}






.news-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.news-gallery .gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.news-gallery .gallery-nav.prev {
    left: 10px;
}

.news-gallery .gallery-nav.next {
    right: 10px;
}

.news-card:hover .gallery-nav {
    opacity: 1;
}

#modalNewsGallery .news-gallery {
    position: relative;
    width: 100%;
    max-height: 100px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#modalNewsGallery .news-gallery img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f0f0f0;
}

/* Навигационные стрелки */
#modalNewsGallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


#modalNewsGallery .news-gallery:hover .gallery-nav {
    opacity: 1;
}
.modal-gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.modal-gallery-container img,
.modal-gallery-container video {
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    width: auto;
    height: auto;
}

.modal-gallery-container video {
    max-height: 40vh;
}

#zoomModal.u-modal,
#newsDetailModal.u-modal {
    background: rgba(0, 0, 0, 0.85); /* более темный фон */
    backdrop-filter: blur(5px); /* размытие фона */
    -webkit-backdrop-filter: blur(5px);
}
.modal-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.modal-gallery-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.modal-gallery-container img {
  max-width: 100%;
  max-height: 500px;
}

.gallery-click-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%; /* немного уже */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent);
  transition: background 0.3s ease;
  opacity: 0;
}

.gallery-click-area.right {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.05), transparent);
}

.gallery-click-area.left {
  left: 0;
}

.gallery-click-area:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.gallery-arrow {
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.01);
  pointer-events: none;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-click-area:hover .gallery-arrow {
  transform: scale(1.1);
  opacity: 1;
  outline: none;
  user-select: none;
}
.gallery-click-area .gallery-arrow:focus {
  outline: none;
}

.gallery-click-area span {
  outline: none;
}

.zoom-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 20;
  pointer-events: none;
}

.gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    user-select: none;
}

/* Счетчик в модалке */
.modal-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 10px;
    user-select: none;
    pointer-events: none; /* чтобы не мешал кликам */
    font-weight: 500;
}

.modal-gallery-wrapper:hover .gallery-counter {
  opacity: 1;
}
.scroll-top-btn {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
    display: none; /* скрыта по умолчанию */
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: rgba(0,0,0,0.9);
}

#addNewsForm select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 100,50 40,50' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

#addNewsForm select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#addNewsForm optgroup {
    font-weight: bold;
    color: #333;
    padding: 5px 0;
}

#addNewsForm option {
    padding-left: 10px;
    color: #444;
}

.remove-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff6b6b;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#modalShareBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.vk-comment-form {
    width: 100%;
    margin-top: 10px;
}

.vk-send-btn:hover {
    transform: scale(1.2);
}


.comment-share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #a0a0a0; /* Тусклый серый */
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0.7;
}

.comment-share-btn:hover {
    color: #0077ff;  /* Синий как в ВК */
    opacity: 1;      /* Ярче при наведении */
    transform: scale(1.2);
}

.delete-news-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    text-align: right;
}

.delete-news-btn:hover {
    background-color: #c0392b;
}

.vk-post-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f0f2f5;
}

.vk-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    max-width: 650px;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
}

.vk-post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.vk-post-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.vk-post-text {
    font-size: 15px;
    margin-bottom: 15px;
    white-space: pre-line;
}

.vk-post-gallery {
    margin-bottom: 15px;
}

.vk-post-image {
    max-width: 100%;
    border-radius: 8px;
}

.vk-post-video {
    border-radius: 8px;
}

.news-interactions {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.likes-section {
    margin-bottom: 15px;
}

.like-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    color: rgba(255, 0, 0, 0.3);
    cursor: pointer;
    transition: color 0.2s ease;
}

.like-btn.liked {
    color: #e53935;
}

.comments-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.comment-like-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

.comment-like-btn.liked {
    color: #e53935;
}

.vk-comment-input-wrapper {
    display: flex;
    margin-top: 10px;
    background: #f0f2f5;
    position: relative;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 8px 12px;
}

.vk-comment-input-wrapper textarea {
    flex: 1;
    resize: none;
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 14px;
    outline: none;
    min-height: 40px;
    max-height: 100px;
    padding-right: 35px;

}

.vk-send-btn {
    position: absolute;
    right: 10px;
    transition: transform 0.2s ease;
    background: none;
    border: none;
    font-size: 18px;
    color: #3b5998;
    cursor: pointer;
    margin-left: 10px;
}


.comment-avatar {
    margin-right: 10px;
}


.comment {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;

}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    color: black;
    text-decoration: none;
}

.comment-text {
    margin-top: 4px;
    color: #222;
}

.comment-time {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.comment-actions {
    display: flex;
    align-items: center;
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.news-author-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: #555;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anon-avatar {
    background-color: #bbb;
    color: #fff;
}

.anon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

.anon-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007BFF; /* современный синий — можно заменить */
}

.video-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}


.preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.mobile-actions {
  display: flex;
  justify-content: space-between; /* Раздвигаем левую и правую группу */
  align-items: center;
  padding: 8px 0;
  background-color: #fff;
  margin: 0 auto; /* по центру контейнера */
  font-size: 16px;
  gap: 20px;
}

.left-actions, .right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.right-actions button, .right-actions form button {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  padding: 4px 6px;
}

.right-actions button:hover, .right-actions form button:hover {
  color: #e0245e;
}

.like-btn.liked {
  color: #e0245e;
}

.mobile-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  padding: 4px 6px;
  display: flex;
  align-items: center;
}


.news-gallery .media-item {
    flex: 0 0 100%;
    max-width: 100%;
}

.news-gallery .media-item {
  display: flex;
  align-items: center;   /* центр по вертикали */
  justify-content: center; /* центр по горизонтали */
  overflow: hidden;
}

/* Фото и видео одинаково вписываются */
.news-gallery img,
.news-gallery video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* без обрезки, с сохранением пропорций */
  display: block;
  background: #000;
}
.news-gallery {
    overflow: hidden;
    position: relative;
}
.news-gallery {
  position: relative;
  overflow: hidden; /* чтобы скрывать лишние слайды */
  width: 100%; /* важно, чтобы слайдер занимал ширину */
}

.news-slider-track {
  display: flex;

  transition: transform 0.3s ease;
  will-change: transform;
  width: 100%; /* ширина трека растянута, но лучше это оставить гибким за счет flex */
}

.news-slider-track .media-item {
  flex: 0 0 100%; /* элемент занимает 100% ширины родителя */
  max-width: 100%;
  box-sizing: border-box;

}


.zoom-slider-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}


/* Добавь в CSS */
#modalGalleryContainer {
  overflow: hidden;
  position: relative;

}

.modal-gallery-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  width: 100%;
}

.modal-gallery-item {
  flex-shrink: 0;
  width: 100%;
  display: block !important; /* Чтобы все были видимы, а не display:none */
}


/* Контейнер, который держит одинаковый размер для всех медиа */
.zoom-media-container .media-item {
  width: 90vw;       /* ширина слайда = 90% ширины окна */
  height: 80vh;      /* высота слайда = 80% высоты окна */
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: #000;  /* фон, чтобы не было "просветов" */
  border-radius: 8px;
  overflow: hidden;
}

/* Фото и видео в одном формате */
.zoom-media-container img,
.zoom-media-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* вписывает медиа без обрезки */
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.author-name {
  font-size: 16px;
  font-weight: 500;
}

.author-meta {
  padding: 0px 5px;
}
.like-btn .heart {
    transition: 0.2s;
}

.like-btn.liked .heart {
    color: red;
}
@media screen and (max-width: 768px) {
    .news-container {
        padding: 0px;
        margin: 0px auto;
    }

    .news-card {
        padding: 10px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .news-footer {
        flex-direction: column
        align-items: stretch;
    }

    .u-modal__content {
        max-width: 95%;
        padding: 15px;
    }

    #addNewsModal .u-modal__content {
        padding: 20px;
        max-width: 95%;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }



    .gallery-arrow {
        font-size: 20px;
    }



    .news-gallery img,
    .news-gallery video {
        max-height: 200px;
    }

    .u-modal__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    #scrollTopBtn {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }


    .zoom-counter {
        font-size: 12px;
        padding: 2px 8px;
    }

    .gallery-click-area {
        width: 15%;
    }

    .gallery-arrow {
        font-size: 20px;
    }

    .modal-gallery-counter {
        font-size: 12px;
        padding: 2px 6px;
    }

    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .remove-btn {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }



    .anon-checkbox-label {
        font-size: 14px;
    }

    .anon-checkbox {
        width: 18px;
        height: 18px;
    }

    .vk-comment-input-wrapper {
        padding: 6px 10px;
        border-radius: 14px;
    }

    .vk-comment-input-wrapper textarea {
        font-size: 13px;
        padding-right: 30px;
    }

    .vk-send-btn {
        font-size: 16px;
        right: 8px;
    }

    .vk-post {
        padding: 15px;
    }

    .vk-post-title {
        font-size: 18px;
    }

    .vk-post-time {
        font-size: 11px;
    }

    .vk-post-text {
        font-size: 14px;
    }

    .like-btn,
    .comment-like-btn,
    .comment-share-btn {
        font-size: 12px;
    }

    #addNewsForm select {
        font-size: 14px;
        padding: 8px 12px;
        background-position: right 10px center;
        background-size: 10px;
    }

    #addNewsForm option {
        padding-left: 6px;
    }

    .preview-thumb video {
        max-width: 100px;
        max-height: 100px;
    }

    .modal-gallery-wrapper {
        padding: 0 5px;
    }
    .mobile-actions {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: 420px; /* примерно ширина экрана телефона */
    }

    .mobile-actions button {
        background: none;
        border: none;
        font-size: 16px; /* размер иконок */
        cursor: pointer;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .mobile-actions button.liked {
        color: #e0245e; /* цвет лайка, если поставлен */
    }

    .mobile-actions {
        display: flex;
        justify-content: flex-start; /* Выровнять влево */
        align-items: center;
        gap: 20px; /* Отступы между кнопками */
        background-color: #fff;
        font-size: 16px; /* Сделать иконки меньше */
    }

    .action-btn {
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      color: #555;
      user-select: none;
      transition: color 0.2s;
      font-size: 8px; /* Размер иконок */
      padding: 4px 6px; /* Немного внутреннего отступа */
    }

    .action-btn .count {
      font-size: 12px;
      color: #888;
    }

    .action-btn:hover {
      color: #007bff;
    }

    .like-btn.liked {
      color: #e0245e;
    }
    .mobile-actions {
      display: flex;
      justify-content: space-between; /* Раздвигаем левую и правую группу */
      align-items: center;
      padding: 8px 0;
      background-color: #fff;
      max-width: 420px; /* или 100%, в зависимости от дизайна */
      margin: 0 auto; /* по центру контейнера */
      font-size: 16px;
      gap: 20px;
    }

    .left-actions, .right-actions {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .right-actions button, .right-actions form button {
      cursor: pointer;
      background: none;
      border: none;
      font-size: 18px;
      color: #555;
      padding: 4px 6px;
    }

    .right-actions button:hover, .right-actions form button:hover {
      color: #e0245e;
    }

    .like-btn.liked {
      color: #e0245e;
    }

    .mobile-actions button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 16px;
      color: #555;
      padding: 4px 6px;
      display: flex;
      align-items: center;
    }


    .author-name {
      font-size: 16px;
      font-weight: 500;
    }

    .news-time {
      font-size: 12px;
      color: #888;
    }
    .nav-left {
    flex-wrap: nowrap;
    gap: 6px;

  }

  .nav-search-form {
    flex: 1;
    display: flex;
    margin: 0;
  }

  .nav-search-form input {
    flex: 1;
    padding: 13px 10px;
    font-size: 14px;
    border-radius: 6px 0 0 6px;
    min-width: 10px;
  }

  .nav-search-form button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 0 6px 6px 0;
  }

  #addNewsBtn {
    padding: 8px 12px;
    font-size: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    min-width: 42px;
  }

  .category {
    font-size: 22px;
    padding: 6px 10px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
  }
    .modal-gallery-item {
      display: none;
    }

    .modal-gallery-item.active {
      display: block;
    }

}
