* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --line: #2b333d;
    --line-strong: #3d4a58;
    --panel-bg: rgba(15, 22, 31, 0.72);
    --panel-bg-soft: rgba(18, 26, 35, 0.52);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-soft: rgba(255, 255, 255, 0.05);
    --text-primary: #f3f6f7;
    --text-muted: #a7b3bf;
    --accent: #bfd732;
    --accent-strong: #d7f14a;
    --accent-ink: #111500;
    --good: #47d37f;
    --warn: #f4c84e;
    --bad: #ff6674;
    --radius: 14px;
    --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.48);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.32);
    --font-display: 'Space Grotesk', 'Heebo', sans-serif;
    --font-body: 'Heebo', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background:
        radial-gradient(1200px 460px at 12% -10%, rgba(191, 215, 50, 0.2), transparent 64%),
        radial-gradient(780px 420px at 88% 0%, rgba(33, 224, 190, 0.16), transparent 62%),
        linear-gradient(170deg, #080b0f 0%, #0f141b 46%, #0a0d12 100%);
    min-height: 100vh;
    padding: 26px 16px;
    overflow-x: hidden;
}

.orb {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(6px);
}

.orb-left {
    left: -180px;
    top: 90px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 215, 50, 0.28), rgba(191, 215, 50, 0));
}

.orb-right {
    right: -210px;
    top: 320px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 238, 199, 0.2), rgba(80, 238, 199, 0));
}

.container {
    position: relative;
    z-index: 1;
    width: calc(100vw - 32px);
    max-width: none;
    margin: 0 auto;
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    background:
        radial-gradient(900px 520px at 0% 0%, rgba(191, 215, 50, 0.07), transparent 60%),
        linear-gradient(160deg, rgba(17, 23, 30, 0.95), rgba(10, 13, 18, 0.96));
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        'header header'
        'source publisher';
    gap: 18px;
    padding: 20px;
}

.cell {
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--panel-bg);
    border: 1px solid var(--panel-border-soft);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
    border-color: rgba(191, 215, 50, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.cell-header {
    grid-area: header;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: start;
    background:
        linear-gradient(120deg, rgba(191, 215, 50, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--panel-bg-soft);
    border-color: rgba(191, 215, 50, 0.22);
}

.cell-source {
    grid-area: source;
}

.cell-publisher {
    grid-area: publisher;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.section-tag {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d5e58d;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(191, 215, 50, 0.28);
    background: rgba(191, 215, 50, 0.12);
    white-space: normal;
    text-align: center;
}
.small-text {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.card h1,
.card h2,
.card h3,
.card p,
.card span,
.card strong,
.small-text,
.section-tag,
.status-message,
.badge {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.file-label.has-file {
    border-style: solid;
    border-color: var(--accent-strong);
    color: #141a02;
    background: linear-gradient(120deg, rgba(215, 241, 74, 0.95), rgba(191, 215, 50, 0.94));
}

.btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: normal;
    text-align: center;
}

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

.btn-primary {
    color: var(--accent-ink);
    background: linear-gradient(120deg, var(--accent-strong), var(--accent));
}

.btn-success {
    color: #eaf3f7;
    background: linear-gradient(120deg, #1d262f, #283441);
    border: 1px solid rgba(215, 241, 74, 0.35);
}

.btn-secondary {
    color: #deecf7;
    background: linear-gradient(120deg, #2a3540, #354455);
    border: 1px solid rgba(153, 176, 199, 0.42);
}

.btn-secondary:hover:not(:disabled) {
    filter: brightness(1.05);
}

.btn-ghost {
    color: #deecf7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-small {
    width: auto;
    padding: 8px 11px;
    font-size: 0.76rem;
}

.status-message {
    margin-top: 10px;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 0.84rem;
    border: 1px solid transparent;
    display: none;
    line-height: 1.35;
}

.status-message.show {
    display: block;
}

.status-message.success {
    color: #e5ffef;
    background: rgba(71, 211, 127, 0.12);
    border-color: rgba(71, 211, 127, 0.45);
}

.status-message.error {
    color: #ffdce1;
    background: rgba(255, 102, 116, 0.14);
    border-color: rgba(255, 102, 116, 0.45);
}

.status-message.info {
    color: #d7e0e8;
    background: rgba(132, 154, 176, 0.14);
    border-color: rgba(132, 154, 176, 0.32);
}
.vlm-info {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #e5eaef;
    font-size: 0.85rem;
}

.info-label {
    color: #b3bec8;
}

.badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: normal;
    text-align: center;
}

.badge-gray {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #d9e0e6;
}

.badge-green {
    background: rgba(71, 211, 127, 0.16);
    border-color: rgba(71, 211, 127, 0.46);
    color: #d9ffe8;
}

.badge-red {
    background: rgba(255, 102, 116, 0.14);
    border-color: rgba(255, 102, 116, 0.42);
    color: #ffe2e7;
}

.badge-yellow {
    background: rgba(244, 200, 78, 0.15);
    border-color: rgba(244, 200, 78, 0.45);
    color: #fff4d2;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: text-bottom;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fade-in 0.25s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f14;
}

::-webkit-scrollbar-thumb {
    background: #303a45;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #445362;
}
