.vtcf-wrap {
    position: relative;
    width: var(--vtcf-width, 100%);
    height: var(--vtcf-height, 560px);
    max-width: 100%;
    overflow: hidden;
    background: var(--vtcf-bg, #fff);
    border-radius: var(--vtcf-radius, 0px);
    line-height: 0;
    touch-action: pan-y;
}

.vtcf-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--vtcf-fit, contain);
    opacity: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.vtcf-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.vtcf-loader span {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-top-color: rgba(0, 0, 0, 0.62);
    border-radius: 50%;
    animation: vtcf-spin 0.8s linear infinite;
}

.vtcf-wrap.vtcf-ready .vtcf-loader,
.vtcf-wrap.vtcf-error-state .vtcf-loader {
    opacity: 0;
}

.vtcf-status {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(88%, 620px);
    padding: 10px 13px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    pointer-events: none;
    line-height: 1.4;
}

.vtcf-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.82;
    transition: opacity 220ms ease;
    line-height: 1.2;
}

.vtcf-wrap.vtcf-interacted .vtcf-hint {
    opacity: 0;
}

.vtcf-error {
    padding: 12px 14px;
    border: 1px solid #cc1818;
    background: #fff5f5;
    color: #7a1010;
}

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

@media (prefers-reduced-motion: reduce) {
    .vtcf-loader,
    .vtcf-hint {
        transition: none;
    }
}
