.sidebar {
    display: none !important;
    /* Garante que a sidebar antiga suma */
}

.epic-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    user-select: none;
    border-bottom: 1px solid #ffffff31;
}

.epic-topbar-left,
.epic-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo + Setinha */
.epic-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.epic-logo-wrapper:hover {
    background-color: #ffffff18;
}

.epic-logo-wrapper .logo {
    height: 40px;
    width: auto;
    margin: 0 !important;
}

.epic-logo-arrow {
    color: #8a8a8e;
    font-size: 16px;
}

/* Setas de Voltar / Avançar */
.epic-history-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.epic-nav-arrow {
    background: transparent;
    border: none;
    color: #ffffff73;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.epic-nav-arrow:hover {
    color: #ffffff;
    background-color: #ffffff18;
}

/* Container das Abas */
.epic-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estilo individual de cada Aba (Início, Buscar, Explorar, etc.) */
.epic-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 0;
    border-radius: 8px;
    color: #ffffff84;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.epic-tab i {
    font-size: 18px;
    margin: 0 !important;
}

.epic-tab p {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1;
    color: #ffffff84;
}

.epic-tab:hover {
    color: #ffffff !important;
    background-color: #ffffff0d;
}

/* Aba Selecionada / Ativa (Pílula cinza igual ao botão "Loja" da Epic) */
.epic-tab.active,
.shortcut-links.epic-tab.active {
    background-color: #ffffff36 !important;
    color: #ffffff !important;
    font-weight: 400;
}

.epic-tab.active p {
    color: #fff;
}

/* Botões da Direita (Criar Playlist, Upload, Doar, Perfil) */
.epic-action-pill {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 14px !important;
    border-radius: 8px;
    background-color: #ffffff44;
    color: #d1d1d6 !important;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    margin: 0 !important;
}

.epic-action-pill:hover {
    background-color: #ffffff3c;
    color: #fff !important;
}

.epic-action-pill p {
    margin: 0 !important;
}

.epic-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff88;
    cursor: pointer;
    transition: 0.2s;
    margin: 0;
    padding: 0;
}

.epic-icon-btn:hover,
.epic-icon-btn.active {
    background-color: #ffffff2b;
    color: #ffffff;
}

.epic-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background-color: #ffffff1b;
    cursor: pointer;
    transition: 0.2s;
    margin: 0;
}

.epic-profile #userName {
    color: #fff;
}

.epic-profile:hover {
    background-color: #ffffff53;
}

.epic-profile.active {
    background-color: #fff;
}

.epic-profile.active #userName {
    color: #000;
}

.epic-profile .image_photo_pic_menubar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 !important;
}

.epic-profile #userName {
    font-size: 13px;
    font-weight: 600;
    color: #e5e5ea;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epic-logo-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.epic-logo-arrow {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
}

.epic-logo-menu-container.open .epic-logo-wrapper {
    background-color: #ffffff18;
}

.epic-logo-menu-container.open .epic-logo-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Caixa do Dropdown */
.epic-logo-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    min-height: 110px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.epic-logo-dropdown::-webkit-scrollbar {
    width: 5px;
}

.epic-logo-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Estado Aberto */
.epic-logo-menu-container.open .epic-logo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Itens do Menu */
.epic-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d1d1d6;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
    /* Impede que os botões amassem quando houver scroll */
    transition: background-color 0.15s ease, color 0.15s ease;
}

.epic-dropdown-item i {
    font-size: 18px;
    color: #8e8e93;
    transition: color 0.15s ease;
}

.epic-dropdown-item:hover {
    background-color: #ffffff1e;
    color: #ffffff;
}

.epic-dropdown-item:hover i {
    color: #ffffff;
}

.epic-dropdown-item.red:hover {
    background-color: #ff00002d;
    color: #ff8989;
}

.epic-dropdown-item.red:hover i {
    color: #ff8989;
}

