
:root {
    --online-color: #28a745;
    --offline-color: #dc3545;
    --loading-color: #ffc107;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stream-container {
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.stream-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 12p;x
}

.video-wrapper {
    position: relative;
    background: #000;
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    margin: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-online {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--online-color);
    border-left: 4px solid var(--online-color);
}

.status-offline {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--offline-color);
    border-left: 4px solid var(--offline-color);
}

.status-loading {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--loading-color);
    border-left: 4px solid var(--loading-color);
}

.status-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.stream-controls {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-count {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.quality-selector {
    min-width: 120px;
}

.stream-footer {
    padding: 1rem;
    background-color: #f1f3f5;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.offline-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
}

.offline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.admin-controls {
    padding: 1rem;
    background-color: #f1f8ff;
    border-top: 1px solid #dee2e6;
    display: none; /* Hidden by default */
}

.admin-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.admin-toggle:hover {
    opacity: 1;
}
.schedule-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-top: 20px;
    color: white;
}
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.schedule-list {
    max-height: 300px;
    overflow-y: auto;
}
.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.schedule-item.current {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}
.schedule-time {
    width: 100px;
    flex-shrink: 0;
}
.schedule-show {
    flex-grow: 1;
    padding: 0 15px;
}
.schedule-status {
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}
.refresh-schedule {
    cursor: pointer;
    color: #0d6efd;
}
.refresh-schedule:hover {
    color: #0b5ed7;
}

/* Responsive layout */
@media (min-width: 992px) {
    .stream-and-schedule {
        gap: 20px;
    }
    .video-wrapper {
        flex: 2;
    }
    .schedule-container {
        flex: 1;
        margin-top: 0;
    }
}
