.hls-controls-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.hls-download-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}
.hls-download-link:hover {
    background: #ebebeb;
    color: #222;
    text-decoration: none;
}

.hls-quality-wrap {
    position: relative;
    display: inline-block;
}
.hls-quality-btn {
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}
.hls-quality-btn:hover {
    background: #ebebeb;
    color: #222;
}
.hls-quality-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 4px;
    min-width: 100px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}
.hls-quality-item {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}
.hls-quality-item:hover {
    background: #f0f0f0;
}
.hls-quality-item.active {
    background: #e7f0fa;
    font-weight: bold;
}
.post-files video[data-hls-guid] {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: #000;
    aspect-ratio: auto;
}
.post-files .col-media:has(video[data-hls-guid]) {
    height: auto !important;
}