/* Linha divisória opcional entre grupos de botões */
.epic-dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 4px 6px;
    flex-shrink: 0;
}

/* ==========================================
   AJUSTE DO CONTAINER PRINCIPAL (SEM SIDEBAR)
   ========================================== */
.container {
    margin-left: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 76px !important;
    /* Espaço para não ficar embaixo da topbar */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.aviso-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0 32px 0;
    background-color: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 250px;
    padding: 34px 36px 64px 36px;
    /* Espaço inferior para os controles */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho suave no canto direito do banner */
.carousel-slide::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    /*background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);*/
    pointer-events: none;
}

/* Gradientes modernos para os 3 slides */
.elegante-bg-1 {
    background: linear-gradient(125deg, #2b102f 0%, #15141c 55%, #101014 100%);
}

.elegante-bg-2 {
    background: linear-gradient(125deg, #0f2942 0%, #131824 55%, #101014 100%);
}

.elegante-bg-3 {
    background: linear-gradient(125deg, #123324 0%, #131d19 55%, #101014 100%);
}

.slide-content {
    max-width: 560px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.slide-content h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.slide-content p {
    margin: 0 0 8px 0;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

/* Botão branco estilo "Compre agora" da Epic */
.slide-content .saibaMais {
    background-color: #ffffff;
    color: #0e0e10;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.slide-content .saibaMais:hover {
    background-color: #e5e5ea;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Barra inferior com Dots e Setas (< >) */
.carousel-controls-bar {
    position: absolute;
    bottom: 16px;
    left: 36px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
    /* Permite clicar no slide atrás, exceto nos botões */
}

.carousel-nav,
.carousel-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

/* Bolinhas (Dots) que viram pílula quando ativas */
.carousel-nav .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav .dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-nav .dot.active {
    width: 24px;
    background-color: #ffffff;
}

/* Botões Redondos < > estilo Epic Games */
.carousel-arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(38, 38, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b0b0b8;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.carousel-arrow-btn:hover {
    background-color: #32323a;
    color: #ffffff;
    transform: scale(1.06);
}

.carousel-arrow-btn:active {
    transform: scale(0.95);
}

/* PAINEL LATERAL "NOW PLAYING" */
.container {
    transition: padding-right 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@media (min-width: 301px) {
    body.player-sheet-open .container {
        padding-right: 394px !important;
        /* 370px do painel + 36px de respiro */
    }

    #player-sheet.newplayer-sheet #sheetClose i {
        display: inline-block;
        transform: rotate(-90deg);
        transition: transform 0.2s ease;
    }

    #player-sheet.newplayer-sheet {
        position: fixed !important;
        top: 58px !important;
        /* Logo abaixo da Topbar da Epic */
        bottom: 12px !important;
        left: auto !important;
        width: 370px !important;
        height: calc(100vh - 59px) !important;
        border-radius: 0px !important;
        z-index: 950 !important;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.55) !important;
        border-left: 1px solid #3c3c3c !important;
        overflow: hidden !important;
        transform: translateX(calc(100% + 28px)) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, background 0.5s ease !important;
    }

    #player-sheet.newplayer-sheet.open {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #player-sheet.newplayer-sheet .newsheet-inner {
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: linear-gradient(180deg, rgba(16, 16, 20, 0.25) 0%, rgba(16, 16, 20, 0.85) 100%, #101014 100%) !important;
        backdrop-filter: blur(24px) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #player-sheet.newplayer-sheet .newsheet-header {
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        background: transparent;
        margin-bottom: 0px;
    }

    #player-sheet.newplayer-sheet .newsheet-context span {
        font-size: 11px !important;
        font-weight: 100 !important;
        letter-spacing: 0.8px !important;
        color: rgb(255, 255, 255) !important;
    }

    #player-sheet.newplayer-sheet .newsheet-header-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        padding: 0 !important;
        transition: background 0.2s, transform 0.2s !important;
    }

    #player-sheet.newplayer-sheet .newsheet-header-btn i {
        font-size: 20px !important;
        color: #ffffff !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #player-sheet.newplayer-sheet .newsheet-header-btn:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.06);
    }

    /* Corpo rolável do player principal */
    #player-sheet.newplayer-sheet .NowPlayingOl {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        padding: 18px 16px 32px 16px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    #player-sheet.newplayer-sheet .NowPlayingOl::-webkit-scrollbar {
        width: 5px;
    }

    #player-sheet.newplayer-sheet .NowPlayingOl::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    #player-sheet.newplayer-sheet .newplayerpc_left,
    #player-sheet.newplayer-sheet .newplayerpc_right {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Capa da Música */
    #player-sheet.newplayer-sheet .fs-sheet-cover {
        position: static !important;
        width: 62% !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        align-content: center;
        justify-content: center;
        align-items: center;
        align-self: center;
    }

    /* Título e Artista */
    #player-sheet.newplayer-sheet .sheet-meta {
        position: static !important;
        text-align: left !important;
        width: 100% !important;
    }

    #player-sheet.newplayer-sheet .sheet-meta .newTlt {
        font-size: 20px !important;
        font-weight: 700 !important;
        margin: 0 0 -6px 0 !important;
        color: #ffffff !important;
    }

    /* Barra de Progresso */
    #player-sheet.newplayer-sheet .sheet-progress {
        margin-top: -5px;
    }

    /* Controles de Reprodução */
    #player-sheet.newplayer-sheet .sheet-controls {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 1px 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Card de Letras dentro da Sidebar */
    #player-sheet.newplayer-sheet .spotify-lyrics-card {
        position: static !important;
        width: 100% !important;
        height: 354px;
        border-radius: 14px !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border: 1px solid #ffffff21 !important;
        padding: 14px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #player-sheet.newplayer-sheet .lyrics-content {
        height: auto !important;
        max-height: auto !important;
        overflow-y: auto !important;
        position: relative !important;
    }

    /* Card "Na fila" dentro da Sidebar */
    #player-sheet.newplayer-sheet .queue-content {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 14px !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 14px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #player-sheet.newplayer-sheet .queue-content h2 {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin: 0 0 12px 0 !important;
    }
}

