/* VC Video Widget - Frontend Styles */

.vcvw-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Ratio Box — padding-bottom trick */
.vcvw-ratio-box {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

/* Video container fills ratio box */
.vcvw-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.vcvw-video-container video,
.vcvw-video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Overlay / Banner ── */
.vcvw-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.vcvw-overlay.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.vcvw-overlay-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vcvw-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    z-index: 3;
    text-align: left;
}

.vcvw-overlay-title {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.vcvw-overlay-subtitle {
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Play Button ── */
.vcvw-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    outline: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vcvw-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.vcvw-play-btn:active {
    transform: translate(-50%, -50%) scale(0.97);
}

/* Pulse ring animation on default play icon */
.vcvw-play-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    animation: vcvw-pulse 2s ease-out infinite;
}

@keyframes vcvw-pulse {
    0%   { transform: scale(1);    opacity: 1; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* No-overlay play btn (sits over video) */
.vcvw-play-btn--no-overlay {
    top: 50%;
    left: 50%;
    z-index: 5;
}

/* ── Loading Spinner ── */
.vcvw-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
    background: rgba(0,0,0,0.5);
}

.vcvw-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vcvw-spin 0.7s linear infinite;
}

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

/* ── YouTube iframe wrapper ── */
.vcvw-yt-wrap {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}
