/* Foto-Kommentare im Viewer (eigene Datei + Cache-Bust im Header) */

.photo-viewer-inner .photo-viewer-comments {
    padding: 0 18px 18px;
}

.photo-viewer-inner .photo-comments-card {
    margin-top: 4px;
    background: rgba(16, 18, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(12px);
}

.photo-viewer-inner .photo-comments-card-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.photo-viewer-inner .photo-comments-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-viewer-inner .photo-comments-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(225, 29, 46, 0.12);
    color: #e11d2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.photo-viewer-inner .photo-comments-card-title h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f0f2f5;
    letter-spacing: 0;
    text-transform: none;
}

.photo-viewer-inner .photo-comments-card-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7380;
}

.photo-viewer-inner .photo-viewer-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.photo-viewer-inner .photo-viewer-comments-list::-webkit-scrollbar {
    width: 6px;
}

.photo-viewer-inner .photo-viewer-comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.photo-viewer-inner .photo-viewer-comments-empty,
.photo-viewer-inner .photo-viewer-comments-login {
    text-align: center;
    padding: 20px 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.photo-viewer-inner .photo-viewer-comments-empty strong {
    display: block;
    color: #f0f2f5;
    font-size: 14px;
    margin-bottom: 6px;
}

.photo-viewer-inner .photo-viewer-comments-empty p,
.photo-viewer-inner .photo-viewer-comments-login p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7380;
}

.photo-viewer-inner .photo-viewer-comments-login a {
    color: #e11d2e;
    font-weight: 600;
    text-decoration: none;
}

.photo-viewer-inner .photo-viewer-comments-login a:hover {
    text-decoration: underline;
}

.photo-viewer-inner .photo-comments-empty-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #6b7380;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.photo-viewer-inner .photo-comment-item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: border-color 0.22s ease, background 0.22s ease;
}

.photo-viewer-inner .photo-comment-item:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
}

.photo-viewer-inner .photo-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(225, 29, 46, 0.12);
    color: #e11d2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.photo-viewer-inner .photo-comment-body {
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}

.photo-viewer-inner .photo-comment-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 11px;
}

.photo-viewer-inner .photo-comment-top strong {
    color: #f0f2f5;
    font-size: 13px;
    font-weight: 600;
}

.photo-viewer-inner .photo-comment-top span {
    color: #6b7380;
    white-space: nowrap;
}

.photo-viewer-inner .photo-comment-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #9aa3b2;
    word-break: break-word;
}

.photo-viewer-inner .photo-comment-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(225, 29, 46, 0.1);
    color: #f87171;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease;
}

.photo-viewer-inner .photo-comment-delete:hover {
    background: rgba(225, 29, 46, 0.22);
}

.photo-viewer-inner .photo-comment-compose {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.photo-viewer-inner .photo-comment-compose-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e11d2e;
}

.photo-viewer-inner .photo-comment-compose-label i {
    font-size: 11px;
}

.photo-viewer-inner .photo-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    color: #f0f2f5;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 88px;
    transition: border-color 0.22s ease, background 0.22s ease;
}

.photo-viewer-inner .photo-comment-form textarea:focus {
    outline: none;
    border-color: #e11d2e;
    background: rgba(0, 0, 0, 0.5);
}

.photo-viewer-inner .photo-comment-form textarea::placeholder {
    color: #6b7380;
}

.photo-viewer-inner .photo-comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.photo-viewer-inner .photo-comment-form-hint {
    font-size: 12px;
    color: #6b7380;
}

.photo-viewer-inner .photo-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e11d2e;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s ease;
}

.photo-viewer-inner .photo-comment-submit:hover {
    background: #c41828;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 46, 0.28);
}

.photo-viewer-inner .photo-comment-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.photo-viewer-inner .photo-comment-form-error {
    margin: 8px 0 0;
    font-size: 12px;
    color: #f87171;
}

@media (max-width: 768px) {
    .photo-viewer-inner .photo-comments-card {
        padding: 14px;
    }

    .photo-viewer-inner .photo-viewer-comments-list {
        max-height: 220px;
    }

    .photo-viewer-inner .photo-comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .photo-viewer-inner .photo-comment-submit {
        width: 100%;
    }
}