/* MINIPLAYER COM ANIMAÇÃO DE ENTRADA/SAÍDA */
.miniplayer {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, background-color 0.3s ease !important;
    transform: translateY(0);
    opacity: 1;
}

.miniplayer.hide,
body.player-sheet-open .miniplayer {
    display: flex !important;
    transform: translateY(140%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#selov {
    margin-left: 0px;
}

.offline-epic-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(255, 90, 0, 0.18) 0%, rgba(24, 24, 28, 0.95) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.offline-epic-banner.hide {
    display: none !important;
}

.offline-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.offline-banner-left i {
    font-size: 26px;
    color: #ff5a00;
}

.offline-banner-left strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.offline-banner-left p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.offline-banner-btn {
    background: #26262b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.offline-banner-btn:hover {
    background: #32323a;
}

.downloads-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.downloads-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.download-track-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
    border-radius: 5px;
    background-color: transparent;
    /*border: 1px solid rgba(255, 255, 255, 0.05);*/
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.download-track-card:hover {
    background-color: #272727;
    /*transform: translateY(-2px);*/
}

.download-track-cover {
    width: 46px;
    height: 46px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.download-track-info {
    flex: 1;
    min-width: 0;
}

.download-track-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-track-artist {
    font-size: 12.5px;
    color: #9ba1a6;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #8e8e93;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.download-delete-btn:hover {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

.empty-downloads-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8e8e93;
}

.empty-downloads-state i {
    font-size: 48px;
    color: #48484a;
    margin-bottom: 12px;
    display: block;
}

.electron-only {
    display: none !important;
}

/* Quando o JS detecta window.electronAPI, ele adiciona .is-electron-app no body */
body.is-electron-app .epic-tab.electron-only,
body.is-electron-app .sp-btn-icon.electron-only,
body.is-electron-app #plDownloadSheetBtn.electron-only,
body.is-electron-app #sheetDownloadBtn.electron-only,
body.is-electron-app li.electron-only {
    display: inline-flex !important;
}

body.is-electron-app .tab-page#tab-downloads.active {
    display: block !important;
}

/* CARDS DE PLAYLISTS BAIXADAS */
.downloads-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.download-playlist-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.download-playlist-card:hover {
    background: linear-gradient(135deg, #272727 0%, #141418 100%);
    /*transform: translateY(-2px);
    border-color: rgba(255, 90, 0, 0.4);*/
}

.download-pl-cover-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.download-pl-cover {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.download-pl-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff5a00;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.download-playlist-card:hover .download-pl-play {
    opacity: 1;
    transform: scale(1);
}

.download-pl-meta {
    flex: 1;
    min-width: 0;
}

.hide {
    display: none;
}

/* POPUP CONFIGURAÇÕES */
:root {
    --OverlayBg: #000000b8;
    --bordaSt: #ffffff30;
    --botõesHover: #ffffff0f;
    --scrollbarConf: #ffffff1a;
    --scrollbarConfHover: #ffffff6d;
    --categoriaCor: #ffffff69;
    --stNavItem: transparent;
    --stNavItemTxt: #b5bac1;
    --stNavItemHoverTxt: #dbdee1;
    --stNavItemStd: #ffffff39;
    --stNavItemStdTxt: #fff;
}

.dc-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--OverlayBg);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dc-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dc-settings-modal {
    width: 100%;
    max-width: 1040px;
    height: 85vh;
    max-height: 760px;
    border-radius: 12px;
    border: 1px solid var(--bordaSt);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    display: flex;
    overflow: hidden;
    color: #f2f3f5;
    background-color: #0e0e0e;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.dc-modal-overlay.is-open .dc-settings-modal {
    transform: scale(1) translateY(0);
}

/* SIDEBAR ESQUERDA */
.dc-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    border-right: 1px solid var(--bordaSt);
    flex-shrink: 0;
}

/* Card do Usuário no Topo */
.dc-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 12px;
}

