/* PROFILE VIDEO — один контейнер для локального MP4 и старых iframe.
   Никаких height: 0 и padding-bottom: 56.25%: они скрывали HTML5 video. */
.profile-v2-alert__video {
    position: relative;
    display: block;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    height: auto;
    margin: 0 auto;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

/* Локальный видеоплеер: занимает весь контейнер без фиксированной высоты. */
.profile-v2-alert__video>video,
.profile-v2-alert__video>.socaktiv-video__player {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 0;
    border-radius: inherit;
    background: #000;
}

/* Совместимость со старыми инструкциями на iframe, если такие ещё остались. */
.profile-v2-alert__video>iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .profile-v2-alert__video {
        max-width: 100%;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .profile-v2-alert__video {
        border-radius: 6px;
    }
}

.sidebar__footer a {
    color: inherit;
}

.profile-v2-card--profile {
    display: flex;
    align-items: center;
}

.profile-v2-button--secondary {
    color: var(--profile-primary) !important;
    background: #f2f0fb;
}

.profile-v2-button--secondary:hover,
.profile-v2-button--secondary:focus-visible {
    color: var(--profile-primary-hover) !important;
    background: #eae7f8;
}

.profile-v2-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-v2-status i {
    font-size: 6px;
}

.profile-v2-meta__date {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    color: var(--profile-text);
    font-size: 13px;
}

.profile-v2-meta__date-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--profile-primary);
    background: #f0edff;
    font-size: 14px;
}

.profile-v2-card--channels {
    min-width: 0;
}

.profile-v2-channels__header {
    margin-bottom: 13px;
}

.profile-v2-channels__title {
    margin: 0;
    color: var(--profile-text);
    font-size: 14px;
    font-weight: 700;
}

.profile-v2-channels__description {
    margin: 3px 0 0;
    color: var(--profile-muted);
    font-size: 11px;
    line-height: 1.4;
}

.profile-v2-channels {
    display: grid;
    gap: 8px;
}

.profile-v2-channel {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    background: #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.profile-v2-channel.is-connected {
    border-color: #dceadf;
    background: #fcfffc;
}

.profile-v2-channel.is-warning {
    border-color: #efd6a6;
    background: #fffdf8;
}

.profile-v2-channel.is-error {
    border-color: #efd6a6;
    background: #fffdf8;
}

.profile-v2-channel__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.profile-v2-channel__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-v2-channel__icon--telegram {
    color: #168bd2;
    background: #e8f6ff;
}

.profile-v2-channel__icon--vk {
    color: #3979db;
    background: #eaf2ff;
}

.profile-v2-channel__icon--phone {
    color: #6756c8;
    background: #efecff;
}

.profile-v2-channel__content {
    min-width: 0;
}

.profile-v2-channel__top {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
}

.profile-v2-channel__name {
    color: var(--profile-text);
    font-size: 12px;
    font-weight: 700;
}

.profile-v2-channel__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.profile-v2-channel__status.is-success {
    color: #289044;
}

.profile-v2-channel__status.is-warning {
    color: #c07a0c;
}

.profile-v2-channel__status.is-pending {
    color: #7565bf;
}

.profile-v2-channel__status i {
    font-size: 9px;
}

.profile-v2-channel__value {
    margin-top: 4px;
    color: #656b7d;
    font-size: 11px;
}

.profile-v2-channel__value strong {
    color: var(--profile-text);
    font-weight: 700;
}

.profile-v2-channel__username {
    margin-left: 5px;
    color: var(--profile-muted);
}

.profile-v2-channel__hint {
    margin-top: 3px;
    color: #000;
    font-size: 9px;
    line-height: 1.35;
}

.profile-v2-channel__hint--warning {
    color: #a96b09;
}

.profile-v2-channel__action {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.profile-v2-channel__button {
    min-width: 110px;
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    color: #fff !important;
    background: var(--profile-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition:
        background-color .18s ease,
        transform .18s ease;
}

.profile-v2-channel__button:hover,
.profile-v2-channel__button:focus-visible {
    color: #fff !important;
    background: var(--profile-primary-hover);
    transform: translateY(-1px);
}

.profile-v2-channel__button--secondary {
    color: var(--profile-primary) !important;
    background: #f0edff;
}

.profile-v2-channel__button--secondary:hover,
.profile-v2-channel__button--secondary:focus-visible {
    color: var(--profile-primary-hover) !important;
    background: #e8e4fb;
}

.profile-v2-channel__check {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--profile-primary);
    font-size: 9px;
    font-weight: 600;
    text-decoration: none !important;
}

