* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #667eea;
    font-size: 2rem;
}

.clock {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
}

/* Player Container */
.player-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.player-wrapper {
    position: relative;
    min-height: 400px;
    background: #000;
}

#youtube-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    pointer-events: none; /* Bloqueia interação com o player */
}

#youtube-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Bloqueia cliques no iframe */
}

/* Overlay para bloquear interações no player */
.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: default;
}

/* Botão Assistir ao Vivo */
.live-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-button-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.live-button {
    text-align: center;
    padding: 40px 60px;
    background: rgba(255, 68, 68, 0.95);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.live-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.8);
    background: rgba(255, 68, 68, 1);
}

.live-button-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.live-button h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.live-button p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Informações do Programa Atual */
.program-info {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-top: 3px solid #ff4444;
    position: relative;
    z-index: 5;
}

.program-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.program-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.schedule-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.time-badge, .category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.time-badge {
    background: #667eea;
    color: white;
}

.category-badge {
    background: #764ba2;
    color: white;
}

/* Próximo Programa */
.next-program {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 3px solid #ff4444;
}

.next-program h3 {
    font-size: 0.9rem;
    color: #ff4444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-program .program-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.next-program .program-time {
    font-size: 0.85rem;
    opacity: 0.8;
}

.next-program .program-desc {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* Indicador de que o player está bloqueado */
.player-locked-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    z-index: 20;
    pointer-events: none;
    font-family: monospace;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .clock {
        font-size: 1rem;
    }
    
    .program-info h2 {
        font-size: 1.2rem;
    }
    
    .live-button-icon {
        font-size: 50px;
    }
    
    .live-button h2 {
        font-size: 1.5rem;
    }
    
    .live-button {
        padding: 30px 40px;
        margin: 20px;
    }
}