.dc-user-card:hover {
    background: var(--botõesHover);
}

.dc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.dc-user-info {
    display: flex;
    flex-direction: column;
}

.dc-username {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.dc-edit-sub {
    font-size: 12px;
    color: #949ba4;
}

/* Caixa de Pesquisa */
.dc-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    margin-bottom: 14px;
}

.dc-search-box input {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    padding: 0;
    margin: 0;
    color: #f2f3f5;
    font-size: 13.5px;
    width: 90%;
}

.dc-search-box i {
    color: #949ba4;
    font-size: 21px;
}

.dc-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #f2f3f5;
    font-size: 13.5px;
    width: 100%;
}

/* Lista de Navegação */
.dc-nav {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
}

.dc-nav::-webkit-scrollbar {
    width: 3px;
}

.dc-nav::-webkit-scrollbar-thumb {
    background: var(--scrollbarConf);
    border-radius: 4px;
}

.dc-nav::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbarConfHover);
}

.dc-nav-category {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--categoriaCor);
    padding: 14px 10px 4px;
    letter-spacing: 0.02em;
}

.dc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: var(--stNavItem);
    color: var(--stNavItemTxt);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.dc-nav-item i {
    font-size: 18px;
}

.dc-nav-item:hover {
    background: var(--botõesHover);
    color: var(--stNavItemHoverTxt);
}

.dc-nav-item.active {
    background: var(--stNavItemStd);
    color: var(--stNavItemStdTxt);
}

.dc-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.158);
    margin: 8px 10px;
}

.dc-danger {
    color: #f23f43 !important;
}

.dc-danger:hover {
    background: rgba(242, 63, 67, 0.12) !important;
}

.dc-version-info {
    margin-top: 15px;
    font-size: 10px;
    color: #ffffff80;
    font-weight: 100;
}

