/* НАША РОССИЯ — ПЕРЕКЛЮЧАТЕЛЬ ВЕБ-КАМЕР */

.nasha-cameras {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 25px;
}

.nasha-camera-tabs {
    display: flex;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    margin: 0 0 6px;
    padding: 2px 0 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.nasha-camera-tab {
    flex: 1 0 52px;
    min-width: 52px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .2s,
                border-color .2s,
                color .2s;
}

.nasha-camera-tab:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #222;
}

.nasha-camera-tab.active,
.nasha-camera-tab.active:hover {
    background: #2878c8;
    border-color: #2878c8;
    color: #fff;
}

.nasha-camera-tab:focus-visible {
    outline: 2px solid #2878c8;
    outline-offset: 2px;
}

.nasha-camera-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0 0 6px;
    padding: 10px 15px;
    box-sizing: border-box;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.nasha-camera-screen {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111;
}

.nasha-camera-screen iframe,
.nasha-camera-screen video,
.nasha-camera-screen > div {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    border: 0;
}

.nasha-camera-screen > div {
    position: absolute;
    inset: 0;
}

/* Источник трансляции */

.nasha-camera-source {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

.nasha-camera-source .pseudo-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.nasha-camera-source .pseudo-link:hover {
    color: #2878c8;
}

/* Мобильная версия */

@media (max-width: 600px) {
    .nasha-cameras {
        margin: 15px 0 20px;
    }

    .nasha-camera-tabs {
        gap: 4px;
        margin-bottom: 10px;
    }

    .nasha-camera-tab {
        min-width: 48px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .nasha-camera-title {
        min-height: 40px;
        margin-bottom: 5px;
        padding: 9px 10px;
        font-size: 15px;
    }
}
