.kg-entity-container,
.kg-archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.kg-entity-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.kg-entity-featured-image {
    flex-shrink: 0;
}

.kg-entity-featured-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.kg-entity-header-content {
    flex: 1;
}

.kg-entity-main-title {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    color: #23282d;
    line-height: 1.2;
}

.kg-entity-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #0073aa;
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
}

.kg-entity-lead-description {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

.kg-entity-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.kg-entity-main-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kg-section {
    margin-bottom: 30px;
}

.kg-section h2 {
    color: #23282d;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.kg-section p {
    line-height: 1.8;
    color: #555;
}

.kg-external-link,
.kg-official-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.kg-external-link:hover,
.kg-official-link:hover {
    color: #005a87;
}

.kg-entity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kg-info-box,
.kg-actions-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kg-info-box h3 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.kg-info-item,
.kg-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.kg-info-item:last-child,
.kg-status-item:last-child {
    border-bottom: none;
}

.kg-info-item strong,
.kg-status-item strong {
    color: #555;
    font-size: 0.95em;
}

.kg-score-value {
    font-weight: 700;
    color: #0073aa;
    font-size: 1.1em;
}

.kg-delta-value {
    font-weight: 700;
    font-size: 1.1em;
}

.kg-delta-value.positive {
    color: #46b450;
}

.kg-delta-value.negative {
    color: #dc3232;
}

.kg-delta-value.neutral {
    color: #666;
}

.kg-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.kg-status-badge.yes {
    background: #d4edda;
    color: #155724;
}

.kg-status-badge.no {
    background: #f8d7da;
    color: #721c24;
}

.kg-action-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.kg-action-button:hover {
    background: #005a87;
}

.kg-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
    color: white;
    border-radius: 12px;
}

.kg-archive-title {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: white;
}

.kg-archive-description {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.kg-pagination {
    margin-top: 40px;
    text-align: center;
}

.kg-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kg-pagination a,
.kg-pagination span {
    padding: 10px 16px;
    background: white;
    color: #0073aa;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    border: 1px solid #ddd;
}

.kg-pagination a:hover {
    background: #0073aa;
    color: white;
}

.kg-pagination .current {
    background: #0073aa;
    color: white;
}

@media (max-width: 968px) {
    .kg-entity-header {
        flex-direction: column;
        text-align: center;
    }

    .kg-entity-body {
        grid-template-columns: 1fr;
    }

    .kg-entity-sidebar {
        order: -1;
    }

    .kg-entity-main-title {
        font-size: 2em;
    }

    .kg-archive-title {
        font-size: 2em;
    }
}
