/* Базовый сброс и шрифты */
body {
    margin: 0;
    padding: 0;
    background-color: #edeef0;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
}

/* Шапка сайта */
.top-header {
    background-color: #4a76a8;
    height: 42px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.user-top-profile {
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-link {
    color: #c2d1e2;
    text-decoration: none;
}
.logout-link:hover { color: #ffffff; }

/* Основная двухколоночная сетка */
.layout-container {
    max-width: 960px;
    margin: 57px auto 30px auto;
    display: flex;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Левая колонка (Аватар + Навигация + Блок друзей) */
.left-sidebar {
    width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
}

.avatar-block {
    background: #ffffff;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 12px;
}

.avatar-placeholder {
    width: 100%;
    height: 230px;
    background-color: #f2f4f7;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder i {
    font-size: 70px;
    color: #bbc7d4;
}

.edit-profile-btn {
    display: block;
    text-align: center;
    background-color: #e7ebf0;
    color: #55677d;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 0;
    margin-top: 10px;
    border-radius: 3px;
    font-weight: 500;
}
.edit-profile-btn:hover { background-color: #dfe4ea; }

.vk-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-left: 5px;
}

.vk-nav a {
    color: #2a5885;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 6px;
    border-radius: 3px;
}
.vk-nav a:hover { background-color: #dae1e8; }

.vk-nav a.admin-link {
    color: #656565;
    font-weight: 500;
    border-top: 1px solid #d3d9de;
    margin-top: 8px;
    padding-top: 10px;
}

.friends-sidebar-block {
    background: #ffffff;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 12px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eff1f3;
    padding-bottom: 5px;
}

.block-header a { color: #000; text-decoration: none; }
.friends-count { color: #777; }
.friends-grid-stub { min-height: 50px; display: flex; align-items: center; justify-content: center; }
.no-friends-text { font-size: 12px; color: #939393; margin: 0; }

/* Правая область контента (Стена, Посты, Анкета) */
.content-area {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 20px 25px;
    min-height: 450px;
    box-sizing: border-box;
}

.profile-info-header { border-bottom: 1px solid #eff1f3; padding-bottom: 12px; margin-bottom: 15px; }
.profile-name { font-size: 19px; font-weight: 400; color: #000; margin: 0 0 4px 0; }
.profile-status { font-size: 11px; color: #656565; cursor: pointer; }

.profile-table-info { display: flex; flex-direction: column; gap: 7px; margin-bottom: 25px; }
.profile-info-row { display: flex; font-size: 12px; }
.info-label { width: 130px; color: #777; flex-shrink: 0; }
.info-value { color: #000; }
.blue-link { color: #2a5885; text-decoration: none; }
.blue-link:hover { text-decoration: underline; }
/* Фирменные счётчики ВК */
.profile-counters {
    border-top: 1px solid #eff1f3;
    border-bottom: 1px solid #eff1f3;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 30px;
}

.counter-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 10px;
    border-radius: 4px;
}
.counter-item:hover { background-color: #f0f2f5; }
.counter-num { font-size: 19px; color: #2a5885; }
.counter-label { font-size: 11px; color: #777; }

/* Стена постов */
.profile-wall-header { border-bottom: 1px solid #eff1f3; padding-bottom: 8px; margin-bottom: 15px; }
.profile-wall-header h3 { font-size: 13px; font-weight: 700; color: #45688e; margin: 0; }
.wall-post-input-block { background: #fafbfc; border: 1px solid #d3d9de; border-radius: 3px; padding: 8px 12px; }
.wall-input-stub { width: 100%; border: none; background: transparent; font-size: 13px; outline: none; }

/* Окна входа и регистрации */
.register-box { background: #ffffff; border: 1px solid #d3d9de; border-radius: 3px; width: 100%; max-width: 380px; padding: 25px 35px; margin: 40px auto; box-sizing: border-box; }
.register-box h2 { font-size: 20px; font-weight: 400; text-align: center; margin-bottom: 20px;}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: #656565; margin-bottom: 5px; }
.form-input { width: 100%; padding: 7px 10px; font-size: 13px; border: 1px solid #d3d9de; border-radius: 3px; background-color: #fafbfc; box-sizing: border-box; }
.form-input:focus { border-color: #557fa9; background-color: #ffffff; outline: none; }
.btn-submit { width: 100%; background-color: #4a6fa5; color: #ffffff; border: none; border-radius: 3px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.form-footer { margin-top: 20px; text-align: center; font-size: 13px; }
.form-footer a { color: #2a5885; text-decoration: none; }

/* --- ПРОКАЧАННЫЙ МУЗЫКАЛЬНЫЙ ПЛЕЕР ВК 2015 --- */
.audio-search-block { margin-bottom: 15px; }
#audio-search {
    width: 100%; padding: 6px 10px 6px 28px; font-size: 13px; border: 1px solid #d3d9de; border-radius: 3px;
    background: #fafbfc url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" viewBox="0 0 512 512" fill="%23939393"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>') no-repeat 8px center;
    background-size: 13px; box-sizing: border-box; outline: none;
}

.audio-player-panel { background-color: #f2f4f7; border: 1px solid #d3d9de; border-radius: 3px; padding: 10px 15px; margin-bottom: 20px; }
.player-controls { display: flex; align-items: center; gap: 12px; }

.player-btn { background: none; border: none; color: #4a76a8; font-size: 16px; cursor: pointer; width: 25px; padding: 0; }
.player-btn:hover { color: #365378; }

.player-btn-nav { background: none; border: none; color: #617e9c; font-size: 12px; cursor: pointer; width: 20px; padding: 0; }
.player-btn-nav:hover { color: #4a76a8; }

.player-track-info { flex-grow: 1; font-size: 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#player-current-title { color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-progress-container { background: #dae1e8; height: 4px; border-radius: 2px; cursor: pointer; position: relative; width: 100%; }
.player-progress-bar { background: #5f83aa; height: 100%; width: 0%; border-radius: 2px; }
#player-time { font-size: 11px; color: #777777; width: 35px; text-align: right; }

/* Регулятор громкости */
.player-volume-container { display: flex; align-items: center; gap: 6px; width: 70px; margin-left: 5px; }
.volume-slider-bg { background: #dae1e8; height: 4px; width: 50px; border-radius: 2px; cursor: pointer; }
.volume-slider-bar { background: #617e9c; height: 100%; width: 100%; border-radius: 2px; }
.volume-slider-bg:hover .volume-slider-bar { background: #4a76a8; }

/* Список песен */
.audio-list { display: flex; flex-direction: column; }
.audio-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid #eff1f3; cursor: pointer; border-radius: 3px; }
.audio-item:hover { background-color: #f2f4f7; }
.audio-item.active-track { background-color: #f5f7fa; }

.item-play-btn { background: none; border: none; color: #acbacb; font-size: 11px; cursor: pointer; width: 20px; text-align: left; padding: 0; }
.audio-item:hover .item-play-btn, .audio-item.active-track .item-play-btn { color: #4a76a8; }

.audio-item-info { flex-grow: 1; font-size: 13px; margin-left: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-weight: 700; color: #2a5885; }
.track-title { color: #000000; }

/* Кнопка плюсика */
.audio-actions { display: flex; align-items: center; }
.add-to-my-btn { background: none; border: none; color: #acbacb; cursor: pointer; font-size: 13px; padding: 5px; opacity: 0; transition: opacity 0.1s ease; }
.audio-item:hover .add-to-my-btn { opacity: 1; }
.add-to-my-btn:hover { color: #4a76a8; }
.track-added-icon { color: #83a4c5; font-size: 12px; padding: 5px; }
/* Фикс размеров для текстовых кнопок */
.player-btn {
    font-size: 13px !important;
    font-weight: bold;
}
.player-btn-nav {
    font-size: 10px !important;
}
.item-play-btn {
    font-size: 11px !important;
    font-weight: bold;
}
.add-to-my-btn {
    font-size: 11px !important;
    font-weight: bold;
}
.track-added-icon {
    font-size: 11px !important;
    font-weight: bold;
    color: #4a76a8;
}
/* --- МОДУЛЬ ЛИЧНЫХ СООБЩЕНИЙ (ВК 2015) --- */
.messages-wrapper-vk {
    background: #fff;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    font-family: Tahoma, Arial, sans-serif;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
.dialogs-header-block, .chat-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eff1f3;
    background: #fafbfc;
}
.dialogs-header-block h2 {
    font-size: 13px;
    color: #45688e;
    margin: 0;
    font-weight: 700;
}
.sound-control-btn, .clear-history-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #55677d;
    font-size: 12px;
}
.sound-control-btn:hover, .clear-history-action-btn:hover {
    color: #2a5885;
}
.dialogs-list-scroll, .chat-history-scroll-box {
    flex: 1;
    overflow-y: auto;
    max-height: 480px;
    min-height: 350px;
}
.dialog-row-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eff1f3;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}
.dialog-row-item:hover {
    background: #f2f4f7;
}
.dialog-row-item.has-unread-msg {
    background: #edf1f5;
}
.dialog-row-item.has-unread-msg:hover {
    background: #e5ebf1;
}
.dialog-avatar-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.dialog-avatar-box .placeholder {
    width: 48px;
    height: 48px;
    background: #f2f4f7;
    color: #bbc7d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
}
.dialog-body-box {
    margin-left: 12px;
    flex: 1;
    overflow: hidden;
}
.dialog-top-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.dialog-user-name {
    font-weight: 700;
    color: #2a5885;
    font-size: 12.5px;
}
.dialog-time-label {
    color: #939393;
    font-size: 11px;
}
.dialog-preview-text-line {
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dialog-preview-text-line .my-prefix {
    color: #777777;
}
.dialog-unread-badge-counter {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: #bbc7d4;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}
.chat-peer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.back-to-dialogs-link {
    color: #2a5885;
    text-decoration: none;
    font-size: 12px;
}
.chat-peer-name {
    font-weight: 700;
    color: #2a5885;
    text-decoration: none;
    font-size: 13px;
}
.peer-typing-indicator {
    font-size: 11px;
    color: #656565;
    margin-top: 2px;
    font-style: italic;
}
.single-message-node {
    display: flex;
    padding: 8px 15px;
    position: relative;
}
.single-message-node:hover {
    background: #fafbfc;
}
.single-message-node.my-unread-sent {
    background: #edf1f5;
}
.single-message-node.my-unread-sent:hover {
    background: #e5ebf1;
}
.msg-author-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.msg-content-wrapper-block {
    margin-left: 10px;
    flex: 1;
}
.msg-author-meta-title-line {
    margin-bottom: 3px;
}
.msg-sender-display-name {
    font-weight: 700;
    color: #2a5885;
    font-size: 12px;
    text-decoration: none;
}
.msg-timestamp-label {
    color: #939393;
    font-size: 11px;
    margin-left: 5px;
}
.msg-actual-text-body {
    font-size: 12.5px;
    color: #000;
    line-height: 1.4;
    word-break: break-word;
}
.msg-item-delete-cross-btn {
    position: absolute;
    right: 15px;
    top: 8px;
    color: #bbc7d4;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: none;
}
.single-message-node:hover .msg-item-delete-cross-btn {
    display: block;
}
.msg-item-delete-cross-btn:hover {
    color: #4a76a8;
}
.chat-input-bottom-panel {
    padding: 15px;
    border-top: 1px solid #eff1f3;
    background: #fafbfc;
}
.chat-textarea-container {
    display: flex;
    background: #fff;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 5px 8px;
    align-items: center;
}
#chat-message-main-input {
    flex: 1;
    border: none;
    resize: none;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    max-height: 120px;
    padding: 4px 0;
}
.attachment-trigger-wrapper {
    display: flex;
    align-items: center;
    margin-left: 5px;
}
.attach-clip-button {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #55677d;
    padding: 3px;
}
.attach-clip-button:hover {
    color: #2a5885;
}
.attachment-info-icon-tooltip {
    cursor: help;
    font-size: 11px;
    color: #939393;
    margin-left: 4px;
}
.chat-send-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.vk-blue-chat-btn {
    background: #4a76a8;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.vk-blue-chat-btn:hover {
    background: #5f83aa;
}
.chat-locked-family-alert-bar {
    text-align: center;
    color: #656565;
    font-size: 12px;
    padding: 10px;
    background: #f2f4f7;
    border: 1px solid #d3d9de;
    border-radius: 3px;
}
.messages-loading-stub {
    text-align: center;
    padding: 40px;
    color: #939393;
    font-size: 13px;
}
.msg-attachment-node {
    margin-top: 6px;
    display: block;
}
.attached-img-preview-thumbnail {
    max-width: 150px;
    max-height: 150px;
    border-radius: 2px;
    border: 1px solid #d3d9de;
    display: block;
}
.attached-doc-link-node {
    display: inline-flex;
    align-items: center;
    color: #2a5885;
    text-decoration: none;
    font-size: 12px;
    background: #f2f4f7;
    padding: 4px 8px;
    border-radius: 2px;
}
.attached-doc-link-node:hover {
    text-decoration: underline;
}
.msg-attachment-expired-placeholder {
    font-size: 11px;
    color: #939393;
    font-style: italic;
    background: #f2f4f7;
    padding: 3px 6px;
    border-radius: 2px;
    display: inline-block;
}
.attached-previews-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.preview-upload-bubble-item {
    position: relative;
    background: #dfe4ea;
    padding: 4px 20px 4px 8px;
    font-size: 11px;
    border-radius: 2px;
    color: #2a5885;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-upload-bubble-item .remove-file-x-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    cursor: pointer;
    color: #55677d;
}
.sidebar-unread-messages-badge {
    background: #4a76a8;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    float: right;
    margin-top: 2px;
}
/* --- МОДУЛЬ СЕМЕЙНЫХ ФОТОАЛЬБОМОВ (ЮРИДИЧЕСКИ ЧИСТЫЙ CSS) --- */
.family-gallery-root {
    font-family: inherit;
    padding: 2px;
}
.gallery-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dfe4ea;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.gallery-navigation-trail {
    font-size: 14px;
    color: #656565;
}
.gallery-root-anchor {
    color: #3b6289;
    font-weight: 700;
    text-decoration: none;
}
.gallery-root-anchor:hover {
    text-decoration: underline;
}
.gallery-breadcrumb-divider {
    margin: 0 6px;
    color: #adb5bd;
}
.gallery-current-leaf {
    color: #000;
    font-weight: 400;
}
.gallery-accent-button {
    background-color: #436b95;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.gallery-accent-button:hover {
    background-color: #36577a;
}
.gallery-muted-button {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
}
.gallery-muted-button:hover {
    background-color: #e9ecef;
}
.gallery-standalone-form-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}
.gallery-standalone-form-panel input[type="text"],
.gallery-standalone-form-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.gallery-standalone-form-panel textarea {
    min-height: 60px;
    resize: vertical;
}
.gallery-form-button-row {
    display: flex;
    justify-content: flex-start;
}
.albums-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.album-card-node {
    display: block;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-card-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.album-cover-frame {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Пропорции 4:3 */
    background: #f1f3f5;
}
.album-cover-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.album-cover-empty-stub {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #adb5bd;
}
.album-photo-counter-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.album-meta-caption-block {
    padding: 10px;
}
.album-caption-title {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-caption-desc {
    display: block;
    color: #6c757d;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-introductory-description {
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #436b95;
    margin-bottom: 18px;
}
.photos-thumbnails-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    transition: opacity 0.2s ease;
}
.photo-thumbnail-card {
    width: calc(25% - 9px); /* Четыре колонки с учетом зазоров */
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .photo-thumbnail-card { width: calc(33.33% - 8px); }
}
.photo-thumbnail-crop {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f1f3f5;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    cursor: pointer;
}
.photo-thumbnail-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.photo-thumbnail-crop:hover .photo-thumbnail-img {
    transform: scale(1.03);
}
.gallery-empty-grid-stub {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
    font-size: 13px;
}
/* --- ОВЕРЛЕЙ ПРОСМОТРЩИКА ФОТОБОКСА --- */
.photo-viewer-overlay-frame {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.93);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}
.photo-viewer-close-x-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: #ced4da;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
}
.photo-viewer-close-x-btn:hover {
    color: #fff;
}
.photo-viewer-main-table-wrap {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.photo-viewer-left-viewport {
    flex: 1;
    background: #0f0f0f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-viewer-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.photo-viewer-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}
.photo-navigation-arrow {
    position: absolute;
    top: 0; height: 100%;
    width: 70px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.photo-navigation-arrow:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.arrow-left-dir { left: 0; }
.arrow-right-dir { right: 0; }
.photo-viewer-right-sidebar {
    width: 340px;
    background: #fff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.photo-viewer-author-card {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f1f3f5;
    align-items: center;
}
.viewer-avatar-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.viewer-avatar-box .placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.viewer-author-meta-box {
    margin-left: 12px;
}
.viewer-author-name {
    display: block;
    font-weight: 700;
    color: #3b6289;
    font-size: 13px;
}
.viewer-upload-date {
    display: block;
    color: #868e96;
    font-size: 11px;
    margin-top: 2px;
}
.photo-viewer-description-area-block {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
    background: #fafbfe;
}
.viewer-static-desc-text {
    font-size: 13px;
    color: #212529;
    line-height: 1.4;
    word-break: break-word;
}
.viewer-edit-action-row {
    margin-top: 6px;
    font-size: 11px;
}
.viewer-action-link-btn {
    color: #6c757d;
    cursor: pointer;
}
.viewer-action-link-btn:hover {
    color: #3b6289;
    text-decoration: underline;
}
.viewer-action-link-btn.delete-warn-btn:hover {
    color: #c92a2a;
}
.viewer-action-link-btn.divider-dot {
    margin: 0 4px;
    cursor: default;
}
.viewer-action-link-btn.divider-dot:hover {
    text-decoration: none;
    color: #6c757d;
}
.viewer-desc-form-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    outline: none;
    resize: vertical;
    min-height: 45px;
}
.viewer-desc-form-buttons {
    display: flex;
    gap: 6px;
    margin-top: 5px;
}
.btn-mini-size {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
}
.viewer-comments-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background: #fff;
}
.single-photo-comment-node {
    display: flex;
    margin-bottom: 14px;
}
.comment-avatar-zone img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-avatar-zone .comment-author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.comment-body-zone {
    margin-left: 10px;
    flex: 1;
}
.comment-meta-line {
    margin-bottom: 3px;
}
.comment-author-link {
    font-weight: 700;
    color: #3b6289;
    font-size: 12px;
    text-decoration: none;
}
.comment-author-link:hover {
    text-decoration: underline;
}
.comment-timestamp {
    color: #adb5bd;
    font-size: 10px;
    margin-left: 6px;
}
.comment-text-content {
    font-size: 12px;
    color: #212529;
    line-height: 1.4;
    word-break: break-word;
}
.photo-viewer-comment-input-form-panel {
    padding: 14px 16px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}
#photo-viewer-new-comment-textarea {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    resize: none;
}
.viewer-comment-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
