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

body {
    background-color: #020202;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    padding: 25px;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
}

/* ── Header ── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.9em;
    color: #00ff00;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00;
}

.status-dot.offline {
    background: #ff4444;
}

.status-label {
    font-size: 0.8em;
    letter-spacing: 0.1em;
    color: #666;
}

h2 {
    font-size: 1.15em;
    margin-bottom: 15px;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
    color: #00ff00;
}

/* ── Layout ── */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.left-panel {
    flex: 2;
    min-width: 480px;
}

.right-panel {
    width: 460px;
    min-width: 460px;
}

/* ── Video ── */
.video-section {
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    letter-spacing: 0.15em;
    font-size: 0.85em;
}

.stream-overlay.hidden {
    display: none;
}

#stream-status-text {
    color: #3a3a3a;
}

#stream-status-text.connecting {
    color: #ffa500;
}

#stream-status-text.live {
    color: #00ff00;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #00ff00;
    padding: 3px 10px;
    font-size: 0.75em;
    border-radius: 3px;
    letter-spacing: 0.12em;
    animation: livePulse 2s infinite;
}

.live-badge.hidden {
    display: none;
}

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

/* ── Images grid ── */
.images-section {
    margin-bottom: 20px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.image-slot {
    aspect-ratio: 1;
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.1);
    overflow: hidden;
}

.image-slot:hover {
    box-shadow: 0 0 14px rgba(0, 255, 0, 0.4);
}

.image-slot.filled:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* ── Terminal ── */
#terminal {
    background-color: #020202;
    border: 1px solid #00ff00;
    height: 560px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 6px;
    box-shadow: inset 0 0 30px rgba(77, 238, 234, 0.06), 0 0 18px rgba(62, 255, 221, 0.06);
}

.log-entry {
    margin-bottom: 12px;
    padding: 12px 10px;
    background: rgba(0, 255, 0, 0.02);
    border-left: 3px solid #00ff00;
    line-height: 1.35;
    white-space: pre-wrap;
}

.log-line {
    display: block;
}

.log-line.header  { color: #4deeea; font-weight: 700; }
.log-line.team    { color: #c6ffea; }
.log-line.pool    { color: #ffeb7f; }
.log-line.metrics { color: #8fffb1; }
.log-line.status  { color: #ff7aff; }

.timestamp {
    color: #7be3ff;
    font-size: 0.85em;
    display: block;
    margin-bottom: 6px;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid #00ff00;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 1.8em;
    color: #00ff00;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    body { padding: 20px; }

    .main-content {
        flex-direction: column;
        gap: 18px;
    }

    .left-panel,
    .right-panel {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    #terminal { height: 420px; }
}
