/* Livestream Page Styles */

.livestream-page {
    background: var(--content-bg);
    min-height: 100vh;
}

.livestream-header {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.livestream-header h1 {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.livestream-header h1 i {
    color: #e74c3c;
}

.refresh-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.livestream-container {
    padding: 16px;
}

.stream-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
}

.stream-loading i {
    font-size: 48px;
    color: var(--primary-color);
}

.stream-loading p {
    font-size: 16px;
    color: #666;
}

.stream-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twitch-embed,
.twitch-chat {
    background: #18181b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 16:9 Aspect Ratio Container */
.iframe-container-16-9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

.iframe-container-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.twitch-chat {
    height: 400px;
}

@media (min-width: 768px) {
    .stream-wrapper {
        flex-direction: row;
    }
    
    .twitch-embed {
        flex: 2;
    }
    
    .twitch-chat {
        flex: 1;
        height: 500px;
    }
}

.stream-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.info-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-text {
    flex: 1;
}

.info-title {
    font-size: 13px;
    color: #757575;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.info-link:hover {
    text-decoration: underline;
}

.info-link i {
    font-size: 12px;
}

.stream-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.action-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.action-btn span {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
