/* V1326: search-only flat, readable result system. */
body .yt-search-page {
    background: #fff !important;
    max-width: 1240px;
}

body .yt-search-shell,
body .yt-search-tools,
body .yt-search-card,
body .yt-destination-hero,
body .yt-destination-mini-card {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

body .yt-search-card {
    overflow: visible !important;
    height: 100% !important;
}

body .yt-search-card img,
body .yt-destination-mini-card img {
    border-radius: 0 !important;
}

body .yt-search-card .card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body .yt-search-card h4,
body .yt-search-card p,
body .yt-search-card a,
body .yt-search-group-link {
    overflow-wrap: anywhere;
    word-break: normal;
    writing-mode: horizontal-tb;
}

body .yt-search-card .btn {
    min-height: 42px;
    margin-top: auto;
    border-radius: 6px !important;
    font-size: .9rem !important;
    line-height: 1.2 !important;
}

body .yt-search-badge,
body .yt-search-group-link {
    color: #96a700 !important;
}

body .yt-search-excerpt {
    min-height: 0 !important;
    color: #596273;
}

@media (max-width: 767.98px) {
    body .yt-search-page {
        width: 100%;
        padding-left: max(16px, env(safe-area-inset-left)) !important;
        padding-right: max(16px, env(safe-area-inset-right)) !important;
    }

    body .yt-search-card img {
        height: 10rem !important;
    }

    body .yt-search-card .card-body {
        padding: .75rem 0 1rem !important;
    }

    body .yt-search-card h4 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    body .yt-search-card p,
    body .yt-search-card .yt-search-excerpt {
        font-size: .875rem !important;
        line-height: 1.4 !important;
    }
}
