/* 
 * Vebix OTT - Cinematic Hover Engine Styles
 * -----------------------------------------------------------------------------
 * 12 Years Architecture Standard:
 * - Hardware Acceleration (GPU)
 * - Zero Layout Shift (ZLS)
 * - Stacking Context Isolation
 */

.ott-hover-engine-root {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: visible;
}

.ott-hover-panel {
    pointer-events: auto;
    position: absolute;
    background: #141414;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    will-change: transform, opacity;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out,
                box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.95) translate3d(0,0,0);
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

.ott-hover-panel.is-active {
    opacity: 1;
    transform: scale(1) translate3d(0,0,0);
    visibility: visible;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.15);
}

.ott-hover-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.ott-hover-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ott-hover-media video.is-ready {
    opacity: 1;
}

.ott-hover-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* MX Player Style Buttons */
.ott-btn-play-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    background: #fff;
    color: #000;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ott-btn-play-primary:hover {
    background: #6366f1; /* Indigo 500 */
    color: #fff;
    transform: scale(1.05);
}

.ott-btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.2s ease;
}

.ott-btn-icon-circle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.ott-btn-icon-circle.is-active {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ott-hover-engine-root {
        display: none !important;
    }
}
