/* Catalogo de titulos e busca (site web) — usa vars Phoenix/Bootstrap p/ dark mode */

.catalog-letters {
    row-gap: 6px;
}

.catalog-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.catalog-letter:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.catalog-letter.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.catalog-card {
    display: block;
    color: inherit;
}

.catalog-poster {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bs-tertiary-bg);
}

.catalog-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--bs-secondary-color);
}

.catalog-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.catalog-tag-movie {
    background: #0ea5e9;
}

.catalog-streaming {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 3px 6px;
}

.catalog-streaming img {
    height: 16px;
    max-width: 80px;
    object-fit: contain;
}

.catalog-name {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-year {
    margin: 0;
    font-size: 11px;
    color: var(--bs-secondary-color);
}

/* minhas listas: botao remover sobre o poster */
.catalog-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 999px;
    padding: 4px;
    font-size: 9px;
}

/* ajustes de cor/tamanho (dark): tag com cor solida e logos maiores na faixa */
.catalog-tag {
    background: #7c5cff;
}

.catalog-streaming {
    padding: 5px 8px;
    gap: 8px;
}

.catalog-streaming img {
    height: 24px;
    max-width: 110px;
}

/* badge marca-cor (formato "Exibido em" da tela de título) */
.streaming-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
}

.streaming-avatar img {
    max-width: 36px;
    max-height: 26px;
    object-fit: contain;
}

/* versão compacta (tabela de exibições da variante) */
.streaming-avatar-sm {
    width: 34px;
    height: 26px;
    border-radius: 6px;
}

.streaming-avatar-sm img {
    max-width: 26px;
    max-height: 18px;
}

/* dropdown Minhas listas sem aperto horizontal */
.dropdown-menu[data-title-lists-menu] {
    min-width: 250px;
}

.dropdown-menu[data-title-lists-menu] .dropdown-item {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* chip de marca das plataformas (mesmo layout do a.stream-chip do mobile) */
.stream-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--phoenix-gray-1100);
    flex: 0 0 auto;
    text-decoration: none;
}

.stream-chip img {
    height: 18px;
    max-width: 70px;
    object-fit: contain;
}

/* tooltip com o poster do título (acompanhamento) */
.poster-tooltip .tooltip-inner {
    max-width: none;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.poster-tooltip .tooltip-arrow {
    display: none;
}
