:root {
    --vw-bg: #121212;
    --vw-card: rgba(255, 255, 255, 0.028);
    --vw-card-2: rgba(255, 255, 255, 0.04);
    --vw-line: rgba(255, 255, 255, 0.08);
    --vw-line-strong: rgba(255, 255, 255, 0.14);
    --vw-text: #e8e8e8;
    --vw-muted: #a7a7a7;
    --vw-accent: #d26a4d;
    --vw-accent-dark: #8a3d2f;
    --vw-green: #2ea44f;
    --vw-blue: #24a1de;
    --vw-radius: 18px;
    --vw-radius-sm: 12px;
    --vw-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.18);
    --vw-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.25);
    --vw-transition: 0.25s ease;
}

/* Общий layout */
.container-videowatch {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.video-section-videowatch {
    min-width: 0;
    margin-right: 0;
    border-right: 1px solid var(--vw-line);
    padding-right: 10px;
}

.related-section-videowatch {
    position: sticky;
    top: 14px;
    padding: 0;
    border-left: 0;
    background: transparent;
}

/* Широкий режим */
.container-videowatch.is-wide-videowatch {
    grid-template-columns: 1fr;
}

.container-videowatch.is-wide-videowatch .video-section-videowatch {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
}

.container-videowatch.is-wide-videowatch .related-section-videowatch {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 0;
    border-left: 0;
}

.container-videowatch.is-wide-videowatch .related-list-videowatch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.container-videowatch.is-wide-videowatch .related-title-block-videowatch {
    grid-column: 1 / -1;
}

.container-videowatch,
.video-section-videowatch,
.related-section-videowatch {
    transition:
        grid-template-columns 0.35s ease,
        width 0.35s ease,
        margin 0.35s ease,
        transform 0.35s ease,
        opacity 0.25s ease;
}

/* Хлебные крошки */
.folder-top-videowatch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: var(--vw-muted);
    font-size: 13px;
    line-height: 1.45;
    border-bottom: 1px solid var(--vw-line);
}

.folder-top-videowatch a {
    color: var(--vw-text);
    text-decoration: none;
}

.folder-top-videowatch a:hover {
    color: var(--vw-accent);
}

.folder-path-videowatch {
    min-width: 0;
}

/* Кнопки справа в хлебных крошках */
.folder-actions-videowatch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Кнопка "Сделать шире" */
.wide-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 30px;
    padding: 6px 12px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));

    cursor: pointer;

    transition:
        transform var(--vw-transition),
        background var(--vw-transition),
        border-color var(--vw-transition),
        color var(--vw-transition);
}

.wide-video-btn:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(210, 106, 77, 0.22), rgba(210, 106, 77, 0.08));
    border-color: rgba(210, 106, 77, 0.35);
}

.wide-video-btn i {
    font-size: 12px;
    opacity: 0.9;
}

.container-videowatch.is-wide-videowatch .wide-video-btn {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(210, 106, 77, 0.95), rgba(138, 61, 47, 0.95));
    border-color: rgba(255, 255, 255, 0.16);
}

/* Видео */
.video-wrapper-videowatch {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #050505;
    border: 1px solid var(--vw-line);
    box-shadow: var(--vw-shadow-md);
}

.video-wrapper-videowatch iframe,
iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Информационный блок */
.video-info-videowatch {
    margin-top: 18px;
}

.video-format-videowatch {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.016));
    border: 1px solid var(--vw-line);
    border-radius: 22px;
    box-shadow: var(--vw-shadow-sm);
}

.video-format-videowatch::before {
    content: '';
    position: absolute;
    top: -55%;
    left: -45%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 48%,
            #ffffff07 48%,
            #ffffff07 52%,
            transparent 52%);
    transform: rotate(25deg);
    pointer-events: none;
}

.video-format-videowatch>* {
    position: relative;
    z-index: 1;
}

/* Тип live / interview / concert */
.video-type-videowatch {
    display: inline-block;
    margin-bottom: 8px;
    color: antiquewhite;
    font-size: 12px;
    line-height: 1.4;
}

/* Если тип остался inline style без класса */
.video-format-videowatch > div:first-child:not(.container-videowatch-block):not(.views-bar) {
    color: antiquewhite;
    font-size: 12px;
}

