* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #EEFF00;
    --color-primary-dark: #c9d600;
    --color-secondary: #BEB7AA;
    --color-secondary-dark: #a39d91;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 28px;
    color: #2d3748;
    font-weight: 700;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f7fafc;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    animation: pulse 2s infinite;
}

.status-dot.live {
    background: #f56565;
    box-shadow: 0 0 8px rgba(245, 101, 101, 0.6);
}

.status-dot.offline {
    background: #4a5568;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 9;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

#videoPlayer.active {
    display: block;
}

.offline-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.offline-message.hidden {
    display: none;
}

.offline-message p {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.offline-message .subtitle {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 400;
}

footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-panel section {
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.admin-panel h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-group select:hover {
    border-color: #cbd5e0;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #718096;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-secondary:hover {
    background: #4a5568;
}

.preview-container {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

#previewVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls-section {
    grid-column: 1 / -1;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 200px;
}

.stream-info {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

.stream-info p {
    margin: 0;
    font-size: 16px;
    color: #4a5568;
}

.stream-info span {
    font-weight: 600;
    color: #2d3748;
}

.stream-info span.active {
    color: #48bb78;
}

.stream-info span.inactive {
    color: #f56565;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-panel {
        grid-template-columns: 1fr;
    }

    .controls-section {
        grid-column: 1;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}
