/* --------------------------------------------------------------
# VK comment picker
-------------------------------------------------------------- */

.vk-video-picker-page {
    padding-bottom: 50px;
}

.vk-video-picker-copy {
    max-width: 860px;
    margin-bottom: 30px;
}

.vk-video-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 34px;
    align-items: start;
}

.vk-video-picker [hidden] {
    display: none !important;
}

.vk-video-picker-form-card {
    min-width: 0;
}

#vk-video-post-url {
    margin-bottom: 18px;
}

.vk-video-picker-error {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #8a2430;
    background: #fff0f2;
    border-radius: 10px;
}

.vk-video-filter-panel {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #e4e2ea;
}

.vk-video-filter-panel h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.vk-video-filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.vk-video-filter-panel label:not(.vk-video-filter-checkbox) {
    margin-top: 20px;
}

.vk-video-filter-note {
    display: block;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 11px;
    line-height: 1.45;
    color: #77758b;
}

#vk-video-deadline {
    margin-bottom: 0;
}

.vk-video-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.vk-video-stats > div {
    padding: 14px 10px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}

.vk-video-stats span {
    display: block;
    min-height: 32px;
    font-size: 11px;
    line-height: 1.35;
    color: #77758b;
}

.vk-video-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1;
    color: #272746;
}

.vk-video-pick-button {
    margin-top: 18px;
}

.vk-video-picker-right {
    min-width: 0;
}

.vk-video-post-card,
.vk-video-loading-card,
.vk-video-winner-card {
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(39, 39, 70, .06);
    overflow: hidden;
}

.vk-video-post-image-link {
    display: block;
    max-height: 320px;
    background: #f1f1f5;
    overflow: hidden;
}

.vk-video-post-image-link img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.vk-video-post-meta {
    padding: 20px;
}

.vk-video-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vk-video-post-author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f4;
}

.vk-video-post-author strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #272746;
}

.vk-video-post-author span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #8a8999;
}

.vk-video-post-text {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #3d3d51;
}

.vk-video-post-open {
    display: inline-block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 600;
}

.vk-video-post-found {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.35;
    color: #5f5f7a;
    background: #f7f7fb;
    border-radius: 10px;
}

.vk-video-post-found strong {
    margin-left: 4px;
    font-size: 18px;
    color: #272746;
}

.vk-video-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin-top: 18px;
    padding: 30px;
    text-align: center;
}

.vk-video-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 4px solid #ececf5;
    border-top-color: #4343a0;
    border-radius: 50%;
    animation: vk-spin .8s linear infinite;
}

@keyframes vk-spin {
    to {
        transform: rotate(360deg);
    }
}

.vk-video-loading-card strong {
    font-size: 15px;
    color: #272746;
}

.vk-video-loading-card span {
    margin-top: 8px;
    font-size: 12px;
    color: #77758b;
}

.vk-video-winner-card {
    margin-top: 18px;
    padding: 24px;
}

.vk-video-winner-label {
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #77758b;
}

.vk-video-winner-author {
    display: flex;
    align-items: center;
    gap: 13px;
}

.vk-video-winner-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f4;
}

.vk-video-winner-author strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #272746;
}

.vk-video-winner-author span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #8a8999;
}

.vk-video-winner-comment {
    margin-top: 20px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #3d3d51;
    background: #f7f7fb;
    border-radius: 14px;
}

.vk-video-winner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
}

.vk-video-winner-footer span {
    font-size: 11px;
    color: #8a8999;
}

.vk-video-winner-footer a {
    font-size: 11px;
    font-weight: 600;
}

.vk-video-picker-footer {
    display: block;
    margin-top: 45px;
}

.vk-video-picker-footer .text {
    max-width: 860px;
}

@media screen and (max-width: 980px) {
    .vk-video-picker {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .vk-video-picker-page {
        padding-bottom: 30px;
    }

    .vk-video-stats {
        grid-template-columns: 1fr;
    }

    .vk-video-stats span {
        min-height: 0;
    }

    .vk-video-winner-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Multiple winners */

.vk-video-winners-setting {
    margin-top: 24px;
}

.vk-video-winners-setting label {
    margin-top: 0 !important;
}

.vk-video-winners-setting input {
    width: 130px;
    margin-bottom: 0;
}

.vk-video-winners-setting small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.4;
    color: #77758b;
}

.vk-video-winners {
    margin-top: 18px;
}

.vk-video-winners-heading {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #272746;
}

.vk-video-winner-list {
    display: grid;
    gap: 14px;
}

.vk-video-winner-list .vk-video-winner-card {
    margin-top: 0;
}


/* Share + shared result */

.vk-video-attempts {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.4;
    color: #5f5f7a;
    background: #fff;
    border-radius: 10px;
}

.vk-video-attempts strong {
    margin-left: 4px;
    font-size: 16px;
    color: #272746;
}

.vk-video-share-actions {
    margin-top: 16px;
}

.vk-video-share-actions .button-line {
    width: 100%;
    min-height: 44px;
    background: #fff;
}

.vk-video-share-box {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 14px;
}

.vk-video-share-box label {
    margin-bottom: 9px;
    font-size: 12px;
}

.vk-video-share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.vk-video-share-row input {
    min-width: 0;
    margin: 0;
    font-size: 12px;
}

.vk-video-share-row .button-line {
    min-height: 46px;
    padding: 0 16px;
    background: #fff;
}

.vk-video-share-status {
    margin-top: 8px;
    font-size: 11px;
    color: #5f5f7a;
}

.vk-video-shared-filter-panel {
    display: block;
}

.vk-video-shared-settings input[readonly] {
    cursor: default;
}

.vk-video-shared-settings input[type="checkbox"]:disabled {
    opacity: 1;
}

.vk-video-winners--shared {
    display: block;
}

.vk-video-shared-cta {
    margin-top: 20px;
}

.vk-video-shared-cta .button {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .vk-video-share-row {
        grid-template-columns: 1fr;
    }

    .vk-video-share-row .button-line {
        width: 100%;
    }
}


/* Attempt counter status — must override the base "vk-attempts strong" color */

.vk-video-attempts strong.attempt-count--one,
.vk-video-attempts .attempt-count--one {
    color: #2f9e44 !important;
}

.vk-video-attempts strong.attempt-count--many,
.vk-video-attempts .attempt-count--many {
    color: #d64545 !important;
}
