/* ===== MOBILE ===== */

body {
    background: white;
    margin: 0;
    padding: 0;
    display: block;
    min-height: 100vh;
    height: auto;
}

.theme-eblan {
    display: none;
}

.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 10px;
    background: white;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* ===== КАРТИНКА ===== */
.hero-img {
    width: 100% !important;
    height: 0 !important;
    position: relative;
    padding-bottom: 100% !important;
    overflow: hidden;
    border-radius: 20px;
    margin: 0;
    flex-shrink: 0;
}

.hero-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ===== КОНТЕНТ ===== */
.content {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.likes {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.heart {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.heart svg {
    width: 28px;
    height: 28px;
}

.save-btn {
    border: none;
    background: #E60023;
    color: white;
    padding: 15px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s ease;
}

.post-body {
    display: flex;
    gap: 8px;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.author-info {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
}

.author-info img {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    object-fit: cover;
}

.description {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    justify-content: space-between;
    align-items: center;
}

.views {
    font-size: 14px;
}

.comments {
    display: flex;
    justify-content: space-between;
}

.comments p {
    font-weight: 600;
    font-size: 16px;
}

/* ===== ССЫЛКИ ===== */
.links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.links .tg {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    border: none;
    border-radius: 12px;
    padding: 5px 10px;
    background-color: #2AABEE;
    color: white;
    font-size: 16px;
    transition: filter 0.2s ease;
}

.links .tg img {
    width: 15px;
    object-fit: contain;
}

.links .yt {
    display: flex;
    cursor: pointer;
    gap: 4px;
    border: none;
    border-radius: 12px;
    padding: 5px 10px;
    background-color: #ee2a2a;
    color: white;
    font-size: 16px;
    transition: filter 0.2s ease;
}

.links .yt img {
    width: 12px;
    object-fit: contain;
}

.links .tw {
    display: flex;
    cursor: pointer;
    gap: 4px;
    border: none;
    border-radius: 12px;
    padding: 5px 10px;
    background-color: #9146FF;
    color: white;
    font-size: 16px;
    transition: filter 0.2s ease;
}

.links .tw img {
    width: 12px;
    object-fit: contain;
}

/* ===== КОММЕНТАРИИ НА МОБИЛКЕ ===== */
/* На мобилке всегда раскрыты, без ограничений высоты */
.comments-section,
.comments-section.expanded {
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
}

#commentsList,
#commentsList.expanded {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 12px;
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
}

/* ===== ВВОД КОММЕНТАРИЯ ===== */
.comment-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    flex-shrink: 0;
}

.comment-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 15px;
    font-family: "Noto Sans Display", sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    background: transparent;
}

.comment-input input:focus {
    border-color: rgba(0, 0, 0, 0.3);
}

.comment-input .send-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #E60023;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.comment-input .send-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}
