/* DooPlay History - Final Fix */

/* Força a remoção de espaços vazios */
#dooplay-history-module.dooplay-history-section.module {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    clear: both;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: auto !important;
}

/* Cabeçalho: Título e Navegação lado a lado */
.dooplay-history-section .module-heading {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: 5px !important;
}

.dooplay-history-section .module-title {
    margin-right: 15px !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    color: #fff !important;
}

.dooplay-history-section .buttons {
    display: inline-flex !important;
}

.dooplay-history-section .nav-scroller .btn {
    background: transparent !important;
    color: #f9a825 !important;
    border: 0 !important;
    padding: 0 5px !important;
    font-size: 16px !important;
    cursor: pointer !important;
}

/* Carrossel e Itens */
.dooplay-history-items.owl-carousel,
.dooplay-history-items .owl-stage-outer {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* Etiquetas de Qualidade (Estilo Nativo) */
.dooplay-history-section .poster .quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f9a825;
    color: #000;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 5;
}

/* Títulos: Episódio e Anime abaixo */
.dooplay-history-section .data h3 {
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 5px 0 2px 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dooplay-history-section .data h3 a {
    color: #fff !important;
}

.dooplay-history-section .data .serie {
    font-size: 11px !important;
    color: #888 !important;
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seletor para a seção seguinte para evitar buracos */
#dooplay-history-module + header,
#dooplay-history-module + .module {
    margin-top: 0 !important;
}

/* Esconde o módulo se estiver vazio */
#dooplay-history-module[style*="display: none"] {
    display: none !important;
}
