    :root {
        --bg-color: #0c0c0f; /* Tom mais profundo e cinematográfico */
        --primary-accent: #3b82f6; /* Mantido para consistência de marca */
        --primary-accent-hover: #2563eb;
        --card-bg: #1a1a1f; /* Cor do card base */
        --card-bg-hover: #2c2c33; /* Cor do conteúdo revelado no hover */
        --text-primary: #f0f0f5; /* Branco suave para conforto visual */
        --text-secondary: #a0a0af; /* Secundário com leve tom azulado */
        --border-color: #2a2a30;
        --plyr-color-main: var(--primary-accent);
    }

	/* =================================================================== */
	/* RESET E LAYOUT GLOBAL
	/* =================================================================== */
  #streab-nuvem-scope {
    font-family: 'Netflix Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;

    /* --- NOVAS REGRAS PARA OCUPAR A TELA TODA --- */
    position: fixed;    /* Fixa o elemento na janela do navegador */
    top: 0;
    left: 0;
    width: 100%;        /* Ocupa 100% da largura da janela */
    height: 100%;       /* Ocupa 100% da altura da janela */
    overflow-y: auto;   /* Adiciona uma barra de rolagem INTERNA se o conteúdo for maior que a tela */
    z-index: 999;       /* Garante que fique por cima de qualquer elemento do tema */
  }

  #streab-generic-modal, #streab-player-modal {
      font-family: 'Netflix Sans', sans-serif;
  }

	.painel-container {
		max-width: 1800px;
		margin: 0 auto;
		padding: 0 4vw; /* Espaçamento lateral responsivo */
		box-sizing: border-box;
		animation: fadeInMain 0.8s ease-out;
	}
	
	@keyframes fadeInMain {
		from { opacity: 0; transform: translateY(20px); }
		to { opacity: 1; transform: translateY(0); }
	}

    .page-template-default #main-content .container {
		width: 100% !important;
		max-width: 100% !important;
        padding: 0 !important;
	}
    body.page-template-default {
        background-color: var(--bg-color);
    }

	/* =================================================================== */
	/* TELAS DE ACESSO NEGADO / LOGIN
	/* =================================================================== */
	.login-warning-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 70vh;
		text-align: center;
		color: var(--text-primary);
	}
	.login-warning-container h1 {
		font-size: clamp(2rem, 5vw, 2.8rem);
		font-weight: 800;
		margin-bottom: 20px;
        color: var(--text-primary);
	}
	.login-warning-container p {
		font-size: clamp(1rem, 2vw, 1.2rem);
		line-height: 1.6;
		margin-bottom: 32px;
		color: var(--text-secondary);
		max-width: 600px;
	}
	.login-warning-container .cta-button {
		display: inline-block;
		background: var(--primary-accent);
		color: white;
		padding: 16px 36px;
		border-radius: 8px;
		font-size: 1.1rem;
		font-weight: 600;
		text-decoration: none;
		transition: background-color 0.3s ease, transform 0.3s ease;
	}
	.login-warning-container .cta-button:hover {
		background: var(--primary-accent-hover);
		transform: scale(1.05);
	}

	/* =================================================================== */
	/* CABEÇALHO DO PAINEL
	/* =================================================================== */
	.painel-header {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 20px;
		margin-bottom: 30px;
	}
	.painel-header .header-title h1 {
		font-size: clamp(1.8rem, 4vw, 2.5rem);
		font-weight: 800;
		margin: 0;
        line-height: 1.2;
	}
    .painel-header .header-title p {
        color: var(--text-secondary);
        margin-top: 8px;
    }
	#tags-cursos {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		justify-content: flex-start;
        flex-grow: 1;
	}
	.tag-curso {
		display: inline-flex;
		align-items: center;
		background: var(--card-bg);
		color: var(--text-secondary);
		padding: 10px 20px;
		border-radius: 8px;
		font-weight: 600;
		font-size: 14px;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
		border: 1px solid var(--border-color);
		position: relative;
	}
	.tag-curso:hover {
		background: var(--card-bg-hover);
		color: var(--text-primary);
	}
	.tag-curso.ativa {
		background: var(--primary-accent);
		color: white;
		border-color: var(--primary-accent);
	}
	.tag-curso .btn-excluir-curso {
		background: transparent; border: none; color: var(--text-secondary); font-size: 16px;
		cursor: pointer; padding: 0; margin-left: 10px; line-height: 1; opacity: 0.6; transition: all 0.2s ease;
	}
	.tag-curso:hover .btn-excluir-curso {
		opacity: 1; color: #fca5a5;
	}
    #btn-criar-curso-tag {
        background: transparent;
        border: 1px dashed var(--border-color);
    }
     #btn-criar-curso-tag:hover {
        background: var(--card-bg);
        border-color: var(--primary-accent);
    }

	/* =================================================================== */
	/* FILTROS E BUSCA
	/* =================================================================== */
	.filtros-e-busca-container {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 20px;
		margin-bottom: 40px;
	}
	.filtro-grupo {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.filtro-grupo label {
		font-weight: 600;
		color: var(--text-secondary);
		font-size: 14px;
	}
	.filtro-grupo select, .filtro-grupo button {
		padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border-color);
		background-color: var(--card-bg); color: var(--text-primary); cursor: pointer;
		font-size: 14px; font-weight: 500; transition: background-color 0.2s;
	}
	.filtro-grupo select:focus, .filtro-grupo button:focus {
		outline: none; box-shadow: 0 0 0 2px var(--primary-accent);
	}
    .filtro-grupo button:hover {
        background-color: var(--card-bg-hover);
    }
	.busca-global-wrapper {
        position: relative;
	}
	#input-busca-global {
		width: 100%; max-width: 350px; display: block;
		padding: 12px 20px 12px 48px;
		font-size: 15px; border: 1px solid var(--border-color); border-radius: 8px;
        background-color: var(--card-bg);
        color: var(--text-primary);
        transition: all 0.2s ease;
	}
    #input-busca-global::placeholder { color: var(--text-secondary); }
    #input-busca-global:focus {
        outline: none; box-shadow: 0 0 0 2px var(--primary-accent);
        background-color: var(--card-bg-hover);
    }
    .busca-global-wrapper::before {
        content: '\f002'; /* Font Awesome search icon */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        font-size: 16px;
    }

	/* =================================================================== */
	/* CARROSSEL DE CURSOS E MÓDULOS
	/* =================================================================== */
	.carousel-row {
		margin-bottom: 50px;
		position: relative;
	}
	.carousel-row h2.carousel-title {
		font-size: clamp(1.3rem, 2.5vw, 1.7rem);
		font-weight: 700;
		margin: 0 0 15px 0;
		color: var(--text-primary);
	}
	.carousel-wrapper {
		position: relative;
	}
  .videos-grid {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      -ms-overflow-style: none;
      scrollbar-width: none;
      padding: 10px 0;
      margin: 0 -10px;
      scroll-padding: 0 4vw; /* ADICIONE (ou ajuste) esta linha */
      scroll-snap-type: x mandatory;
      /* ADICIONE as duas linhas abaixo */
      -webkit-mask-image: linear-gradient(to right, transparent, black 4vw, black calc(100% - 4vw), transparent);
      mask-image: linear-gradient(to right, transparent, black 4vw, black calc(100% - 4vw), transparent);
  }
	.videos-grid::-webkit-scrollbar { display: none; }
    .videos-grid.is-grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        overflow-x: hidden;
        gap: 20px;
    }
	.carousel-nav {
		position: absolute; top: 50%; transform: translateY(-50%);
		background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
		border: 1px solid rgba(255, 255, 255, 0.1);
		color: white; width: 50px; height: 50px; border-radius: 50%;
		display: none; align-items: center; justify-content: center;
		font-size: 24px; cursor: pointer; z-index: 20;
		opacity: 0; transition: opacity 0.3s, transform 0.3s;
	}
	.carousel-wrapper:hover .carousel-nav { opacity: 1; }
	.carousel-nav.prev { left: -25px; }
	.carousel-nav.next { right: -25px; }
    .carousel-nav:hover { background: var(--primary-accent); border-color: var(--primary-accent); transform: translateY(-50%) scale(1.1); }


  /* =================================================================== */
  /* CARD DE VÍDEO (ESTILO NETFLIX) - VERSÃO CORRIGIDA
  /* =================================================================== */

  /* --- 1. ESTILOS BASE (Aplicados em todos os dispositivos) --- */

  .video-card-wrapper {
    flex-shrink: 0;
    width: 280px;
    opacity: 0;
    animation: fadeInAnimation 0.5s ease-out forwards;
    scroll-snap-align: start;
  }

  @keyframes fadeInAnimation {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  .video-card {
    position: relative; 
    background: var(--card-bg);
    border-radius: 6px; 
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s;
    transform-origin: center center;
    z-index: 1;
  }

  .video-thumb-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: var(--card-bg-hover);
    cursor: pointer;
    border-radius: 6px;
  }

  .video-thumb-container img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
  }

  .video-thumb-container::after { /* Gradiente para dar profundidade */
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; right: 0; 
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: opacity 0.3s;
  }

  .video-card-title-static {
    position: absolute;
    bottom: 10px; left: 12px; right: 12px;
    color: white; 
    font-weight: 600; 
    font-size: 15px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    z-index: 2;
    transition: opacity 0.3s;
  }

  .video-card-content {
    padding: 16px;
    background-color: var(--card-bg-hover);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 6px 6px;
    /* Impede cliques "fantasma" nos botões escondidos no celular */
    pointer-events: none; 
  }

  .video-card-content h3 {
    font-size: 16px; 
    font-weight: 600; 
    margin: 0 0 8px 0;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    color: var(--text-primary);
  }

  .video-card .card-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .card-icon-btn-group {
    display: flex;
    gap: 8px;
  }

  .card-icon-btn {
    background: rgba(42, 42, 42, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 16px; 
    color: white; 
    transition: all 0.2s;
  }

  .card-icon-btn.favorited { 
    color: #facc15; 
  }

  .btn-play-circle {
    background: white; 
    color: black; 
    font-size: 18px;
  }

  .video-card .card-actions-bottom {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .video-card .card-actions-bottom button {
    background-color: #3f3f3f; 
    border: none; 
    color: #e0e0e0;
    padding: 6px 10px; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 500;
    cursor: pointer; 
    flex-grow: 1; 
    transition: all 0.2s;
  }

  .video-card.completed { 
    opacity: 0.7; 
  }

  .video-card.completed .video-thumb-container::before {
    content: '✓'; 
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; 
    background-color: var(--primary-accent); 
    color: white;
    border-radius: 50%; 
    z-index: 11; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold; 
    font-size: 14px;
    border: 2px solid var(--bg-color);
  }


    /* =================================================================== */
    /* [NOVO] ESTILOS DO CATÁLOGO DA COMUNIDADE
    /* =================================================================== */

    /* 1. Botão de Menu Premium */
    .sidebar-nav li a.premium-link {
        font-weight: 700;
        color: #f0f0f5;
        background: linear-gradient(45deg, #8a2be2, #3b82f6); /* Gradiente Roxo-Azul */
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        border-left-color: #fbbf24; /* Borda dourada para destaque */
    }
    .sidebar-nav li a.premium-link:hover,
    .sidebar-nav li a.premium-link.ativa {
        background: linear-gradient(45deg, #9932CC, #2563eb);
        color: white;
    }
    .sidebar-nav li a.premium-link i {
        color: #fbbf24; /* Ícone dourado */
    }

    /* 2. Grade de Cursos do Catálogo */
    .catalogo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 20px 0;
    }
    .catalogo-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        aspect-ratio: 16/9; /* Proporção de cinema */
        background-color: var(--card-bg);
    }
    .catalogo-card:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    }
    .catalogo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .catalogo-card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 30px 16px 16px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
    }
    .catalogo-card-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
        margin: 0;
    }

    /* 3. Modal de Detalhes do Curso */
    .curso-detalhes-modal-content {
        text-align: left;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    .curso-detalhes-header {
        position: relative;
        height: 40vh;
        min-height: 250px;
        width: 100%;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 24px;
        box-sizing: border-box;
        border-radius: 16px 16px 0 0;
    }
    .curso-detalhes-header::after { /* Gradiente para legibilidade */
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: linear-gradient(to top, rgba(12, 12, 15, 1) 15%, transparent 60%);
    }
    .curso-detalhes-header .curso-titulo {
        position: relative;
        z-index: 2;
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 800;
        margin: 0 0 10px 0;
        color: white;
        text-shadow: 0 4px 10px rgba(0,0,0,0.7);
    }
    .curso-detalhes-body {
        padding: 24px;
        flex-grow: 1;
        overflow-y: auto;
    }
    .curso-detalhes-body .curso-descricao {
        font-size: 1.1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 30px;
    }
    .curso-aulas-lista {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px; /* Espaço reduzido entre as aulas */
    }
    .modulo-header {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-top: 25px; /* Espaço acima de um novo módulo */
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }
    .modulo-header:first-of-type {
        margin-top: 0; /* Remove a margem do topo para o primeiro módulo da lista */
    }
    .curso-aulas-lista li {
        display: flex;
        align-items: center;
        gap: 15px;
        background-color: var(--card-bg-hover);
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    .curso-aulas-lista .aula-thumb {
        width: 120px;
        height: 67.5px;
        flex-shrink: 0;
        border-radius: 4px;
        object-fit: cover;
    }
    .curso-aulas-lista .aula-info {
        flex-grow: 1;
        min-width: 0; /* Para o text-overflow funcionar */
    }
    .curso-aulas-lista .aula-info h4 {
        margin: 0;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-primary); /* <-- ADICIONE ESTA LINHA */
    }
    .curso-aulas-lista .aula-play-btn {
        width: 40px; height: 40px;
        background-color: var(--primary-accent);
        border: none; border-radius: 50%;
        color: white; font-size: 1rem;
        flex-shrink: 0; cursor: pointer;
        transition: transform 0.2s ease;
    }
    .curso-aulas-lista .aula-play-btn:hover {
        transform: scale(1.1);
    }
  /* --- 2. EFEITOS DE HOVER (Aplicados APENAS em dispositivos com mouse) --- */

    @media (hover: hover) {
    .video-card:hover {
        transform: scale(1.15);
        box-shadow: 0px 0px 15px rgba(0,0,0,0.3),
                    0px 8px 30px rgba(0,0,0,0.4),
                    0px 25px 50px rgba(59, 130, 246, 0.15);
        z-index: 10;
        transition-delay: 0s, 0s, 0s;
    }

    /* Efeito de brilho que segue o mouse */
    .video-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        border-radius: 6px;
        background: radial-gradient(
            600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.08),
            transparent 40%
        );
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 2; /* Garante que fique sobre a imagem */
        pointer-events: none;
    }
    .video-card:hover::before {
        opacity: 1;
    }

    .video-card:hover .video-card-content {
      opacity: 1;
      transform: translateY(0);
      /* Permite que os botões sejam clicáveis quando visíveis */
      pointer-events: auto;
    }
    
    .video-card:hover .video-thumb-container::after {
      opacity: 0;
    }
    
    .video-card:hover .video-card-title-static {
      opacity: 0;
    }

    .card-icon-btn {
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
    }

    .card-icon-btn:hover {
        transform: scale(1.2); /* Efeito de "pulo" */
        background: var(--primary-accent);
        border-color: var(--primary-accent);
    }

    .card-icon-btn.favorited:hover i {
        animation: pulseStar 0.5s ease-in-out;
    }

    @keyframes pulseStar {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.3); }
    }
    
    .btn-play-circle:hover { 
      background: white !important; 
      color: black !important; 
    }

    .video-card .card-actions-bottom button:hover { 
      background-color: #555555; 
      color: white; 
    }

    .video-card.completed:hover { 
      opacity: 1; 
    }
  }

	/* =================================================================== */
	/* MODO DE SELEÇÃO E AÇÕES EM MASSA
	/* =================================================================== */
	.selection-checkbox {
		position: absolute; top: -8px; left: -8px; z-index: 12;
		width: 28px; height: 28px; cursor: pointer;
		background-color: rgba(0,0,0,0.7); border: 2px solid #fff; border-radius: 50%;
		display: none; align-items: center; justify-content: center;
		-webkit-appearance: none; appearance: none; transition: all 0.2s;
	}
	#streab-nuvem-scope.selection-mode .selection-checkbox { display: flex; }
	.selection-checkbox:checked { background-color: var(--primary-accent); border-color: var(--primary-accent); }
	.selection-checkbox:checked::after { content: '✓'; color: white; font-weight: bold; }
	.video-card.selected { box-shadow: 0 0 0 3px var(--primary-accent) !important; transform: scale(1) !important; }
    .bulk-actions-bar {
        position: fixed; bottom: 30px; left: 50%;
        background: #1d1d1d; color: white; padding: 16px 24px;
        border-radius: 12px; z-index: 10001; display: flex; align-items: center; gap: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        transform: translateX(-50%) translateY(200%);
        transition: transform 0.4s ease-in-out;
        border: 1px solid var(--border-color);
        font-family: 'Netflix Sans', sans-serif; /* <-- ADICIONE ESTA LINHA */
    }
	.bulk-actions-bar.show { transform: translateX(-50%) translateY(0); }
	.bulk-actions-bar .count { font-weight: 600; background-color: var(--primary-accent); padding: 4px 10px; border-radius: 8px; }
	.bulk-actions-bar button {
		background: #3f3f3f; color: white; border: none; padding: 10px 16px;
		border-radius: 8px; cursor: pointer; transition: background-color 0.2s;
	}
	.bulk-actions-bar button:hover { background: #555555; }
    .bulk-actions-bar button.btn-cancelar { background-color: transparent; border: 1px solid #555; }
    .bulk-actions-bar button.btn-cancelar:hover { background-color: #3f3f3f; }


	/* =================================================================== */
	/* MODAIS
	/* =================================================================== */
	.streab-modal-overlay {
		position: fixed; top: 0; left: 0; width: 100%; height: 100%;
		background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
		display: flex; align-items: center; justify-content: center;
		z-index: 10002; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
	}
	.streab-modal-overlay.show { opacity: 1; pointer-events: auto; }
  /* SUBSTITUA A SUA REGRA .streab-modal-content */
  .streab-modal-content {
      background: rgba(28, 28, 33, 0.7); /* Fundo mais transparente */
      backdrop-filter: blur(20px) saturate(150%); /* Efeito de vidro mais intenso */
      border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil de luz */
      border-radius: 16px;
      padding: 32px;
      max-width: 500px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      transform: scale(0.95);
      transition: transform 0.3s ease;
      position: relative;
  }
	.streab-modal-overlay.show .streab-modal-content { transform: scale(1); }
	.streab-modal-content h2 {
		font-size: 24px; font-weight: 700; margin: 0 0 24px 0; color: var(--text-primary);
	}
	.streab-modal-content input[type="text"] {
		width: 100%; padding: 14px 18px; font-size: 16px;
        border: 1px solid var(--border-color); background-color: var(--bg-color);
		border-radius: 10px; margin-bottom: 20px; box-sizing: border-box; color: var(--text-primary);
	}
    .streab-modal-content input[type="text"]:focus {
        outline: none; box-shadow: 0 0 0 2px var(--primary-accent); border-color: var(--primary-accent);
    }
	.streab-modal-content .btn-principal {
		background: var(--primary-accent); color: white; padding: 14px 28px;
		font-size: 16px; font-weight: 600; border-radius: 10px; border: none;
		cursor: pointer; width: 100%; transition: background-color 0.2s;
	}
    .streab-modal-content .btn-principal:hover { background-color: var(--primary-accent-hover); }
	.btn-fechar-modal {
		position: absolute; top: 16px; right: 16px; background: var(--card-bg-hover);
		border: none; font-size: 16px; color: var(--text-secondary); cursor: pointer;
		width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
		transition: all 0.2s ease; z-index: 10001;
	}
	.btn-fechar-modal:hover { background: #444; transform: rotate(90deg); color: white;}
    #conteudo-atribuir-curso {
        display: flex; flex-direction: column; gap: 10px;
        max-height: 40vh; overflow-y: auto; text-align: left;
    }
    #conteudo-atribuir-curso .tag-curso-modal {
        background: var(--card-bg-hover); color: var(--text-primary); border: 1px solid var(--border-color);
        padding: 12px 16px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
    }
    #conteudo-atribuir-curso .tag-curso-modal:hover { background-color: var(--primary-accent); border-color: var(--primary-accent);}
    #conteudo-atribuir-curso .tag-curso-modal span { font-size: 13px; color: var(--text-secondary); margin-left: 8px; }
    #conteudo-atribuir-curso .tag-curso-modal.modulo { padding-left: 35px; }


	/* =================================================================== */
	/* PLAYER E SKELETON
	/* =================================================================== */
    #streab-player-modal {
        /* Estado inicial: posicionado exatamente sobre o card clicado */
        top: var(--start-top, 50%);
        left: var(--start-left, 50%);
        width: var(--start-width, 0);
        height: var(--start-height, 0);
        
        /* Remove o fundo desfocado e deixa transparente no início */
        background: transparent;
        backdrop-filter: none;
        
        /* Anima todas as propriedades para uma transição suave */
        transition: all 450ms cubic-bezier(0.65, 0, 0.35, 1);
        
        /* Garante que o conteúdo não vaze durante a animação */
        overflow: hidden;
        border-radius: 6px; /* Começa com o mesmo border-radius do card */
    }

    /* Estado final: quando o modal está visível (.show) */
    #streab-player-modal.show {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: black; /* Fundo fica preto */
        border-radius: 0;
    }

    /* O conteúdo do player (o vídeo em si) */
    #streab-player-modal .streab-modal-content {
        /* Remove as animações antigas de scale/transform */
        transform: none;
        opacity: 0; /* Começa invisível */
        transition: opacity 300ms ease 250ms; /* Aparece com um leve atraso */
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    #streab-player-modal.show .streab-modal-content {
        opacity: 1; /* Fica visível no estado final */
    }

    /* O botão de fechar também aparece suavemente */
    #streab-player-modal .btn-fechar-modal {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    #streab-player-modal.show .btn-fechar-modal {
        opacity: 1;
    }

	.skeleton-card {
		width: 280px; flex-shrink: 0; background-color: var(--card-bg);
		border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color);
	}
	.skeleton-card .thumb { padding-bottom: 56.25%; background-color: var(--card-bg-hover); }
	.skeleton-card .line { height: 16px; border-radius: 4px; margin: 16px 16px 0 16px; background-color: var(--card-bg-hover); }
	.skeleton-card .line-2 { width: 60%; margin-top: 8px; margin-bottom: 16px; height: 12px;}
	.skeleton-placeholder { position: relative; overflow: hidden; }
	.skeleton-placeholder::after {
		content: ''; position: absolute; top: 0; left: -150%; width: 150%; height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
		animation: shimmer 1.5s infinite;
	}
	@keyframes shimmer { 100% { left: 150%; } }

  /* =================================================================== */
  /* TOASTS E OUTROS (ESTILO NETFLIX)
  /* =================================================================== */
  #streab-toast-container { 
      position: fixed; 
      bottom: 20px; 
      right: 20px; 
      z-index: 99999; 
      display: flex; 
      flex-direction: column; 
      gap: 12px; 
  }

  .streab-toast {
      display: flex;
      align-items: center;
      min-width: 320px;
      padding: 16px 22px;
      border-radius: 8px;
      color: var(--text-primary);
      
      font-family: 'Netflix Sans', sans-serif; /* <-- ADICIONE ESTA LINHA */
      font-weight: 500;
      
      /* O fundo de vidro */
      background: rgba(28, 28, 33, 0.75);
      backdrop-filter: blur(12px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

      /* Animação de entrada */
      animation: toast-in 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
  }

  /* Indicador lateral de cor, em vez de fundo completo */
  .streab-toast.success {
      border-left: 4px solid #22c55e; /* Verde sutil */
  }

  .streab-toast.error {
      border-left: 4px solid #ef4444; /* Vermelho sutil */
  }

  /* Estilo para o ícone que vamos adicionar via JS */
  .streab-toast .toast-icon {
      font-size: 1.2rem;
      margin-right: 15px;
      line-height: 1;
  }

  /* Colore o ícone para combinar com a borda */
  .streab-toast.success .toast-icon {
      color: #22c55e;
  }

  .streab-toast.error .toast-icon {
      color: #ef4444;
  }

  /* Animação de entrada e saída melhorada */
  @keyframes toast-in {
      from {
          opacity: 0;
          transform: translateY(20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes toast-out {
      from {
          opacity: 1;
          transform: translateY(0);
      }
      to {
          opacity: 0;
          transform: translateY(20px);
      }
  }

    /* =================================================================== */
    /* [CORREÇÃO] ESTILIZAÇÃO PREMIUM DO PLAYER (PLYR.JS)
    /* Adicionamos #streab-player-modal no início de cada seletor
    /* para aumentar a especificidade e garantir que estes estilos sejam aplicados.
    /* =================================================================== */

    #streab-player-modal .streab-modal-content {
        overflow: hidden;
        box-shadow: 0 0 80px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.3);
    }
    
    #streab-player-modal #streab-player {
        border-radius: 16px;
    }

    #streab-player-modal .plyr__control--overlaid {
        background: rgba(26, 26, 31, 0.8);
        width: 80px;
        height: 80px;
        border-radius: 50%;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }

    #streab-player-modal .plyr__control--overlaid:hover {
        background: var(--primary-accent);
        transform: scale(1.1);
    }

    #streab-player-modal .plyr--video .plyr__controls {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
        padding: 20px 10px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    #streab-player-modal .plyr--video .plyr__controls .plyr__control {
        background: transparent;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    #streab-player-modal .plyr__progress input[type=range] {
        color: var(--primary-accent);
        height: 5px;
        transition: height 0.2s ease;
    }
    #streab-player-modal .plyr__progress input[type=range]:hover {
        height: 8px;
    }

    #streab-player-modal .plyr--video .plyr__control.plyr__tab-focus {
        box-shadow: 0 0 0 3px var(--primary-accent-hover);
        outline: none;
    }

    #streab-player-modal .player-title {
        position: absolute;
        top: 25px;
        left: 30px;
        z-index: 15;
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 5px rgba(0,0,0,0.7);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    #streab-player-modal .plyr--video.plyr--controls-visible .player-title {
        opacity: 1;
    }
    
