

/* =========================================================
   PESQUISAR - YETU A YETU
   ========================================================= */

   .search-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

/* CABEÇALHO */

.search-header {
    max-width: 800px;
    margin-bottom: 35px;
}

.search-header .section-label {
    display: inline-block;
    color: #8b5cf6;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.search-header h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -2px;
}

.search-header p {
    margin: 0;
    line-height: 1.7;
    opacity: .7;
}


/* =========================================================
   CAIXA DE PESQUISA
   ========================================================= */

.search-box {
    width: 100%;
    margin-bottom: 55px;
}

.search-box form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.search-input {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 60px;
    padding: 0 20px;
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #fff;
    transition: .25s ease;
}

.search-input:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,.10);
}

.search-input span {
    margin-right: 12px;
    color: #8b5cf6;
    font-size: 1.5rem;
}

.search-input input {
    width: 100%;
    height: 55px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 1rem;
}

.search-input input::placeholder {
    color: #999;
}

.search-box button {
    min-width: 145px;
    padding: 0 25px;
    border: 0;
    border-radius: 16px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.search-box button:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
}


/* =========================================================
   FILTROS
   ========================================================= */

.search-filters {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.filter-title .section-label {
    display: block;
}

.filter-title h2 {
    margin: 6px 0 0;
    font-size: 1.8rem;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter {
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: .82rem;
    cursor: pointer;
    transition: .25s ease;
}

.filter:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.filter.active {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

.search-results {
    margin-bottom: 70px;
}

.results-heading {
    margin-bottom: 25px;
}

.results-heading span {
    display: block;
    color: #8b5cf6;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.results-heading h2 {
    margin: 6px 0 0;
    font-size: 2rem;
    letter-spacing: -.7px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* CARD DE RESULTADO */

.result-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    transition: .25s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    border-color: #d8c4f5;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}


/* IMAGEM DO RESULTADO */

.result-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    background: linear-gradient(
        135deg,
        #7e22ce,
        #c084fc
    );
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.result-music {
    background: linear-gradient(
        135deg,
        #312e81,
        #a855f7
    );
}

.result-sport {
    background: linear-gradient(
        135deg,
        #111827,
        #6b21a8
    );
}

.result-life {
    background: linear-gradient(
        135deg,
        #6b21a8,
        #e879f9
    );
}


/* CONTEÚDO */

.result-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.result-content small {
    display: block;
    margin-bottom: 7px;
    color: #8b5cf6;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .8px;
}

.result-content h3 {
    margin: 0 0 9px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.result-content p {
    margin: 0 0 13px;
    font-size: .84rem;
    line-height: 1.5;
    opacity: .65;
}

.result-meta {
    font-size: .72rem;
    opacity: .55;
}


/* =========================================================
   PESQUISAS POPULARES
   ========================================================= */

.popular-searches {
    margin-top: 65px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tags a {
    display: inline-flex;
    align-items: center;
    padding: 11px 17px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    color: #222;
    font-size: .82rem;
    text-decoration: none;
    transition: .25s ease;
}

.popular-tags a:hover {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
}
/* =========================================================
   RESPONSIVIDADE E ALINHAMENTO — PESQUISAR
========================================================= */

/* ESTRUTURA PRINCIPAL */

.search-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0 80px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.search-page *,
.search-page *::before,
.search-page *::after {
    box-sizing: border-box;
}

.search-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* CABEÇALHO */

.search-header {
    width: 100%;
    max-width: 800px;
}

.search-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    overflow-wrap: break-word;
}

.search-header p {
    max-width: 650px;
}

/* CAIXA DE PESQUISA */

.search-box {
    width: 100%;
}

.search-box form {
    min-width: 0;
}

.search-input {
    min-width: 0;
}

.search-input input {
    min-width: 0;
}

.search-box button {
    flex-shrink: 0;
}

/* FILTROS */

.search-filters {
    width: 100%;
    min-width: 0;
}

.filter-title {
    flex-shrink: 0;
}

.filter-list {
    min-width: 0;
}

/* RESULTADOS */

.results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.result-card {
    min-width: 0;
    grid-template-columns: minmax(125px, 190px) minmax(0, 1fr);
}

.result-content {
    min-width: 0;
}

.result-content h3,
.result-content p {
    overflow-wrap: anywhere;
}

/* PESQUISAS POPULARES */

.popular-tags {
    width: 100%;
}

.popular-tags a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* =========================================================
   TABLETS E ECRÃS MÉDIOS
========================================================= */

@media (max-width: 900px) {

    .search-page {
        padding-top: 40px;
        padding-bottom: 65px;
    }

    .search-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .filter-list {
        justify-content: flex-start;
    }

    .results-grid {
        gap: 16px;
    }

    .result-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .result-content {
        padding: 17px;
    }

}

/* =========================================================
   TABLETS PEQUENOS E TELEMÓVEIS
========================================================= */

@media (max-width: 700px) {

    .search-page {
        padding-top: 35px;
        padding-bottom: 55px;
    }

    .search-header {
        margin-bottom: 28px;
    }

    .search-header h1 {
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .search-box {
        margin-bottom: 42px;
    }

    .search-box form {
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        width: 100%;
        min-height: 56px;
        padding: 0 16px;
    }

    .search-box button {
        width: 100%;
        min-height: 52px;
    }

    .search-filters {
        margin-bottom: 42px;
    }

    .filter-list {
        width: 100%;
        gap: 8px;
    }

    .filter {
        padding: 9px 14px;
    }

    .results-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .result-card {
        grid-template-columns: 160px minmax(0, 1fr);
        min-height: 175px;
    }

    .result-image {
        min-height: 175px;
    }

    .result-content {
        padding: 18px;
    }

    .results-heading h2 {
        font-size: 1.65rem;
    }

    .search-results {
        margin-bottom: 50px;
    }

    .popular-searches {
        margin-top: 45px;
    }

}

/* =========================================================
   TELEMÓVEIS PEQUENOS
========================================================= */

@media (max-width: 480px) {

    .search-page {
        padding-top: 30px;
        padding-bottom: 45px;
    }

    .search-header h1 {
        font-size: 2.1rem;
    }

    .search-header p {
        font-size: .92rem;
    }

    .filter-title h2 {
        font-size: 1.55rem;
    }

    .filter {
        font-size: .78rem;
        padding: 8px 12px;
    }

    .result-card {
        grid-template-columns: 105px minmax(0, 1fr);
        min-height: 155px;
        border-radius: 15px;
    }

    .result-image {
        min-height: 155px;
        font-size: .7rem;
        text-align: center;
        padding: 8px;
    }

    .result-content {
        padding: 13px;
    }

    .result-content h3 {
        font-size: .92rem;
    }

    .result-content p {
        font-size: .78rem;
        margin-bottom: 9px;
    }

    .result-content small {
        font-size: .6rem;
    }

    .result-meta {
        font-size: .65rem;
    }

    .results-heading h2 {
        font-size: 1.45rem;
    }

    .popular-tags {
        gap: 8px;
    }

    .popular-tags a {
        padding: 9px 13px;
        font-size: .76rem;
    }

}

/* =========================================================
   ECRÃS MUITO PEQUENOS
========================================================= */

@media (max-width: 360px) {

    .result-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .result-content {
        padding: 10px;
    }

    .result-content h3 {
        font-size: .85rem;
    }

    .result-content p {
        font-size: .73rem;
    }

}
/* LINKS DOS FILTROS */

.filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* IMAGENS DOS RESULTADOS */

.result-image {
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.result-image img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform .3s ease;
}

.result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-content h3 a {
    color: inherit;
    text-decoration: none;
}

.result-content h3 a:hover {
    color: #8b5cf6;
}

/* ESTADO SEM RESULTADOS */

.search-empty {
    padding: 55px 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
}

.search-empty > span {
    display: block;
    color: #8b5cf6;
    font-size: 2.5rem;
}

.search-empty h3 {
    margin: 12px 0;
}

.search-empty p {
    color: #777;
    line-height: 1.6;
}

.search-empty a {
    display: inline-flex;
    margin-top: 12px;
    padding: 11px 20px;
    border-radius: 30px;
    background: #8b5cf6;
    color: #fff;
    text-decoration: none;
}/* =========================================================
   REPRODUÇÃO DE VÍDEOS — CARDS SEM ESPAÇOS INDESEJADOS
========================================================= */

.result-card-video {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.result-card-video .result-video {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.result-card-video .result-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.result-card-video .result-content {
    margin: 0;
    padding: 14px 16px 16px;
}

/* TELEMÓVEIS */

@media (max-width: 700px) {
    .result-card-video {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .result-card-video .result-video {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}