/* Live Stream Styles */
.live-header {
    text-align: center;
    margin-bottom: 2rem;
}

.live-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFC400, #FFB700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.live-indicator {
    display: inline-block;
    color: #FF0000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-subtitle {
    color: rgba(255, 244, 214, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.live-subtitle a {
    color: var(--honey-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.live-subtitle a:hover {
    color: var(--honey-yellow);
}

.donate-container {
    text-align: center;
    margin-bottom: 2rem;
}

.donate-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Live Container */
.live-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    position: relative;
    background: rgba(17, 17, 17, 0.8);
    border: 2px solid rgba(255, 183, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

/* Ad Container */
.ad-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ad-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mute-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 196, 0, 0.2);
    border: 2px solid var(--honey-gold);
    border-radius: 50%;
    color: var(--honey-yellow);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-btn:hover {
    background: var(--honey-gold);
    color: var(--warm-black);
    transform: scale(1.1);
}

.mute-btn.unmuted #muteIcon {
    display: none;
}

.mute-btn.unmuted::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E");
}

.ad-countdown {
    color: var(--honey-yellow);
    font-size: 1.2rem;
    font-weight: 700;
}

#countdownTimer {
    color: var(--honey-orange);
    font-size: 1.5rem;
}

.skip-ad-btn {
    padding: 0.75rem 1.5rem;
    background: var(--honey-gold);
    color: var(--warm-black);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.skip-ad-btn:hover {
    background: var(--honey-yellow);
    transform: scale(1.05);
}

/* Video Container */
.video-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container.hidden {
    display: none;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    color: var(--honey-beige);
}

.hexagon-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    position: relative;
    animation: rotate 2s linear infinite;
}

.hexagon-loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--honey-gold);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Chat Section */
.chat-section {
    background: rgba(17, 17, 17, 0.8);
    border: 2px solid rgba(255, 183, 0, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 200px);
}

.chat-header {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.2), rgba(255, 138, 0, 0.2));
    border-bottom: 2px solid rgba(255, 183, 0, 0.3);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--honey-yellow);
    border-radius: 18px 18px 0 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 400px;
    max-height: 600px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 183, 0, 0.1);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--honey-gold);
    border-radius: 10px;
}

.message {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 244, 214, 0.05);
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message .username {
    color: var(--honey-gold);
    font-weight: 700;
    margin-right: 0.5rem;
}

.message.system {
    background: rgba(255, 196, 0, 0.1);
    border-left: 3px solid var(--honey-gold);
}

.message.system .username {
    color: var(--honey-orange);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 2px solid rgba(255, 183, 0, 0.3);
}

#chatInput {
    flex: 1;
    background: rgba(255, 244, 214, 0.05);
    border: 2px solid rgba(255, 183, 0, 0.3);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    color: var(--honey-beige);
    font-size: 1rem;
    font-family: inherit;
}

#chatInput:focus {
    outline: none;
    border-color: var(--honey-gold);
    background: rgba(255, 244, 214, 0.1);
}

#sendBtn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .live-container {
        grid-template-columns: 1fr;
    }
    
    .chat-section {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .live-header h1 {
        font-size: 2rem;
    }
    
    .live-subtitle {
        font-size: 0.9rem;
    }
    
    .ad-overlay {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .chat-messages {
        min-height: 300px;
    }
}