/* =================================================================== */
/* [NOVA SKIN] Video.js Estilo Netflix Moderno (Compilado de SCSS)
/* Baseado na skin de CodePen por @heff.
/* =================================================================== */

/* Definição da fonte de ícones da Netflix, crucial para a skin funcionar */
@font-face {
  font-family: 'nf-icon';
  src: url(https://assets.nflxext.com/ffe/siteui/fonts/nf-icon-v1-86.eot);
  src: url(https://assets.nflxext.com/ffe/siteui/fonts/nf-icon-v1-86.eot?#iefix) format('embedded-opentype'), 
       url(https://assets.nflxext.com/ffe/siteui/fonts/nf-icon-v1-86.woff) format('woff'), 
       url(https://assets.nflxext.com/ffe/siteui/fonts/nf-icon-v1-86.ttf) format('truetype'), 
       url(https://assets.nflxext.com/ffe/siteui/fonts/nf-icon-v1-86.svg#nf-icon-v1-86) format('svg');
  font-weight: 400;
  font-style: normal;
}

/* Classe principal para ativar a nossa nova skin */
.vjs-theme-modern-netflix {
  font-size: 16px;
  color: #cacaca; /* Cor primária de ícones e texto */
}

/* Botão de Play Principal (no centro) */
.vjs-theme-modern-netflix .vjs-big-play-button {
  font-size: 4em;
  line-height: 1.5em;
  height: 1.5em;
  width: 1.5em;
  border: 0.06666em solid #b7090b; /* Cor secundária (vermelho) */
  border-radius: 50%;
  /* Centralização */
  left: 50%;
  top: 40%;
  margin-left: -0.75em; /* Metade da largura */
  margin-top: -0.75em;  /* Metade da altura */
  /* A skin original esconde o botão, mas vamos mostrá-lo. Se quiser esconder, troque para 'none' */
  display: block; 
}

/* Ícones da barra de controle usando a fonte da Netflix */
.vjs-theme-modern-netflix .vjs-control:before {
  font-family: 'nf-icon';
}

.vjs-theme-modern-netflix .vjs-play-control:before {
  content: '\e646';
}

.vjs-theme-modern-netflix .vjs-play-control.vjs-playing:before {
  content: '\e645';
}

.vjs-theme-modern-netflix .vjs-fullscreen-control:before {
  content: '\e642';
}

.vjs-theme-modern-netflix .vjs-volume-menu-button:before {
  content: '\e630';
}

.vjs-theme-modern-netflix .vjs-captions-button:before {
  content: '\e650';
}

/* Fundo da barra de controles e menus */
.vjs-theme-modern-netflix .vjs-control-bar,
.vjs-theme-modern-netflix .vjs-big-play-button,
.vjs-theme-modern-netflix .vjs-menu-button .vjs-menu-content {
  background-color: #262626;
  background-color: rgba(38, 38, 38, 0.9);
}

/* Estilo e posicionamento da barra de controles */
.vjs-theme-modern-netflix .vjs-control-bar {
  width: auto;
  left: 4em;
  right: 4em;
  bottom: 2em;
  border-radius: 0.5em;
}
/* Faz a barra de progresso aparecer ao passar o mouse */
.vjs-theme-modern-netflix .vjs-control-bar:hover .vjs-progress-control {
  opacity: 1;
  top: -2.5em;
}

.vjs-theme-modern-netflix.vjs-fullscreen .vjs-control-bar {
  bottom: 4em;
}

/* Slider de volume e progresso */
.vjs-theme-modern-netflix .vjs-slider {
  background-color: #2b2b2b;
  background-color: rgba(43, 43, 43, 0.8);
  border-radius: 1em;
  margin: 0;
}

/* Progresso já assistido */
.vjs-theme-modern-netflix .vjs-play-progress {
  color: #b7090b;
  background-color: #b7090b;
  font-size: 1.3em;
  border-radius: 1em;
}

/* Bolinha no final da barra de progresso */
.vjs-theme-modern-netflix .vjs-play-progress:before {
  transition: width .1s ease-out, height .1s ease-out;
  content: "";
  top: -0.2em;
  border: 0;
  background: radial-gradient(#b7090b 33%, #830607);
  width: 1em;
  height: 1em;
  border-radius: 50%;
  box-shadow: #000 0 0 2px;
}
.vjs-theme-modern-netflix .vjs-play-progress:hover:before {
  width: 1.1em;
  height: 1.1em;
}

/* Posicionamento flutuante da barra de progresso */
.vjs-theme-modern-netflix .vjs-progress-control {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 4em 0 0.4em;
  top: -2.3em; /* Posição inicial (acima, mas perto) */
  border-radius: 1em;
  transition: top 150ms linear, opacity 150ms linear;
  z-index: 1;
  opacity: 0; /* Começa escondido */
}

/* Barra de vídeo carregado (buffer) */
.vjs-theme-modern-netflix .vjs-load-progress {
  background: rgba(43, 43, 43, 0.5);
  border-radius: 1em;
  height: 0.9em !important;
}

.vjs-theme-modern-netflix .vjs-load-progress div {
  background: rgba(43, 43, 43, 0.75);
  border-radius: 1em;
  height: 0.9em !important;
}

/* Spinner de loading customizado da Netflix */
.vjs-theme-modern-netflix .vjs-loading-spinner {
  border: none;
}
.vjs-theme-modern-netflix .vjs-loading-spinner:before,
.vjs-theme-modern-netflix .vjs-loading-spinner:after {
  border: none;
}
.vjs-theme-modern-netflix .vjs-loading-spinner:after {
  background-image: url(https://assets.nflxext.com/en_us/pages/wiplayer/site-spinner.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100%;
}
.vjs-theme-modern-netflix.vjs-seeking .vjs-loading-spinner:after,
.vjs-theme-modern-netflix.vjs-waiting .vjs-loading-spinner:after {
  animation: vjs-spinner-spin 1.1s linear infinite;
}

/* 1. Esconde permanentemente o botão de play central padrão desta skin */
.vjs-theme-modern-netflix .vjs-big-play-button {
    display: none !important;
}

/* 2. Cria nosso overlay de loading personalizado */
.vjs-custom-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fundo preto para cobrir o vídeo carregando */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

/* 3. Classe para esconder o overlay de loading */
.vjs-custom-loading-overlay.is-hidden {
    opacity: 0;
    pointer-events: none; /* Permite clicar no vídeo após o loading */
}

/* 4. A animação do spinner (reaproveitando e melhorando a que já tínhamos) */
.vjs-custom-loading-overlay::after {
    content: '';
    display: block;
    width: 80px; /* Tamanho maior para mais destaque */
    height: 80px;
    background-image: url(https://assets.nflxext.com/en_us/pages/wiplayer/site-spinner.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    animation: vjs-spinner-spin 1.1s linear infinite;
}

/* 5. Efeito de fade-in para o vídeo */
.vjs-theme-modern-netflix .vjs-tech {
    opacity: 0;
    transition: opacity 400ms ease-in-out;
}

.vjs-theme-modern-netflix.vjs-has-started .vjs-tech {
    opacity: 1;
}

/* =================================================================== */
/* [COMPONENTE] Dropdown de Ordenação Customizado
/* =================================================================== */

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-wrapper .select-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Netflix Sans', sans-serif;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 180px; /* Largura fixa para consistência */
}

.custom-select-wrapper .select-selected:hover {
    background-color: var(--card-bg-hover);
}

.custom-select-wrapper.open .select-selected {
    box-shadow: 0 0 0 2px var(--primary-accent);
}

.custom-select-wrapper .select-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.custom-select-wrapper.open .select-arrow {
    transform: rotate(180deg);
}

.custom-select-wrapper .select-items {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--card-bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-select-wrapper.open .select-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-wrapper .select-items div {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: var(--text-secondary);
}

.custom-select-wrapper .select-items div:hover {
    background-color: var(--primary-accent);
    color: white;
}
/* =================================================================== */
/* [COMPONENTE] Modal de Confirmação
/* =================================================================== */

.streab-modal-content .modal-confirmation-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.streab-modal-content .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.streab-modal-content .modal-actions .btn-modal-action {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
}

.streab-modal-content .modal-actions .btn-confirmar {
    background-color: #e50914; /* Vermelho Netflix */
    color: white;
}
.streab-modal-content .modal-actions .btn-confirmar:hover {
    background-color: #f6121d;
    transform: scale(1.03);
}

.streab-modal-content .modal-actions .btn-cancelar-modal {
    background-color: var(--card-bg-hover);
    color: var(--text-primary);
}
.streab-modal-content .modal-actions .btn-cancelar-modal:hover {
    background-color: #444;
}

/* =================================================================== */
/* [TIPOGRAFIA] Carregamento da Fonte Netflix Sans (Self-Hosted)
/* =================================================================== */

/* --- Netflix Sans Regular (Peso 400) --- */
@font-face {
    font-family: 'Netflix Sans';
    src: url('https://streab.com/panel/wp-content/themes/dilabs-child/streab_streaming_fonts/NetflixSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Netflix Sans Medium (Peso 500) --- */
@font-face {
    font-family: 'Netflix Sans';
    src: url('https://streab.com/panel/wp-content/themes/dilabs-child/streab_streaming_fonts/NetflixSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --- Netflix Sans Light (Peso 300) --- */
@font-face {
    font-family: 'Netflix Sans';
    src: url('https://streab.com/panel/wp-content/themes/dilabs-child/streab_streaming_fonts/NetflixSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* --- Netflix Sans Bold (Peso 700) --- */
@font-face {
    font-family: 'Netflix Sans';
    src: url('https://streab.com/panel/wp-content/themes/dilabs-child/streab_streaming_fonts/NetflixSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =================================================================== */
/* [FUNCIONALIDADE] Estilo do Botão e Modal de QR Code
/* =================================================================== */

/* Estilo para o novo botão de QR Code no cabeçalho */
.btn-qr-code {
    padding: 0;
    width: 42px; /* Largura e altura iguais para ser um círculo/quadrado perfeito */
    height: 42px;
    font-size: 18px; /* Tamanho do ícone */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteúdo do modal de QR Code */
#streab-generic-modal .qr-code-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#streab-generic-modal #qrcode-display-container {
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

#streab-generic-modal #qrcode-display {
    width: 180px;
    height: 180px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#streab-generic-modal .qr-code-warning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 400px;
    text-align: center;
}

#streab-generic-modal .qr-code-warning strong {
    color: #e50914; /* Vermelho Netflix */
}
/* =================================================================== */
/* [COMPONENTE] Widget Fixo de QR Code
/* =================================================================== */

/* Garante que o painel-header seja a referência para o posicionamento */
.painel-header {
    position: relative;
}

.header-actions {
    position: absolute;
    top: 25px; 
    right: 4vw; 
    z-index: 20; /* Adicione esta linha */
}

.qr-widget {
    display: flex;
    flex-direction: column; /* Itens empilhados: QR Code em cima, texto embaixo */
    align-items: center;
    gap: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 144px; /* Largura fixa para o widget */
}

.header-actions {
    position: absolute; /* Permite o posicionamento flutuante */
    top: 25px;          /* Distância do topo */
    right: 4vw;         /* Distância da direita (responsivo) */
    z-index: 20;        /* Garante que fique ACIMA do herói e de outros elementos */
}

#qrcode-display-widget {
    background-color: white;
    padding: 6px;
    border-radius: 6px;
    display: flex; /* Para centralizar o loader */
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.qr-widget-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Estilo para o botão de fechar do widget */
.qr-widget .qr-widget-close {
    position: absolute;
    top: 2px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.qr-widget .qr-widget-close:hover {
    color: var(--text-primary);
}
/* Adicione este novo bloco de CSS */
body.page-template-default, html {
    overflow: hidden !important; /* Esconde a barra de rolagem principal do tema */
    margin: 0;
    padding: 0;
}

.tag-curso .btn-add-modulo {
    color: #a0a0af; /* Um pouco mais sutil que o de excluir */
    margin-left: 8px;
    margin-right: 2px;
}
.tag-curso .btn-add-modulo:hover {
    color: #4ade80; /* Verde ao passar o mouse */
    transform: scale(1.2);
}

/* =================================================================== */
/* [NOVO] Seção Herói (com ajustes de altura e título premium)
/* =================================================================== */
.hero-and-header-container {
    position: relative;
    margin-bottom: 30px;
}

/* Título Premium Sobreposto */
.premium-title-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(28, 28, 33, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-title-overlay h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 45vh; /* Altura reduzida para o herói */
    min-height: 300px; /* Altura mínima */
    border-radius: 12px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vw;
    box-sizing: border-box;
    margin-bottom: 50px; /* Espaço entre o herói e os carrosséis */
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Efeito de zoom sutil */
    animation: kenBurnsEffect 20s ease-out forwards;
}

/* Gradiente para garantir legibilidade do texto */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 50%),
                linear-gradient(to right, var(--bg-color) 5%, transparent 40%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 50%;
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentFadeIn 1s ease-out 0.5s forwards;
}

#hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    margin: 0 0 15px 0;
}

#hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 25px;
}

#hero-play-button {
    background: white;
    color: black;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#hero-play-button:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

@keyframes kenBurnsEffect {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Oculta o cabeçalho antigo que agora está "atrás" do herói */
.painel-header {
    display: none;
}

/* Adicione isso ao seu bloco de CSS */

#videos-container {
    position: relative;
    transition: min-height 0.3s ease-out;
}

.skeleton-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    transition: opacity 0.4s ease-out;
    background-color: var(--bg-color); /* Garante que não haja transparência */
}

.content-container {
    opacity: 0;
    transition: opacity 0.4s ease-out 0.1s; /* Leve atraso para começar após o fade do skeleton */
}

/* Classe que controla a transição */
.content-loaded .skeleton-container {
    opacity: 0;
    pointer-events: none; /* Impede interação com o esqueleto invisível */
}

.content-loaded .content-container {
    opacity: 1;
}

/* =================================================================== */
/* [NOVO] ESTILOS DA INTRO STREAB
/* =================================================================== */

/* 1. O CONTAINER PRINCIPAL DA INTRO - AGORA CONTROLA O REFLEXO */
#intro-splash-screen {
    position: fixed; /* ADICIONE: Essencial para posicionar o reflexo */
    overflow: hidden;   /* ADICIONE: Para conter o reflexo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out;
}

/* 2. O container do logo "STREAB" */
#intro-logo {
    display: flex;
    font-family: 'Netflix Sans', sans-serif;
    position: relative; /* Mantém o posicionamento relativo para o z-index funcionar */
    z-index: 3;         /* ATUALIZADO: O z-index mais alto, para ficar em cima de tudo */
}
/* =================================================================== */
/* [NOVA ABORDAGEM] EFEITO DE TEXTO PREMIUM - VIDRO E REFLEXO
/* =================================================================== */

/* 1. NOVO CONTAINER DO LOGO - para o efeito de reflexo */
#intro-logo {
    display: flex;
    font-family: 'Netflix Sans', sans-serif;
    position: relative; /* Essencial para o posicionamento do reflexo */
    z-index: 2;         /* Garante que o logo fique acima das luzes de fundo */
    overflow: hidden;   /* Esconde o brilho antes e depois da animação */
}

/* 2. O 'brilho reflexivo' que se move sobre o texto */
#intro-splash-screen::before { /* <-- O SELETOR MUDOU AQUI */
    content: '';
    position: absolute;
    z-index: 2; /* ATUALIZADO: Fica entre as luzes de fundo (1) e o logo (3) */
    top: 0;
    left: -150%;
    width: 40%; /* Aumentamos um pouco a largura para o efeito em tela cheia */
    height: 100%;
    
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%, /* Um pouco mais sutil */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);

    animation-name: glint-animation;
    animation-duration: 2s;
    animation-delay: 1.5s;
    animation-timing-function: ease-in-out;
}

/* 3. A ANIMAÇÃO DO REFLEXO */
@keyframes glint-animation {
    from {
        left: -150%;
    }
    to {
        left: 150%; /* Move o brilho da esquerda para a direita, passando sobre o texto */
    }
}


/* 4. O NOVO ESTILO 'PREMIUM' DAS LETRAS */
#intro-logo span {
    display: inline-block;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;

    /* --- A MÁGICA ACONTECE AQUI --- */

    /* a) O preenchimento da letra agora é transparente */
    color: transparent;

    /* b) O gradiente azul sutil que vai preencher o texto */
    background-image: linear-gradient(
        175deg,
        #a0c4ff 5%,  /* Cor mais clara no topo, simulando luz */
        var(--primary-accent) 40%,
        #2563eb 95%   /* Tom de azul mais escuro na base */
    );
    
    /* c) A propriedade que aplica o gradiente de fundo apenas ao texto */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* d) Sombras muito sutis para dar efeito de profundidade (efeito 3D) */
    text-shadow: 
      1px 1px 2px rgba(0, 0, 0, 0.2), /* Sombra escura sutil para dar extrusão */
      0 0 40px rgba(59, 130, 246, 0.4); /* Brilho azul suave e difuso no fundo */

    /* --- FIM DA MÁGICA --- */

    /* Animação de entrada (continua a mesma) */
    opacity: 0;
    transform: scale(0.9);
    animation-fill-mode: forwards;
}

/* 4. A MÁGICA: Ativa a animação quando a classe .play-intro for adicionada via JS */
#intro-logo.play-intro span {
    animation-name: letter-animation;
    animation-duration: 0.8s; /* Duração da animação de cada letra */
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1); /* Curva suave */
}

/* 5. Efeito cascata: adiciona um atraso para cada letra aparecer em sequência */
#intro-logo.play-intro span:nth-child(1) { animation-delay: 0.1s; }
#intro-logo.play-intro span:nth-child(2) { animation-delay: 0.2s; }
#intro-logo.play-intro span:nth-child(3) { animation-delay: 0.3s; }
#intro-logo.play-intro span:nth-child(4) { animation-delay: 0.4s; }
#intro-logo.play-intro span:nth-child(5) { animation-delay: 0.5s; }
#intro-logo.play-intro span:nth-child(6) { animation-delay: 0.6s; } /* Última letra */

/* 6. A animação em si: faz a letra aparecer, aumentar de tamanho e "assentar" */
@keyframes letter-animation {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 7. Esconde o painel principal inicialmente para evitar que ele "pisque" na tela */
#painel-principal-container {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

/* =================================================================== */
/* [CÓDIGO CORRIGIDO] ESTILOS PARA AS LUZES DE FUNDO (EFEITO LUMIERES)
/* =================================================================== */

/* O container das luzes, agora cobrindo toda a tela */
.effect-lumieres {
    position: absolute; /* Posicionado dentro do splash screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Garante que os feixes não vazem */
    z-index: 1; /* Fica atrás do logo, que terá z-index maior */
    opacity: 0;
    animation-name: showing-lumieres;
    animation-duration: 2s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* Garante que o logo fique na frente das luzes */
#intro-logo {
    position: relative;
    z-index: 2; 
}


/* Estilo base de cada "lâmpada" (feixe de luz) */
.effect-lumieres [class*="lamp-"] {
    position: absolute;
    display: block;
    height: 250%; /* Altura bem grande para os feixes atravessarem a tela */
    top: -75%; /* Começa fora da tela, no topo */
    box-shadow: 0px 0px 15px 0px var(--primary-accent);
    background: var(--color);
}

/* Pseudo-elemento para dar mais corpo ao brilho */
.effect-lumieres [class*="lamp-"]::before {
    position: absolute;
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color);
    box-shadow: 0px 0px 15px 0px var(--primary-accent);
}

/* Posição, LARGURA e COR AZUL de cada lâmpada - Espalhados pela tela */
.lamp-1 { --color: #5fa8ff; left: 5%; width: 1%; transform: rotate(-25deg); }
.lamp-2 { --color: #61dafb; left: 10%; width: 1.5%; transform: rotate(-25deg); }
.lamp-3 { --color: #8a2be2; left: 15%; width: 2%; transform: rotate(-25deg); }
.lamp-4 { --color: #61dafb; left: 20%; width: 1.2%; transform: rotate(-25deg); }
.lamp-5 { --color: #3b82f6; left: 25%; width: 1.8%; transform: rotate(-25deg); }
.lamp-6 { --color: #5fa8ff; left: 30%; width: 1%; transform: rotate(-25deg); }
.lamp-7 { --color: #0084ff; left: 35%; width: 2.2%; transform: rotate(-25deg); }
.lamp-8 { --color: #5fa8ff; left: 40%; width: 1.5%; transform: rotate(-25deg); }
.lamp-9 { --color: #61dafb; left: 45%; width: 2.5%; transform: rotate(-25deg); }
.lamp-10 { --color: #8a2be2; left: 50%; width: 1.3%; transform: rotate(-25deg); }
.lamp-11 { --color: #3b82f6; left: 55%; width: 2%; transform: rotate(-25deg); }
.lamp-12 { --color: #01ffff; left: 60%; width: 1.6%; transform: rotate(-25deg); }
.lamp-13 { --color: #61dafb; left: 65%; width: 0.8%; transform: rotate(-25deg); }
.lamp-14 { --color: #a0c4ff; left: 70%; width: 2.8%; transform: rotate(-25deg); }
.lamp-15 { --color: #0078fe; left: 75%; width: 1.1%; transform: rotate(-25deg); }
.lamp-16 { --color: #0080ff; left: 80%; width: 2.1%; transform: rotate(-25deg); }
.lamp-17 { --color: #5fa8ff; left: 85%; width: 1.7%; transform: rotate(-25deg); }
.lamp-18 { --color: #8a2be2; left: 90%; width: 1.4%; transform: rotate(-25deg); }
.lamp-19 { --color: #a601f4; left: 95%; width: 1%; transform: rotate(-25deg); }

/* Luzes extras para preencher mais */
.lamp-20 { --color: #a0c4ff; left: 2%; width: 1.9%; transform: rotate(-25deg); }
.lamp-21 { --color: #8a2be2; left: 18%; width: 2.3%; transform: rotate(-25deg); }
.lamp-22 { --color: #61dafb; left: 28%; width: 1.3%; transform: rotate(-25deg); }
.lamp-23 { --color: #01ffff; left: 38%; width: 1.6%; transform: rotate(-25deg); }
.lamp-24 { --color: #8a2be2; left: 48%; width: 1.1%; transform: rotate(-25deg); }
.lamp-25 { --color: #3b82f6; left: 58%; width: 2.4%; transform: rotate(-25deg); }
.lamp-26 { --color: #0078fe; left: 68%; width: 1.7%; transform: rotate(-25deg); }
.lamp-27 { --color: #5fa8ff; left: 78%; width: 1.9%; transform: rotate(-25deg); }
.lamp-28 { --color: #61dafb; left: 88%; width: 1.2%; transform: rotate(-25deg); }


/* Animação de movimento, agora mais sutil e vertical */
.effect-lumieres [class*="lamp-"] {
    animation-name: lumieres-moving-down;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate; /* Faz o movimento de ir e voltar */
    animation-delay: calc(0.1s * var(--delay-offset, 0));
}

/* Define um atraso diferente para cada luz para não se moverem juntas */
.lamp-1 { --delay-offset: 1; } .lamp-2 { --delay-offset: 12; } .lamp-3 { --delay-offset: 5; }
.lamp-4 { --delay-offset: 8; } .lamp-5 { --delay-offset: 2; } .lamp-6 { --delay-offset: 13; }
.lamp-7 { --delay-offset: 6; } .lamp-8 { --delay-offset: 3; } .lamp-9 { --delay-offset: 9; }
.lamp-10 { --delay-offset: 4; } .lamp-11 { --delay-offset: 14; } .lamp-12 { --delay-offset: 7; }
.lamp-13 { --delay-offset: 1; } .lamp-14 { --delay-offset: 10; } .lamp-15 { --delay-offset: 2; }
.lamp-16 { --delay-offset: 11; } .lamp-17 { --delay-offset: 5; } .lamp-18 { --delay-offset: 8; }
.lamp-19 { --delay-offset: 3; } .lamp-20 { --delay-offset: 12; } .lamp-21 { --delay-offset: 6; }
.lamp-22 { --delay-offset: 1; } .lamp-23 { --delay-offset: 9; } .lamp-24 { --delay-offset: 4; }
.lamp-25 { --delay-offset: 13; } .lamp-26 { --delay-offset: 7; } .lamp-27 { --delay-offset: 2; }
.lamp-28 { --delay-offset: 10; }

/* Animações de Aparição e Movimento Vertical */
@keyframes showing-lumieres {
    0% { opacity: 0; }
    100% { opacity: 0.5; } /* Opacidade sutil para o fundo */
}

@keyframes lumieres-moving-down {
    from {
        transform: translateY(0) rotate(-25deg);
    }
    to {
        transform: translateY(200px) rotate(-25deg);
    }
}

/* =================================================================== */
/* TELA DE ESTADO VAZIO (SEM VÍDEOS) - VERSÃO CORRIGIDA
/* =================================================================== */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8vh 4vw;
    margin-top: 5vh;
    border: 1px solid var(--border-color); /* CORRIGIDO: Borda sólida em vez de tracejada */
    border-radius: 16px;
    background-color: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInEmptyState 0.6s ease-out 0.5s forwards;
}

@keyframes fadeInEmptyState {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* CORRIGIDO: Efeito de 'glow' sutil em vez de simular um dropzone */
.empty-state-container:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.empty-state-icon {
    font-size: clamp(4rem, 10vw, 6rem);
    color: var(--primary-accent);
    margin-bottom: 24px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.empty-state-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.empty-state-container p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-accent);
    color: white;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-state-cta:hover {
    background: var(--primary-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.empty-state-cta i {
    font-size: 1.2rem;
}

/* =================================================================== */
/* [CORREÇÃO DE FLICKER] Esconde componentes até os dados carregarem
/* =================================================================== */
#hero-and-header-container,
#filtros-e-busca-container {
    display: none;
}

#hero-and-header-container {
    position: relative;
    margin-bottom: 30px;
    /* ADICIONE esta margem para criar espaço para o cabeçalho fixo */
    margin-top: 40px; 
}

/* =================================================================== */
/* [NOVO] ESTRUTURA PRINCIPAL COM MENU
/* =================================================================== */
#streab-main-interface {
    display: flex;
    width: 100%;
    height: 100%;
}

#streab-main-content {
    flex-grow: 1;
    overflow-y: auto;
    /* ANTES: padding-top: 40px; */
    padding-top: 0; /* Zera o padding do topo */
    position: relative;
}

/* =================================================================== */
/* [NOVO] ESTILOS DO MENU LATERAL (SIDEBAR)
/* =================================================================== */
#streab-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    /* ANTES: padding: 25px 15px; */
    padding: 0 15px 25px; /* Zera o padding do topo */
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
}

/* 1. Perfil do Usuário */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    
    /* REMOVE os paddings verticais antigos */
    padding: 0 10px; 
    
    /* ADICIONA uma altura fixa */
    height: 111px; 
    box-sizing: border-box; /* Garante que padding e border estão inclusos na altura */
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}
.profile-plan {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.profile-plan.plan-basico { background-color: #374151; color: #d1d5db; }
.profile-plan.plan-intermediario { background-color: #52525b; color: #e4e4e7; }
.profile-plan.plan-premium {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: #422006;
    font-weight: 700;
}
.profile-plan .fa-crown { margin-right: 5px; }

/* 2. Navegação Principal e Lista de Cursos */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.sidebar-nav li a {
    /* Propriedades que mantemos */
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    
    /* --- MUDANÇAS IMPORTANTES AQUI --- */

    /* Garante que o link ocupe toda a largura do item de lista */
    width: 100%; 
    /* Garante que o padding não aumente a largura total do link */
    box-sizing: border-box; 
    /* Essencial para posicionar os ícones dentro do link */
    position: relative; 
    
    /* A MÁGICA: Define um padding grande à direita para criar a "zona segura" para os ícones */
    padding: 14px 110px 14px 10px; /* (top, right, bottom, left) */
}
.sidebar-nav li a:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
}
.sidebar-nav li a.ativa {
    color: var(--text-primary);
    font-weight: 600;
    border-left-color: var(--primary-accent);
}
.sidebar-nav li a i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* 3. Título da seção de Cursos */
.courses-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 20px 10px 10px;
}

/* 4. Rodapé do Menu */
.sidebar-footer {
    margin-top: auto; /* Empurra para o final */
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.sidebar-footer .footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
}
.sidebar-footer .footer-link:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
}
.sidebar-footer .footer-link i {
    margin-right: 10px;
}

/* =================================================================== */
/* [NOVO] RESPONSIVIDADE DO MENU (MOBILE)
/* =================================================================== */
#mobile-menu-toggle {
    display: none; /* Escondido no desktop */
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgba(28, 28, 33, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* =================================================================== */
/* [SUBSTITUIR] RESPONSIVIDADE PARA TABLETS E CELULARES
/* =================================================================== */

@media (max-width: 991px) {
    /* --- Layout Principal e Menu (A MÁGICA ACONTECE AQUI) --- */
    #streab-sidebar {
        position: fixed; /* Fica fixo na tela, fora do fluxo normal */
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1002; /* Garante que o menu fique acima de tudo */
        transform: translateX(-100%); /* Esconde o menu totalmente para a esquerda */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Animação suave de deslize */
        box-shadow: 10px 0px 40px rgba(0,0,0,0.5); /* Sombra para dar profundidade */
        background-color: #0c0c0f; /* Fundo um pouco mais sólido para melhor leitura */
    }

    #streab-sidebar.is-open {
        transform: translateX(0); /* Traz o menu de volta para a tela */
    }

    #mobile-menu-toggle {
        display: flex; /* Mostra o botão "hambúrguer" no mobile */
        align-items: center;
        justify-content: center;
        position: fixed; /* Fixo no topo esquerdo para fácil acesso */
        top: 20px;
        left: 20px;
        z-index: 1001; /* Fica acima do conteúdo, mas abaixo do menu quando aberto */
        background: rgba(28, 28, 33, 0.7);
        backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        width: 45px;
        height: 45px;
        border-radius: 8px;
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* O Fundo escurecido (overlay) quando o menu está aberto */
    #streab-main-content.menu-is-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1000;
        transition: opacity 0.3s ease;
    }

    /* --- Ajustes no Conteúdo Principal --- */
    #streab-main-content {
        /* Adiciona espaço no topo para o cabeçalho fixo não sobrepor o conteúdo */
        padding-top: 85px; 
    }
    .main-header-sticky {
        padding-top: 15px;
        padding-bottom: 15px;
        /* Remove a altura fixa para o conteúdo poder empilhar */
        height: auto;
    }
    .main-header-sticky .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    #filtros-e-busca-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    #input-busca-global, .custom-select-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    /* --- Esconde elementos de Desktop --- */
    .carousel-nav, .qr-widget {
        display: none !important;
    }
}

/* =================================================================== */
/* [NOVO] Estilo para o Botão de Excluir Curso no Menu
/* =================================================================== */

/* Adiciona posicionamento relativo ao item da lista para ancorar o botão */
.sidebar-nav li {
    position: relative;
}

.sidebar-delete-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    opacity: 0; /* O botão começa invisível */
    pointer-events: none; /* Não pode ser clicado quando invisível */
    transition: all 0.2s ease;
    z-index: 2;
}

/* Mostra o botão quando o mouse está sobre o item da lista */
.sidebar-nav li:hover .sidebar-delete-btn {
    opacity: 0.6;
    pointer-events: auto; /* Pode ser clicado quando visível */
}

.sidebar-delete-btn:hover {
    opacity: 1;
    color: #ef4444; /* Cor de perigo ao passar o mouse */
    background-color: rgba(239, 68, 68, 0.1);
}

/* =================================================================== */
/* [NOVO] Efeito de Fade no Texto do Menu para Evitar Sobreposição
/* =================================================================== */

/* 1. Prepara o link e o texto para o efeito */
.sidebar-nav li a {
    /* Garante que o link ocupe todo o espaço para o cálculo funcionar */
    width: 100%;
    box-sizing: border-box;
}

.sidebar-nav li a span {
    /* Impede que o texto quebre para uma nova linha */
    white-space: nowrap;

    /* Esconde o texto que transborda do container */
    overflow: hidden;

    /* Adiciona "..." no final do texto que foi cortado */
    text-overflow: ellipsis;

    /* Um truque de flexbox necessário para garantir que o elemento 
       possa encolher corretamente dentro do container flex */
    min-width: 0;
}

/* 2. A Mágica: Aplica o fade e o espaçamento no hover do item da lista */
.sidebar-nav li:hover a span {
    /* Cria um espaço à direita para o botão aparecer sem tocar no texto */
    padding-right: 40px;

    /* Aplica uma máscara de gradiente que torna o final do texto transparente */
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 60px), transparent 100%);
}

/* =================================================================== */
/* [NOVO] Cabeçalho Fixo do Conteúdo (Sticky Header)
/* =================================================================== */
.main-header-sticky {
    position: sticky;
    
    /* Altere o valor de -1px para 0 */
    top: 0; 

    z-index: 100;
    background-color: rgba(12, 12, 15, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: 111px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    margin-left: -4vw;
    margin-right: -4vw;
    padding-left: 4vw;
    padding-right: 4vw;
}



.main-header-sticky .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Faz o container ocupar toda a altura e largura disponíveis */
    width: 100%;
    height: 100%;
}

.main-header-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

#streab-sidebar {
    padding-top: 0;
}
#streab-main-content {
    padding-top: 0;
}


/* Ajustes no container de filtros para se encaixar no novo cabeçalho */
#filtros-e-busca-container {
    margin-bottom: 0; /* Remove a margem que não é mais necessária */
}

/* =================================================================== */
/* [NOVO] Estilos para o Menu de Módulos Aninhados
/* =================================================================== */

/* Container do item de curso */
.course-item .sidebar-submenu {
    list-style: none;
    padding-left: 20px; /* Indentação inicial */
    margin: 0;
    /* Animação de abrir/fechar */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Quando o curso está aberto, mostra o submenu */
.course-item.is-open .sidebar-submenu {
    max-height: 1000px; /* Um valor alto para caber todos os módulos */
}

/* Ícone de seta no item do curso */
.course-item > a {
    position: relative;
}
.course-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}
.course-item.is-open .course-toggle-icon {
    transform: translateY(-50%) rotate(0deg);
}


/* --- Base para os botões de ação (que aparecem no hover) --- */
.sidebar-delete-btn, .sidebar-add-module-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
}
/* Mostra os botões quando o mouse está sobre o item da lista */
.sidebar-nav li:hover .sidebar-delete-btn,
.sidebar-nav li:hover .sidebar-add-module-btn {
    opacity: 0.6;
    pointer-events: auto;
}
.sidebar-delete-btn:hover, .sidebar-add-module-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-delete-btn:hover {
    color: #ef4444; /* Vermelho para perigo */
}
.sidebar-add-module-btn:hover {
    color: #22c55e; /* Verde para adição */
}


/* --- NOVO POSICIONAMENTO PARA EVITAR SOBREPOSIÇÃO --- */

/* Botão de deletar fica à esquerda da seta */
.sidebar-delete-btn {
    right: 40px; 
}
/* Botão de adicionar fica à esquerda do de deletar */
.sidebar-add-module-btn {
    right: 70px; 
}

/* =================================================================== */
/* [BLINDAGEM] Garante que links visitados não fiquem roxos
/* =================================================================== */

/* Define a cor padrão para o link normal e visitado */
.sidebar-nav li a,
.sidebar-nav li a:link,
.sidebar-nav li a:visited {
    color: var(--text-secondary); /* A cor cinza padrão do seu tema */
}

/* Garante que a cor de destaque (hover ou ativo) também funcione para links visitados */
.sidebar-nav li a:hover,
.sidebar-nav li a.ativa,
.sidebar-nav li a.ativa:link,
.sidebar-nav li a.ativa:visited {
    background-color: var(--card-bg); /* Fundo que já existia no hover */
    color: var(--text-primary); /* A cor branca de destaque do seu tema */
}