.video-title-videowatch {
    margin: 10px 0 18px;
    color: #fff;
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

/* Блок группы / логотипа */
.container-videowatch-block {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.image-videowatch-block {
    width: 170px;
    height: 72px;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #080808;
    border: 1px solid var(--vw-line);
}

.image-videowatch-block img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.telegram-player-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.album-info-videowatch-block,
.telegram-player-grid>a:first-child {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.album-info-videowatch-block small,
.telegram-player-grid>a:first-child small {
    color: antiquewhite !important;
    font-size: 12px !important;
}

.text1-videowatch-block {
    margin-top: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.text2-videowatch-block {
    margin-top: 3px;
    color: var(--vw-muted);
    font-size: 13px;
    line-height: 1.35;
}

/* Описание */
.video-description-videowatch {
    margin: 0;
    color: #c6c6c6;
    font-size: 14px;
    line-height: 1.75;
}

/* Просмотры */
.views-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin: 18px 0 0 auto;
    padding: 0;
}

.views-sep {
    display: none;
}

.views-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: var(--vw-text);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    white-space: nowrap;
    transition:
        transform var(--vw-transition),
        border-color var(--vw-transition),
        background var(--vw-transition);
}

.views-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--vw-line-strong);
}

.views-ico {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .86);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.views-num {
    color: antiquewhite;
    font-size: 14px;
    font-weight: 800;
}

/* Метаданные + спасибо */
.video-meta-thanks-videowatch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 16px 0 0 0;
    padding: 16px;
    border-top: 1px solid var(--vw-line);
}

.thanks-list {
    margin: 0;
    padding: 0;
    color: var(--vw-muted);
    font-size: 13px;
    line-height: 1.6;
    border: 0;
}

.thanks-list user,
.thanks-list b {
    color: var(--vw-accent);
    font-weight: 800;
}

.viewed-num-videowatch {
    color: antiquewhite;
}

.meta-dot-videowatch {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 4px;
}

.button-thanks {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    float: none;
    margin: 0;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, #2ea44f, #23863f);
    box-shadow: var(--vw-shadow-sm);
    cursor: pointer;
    transition:
        transform var(--vw-transition),
        filter var(--vw-transition);
}

.button-thanks:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    background: linear-gradient(180deg, #2ea44f, #23863f);
    box-shadow: var(--vw-shadow-sm);
}

.button-thanks::before {
    display: none;
}

.button-thanks a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

/* Ещё видео */
.video-preview-container-videowatch-more {
    padding: 20px;
    font-size: 13px;
    border-top: 1px solid var(--vw-line);
}

.video-preview-container-videowatch-more h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 20px;
}

.video-previews-videowatch-more {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
}

.video-preview-videowatch-more {
    text-align: left;
}

.video-preview-videowatch-more a {
    display: block;
    text-decoration: none;
    text-align: center;
}

.video-preview-videowatch-more img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    filter: brightness(0.86);
    border: 1px solid var(--vw-line);
    box-shadow: none;
    cursor: pointer;
    transition:
        transform var(--vw-transition),
        filter var(--vw-transition),
        border-color var(--vw-transition);
}

.video-preview-videowatch-more:hover img {
    transform: translateY(-2px);
    filter: brightness(1);
    border-color: var(--vw-line-strong);
}

.video-preview-videowatch-more p {
    margin: 8px 0 0;
    color: var(--vw-muted);
    font-size: 13px;
    line-height: 1.35;
}

.video-preview-videowatch-more small {
    color: antiquewhite !important;
    font-size: 12px !important;
}

/* Правый блок — без общего фона */
.related-list-videowatch {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-content-videowatch {
    margin: 0;
    color: var(--vw-muted);
}

.related-content-videowatch small {
    color: var(--vw-muted);
    font-size: 12px;
}

.related-content-videowatch span {
    color: antiquewhite;
}

.related-title-block-videowatch {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    border-bottom: 1px solid var(--vw-line);
}

.related-item-videowatch {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.related-item-videowatch:hover {
    background: transparent;
    transform: none;
}

.related-link-videowatch {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.052);
    transition:
        transform var(--vw-transition),
        background var(--vw-transition),
        border-color var(--vw-transition);
}

.related-link-videowatch:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--vw-line-strong);
}

.related-thumbnail-videowatch {
    width: 118px;
    height: 74px;
    margin: 0;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
}

.related-info-videowatch {
    width: auto;
    min-width: 0;
    display: block;
}

.related-title-videowatch {
    display: -webkit-box;
    width: auto;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-title-videowatch:hover {
    color: #fff;
}

.related-channel-videowatch,
.related-date-videowatch {
    display: block;
    width: auto;
    margin: 5px 0 0;
    color: var(--vw-muted);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-channel-videowatch span {
    color: aliceblue;
}

.related-empty-videowatch {
    color: var(--vw-muted);
    font-size: 13px;
}

/* Views */
.views-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin: 18px 0 0 auto;
    padding: 0;
}

.views-sep {
    display: none;
}

.views-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: var(--vw-text);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    white-space: nowrap;
    transition:
        transform var(--vw-transition),
        border-color var(--vw-transition),
        background var(--vw-transition);
}

.views-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--vw-line-strong);
}