/* ÁREA DE CONTEÚDO */
.dc-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dc-content-header {
    height: 60px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bordaSt);
    flex-shrink: 0;
}

.dc-content-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dc-close-btn {
    background: transparent;
    border: none;
    color: #b5bac1;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 4px;
    transition: 0.15s;
}

.dc-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.dc-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 28px 36px 60px;
}

.dc-content-scroll::-webkit-scrollbar {
    width: 4px;
}

.dc-content-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbarConf);
    border-radius: 4px;
}

.dc-content-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbarConfHover);
}

/* Controle de Abas */
.dc-tab-pane {
    display: none;
}

.dc-tab-pane.active {
    display: block;
    animation: dcFadeIn 0.15s ease;
}

@keyframes dcFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* COMPONENTES INTERNOS (QUADRADOS DE TEMA, SWITCH, CARDS)*/
.dc-section-big-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.dc-section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #dbdee1;
    margin-bottom: 12px;
}

/* Grid de Temas Quadrados igual à imagem do Discord */
.dc-theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.theme-radio {
    position: relative;
    cursor: pointer;
}

.theme-radio input {
    display: none;
}

.theme-radio .color-circle {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--theme-color);
    border: 2px solid rgba(255, 255, 255, 0.14);
    transition: all 0.15s ease;
}

.theme-radio:hover .color-circle {
    border-color: rgba(255, 255, 255, 0.35);
}

/* Grid de Fontes */
.dc-font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.font-radio input {
    display: none;
}

.font-radio .font-item {
    padding: 12px 14px;
    background: #ffffff19;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.15s;
}

.font-radio .font-item:hover {
    border-color: #ffffff5b;
}

.font-radio input:checked+.font-item {
    border-color: #fff;
    background: #5865f21a;
}

/* Linhas de Configuração & Switch estilo Discord */
.dc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}

.dc-setting-title {
    font-size: 20px;
    font-weight: 500;
    color: #f2f3f5;
}

.dc-setting-desc {
    font-size: 14px;
    color: #ffffff6b;
    margin: 4px 0 0 0;
}

.dc-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.dc-switch input {
    display: none;
}

.dc-slider {
    position: absolute;
    inset: 0;
    background: #ffffff25;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.dc-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 2.8px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.dc-switch input:checked+.dc-slider {
    background: #ff3700;
}

.dc-switch input:checked+.dc-slider::before {
    transform: translateX(18px);
}

/* Divisores e Cartões (Related Settings style) */
.dc-divider {
    height: 1px;
    background: #ffffff17;
    margin: 24px 0;
}

.dc-divider2 {
    height: 1px;
    background: transparent;
    margin: 16px 0;
}

.dc-card-list {
    display: flex;
    flex-direction: column;
    background: #ffffff13;
    border-radius: 8px;
    border: 1px solid #ffffff30;
    overflow: hidden;
    margin-top: 15px;
}

.dc-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #f2f3f5;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid #ffffff30;
    transition: background 0.15s;
}

.dc-card-row:last-child {
    border-bottom: none;
}

.dc-card-row:hover {
    background: #ffffff1a;
}

/* Badges e Inputs */
.dc-badge-beta,
.dc-badge-new {
    background: #ff3700;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-left: auto;
}

.dc-input {
    width: 100%;
    padding: 12px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 12px;
}

.dc-btn-primary {
    background: #5865f2;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.dc-btn-primary:hover {
    background: #4752c4;
}

.dc-warning-box {
    padding: 12px;
    border-radius: 6px;
    font-size: 12.5px;
    margin-bottom: 10px;
}

.dc-warning-box.red {
    background: rgba(242, 63, 67, 0.1);
    color: #f23f43;
}

.dc-warning-box.purple {
    background: rgba(139, 37, 255, 0.1);
    color: #b57cff;
}

