/* assets/css/live-public.css */

.live-header {
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.live-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-header .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.live-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.live-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Video Section */
.video-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.player-container {
    background: var(--dark);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.player-placeholder {
    text-align: center;
    padding: 40px;
}

.player-placeholder .video-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.player-placeholder .live-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
}

.player-placeholder .live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.video-info {
    padding: 20px;
}

.video-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.admin-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.viewer-count,
.participant-count {
    color: var(--gray);
    font-size: 14px;
}

.description {
    color: var(--gray);
    margin-top: 8px;
    line-height: 1.6;
}

/* Video Actions */
.video-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    border-color: var(--white);
    color: var(--white);
}

.action-btn.primary {
    background: var(--white);
    color: var(--black);
}

.action-btn.primary:hover {
    opacity: 0.9;
}

/* Chat Section */
.chat-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
}

.chat-count {
    color: var(--gray);
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 300px;
    max-height: 400px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--black);
    border-radius: 8px;
}

.chat-message.admin {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--white);
}

.chat-message strong {
    color: var(--white);
    margin-right: 8px;
}

.chat-message .message-text {
    color: var(--gray);
    word-wrap: break-word;
}

.chat-message .message-time {
    float: right;
    color: var(--dark-gray);
    font-size: 11px;
}

.chat-input {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
}

.chat-disabled {
    padding: 20px;
    text-align: center;
}

.chat-disabled a {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .live-container {
        grid-template-columns: 1fr;
    }
    
    .chat-section {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .player-container {
        min-height: 250px;
    }
    
    .video-info h1 {
        font-size: 20px;
    }
    
    .video-meta {
        gap: 8px;
        font-size: 13px;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .live-header .logo {
        font-size: 18px;
    }
    
    .player-container {
        min-height: 200px;
    }
    
    .player-placeholder .video-icon {
        font-size: 40px;
    }
}