/* APM Buscador de Vídeos por Anclas */
.apm-bva {
    max-width: 820px;
    margin: 0 auto 34px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(200, 179, 107, .8);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(16, 25, 21, .08);
}
.apm-bva__title {
    margin-bottom: 12px;
    color: #182012;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.apm-bva__search-wrap { position: relative; }
.apm-bva__input {
    width: 100%;
    min-height: 54px;
    padding: 0 48px 0 18px;
    color: #182012;
    background: #f7f4ea;
    border: 1px solid rgba(61, 74, 45, .35);
    border-radius: 12px;
    font-size: 17px;
    outline: none;
}
.apm-bva__input:focus {
    border-color: #bda45a;
    box-shadow: 0 0 0 3px rgba(189, 164, 90, .18);
}
.apm-bva__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    color: #f7f4ea;
    background: #182012;
    border: 0;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.apm-bva__help {
    margin-top: 10px;
    color: #65685d;
    font-size: 14px;
    text-align: center;
}
.apm-bva__results {
    margin-top: 16px;
    overflow: hidden;
    background: #f7f4ea;
    border: 1px solid rgba(189, 164, 90, .45);
    border-radius: 14px;
}
.apm-bva__count {
    padding: 11px 14px;
    color: #182012;
    border-bottom: 1px solid rgba(189, 164, 90, .35);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.apm-bva__list { display: grid; gap: 0; }
.apm-bva__result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    color: #182012;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(189, 164, 90, .25);
    text-align: left;
    cursor: pointer;
}
.apm-bva__result:last-child { border-bottom: 0; }
.apm-bva__result:hover,
.apm-bva__result:focus { background: rgba(189, 164, 90, .16); }
.apm-bva__result-title { font-weight: 800; line-height: 1.25; }
.apm-bva__result-anchor {
    flex: 0 0 auto;
    color: #7c6b2f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.apm-bva__empty {
    padding: 16px;
    color: #6a4a2d;
    font-weight: 700;
    text-align: center;
}
.apm-bva-video-card {
    scroll-margin-top: 130px;
    transition: box-shadow .25s ease, transform .25s ease, outline-color .25s ease;
}
.apm-bva-video-card.apm-bva-highlight {
    outline: 4px solid #bda45a !important;
    outline-offset: 7px;
    box-shadow: 0 0 0 10px rgba(189, 164, 90, .18), 0 20px 50px rgba(16, 25, 21, .18) !important;
    transform: translateY(-3px);
}
@media (max-width: 720px) {
    .apm-bva { padding: 16px; border-radius: 14px; }
    .apm-bva__result { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* v1.0.3 — botón Ver todos */
.apm-bva__search-wrap {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.apm-bva__search-wrap .apm-bva__input {
    flex: 1 1 auto;
}
.apm-bva__show-all {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 20px;
    color: #f7f4ea;
    background: #bda45a;
    border: 1px solid #bda45a;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}
.apm-bva__show-all:hover,
.apm-bva__show-all:focus {
    background: #182012;
    border-color: #182012;
    outline: none;
}
@media (max-width: 720px) {
    .apm-bva__search-wrap {
        flex-direction: column;
    }
    .apm-bva__clear {
        top: 27px;
    }
    .apm-bva__show-all {
        width: 100%;
    }
}
