body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #667eea;
    margin: 0;
    font-weight: bold;
}

.add-channel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.add-channel-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.channel-title {
    font-weight: bold;
    color: #667eea;
    margin: 0;
    flex-grow: 1;
}

.channel-source {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.btn-remove {
    background: #dc3545;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 5px;
}

.btn-remove:hover {
    background: #c82333;
}

.btn-edit {
    background: #ffc107;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-edit:hover {
    background: #e0a800;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.plyr {
    border-radius: 10px;
}

.plyr--video {
    background: #000;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    border-radius: 10px;
}

.loading-overlay i {
    font-size: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.form-label {
    font-weight: bold;
    color: #667eea;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: bold;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-secondary {
    border-radius: 10px;
    padding: 10px 25px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 20px;
}

.empty-state i {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
}

@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
}

.fonte-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.fonte-item:hover {
    background: #e9ecef;
}

.fonte-name {
    font-weight: 500;
    color: #495057;
}

.btn-delete-fonte {
    background: #dc3545;
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete-fonte:hover {
    background: #c82333;
}

