/* ==========================================================
   Materiais Eko'7 - CSS limpo V11
   Estrutura compatível com index.php atual: home-stage/home-panel/home-center
   ========================================================== */

:root {
    --blue: #3693FE;
    --blue-strong: #1683F6;
    --blue-soft: #eef7ff;
    --text: #111827;
    --muted: #64748b;
    --border: #dbe8f7;
    --bg: #f6f9fd;
    --white: #ffffff;
    --shadow: 0 18px 54px rgba(15, 23, 42, .055);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0%, rgba(54, 147, 254, .09), transparent 33%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   Home
   ========================= */

body.home-page {
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
}

.home-stage {
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.home-panel {
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 7%, rgba(54, 147, 254, .075), transparent 24%),
        #ffffff;
    box-shadow: none;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    align-items: stretch;
    padding: clamp(22px, 3.6vh, 44px) clamp(22px, 5vw, 72px) clamp(16px, 2.4vh, 30px);
    position: relative;
    overflow: hidden;
}

.home-logo {
    grid-row: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.logo-img {
    width: min(100%, 455px);
    max-height: 125px;
    object-fit: contain;
    display: block;
}

.home-center {
    grid-row: 2;
    width: min(100%, 1120px);
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-1.2vh);
}

.mobile-illustration {
    display: none;
}

.home-copy {
    text-align: center;
}

.home-copy h1 {
    margin: 0;
    max-width: 960px;
    color: #111827;
    font-size: clamp(30px, 2.65vw, 46px);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 800;
}

.home-copy p {
    margin: 16px auto 0;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(15px, 1.14vw, 19px);
    line-height: 1.5;
    font-weight: 420;
}

.home-search {
    width: min(100%, 1060px);
    max-width: 100%;
    min-width: 0;
    margin-top: clamp(30px, 5.2vh, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 16px;
    align-items: center;
}

.search-field {
    height: 62px;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 0 25px;
    border: 1px solid #cfe1f5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .045);
    overflow: hidden;
}

.search-field-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    flex: 0 0 26px;
}

.search-field-icon-fallback {
    display: none;
    color: var(--blue-strong);
    font-size: 29px;
    line-height: 1;
    transform: translateY(-1px);
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
}

.search-field input,
.search-input-wrap input {
    border: 0;
    outline: 0;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    background: transparent;
    color: #24324a;
    font-size: 17px;
    font-weight: 430;
    appearance: none;
    -webkit-appearance: none;
}

.search-field input::placeholder,
.search-input-wrap input::placeholder {
    color: #8a99b2;
}

.home-search button,
.search-form button {
    height: 62px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #70bafc 0%, #2e8ff4 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(44, 141, 244, .20);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.home-search button:hover,
.search-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 22px 46px rgba(44, 141, 244, .25);
}

.home-recent {
    width: min(100%, 860px);
    max-width: 100%;
    margin-top: clamp(26px, 4.3vh, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.recent-title {
    color: #60718b;
    font-weight: 760;
    font-size: 16px;
    white-space: nowrap;
}

.recent-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.recent-list button {
    height: 38px;
    max-width: 145px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    color: #61718b;
    font-size: 14px;
    font-weight: 640;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-list button:hover {
    background: var(--blue-soft);
    border-color: #bfe2ff;
    color: var(--blue-strong);
    transform: translateY(-1px);
}

.home-footer,
.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #64748b;
    font-size: 15px;
    font-weight: 450;
    text-align: center;
}

.home-footer {
    grid-row: 3;
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-note.results-footer {
    margin-top: 34px;
}

.footer-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.footer-security {
    opacity: .78;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================
   Resultados
   ========================= */

body.results {
    min-height: 100vh;
    overflow: auto;
    background: #ffffff;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-shell.results-shell,
.results-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.results-card {
    width: 100%;
    min-height: 100vh;
    padding: 34px clamp(20px, 4vw, 54px);
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.results-top {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 28px;
    align-items: center;
}

.mini-logo img {
    width: 220px;
    max-width: 100%;
    display: block;
}

.search-form {
    width: 100%;
    display: flex;
    gap: 12px;
}

.search-form .search-input-wrap,
.search-input-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 22px;
    background: #fff;
    border: 1px solid #dce9f6;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.search-icon {
    font-size: 28px;
    color: var(--blue-strong);
    line-height: 1;
    flex: 0 0 auto;
}

.search-form button {
    height: 64px;
    border-radius: 20px;
    padding: 0 30px;
    font-size: 18px;
}

.result-summary {
    margin-top: 36px;
}

.result-summary h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.14;
    letter-spacing: -.04em;
}

.result-summary h1 span {
    color: var(--blue-strong);
}

.result-summary p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.search-suggestion {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #d7e9fb;
    border-radius: 12px;
    background: #f3f9ff;
    color: #334155;
    font-size: 14px;
}

.search-suggestion a {
    color: var(--blue-strong);
    font-weight: 800;
    text-decoration: none;
}

.search-suggestion a:hover {
    text-decoration: underline;
}

.search-suggestion small {
    color: var(--muted);
    font-size: 13px;
}

.search-suggestion-approx {
    background: #fffaf0;
    border-color: #f6dfad;
}

.cards-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.result-card-item {
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .055);
    transition: .18s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.result-card-item:hover {
    transform: translateY(-3px);
    border-color: #bfe2ff;
    box-shadow: 0 18px 48px rgba(57, 156, 237, .14);
}

.thumb {
    height: 145px;
    background: linear-gradient(135deg, #f2f8ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #edf3fa;
    position: relative;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.thumb.video .thumb-placeholder,
.thumb.pasta .thumb-placeholder {
    font-size: 28px;
}

.thumb.pdf .thumb-placeholder {
    background: #fff1f2;
    color: #e11d48;
}

.thumb.planilha .thumb-placeholder {
    background: #ecfdf5;
    color: #059669;
}

.thumb.imagem .thumb-placeholder {
    background: #f5f3ff;
    color: #7c3aed;
}

.result-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.result-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    font-size: 12px;
    font-weight: 800;
}

.badge.pdf {
    background: #fff1f2;
    color: #e11d48;
}

.badge.planilha {
    background: #ecfdf5;
    color: #059669;
}

.badge.imagem {
    background: #f5f3ff;
    color: #7c3aed;
}

.size {
    color: #8a99ac;
    font-size: 12px;
    white-space: nowrap;
}

.result-info h2 {
    margin: 0;
    color: #182235;
    font-size: 16px;
    line-height: 1.32;
    font-weight: 790;
}

.result-info p {
    margin: auto 0 0;
    color: #6b7c92;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
 }

.empty-state {
    margin: 48px auto 0;
    max-width: 560px;
    text-align: center;
    padding: 34px;
    border-radius: 28px;
    background: #f8fbff;
    border: 1px solid #e7eef7;
}

.empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 34px;
}

.empty-state h2 {
    margin: 0;
    font-size: 24px;
}

.empty-state p {
    color: var(--muted);
    line-height: 1.6;
}

.secondary-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue-strong);
    font-weight: 750;
}

/* =========================
   Responsivo
   ========================= */

@media (max-width: 1120px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    .home-panel {
        padding: 26px 24px 18px;
    }

    .logo-img {
        width: min(100%, 390px);
    }

    .home-search {
        grid-template-columns: 1fr 140px;
    }

    .results-top {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .search-form-results {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.home-page {
        overflow: hidden;
        background: #ffffff;
        overscroll-behavior-x: none;
        touch-action: pan-y;
    }

    .home-stage {
        padding: 0;
        align-items: stretch;
    }

    .home-panel {
        width: 100%;
        height: 100dvh;
        max-width: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: max(18px, env(safe-area-inset-top)) 18px max(10px, env(safe-area-inset-bottom));
        justify-content: flex-start;
        background: #ffffff;
        overflow: hidden;
    }

    .home-logo {
        width: 100%;
    }

    .logo-img {
        width: min(100%, 310px);
        max-height: 90px;
    }

    .home-center {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        transform: translateY(-0.6vh);
    }

    .mobile-illustration {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: clamp(8px, 2.6vh, 28px) 0 clamp(12px, 2.8vh, 28px);
    }

    .illustration-circle {
        width: clamp(120px, 34vw, 180px);
        height: clamp(120px, 34vw, 180px);
        border-radius: 999px;
        background: radial-gradient(circle, rgba(127, 196, 253, .22), rgba(127, 196, 253, .08) 64%, transparent 65%);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .box-shape {
        color: rgba(44, 141, 244, .24);
        font-size: clamp(76px, 22vw, 120px);
        transform: rotate(4deg);
        line-height: 1;
    }

    .search-shape {
        position: absolute;
        color: #59aaf7;
        font-size: clamp(80px, 22vw, 118px);
        right: 11%;
        bottom: 4%;
        line-height: 1;
    }

    .home-copy h1 {
        font-size: clamp(24px, 7.2vw, 32px);
        line-height: 1.12;
        letter-spacing: -.045em;
        max-width: 340px;
        margin: 0 auto;
    }

    .home-copy p {
        margin-top: 12px;
        max-width: 320px;
        font-size: clamp(14px, 4vw, 17px);
        line-height: 1.38;
        color: #939caf;
    }

    .home-search {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: clamp(18px, 3vh, 26px);
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .search-field {
        height: 58px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 20px;
        padding: 0 16px;
        gap: 10px;
        overflow: hidden;
        transform: none !important;
        will-change: auto;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
    }

    .search-field-icon-img {
        width: 23px;
        height: 23px;
        flex: 0 0 23px;
    }

    .search-field-icon-fallback {
        flex: 0 0 23px;
        width: 23px;
        min-width: 23px;
        transform: none !important;
    }

    .search-field input,
    .search-input-wrap input {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        font-size: 16px !important;
        transform: none !important;
    }

    .search-field input:focus,
    .search-input-wrap input:focus {
        font-size: 16px !important;
    }

    .home-search button {
        height: 58px;
        width: 100%;
        border-radius: 18px;
        font-size: 19px;
        background: linear-gradient(180deg, #7fc4fd 0%, #54aef8 100%);
    }

    .home-recent {
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
        display: block;
    }

    .recent-title {
        display: block;
        color: #60718b;
        font-size: 15px;
        font-weight: 760;
        margin-bottom: 10px;
        text-align: left;
    }

    .recent-list {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .recent-list::-webkit-scrollbar {
        display: none;
    }

    .recent-list button {
        flex: 0 0 auto;
        height: 36px;
        max-width: 124px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgba(255, 255, 255, .92);
        color: #61718b;
        font-size: 13px;
        font-weight: 640;
        box-shadow: 0 7px 16px rgba(15, 23, 42, .03);
        padding: 0 14px;
    }

    .home-footer {
        width: 100%;
        margin: 0;
        padding: 0 0 8px;
        gap: 8px;
        font-size: 12px;
        color: #8a94a8;
    }

    .footer-icon {
        width: 20px;
        height: 20px;
    }

    .results-card {
        padding: 22px 16px;
    }

    .mini-logo img {
        width: 230px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button,
    .search-input-wrap {
        height: 60px;
        border-radius: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .result-card-item {
        min-height: auto;
        flex-direction: row;
        border-radius: 20px;
    }

    .thumb {
        width: 112px;
        min-width: 112px;
        height: auto;
        min-height: 132px;
        border-bottom: 0;
        border-right: 1px solid #edf3fa;
    }

    .thumb-placeholder {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 14px;
    }

    .thumb.video .thumb-placeholder,
    .thumb.pasta .thumb-placeholder {
        font-size: 22px;
    }

    .result-info {
        padding: 14px;
    }

    .result-info h2 {
        font-size: 14px;
    }
}

@media (max-width: 640px) and (max-height: 760px) {
    .home-panel {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .logo-img {
        width: min(100%, 280px);
        max-height: 82px;
    }

    .mobile-illustration {
        margin: 6px 0 10px;
    }

    .illustration-circle {
        width: 100px;
        height: 100px;
    }

    .box-shape {
        font-size: 68px;
    }

    .search-shape {
        font-size: 70px;
    }

    .home-copy h1 {
        font-size: 25px;
    }

    .home-copy p {
        font-size: 15px;
        margin-top: 8px;
    }

    .home-recent {
        margin-top: 12px;
    }

    .recent-list button {
        height: 34px;
        font-size: 12px;
    }

    .search-field,
    .home-search button {
        height: 54px;
    }
}


/* ==========================================================
   Ajuste V14 - Filtros + previews reais e UX dos cards
   ========================================================== */

.result-tools {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.type-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.filter-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #dbe8f7;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .035);
    transition: .16s ease;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: #bfe2ff;
    background: #eef7ff;
    color: #1683F6;
}

.order-form {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.order-form select {
    height: 36px;
    border: 1px solid #dbe8f7;
    border-radius: 999px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    outline: 0;
    padding: 0 34px 0 14px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .035);
}

.cards-grid-results {
    margin-top: 24px;
}

.result-card-preview {
    border: 1px solid #d2e3f6;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .065);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
}

.result-card-preview:hover {
    border-color: #98d3ff;
    box-shadow: 0 20px 48px rgba(54, 147, 254, .16);
}

.result-card-preview .thumb {
    position: relative;
    height: 148px;
    background: linear-gradient(180deg, #f3f9ff 0%, #eef7ff 100%);
    overflow: hidden;
}

.result-card-preview .thumb-real {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

.result-card-preview .thumb.has-preview .thumb-placeholder {
    display: none;
}

.result-card-preview .thumb.has-preview.thumb-no-preview .thumb-placeholder {
    display: flex;
}

.result-card-preview .thumb-placeholder-v14 {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card-preview.pasta .thumb {
    background:
        radial-gradient(circle at 50% 28%, rgba(54,147,254,.18), transparent 33%),
        linear-gradient(180deg, #eff8ff 0%, #eaf6ff 100%);
}

.folder-visual {
    width: 92px;
    height: 70px;
    position: relative;
    display: block;
    filter: drop-shadow(0 16px 24px rgba(54, 147, 254, .14));
}

.folder-tab {
    position: absolute;
    left: 8px;
    top: 7px;
    width: 36px;
    height: 16px;
    border-radius: 10px 10px 3px 3px;
    background: linear-gradient(180deg, #8dd0ff 0%, #48a9ff 100%);
}

.folder-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 18px;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(180deg, #7fc4fd 0%, #2f93f4 100%);
    box-shadow: inset 0 -10px 18px rgba(16, 100, 210, .14);
}

.folder-body::after {
    content: "";
    position: absolute;
    inset: 10px 12px auto 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
}

.file-visual {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: .02em;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .05);
}

.image-visual {
    background: #f3ecff;
    color: #7c3aed;
}

.video-visual {
    background: #eaf6ff;
    color: #1683F6;
}

.pdf-visual {
    background: #fff1f2;
    color: #e11d48;
}

.generic-visual {
    background: #f1f5f9;
    color: #475569;
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid currentColor;
    margin-left: 6px;
}

.video-play-overlay {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
    pointer-events: none;
}

.video-play-overlay::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #1683F6;
}

.result-card-preview .result-info {
    padding: 17px 18px 16px;
}

.result-card-preview .result-info h2 {
    min-height: 42px;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* remove o caminho do card */
.result-card-preview .result-info > p {
    display: none !important;
}

.result-card-action {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1683F6;
    font-size: 13px;
    font-weight: 800;
    border-top: 1px solid #eef3f8;
}

.result-card-action span:last-child {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef7ff;
    color: #1683F6;
    font-size: 22px;
    line-height: 1;
}

.badge.pasta {
    background: #eef7ff;
    color: #1683F6;
}

.badge.video {
    background: #eaf6ff;
    color: #1683F6;
}

.badge.pdf {
    background: #fff1f2;
    color: #e11d48;
}

.badge.imagem {
    background: #f3ecff;
    color: #7c3aed;
}

@media (max-width: 760px) {
    .result-tools {
        align-items: stretch;
        gap: 12px;
    }

    .type-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .type-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
    }

    .order-form {
        justify-content: space-between;
        width: 100%;
    }

    .order-form select {
        flex: 1;
        max-width: 220px;
    }

    .result-card-preview .thumb {
        min-height: 132px;
        height: auto;
    }

    .folder-visual {
        width: 70px;
        height: 54px;
    }

    .folder-tab {
        width: 30px;
        height: 13px;
        top: 5px;
    }

    .folder-body {
        top: 15px;
        border-radius: 13px;
    }

    .file-visual {
        width: 66px;
        height: 66px;
        border-radius: 20px;
        font-size: 13px;
    }

    .video-play-overlay {
        width: 48px;
        height: 48px;
    }

    .video-play-overlay::before {
        left: 20px;
        top: 15px;
    }

    .result-card-action {
        padding-top: 10px;
    }
}


/* ==========================================================
   Ajuste V15 - Paginação "Ver mais resultados"
   ========================================================== */

.load-more-area {
    margin: 34px auto 4px;
    padding: 22px 16px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.load-more-area p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
}

.load-more-button {
    min-height: 48px;
    min-width: 220px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #70bafc 0%, #2e8ff4 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(54, 147, 254, .22);
    transition: .16s ease;
}

.load-more-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(54, 147, 254, .28);
}

.load-more-end {
    color: #8a99ac;
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 640px) {
    .load-more-area {
        margin-top: 24px;
        padding-top: 16px;
    }

    .load-more-button {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }
}


/* ==========================================================
   Ajuste V16 - Ver mais sem voltar para o topo
   ========================================================== */

#continuar-resultados,
.result-continue-anchor {
    scroll-margin-top: 18px;
}

.result-continue-anchor {
    animation: destaqueNovoResultado 1.1s ease-out 1;
}

@keyframes destaqueNovoResultado {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 147, 254, .34), 0 20px 48px rgba(54, 147, 254, .16);
        transform: translateY(-2px);
    }

    100% {
        box-shadow: inherit;
        transform: translateY(0);
    }
}
