/* Button improvements */
.btn {
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Actions cell in tables */
td.actions {
    white-space: nowrap;
}

td.actions .btn {
    vertical-align: middle;
}

.articles-table-container {
    border-radius: 14px;
}

.articles-table {
    min-width: 0 !important;
    table-layout: fixed;
}

.articles-table th:nth-child(1) { width: 29%; }
.articles-table th:nth-child(2) { width: 9%; }
.articles-table th:nth-child(3) { width: 7%; }
.articles-table th:nth-child(4) { width: 11%; }
.articles-table th:nth-child(5) { width: 10%; }
.articles-table th:nth-child(6) { width: 8%; }
.articles-table th:nth-child(7) { width: 8%; }
.articles-table th:nth-child(8) { width: 18%; }

.articles-table th,
.articles-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.queue-table {
    min-width: 0 !important;
    table-layout: fixed;
    width: 100%;
}

.queue-table th,
.queue-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.queue-table th:nth-child(1),
.queue-table td:nth-child(1) {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    padding: 8px 4px;
    text-align: center;
}


.articles-updated {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.articles-title-cell a {
    display: inline-block;
    line-height: 1.35;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

.articles-title-cell a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.articles-metric-link {
    text-decoration: none;
    color: inherit;
}

.articles-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.77rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.articles-metric-badge-primary {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.articles-metric-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.articles-model-cell {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.articles-actions-cell {
    white-space: normal !important;
}

.articles-action-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0.95rem;
    border-radius: 8px;
}

.articles-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 30px);
    gap: 6px;
    justify-content: end;
    align-content: start;
}

.articles-updated-refresh {
    margin-top: 2px;
    color: #6b7280;
    font-size: 0.78em;
    line-height: 1.2;
}

.articles-updated-refresh small {
    font-size: inherit;
}

.articles-actions-grid .articles-action-icon {
    margin: 0;
}

.video-queue-actions-grid {
    display: grid;
    grid-template-rows: repeat(2, 28px);
    grid-auto-flow: column;
    grid-auto-columns: 28px;
    gap: 6px;
    justify-content: start;
    align-items: start;
}

.video-queue-action-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 7px;
    font-size: 0.9rem;
}

.version-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
}

.version-compare-column {
    min-height: 70vh;
}

.version-compare-column__meta {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.version-compare-column__meta h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.version-compare-column__title {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.version-compare-column__content {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

@media (max-width: 1280px) {
    .articles-table th:nth-child(5),
    .articles-table td:nth-child(5) {
        display: none;
    }

    .articles-table th:nth-child(1) { width: 31%; }
    .articles-table th:nth-child(8) { width: 22%; }
}

@media (max-width: 1100px) {
    .articles-table {
        min-width: 980px !important;
    }
}

.moderation-blocked-card {
    margin-bottom: 16px;
}

.moderation-blocked-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.moderation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.moderation-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.moderation-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.moderation-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.moderation-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.moderation-video {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

.moderation-channel {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.moderation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

