/* Playback comments: shared desktop/mobile card, using the site's theme color. */
.video-detail-nav {
    position: sticky;
    top: var(--video-nav-top, 111px);
    z-index: 40;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    margin: 16px 0 20px;
    padding: 8px 0;
    background: #000;
    font-size: 17px;
    line-height: 1.5;
}

.video-detail-nav a {
    position: relative;
    display: block;
    flex-shrink: 0;
    padding: 10px 0;
    color: #eee;
    text-decoration: none;
    transition: color .2s;
}

.video-detail-nav a[aria-current="location"] {
    color: var(--dx-primary-color);
}

.video-detail-nav a[aria-current="location"]::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 33px;
    height: 3px;
    border-radius: 16px;
    background: var(--dx-primary-color);
    transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
    .video-detail-nav a:hover {
        color: var(--dx-primary-color);
    }
}

.video-related-section,
.video-comments-section {
    scroll-margin-top: var(--video-section-offset, 181px);
}

.video-comments-section {
    margin: 20px 0 28px;
    padding: 20px 24px;
    border: 1px solid #252a32;
    border-radius: 4px;
    background: #131313;
    color: #d1d1d1;
    font-size: 14px;
}

.video-comments-section .comment-heading {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.video-comments-section .comment-login-tip {
    margin: 4px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

.video-comments-section .comment-composer {
    margin: 16px 0 20px;
    padding: 12px;
    border: 1px solid #2b3039;
    background: #1a1a1a;
}

.video-comments-section .comment-composer:focus-within {
    border-color: var(--dx-primary-color);
}

.video-comments-section #comment-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 104px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eee;
    font: inherit;
    line-height: 1.7;
    resize: vertical;
}

.video-comments-section #comment-input::placeholder {
    color: #969ba5;
}

.video-comments-section .comment-composer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.video-comments-section .btn-comment {
    min-width: 118px;
    min-height: 36px;
    padding: 6px 16px;
    font-size: 14px;
}

.video-comments-section .comment-empty {
    margin: 24px 0;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

.video-comments-section .video-comment {
    gap: 12px;
    margin: 0;
    padding: 20px 0;
}

.video-comments-section .avatar {
    width: 48px;
    height: 48px;
    margin: 0;
}

.video-comments-section .avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-comments-section .video-comment > .flex-1 {
    min-width: 0;
}

.video-comments-section .title {
    flex-wrap: wrap;
    gap: 4px 12px;
    line-height: 1.5;
}

.video-comments-section .title .avatar-link {
    overflow-wrap: anywhere;
}

.video-comments-section .video-comment--content {
    margin-top: 6px;
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.video-comments-section .video-comment--action {
    flex-wrap: wrap;
    margin-bottom: 0;
    font-size: 13px;
}

.video-comments-section .video-comment--action > .btn-like,
.video-comments-section .video-comment--action > .btn-dislike,
.video-comments-section .btn-reply {
    min-height: 32px;
    cursor: pointer;
}

.video-comments-section .video-comment .video-comment {
    margin-top: 12px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 4px;
}

.video-comments-section .video-comment .video-comment .avatar {
    width: 32px;
    height: 32px;
}

.video-comments-section .reply-container input {
    min-width: 0;
    min-height: 36px;
}

.video-comments-section .load-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.video-comments-section .btn-load {
    min-height: 40px;
    padding: 8px 28px;
    border: 1px solid #353535;
    border-radius: 4px;
    background: #252525;
    font-size: 14px;
}

.video-comments-section .btn-load:disabled {
    color: #999;
    cursor: default;
}

@media (max-width: 767px) {
    .video-detail-nav {
        top: var(--video-nav-top, 57px);
        gap: 24px;
        margin: 12px 8px 16px;
        font-size: 15px;
    }

    .video-related-section,
    .video-comments-section {
        scroll-margin-top: var(--video-section-offset, 124px);
    }

    .video-comments-section {
        margin: 16px 8px 24px;
        padding: 14px 12px;
    }

    .video-comments-section .comment-heading {
        font-size: 15px;
    }

    .video-comments-section .comment-composer {
        margin-top: 12px;
    }

    .video-comments-section .video-comment {
        gap: 8px;
        padding: 16px 0;
    }

    .video-comments-section .avatar {
        width: 36px;
        height: 36px;
    }

    .video-comments-section .video-comment .video-comment {
        padding: 10px 8px;
    }
}
