        /* === LOADING === */
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--primary-turquoise);
            grid-column: 1 / -1;
        }

        .loading-spinner {
            border: 4px solid var(--gray-light);
            border-top: 4px solid var(--primary-coral);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }

        .empty-state h2 {
            color: var(--primary-turquoise);
            margin-bottom: 10px;
        }

        .empty-state p {
            color: #666;
        }

        /* === RESPONSIVO === */
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 10px;
                padding: 10px;
            }
            
            .timer {
                font-size: 24px;
                padding: 5px 15px;
            }
            
            .video-thumbnail {
                height: 120px;
            }
            
            #player-container iframe {
                width: 100%;
                height: 60%;
            }

            .logo-text {
                font-size: 36px;
            }

            .kids-header {
                justify-content: center;
                text-align: center;
            }

            /* Controles do player em dispositivos móveis */
            .safe-video-controls {
                width: 240px;
                height: 55px;
                bottom: 3%;
                gap: 12px;
            }

            .safe-control-btn {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
            }

        .safe-control-btn:hover {
            transform: scale(1.1) rotate(3deg);
        }

        /* Para telas muito pequenas */
        @media (max-width: 480px) {
            .safe-video-controls {
                width: 200px;
                height: 50px;
                gap: 8px;
            }

            .safe-control-btn {
                width: 38px;
                height: 38px;
                font-size: 14px;
            }
        }

        /* === PWA === */
        .install-prompt {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--white);
            padding: 15px 25px;
            border-radius: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            z-index: 1000;
        }

        .install-prompt button {
            background: var(--primary-turquoise);
            color: var(--white);
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            margin-left: 10px;
            cursor: pointer;
            font-weight: bold;
        }

        /* === CANAIS SUGERIDOS === */
        .suggested-channels {
            margin-top: 20px;
        }

        .suggested-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .suggested-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .suggested-channel {
            background: var(--bg-cream);
            border: 2px solid var(--primary-turquoise);
            color: var(--primary-turquoise);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .suggested-channel:hover {
            background: var(--primary-turquoise);
            color: white;
            transform: scale(1.05);
        }

        /* === MODAL DE SENHA SEGURO === */
        .password-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .password-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
        }

        .password-modal-content {
            position: relative;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            min-width: 350px;
            max-width: 90vw;
            animation: modalAppear 0.3s ease-out;
        }

        .password-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px 15px;
            border-bottom: 1px solid #eee;
        }

        .password-modal-header h3 {
            margin: 0;
            color: #333;
            font-size: 18px;
        }

        .password-modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .password-modal-close:hover {
            background: #f0f0f0;
            color: #666;
        }

        .password-modal-body {
            padding: 25px;
        }

        .password-modal-body p {
            margin: 0 0 20px 0;
            color: #666;
            font-size: 14px;
        }

        .password-input-container {
            position: relative;
            margin-bottom: 25px;
        }

        .password-input-container input {
            width: 100%;
            padding: 15px 45px 15px 15px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 16px;
            font-family: monospace;
            letter-spacing: 2px;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }

        .password-input-container input:focus {
            outline: none;
            border-color: var(--primary-turquoise);
            box-shadow: 0 0 0 3px rgba(90, 186, 167, 0.1);
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            border-radius: 5px;
            font-size: 18px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            transition: background 0.2s;
            margin: 0;
        }

        .password-toggle:hover {
            background: #f0f0f0;
        }

        .password-modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .btn-cancel, .btn-confirm {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-cancel {
            background: #f8f9fa;
            color: #6c757d;
        }

        .btn-cancel:hover {
            background: #e9ecef;
        }

        .btn-confirm {
            background: var(--primary-turquoise);
            color: white;
        }

        .btn-confirm:hover {
            background: #479a83;
            transform: translateY(-1px);
        }

        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* === RESPONSIVO PARA MODAL === */
        @media (max-width: 480px) {
            .password-modal-content {
                min-width: 90vw;
                margin: 20px;
            }
            
            .password-modal-buttons {
                flex-direction: column;
            }
            
            .btn-cancel, .btn-confirm {
                width: 100%;
            }
        }

        /* === BADGES DE FONTES E EDUCATIVO === */
        .badge {
            position: absolute;
            top: 8px;
            left: 8px;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: bold;
            color: white;
            z-index: 2;
        }

        .badge.khan {
            background: linear-gradient(135deg, #1e88e5, #1565c0);
        }

        .badge.vimeo {
            background: linear-gradient(135deg, #1ab7ea, #0288d1);
        }

        .badge.youtube {
            background: linear-gradient(135deg, #ff5722, #d32f2f);
        }

        .badge.local {
            background: linear-gradient(135deg, #4caf50, #388e3c);
        }

        .badge.educational {
            position: absolute;
            top: 8px;
            right: 8px;
            background: linear-gradient(135deg, #28a745, #1e7e34);
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: bold;
            color: white;
            z-index: 2;
        }

        .age-info {
            font-size: 11px;
            color: #666;
            margin-top: 4px;
        }

        .duration {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: bold;
        }

        /* === CONFIGURAÇÃO DE FONTES === */
        .source-config {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .source-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .source-item label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            cursor: pointer;
        }

        .source-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .source-item select {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            min-width: 120px;
        }

        .source-item select:disabled {
            background: #f5f5f5;
            color: #999;
        }

        /* Estilos para checkboxes das categorias Khan Academy */
        .category-checkbox {
            display: flex;
            align-items: center;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: white;
        }

        .category-checkbox:hover {
            border-color: #007bff;
            background: #f8f9ff;
        }

        .category-checkbox input[type="checkbox"] {
            position: absolute;
            opacity: 0;
        }

        .category-checkbox input[type="checkbox"]:checked + .checkmark {
            background: #007bff;
            color: white;
            border-color: #007bff;
        }

        .category-checkbox input[type="checkbox"]:checked ~ * {
            color: #007bff;
            font-weight: bold;
        }

        .category-checkbox .checkmark {
            width: 24px;
            height: 24px;
            border: 2px solid #ddd;
            border-radius: 4px;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s ease;
            background: white;
        }

        .category-checkbox input[type="checkbox"]:checked + .checkmark:after {
            content: '✓';
            color: white;
            font-weight: bold;
            font-size: 12px;
        }
