.ytls-stream-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
}

.ytls-stream-wrapper {
    position: relative;
}

.ytls-stream-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.ytls-stream-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ytls-stream-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ytls-subscribe-container {
    display: flex;
    align-items: center;
}

.ytls-live-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #ff0000;
    color: white;
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.ytls-viewer-count {
    color: #666;
    font-size: 14px;
}

.ytls-chat-disabled {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.ytls-chat-disabled-notice {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

/* Chat Toggle Button Styles */
.ytls-chat-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.ytls-chat-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.ytls-chat-toggle-btn.chat-hidden {
    background: #e9ecef;
    color: #6c757d;
}

.ytls-chat-toggle-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.ytls-chat-toggle-text {
    font-weight: 500;
}

/* Hide chat when toggled off */
.ytls-video-container.ytls-chat-hidden .ytls-chat-embed {
    display: none !important;
}

.ytls-video-container.ytls-chat-hidden.ytls-with-chat {
    display: block !important;
    grid-template-columns: 1fr !important;
}

.ytls-video-container.ytls-chat-hidden .ytls-video-wrapper {
    width: 100% !important;
}

.ytls-video-container.ytls-chat-hidden .ytls-video-wrapper iframe {
    width: 100% !important;
    max-width: none !important;
}

.ytls-video-container {
    display: block;
    position: relative;
}

.ytls-video-container.ytls-with-chat {
    display: grid;
    gap: 20px;
}

.ytls-video-container.ytls-with-chat.ytls-chat-right {
    grid-template-columns: 1fr 350px;
}

.ytls-video-container.ytls-with-chat.ytls-chat-left {
    grid-template-columns: 350px 1fr;
}

.ytls-video-container.ytls-with-chat.ytls-chat-left .ytls-chat-embed {
    order: -1;
}

.ytls-video-container.ytls-with-chat.ytls-chat-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.ytls-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.ytls-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ytls-chat-embed {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ytls-chat-embed iframe {
    width: 100%;
    border: none;
}

.ytls-countdown-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.ytls-upcoming-title {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.ytls-upcoming-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ytls-countdown {
    margin: 30px 0;
}

.ytls-countdown-label {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.ytls-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ytls-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.ytls-countdown-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.ytls-countdown-item .ytls-countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.ytls-notify-button {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #764ba2;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ytls-notify-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ytls-fallback-container {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.ytls-fallback-image {
    width: 100%;
    height: auto;
    display: block;
}

.ytls-offline-message {
    padding: 60px 20px;
    text-align: center;
}

.ytls-offline-message h3 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
}

.ytls-offline-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.ytls-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.ytls-mobile-chat-container {
    margin-top: 20px;
}

.ytls-mobile-chat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ytls-mobile-chat-toggle:hover {
    background: #cc0000;
}

.ytls-mobile-chat-wrapper {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ytls-video-container.ytls-with-chat {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .ytls-video-container.ytls-with-chat.ytls-chat-right,
    .ytls-video-container.ytls-with-chat.ytls-chat-left,
    .ytls-video-container.ytls-with-chat.ytls-chat-bottom {
        grid-template-columns: 1fr;
    }
    
    .ytls-chat-embed {
        display: none;
    }
    
    .ytls-mobile-chat-container {
        display: block;
    }
    
    .ytls-mobile-chat-container.show-chat .ytls-chat-embed {
        display: block;
    }
    
    .ytls-stream-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ytls-stream-info-left,
    .ytls-stream-info-right {
        justify-content: center;
    }
    
    .ytls-chat-toggle-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        margin: 5px auto;
    }
    
    /* Show chat embed on mobile when toggled visible */
    .ytls-video-container:not(.ytls-chat-hidden) .ytls-chat-embed {
        display: block;
        width: 100%;
        height: 300px;
        margin-top: 15px;
    }
    
    .ytls-countdown-timer {
        flex-direction: column;
        gap: 10px;
    }
    
    .ytls-countdown-item {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .ytls-stream-info {
        padding: 8px 12px;
    }
    
    .ytls-stream-info-left {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ytls-upcoming-title {
        font-size: 20px;
    }
    
    .ytls-countdown-value {
        font-size: 28px;
    }
    
    .ytls-live-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .ytls-viewer-count,
    .ytls-chat-disabled {
        font-size: 12px;
    }
}