/* ===== Reset / base ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Center the video on screen */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: #fff;
}

/* ===== Canvas background for JS animation ===== */

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #000;
}

/* ===== Video card ===== */

.video-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    animation: shellFadeIn 0.7s ease-out both;
    will-change: transform, opacity;
}

@keyframes shellFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Outer frame with animated gradient border */

.video-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(140, 140, 140, 0.6),
        rgba(60, 60, 60, 0.2),
        rgba(100, 100, 100, 0.5)
    );
    background-size: 200% 200%;
    animation: borderShift 12s ease-in-out infinite;
    will-change: background-position;
}

@keyframes borderShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* dark inner backing behind video */

.video-frame::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.94);
    z-index: -1;
}

/* actual video */

.video-player {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    border-radius: 16px;
    background: #000;

    transform-origin: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
    will-change: transform, box-shadow, opacity;
}

/* Hover: clean modern lift */

.video-frame:hover .video-player {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
    opacity: 1;
}
