/* Список комментариев */
.comment-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    padding: 18px 0;
    border-top: 1px solid #eee;
}

.comment-item:first-child {
    border-top: none;
    padding-top: 0;
}

.ci-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ci-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ci-avatar.blue {
    background: #2980b9;
}

.ci-avatar.green {
    background: #27ae60;
}

.ci-avatar.orange {
    background: #d35400;
}

.ci-avatar.purple {
    background: #8e44ad;
}

.ci-avatar.teal {
    background: #16a085;
}

.ci-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--nrk-text);
}

.ci-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.ci-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--nrk-text);
    margin-bottom: 10px;
    padding-left: 44px;
}

.ci-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 44px;
}

.ci-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ci-btn:hover {
    color: var(--nrk-text);
}

.ci-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.ci-btn .count {
    font-weight: 600;
}

.ci-btn.liked {
    color: var(--nrk-link);
}

.ci-btn.liked svg {
    stroke: var(--nrk-link);
    fill: var(--nrk-link);
    fill-opacity: .15;
}

.ci-reply-btn {
    font-size: 13px;
    color: var(--nrk-link);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.ci-reply-btn:hover {
    text-decoration: underline;
}

/* Вложенный ответ */
.ci-nested {
    margin-left: 44px;
    padding-top: 14px;
}

.ci-nested .ci-text,
.ci-nested .ci-actions {
    padding-left: 44px;
}

/* Кнопка "Vis flere kommentarer" */
.load-more-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--nrk-border);
    border-radius: 28px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--nrk-text);
    cursor: pointer;
    margin-top: 8px;
}

.load-more-comments:hover {
    background: #f5f5f5;
}

.load-more-comments svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.comments {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid var(--nrk-border);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comments-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--nrk-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-badge {
    background: var(--nrk-link);
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.comments-sort select {
    font-family: inherit;
    font-size: 13px;
    border: 1px solid var(--nrk-border);
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    background: #fff;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--nrk-text);
}

/* Форма комментария */
.comment-form {
    position: relative;
    background: #f7f9fb;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid #e8ecf0;
}

.cf-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cf-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--nrk-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-avatar svg {
    width: 20px;
    height: 20px;
    stroke: #999;
    stroke-width: 1.5;
    fill: none;
}

.cf-info {
    font-size: 14px;
    color: var(--nrk-gray);
}

.cf-info a {
    color: var(--nrk-link);
    font-weight: 600;
}

.comment-form textarea {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--nrk-border);
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: #fff;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--nrk-link);
}

.cf-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-send {
    background: var(--nrk-link);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-send:hover {
    background: #004a99;
}

.btn-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}