/* TOOLTIP (ESTILOS BASE) */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after,
[data-tooltip]::before {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* O Balão */
[data-tooltip]::after {
    content: attr(data-tooltip);
    background-color: #28292c;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffff45;
}

/* A Setinha (Base) */
[data-tooltip]::before {
    content: "";
    border-style: solid #fff;
}

/* Animação Hover Geral */
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* DIREÇÕES */
/* TOP (Padrão) */
[data-tooltip]:not([data-position])::after,
[data-tooltip][data-position="top"]::after {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
}

[data-tooltip]:not([data-position])::before,
[data-tooltip][data-position="top"]::before {
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px 5px 0 5px;
    border-color: #1f2937 transparent transparent transparent;
}

[data-tooltip]:not([data-position]):hover::after,
[data-tooltip][data-position="top"]:hover::after,
[data-tooltip]:not([data-position]):hover::before,
[data-tooltip][data-position="top"]:hover::before {
    transform: translateX(-50%) translateY(0);
}

/* BOTTOM */
[data-tooltip][data-position="bottom"]::after {
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
}

[data-tooltip][data-position="bottom"]::before {
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #1f2937 transparent;
}

[data-tooltip][data-position="bottom"]:hover::after,
[data-tooltip][data-position="bottom"]:hover::before {
    transform: translateX(-50%) translateY(0);
}

/* LEFT */
[data-tooltip][data-position="left"]::after {
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
}

[data-tooltip][data-position="left"]::before {
    right: calc(100% + 3px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #1f2937;
}

[data-tooltip][data-position="left"]:hover::after,
[data-tooltip][data-position="left"]:hover::before {
    transform: translateY(-50%) translateX(0);
}

/* RIGHT */
[data-tooltip][data-position="right"]::after {
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
}

[data-tooltip][data-position="right"]::before {
    left: calc(100% + 3px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    border-width: 5px 5px 5px 0;
    border-color: transparent #1f2937 transparent transparent;
}

[data-tooltip][data-position="right"]:hover::after,
[data-tooltip][data-position="right"]:hover::before {
    transform: translateY(-50%) translateX(0);
}

/* MODAIS */
.msc-options-md {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 450px;
  width: 100%;
  background: #18181b;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: 
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    overlay 0.28s ease allow-discrete,
    display 0.28s ease allow-discrete;
}

.msc-options-md[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .msc-options-md[open] {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
}

/* Fundo Escuro (Backdrop) - Estado Fechado */
.msc-options-md::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: 
    background-color 0.28s ease,
    backdrop-filter 0.28s ease,
    overlay 0.28s ease allow-discrete,
    display 0.28s ease allow-discrete;
}

/* Fundo Escuro (Backdrop) - Estado Aberto */
.msc-options-md[open]::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

@starting-style {
  .msc-options-md[open]::backdrop {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

/* Espaçamento interno para proteger o conteúdo */
.msc-options-md-inner {
  padding: 15px;
  
}

body.modal-open {
    overflow: hidden;
}

/* Responsivo para Celular */
@media (max-width: 768px) {
    .dc-settings-modal {
        flex-direction: column;
        height: 95vh;
    }

    .dc-sidebar {
        width: 100%;
        height: auto;
        max-height: 35%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* Ajuste para telas de celular */
@media (max-width: 600px) {
    .carousel-slide {
        padding: 24px 20px 60px 20px;
        min-height: 220px;
    }

    .slide-content h3 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 13px;
    }

    .carousel-controls-bar {
        left: 20px;
        right: 16px;
        bottom: 12px;
    }
}

/* Responsividade (Celulares) */
@media (max-width: 900px) {

    .epic-action-pill p,
    .epic-profile .userText,
    .epic-history-nav {
        display: none;
    }

    .epic-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .epic-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 600px) {

    /* Se no celular você já usa a barra inferior (.nav_c), 
       podemos esconder as abas do topo no mobile ou deixar só a logo e ações */
    .epic-tabs {
        display: none;
    }
}