.views-ico {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .86);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.views-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vw-text);
    font-size: 14px;
    font-weight: 800;
}

.views-main-num {
    color: antiquewhite;
}

.views-label {
    padding: 2px 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
}

.views-sub {
    color: var(--vw-muted);
    font-size: 12px;
    font-weight: 500;
    opacity: 1;
}

.views-pill--yt .views-label {
    background: rgba(255, 0, 0, .16);
    border-color: rgba(255, 0, 0, .24);
}

.views-pill--site .views-label {
    background: rgba(0, 194, 255, .14);
    border-color: rgba(0, 194, 255, .24);
}

/* Нижний список благодарностей */
.thanks-list-bottom-videowatch {
    max-width: 1500px;
    margin: 20px auto 0;
    padding: 16px 18px;
    color: var(--vw-muted);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--vw-line);
}

.thanks-list-bottom-videowatch .fal {
    color: var(--vw-accent);
    margin-right: 6px;
}

.thanks-list-bottom-videowatch b {
    color: antiquewhite;
}

.anim {
    margin: 10px 0 0 0;
    text-align: center;
}

.col-left {
    display: none;
}

/* Широкий режим */
.container-videowatch.is-wide-videowatch {
    grid-template-columns: 1fr;
}

/* Видео занимает всю ширину */
.container-videowatch.is-wide-videowatch .video-section-videowatch {
    width: 100%;
    min-width: 0;
    margin-right: 0;
}

/* Правый блок уходит вниз */
.container-videowatch.is-wide-videowatch .related-section-videowatch {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 0;
    border-left: 0;
}

/* В широком режиме рекомендации становятся сеткой */
.container-videowatch.is-wide-videowatch .related-list-videowatch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

/* Биография справа в широком режиме занимает всю ширину */
.container-videowatch.is-wide-videowatch .related-bio-box-videowatch {
    grid-column: 1 / -1;
}

/* Заголовки секций в широком режиме */
.container-videowatch.is-wide-videowatch .related-title-block-videowatch {
    grid-column: 1 / -1;
}

/* Активное состояние кнопки */
.container-videowatch.is-wide-videowatch .wide-video-btn {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(210, 106, 77, 0.95), rgba(138, 61, 47, 0.95));
    border-color: rgba(255, 255, 255, 0.16);
}

.wide-video-btn .icon-compress,
.wide-video-btn .text-compress {
    display: none;
}

.container-videowatch.is-wide-videowatch .wide-video-btn .icon-expand,
.container-videowatch.is-wide-videowatch .wide-video-btn .text-expand {
    display: none;
}

.container-videowatch.is-wide-videowatch .wide-video-btn .icon-compress,
.container-videowatch.is-wide-videowatch .wide-video-btn .text-compress {
    display: inline-block;
}

/* Небольшая плавность перестроения */
.container-videowatch,
.video-section-videowatch,
.related-section-videowatch {
    transition:
        grid-template-columns 0.35s ease,
        width 0.35s ease,
        margin 0.35s ease,
        transform 0.35s ease,
        opacity 0.25s ease;
}

/* Мобилка */
@media (max-width: 1180px) {
    .wide-video-btn {
        display: none;
    }

    .container-videowatch {
        grid-template-columns: 1fr;
    }

    .video-section-videowatch {
        padding-right: 0;
        border-right: 0;
    }

    .related-section-videowatch {
        position: static;
    }

    .container-videowatch.is-wide-videowatch .related-list-videowatch {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container-videowatch {
        gap: 18px;
    }

    .folder-top-videowatch {
        display: block;
        padding: 12px 0;
    }

    .folder-actions-videowatch {
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .video-wrapper-videowatch {
        border-radius: 16px;
    }

    .video-format-videowatch,
    .video-meta-thanks-videowatch,
    .video-preview-container-videowatch-more,
    .thanks-list-bottom-videowatch {
        padding: 16px;
        border-radius: 18px;
    }

    .container-videowatch-block {
        grid-template-columns: 1fr;
    }

    .image-videowatch-block {
        width: 100%;
        height: 88px;
    }

    .telegram-player-grid {
        display: block;
    }

    .views-bar {
        justify-content: flex-start;
    }

    .video-meta-thanks-videowatch {
        display: block;
    }

    .button-thanks {
        display: inline-block;
        margin-top: 12px;
    }

    .video-previews-videowatch-more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-link-videowatch {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .related-thumbnail-videowatch {
        width: 108px;
        height: 68px;
    }
}

@media (max-width: 420px) {
    .video-previews-videowatch-more {
        grid-template-columns: 1fr;
    }

    .related-link-videowatch {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .related-thumbnail-videowatch {
        width: 96px;
        height: 62px;
    }
}