/* Estilos específicos da página search; os componentes compartilhados permanecem em app.css. */

.top-rated-section {
    margin: 0 0 22px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}
.community-rating-heading {
    align-items: end;
    gap: 18px;
}
.community-rating-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(0,0,0,.16);
}
.community-rating-switch a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}
.community-rating-switch a:hover,
.community-rating-switch a:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.community-rating-switch a.is-active {
    color: #fff;
    background: rgba(31,168,102,.18);
    box-shadow: inset 0 0 0 1px rgba(31,168,102,.36);
}
.community-rating-switch a.is-active.is-negative {
    background: rgba(198,40,40,.18);
    box-shadow: inset 0 0 0 1px rgba(198,40,40,.4);
}
.top-rated-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(176px, 220px);
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
}
.top-rated-compact-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: var(--text);
    background: var(--panel);
    scroll-snap-align: start;
    transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.top-rated-compact-card:hover,
.top-rated-compact-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--rating-color);
    background: color-mix(in srgb, var(--rating-color) 8%, var(--panel));
    box-shadow: 0 10px 26px color-mix(in srgb, var(--rating-color) 18%, transparent);
}
.top-rated-rank-meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-rated-compact-card > strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.top-rated-score {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    width: fit-content;
    color: var(--rating-color);
}
.top-rated-score b { font-size: 14px; }
.top-rated-score em { font-size: 18px; font-style: normal; font-weight: 900; }
.top-rated-score small { font-size: 9px; font-weight: 800; }
.community-rating-empty {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 11px;
    color: var(--muted);
}
.community-rating-empty svg { width: 20px; height: 20px; }
.community-rating-empty p { margin: 0; }

@supports not (background: color-mix(in srgb, red 10%, black)) {
    .top-rated-compact-card:hover,
    .top-rated-compact-card:focus-visible { background: rgba(255,255,255,.055); }
}

@media (max-width: 760px) {
    .community-rating-heading { align-items: stretch; }
    .community-rating-switch { width: 100%; }
    .community-rating-switch a { flex: 1; text-align: center; }
}
@media (max-width: 520px) {
    .top-rated-track { grid-auto-columns: minmax(165px, 68vw); }
}

/* Mantém o botão nativo de limpar, mas remove a seta do datalist no Chrome/Edge. */
#praver-search-query::-webkit-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* PraVer 2.5.3 — carrosséis sem barra visível e atalhos para listas próprias. */
.search-arrow-carousel { position: relative; }
.top-rated-track,
.suggestions-track { scrollbar-width: none; overscroll-behavior-inline: contain; }
.top-rated-track::-webkit-scrollbar,
.suggestions-track::-webkit-scrollbar { display: none; }
.search-arrow-carousel .carousel-arrow {
    top: 50%;
    width: 34px;
    height: 48px;
    color: #fff;
    background: rgba(124,58,237,.92);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}
.search-arrow-carousel .carousel-arrow:hover,
.search-arrow-carousel .carousel-arrow:focus-visible { background: #8b5cf6; }
.top-rated-card-main { display: grid; align-content: space-between; gap: 7px; min-height: 80px; color: inherit; }
.top-rated-card-main > strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.view-in-list-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 850;
}
.view-in-list-link:hover,
.view-in-list-link:focus-visible { color: #fff; text-decoration: underline; }
.view-in-list-link svg { width: 13px; height: 13px; }
.view-in-list-link.compact { margin-top: 2px; font-size: 9px; }
@media (max-width: 760px) {
    .search-arrow-carousel .carousel-arrow { display: grid; width: 30px; height: 42px; }
    .search-arrow-carousel .carousel-arrow-left { left: -5px; }
    .search-arrow-carousel .carousel-arrow-right { right: -5px; }
}


/* PraVer 2.5.4 — quantidade de avaliações abaixo da nota da comunidade. */
.top-rated-score-wrap {
    width: fit-content;
    display: grid;
    gap: 1px;
}
.top-rated-rating-count {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* PraVer 2.6.0 — mais avaliações em cards ainda mais compactos. */
.top-rated-track { grid-auto-columns: minmax(145px, 180px); gap: 8px; }
.top-rated-compact-card { min-height: 92px; gap: 5px; padding: 10px; border-radius: 10px; }
.top-rated-card-main { min-height: 64px; gap: 4px; }
.top-rated-card-main > strong,
.top-rated-compact-card > strong { font-size: 12px; line-height: 1.24; }
.top-rated-rank-meta { font-size: 8.5px; }
.top-rated-score em { font-size: 16px; }
.top-rated-score b { font-size: 12px; }
.top-rated-score small,
.top-rated-rating-count { font-size: 8px; }
@media (max-width: 520px) { .top-rated-track { grid-auto-columns: minmax(142px, 58vw); } }
