.attachmentvideo {
    box-sizing: border-box;
    margin: 10px 0;
    max-width: var(--attachmentvideo-max-width, 960px);
    width: 100%;
}

.attachbox.attachmentvideo-attachbox {
    box-sizing: border-box;
    clear: both;
    float: none;
    max-width: 100%;
    width: 100%;
}

.attachmentvideo-player {
    background: #000;
    border-radius: 4px;
    display: block;
    aspect-ratio: auto 16 / 9;
    height: auto;
    max-height: var(--attachmentvideo-max-height, 720px);
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.attachmentvideo-caption {
    box-sizing: border-box;
    font-size: 0.9em;
    line-height: 1.5;
    padding: 6px 2px 0;
}

.attachmentvideo-comment,
.attachmentvideo-meta {
    display: block;
}

.attachmentvideo-name {
    font-weight: 600;
}

.attachmentvideo-meta > span + span::before {
    content: " · ";
}

.attachmentvideo-download {
    margin-left: 0.5em;
}

.attachmentvideo-format-note,
.attachmentvideo-error {
    box-sizing: border-box;
    font-size: 0.9em;
    line-height: 1.45;
    margin: 6px 0 0;
}

.attachmentvideo-format-note {
    color: #6b5b00;
}

.attachmentvideo-error {
    background: #fff4f4;
    border-left: 3px solid #b33;
    color: #7a1717;
    display: none;
    padding: 7px 9px;
}

.attachmentvideo--playback-error .attachmentvideo-error {
    display: block;
}

@media (max-width: 480px) {
    .attachbox.attachmentvideo-attachbox {
        margin-left: 0;
        margin-right: 0;
    }

    .attachmentvideo {
        margin: 8px 0;
    }
}
