:root {
    --bg: #0c0b09;
    --bg-2: #14110c;
    --ink: #f4efe4;
    --muted: #9a8f7a;
    --gold: #c6a15b;
    --gold-2: #e4c98a;
    --line: #2a241a;
    --card: #17140f;
    --news: #d7b56a;
    --social: #7eb6ff;
    --video: #ff7a7a;
    --site: #8fd4a8;
    --sans: "Outfit", "Helvetica Neue", sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background:
        radial-gradient(900px 400px at 90% -10%, rgba(198, 161, 91, 0.12), transparent 50%),
        var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 11, 9, 0.88);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand strong { display: block; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.brand small { color: var(--muted); font-size: 12px; }
.mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, #f0d9a0, var(--gold) 45%, #5a4318 100%);
    box-shadow: inset 0 0 0 6px var(--bg), 0 0 0 1px var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: #1a1408;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
.btn-gold:hover { background: var(--gold-2); }
.btn-gold:disabled { opacity: 0.55; cursor: wait; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    margin: 6px 0 10px;
    letter-spacing: -0.02em;
}
.hero em { font-style: italic; color: var(--gold); }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: var(--gold);
    margin: 0;
}
.lede { color: var(--muted); max-width: 640px; margin: 0; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0 22px;
}
.stats article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
}
.stats b { display: block; font-size: 28px; font-family: Georgia, "Times New Roman", serif; color: var(--gold-2); }
.stats span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

.toolbar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 10px;
    margin-bottom: 10px;
}
input, select {
    background: var(--bg-2);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}
.meta { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

.lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card {
    background: linear-gradient(180deg, #1c1812 0%, #14110c 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.card-link {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}
.card-link:hover {
    text-decoration: none;
    background: rgba(198, 161, 91, 0.05);
}
.card-link:hover h2 { color: var(--gold-2); }
.thumb {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #221c14;
    border: 1px solid var(--line);
}
.thumb img.preview,
.icon {
    max-width: 100px;
    max-height: 100px;
}
.thumb img.preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
    flex: 0 0 18px;
}
.body { flex: 1; min-width: 0; }
.row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}
.row-meta time { margin-left: auto; }
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 10px;
}
.pill.news { color: var(--news); }
.pill.social { color: var(--social); }
.pill.video { color: var(--video); }
.pill.site { color: var(--site); }
.card h2 {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.run {
    background: #1b1711;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.run-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.run-log { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.run-log .ok { color: var(--site); }
.run-log .err { color: var(--video); }

.paginacao { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.paginacao a, .paginacao span {
    min-width: 36px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink);
}
.paginacao .current { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.foot { padding: 20px; color: var(--muted); font-size: 12px; text-align: center; border-top: 1px solid var(--line); }

.empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 16px;
}

@media (max-width: 800px) {
    .stats, .toolbar { grid-template-columns: 1fr 1fr; }
    .top { padding: 14px 16px; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .toolbar { grid-template-columns: 1fr; }
    .brand small { display: none; }
    .card-link { gap: 12px; padding: 12px; }
}
