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

body { 
    font-family: Arial, sans-serif;
    background: #2c3e50;
    color: white;
}

.header {
    background: rgba(0,0,0,0.8);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.header .logo {
    width: auto;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.header h3 {
    font-size: 1em;
    color: #ecf0f1;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 10px auto;
    padding: 10px;
}

.video-card {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.video-frame {
    width: 100%;
    min-height: 300px;
    max-height: 70vh;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Стили для полного экрана */
.video-frame:fullscreen {
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.video-frame:-webkit-full-screen {
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.video-frame:fullscreen img,
.video-frame:-webkit-full-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
    background: linear-gradient(45deg, #56ab2f, #a8e6cf);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(86, 171, 47, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(86, 171, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(86, 171, 47, 0); }
}

.offline {
    background: #e74c3c !important;
    animation: none !important;
}

.controls {
    text-align: center;
    margin-top: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #2980b9;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .btn { display: none; }
    .video-frame { max-height: 50vh; }
    .container { margin: 5px; padding: 5px; }
    .header h3 { font-size: 0.9em; padding: 5px; }
    .header .logo { width: auto; height: 30px; }
    .status { padding: 3px 6px; font-size: 0.7em; top: 10px; right: 10px; }
    .video-card { padding: 5px; }
}

@media (max-width: 480px) {
    .video-frame { max-height: 40vh; }
    .header h3 { font-size: 0.8em; }
    .header .logo { width: auto; height: 25px; }
    .status { font-size: 0.6em; padding: 2px 4px; }
}