/* Twitch Player Styles for jahlon.com */

.twitch-player-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

.twitch-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.twitch-close-button:hover {
    background: rgba(0,0,0,0.9);
}

.twitch-player-header {
    padding: 15px 20px 10px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.twitch-live-pulse {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

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

.twitch-player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.twitch-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.twitch-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

.twitch-player-fallback {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}

.twitch-player-fallback a {
    color: #FFD700;
    text-decoration: none;
}

.twitch-player-fallback a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .twitch-player-header {
        padding: 10px 15px 8px;
        font-size: 16px;
    }
    
    .twitch-close-button {
        top: 8px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}