﻿.rpm-reel {
    --void: #06070b;
    --panel: #0d0f16;
    --panel-2: #12151f;
    --line: rgba(255,255,255,0.08);
    --text: #edeff5;
    --muted: #8b90a3;
    --blue: #3e7bff;
    --purple: #9b5cff;
    background: var(--void);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .rpm-reel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(650px circle at 85% 15%, rgba(155,92,255,0.09), transparent 60%), radial-gradient(650px circle at 5% 85%, rgba(62,123,255,0.09), transparent 60%);
        pointer-events: none;
    }

.rpm-reel-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

@media (max-width: 900px) {
    .rpm-reel-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.rpm-reel-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    aspect-ratio: 16 / 10;
}

    .rpm-reel-frame video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.05) contrast(1.04) brightness(0.94);
    }

.rpm-reel-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--blue);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

    .rpm-reel-corner.tl {
        top: 14px;
        left: 14px;
        border-top: 2px solid;
        border-left: 2px solid;
        border-color: var(--blue);
    }

    .rpm-reel-corner.tr {
        top: 14px;
        right: 14px;
        border-top: 2px solid;
        border-right: 2px solid;
        border-color: var(--purple);
    }

    .rpm-reel-corner.bl {
        bottom: 14px;
        left: 14px;
        border-bottom: 2px solid;
        border-left: 2px solid;
        border-color: var(--purple);
    }

    .rpm-reel-corner.br {
        bottom: 14px;
        right: 14px;
        border-bottom: 2px solid;
        border-right: 2px solid;
        border-color: var(--blue);
    }

.rpm-reel-frame:hover .rpm-reel-corner {
    width: 42px;
    height: 42px;
}

.rpm-reel-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6,7,11,0.75) 0%, transparent 35%, transparent 70%, rgba(6,7,11,0.35) 100%);
    z-index: 1;
    pointer-events: none;
}

.rpm-reel-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(6,7,11,0.55);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.3rem 0.6rem 0.3rem 0.5rem;
    z-index: 3;
}

    .rpm-reel-tag .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ff4d4d;
        box-shadow: 0 0 6px rgba(255,77,77,0.8);
        animation: rpm-blink 1.6s ease-in-out infinite;
    }

@keyframes rpm-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.rpm-reel-timecode {
    position: absolute;
    bottom: 22px;
    left: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: rgba(6,7,11,0.55);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    z-index: 3;
}

    .rpm-reel-timecode b {
        color: var(--text);
        font-weight: 500;
    }

.rpm-reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6,7,11,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    z-index: 3;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

    .rpm-reel-play::before,
    .rpm-reel-play::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 1px solid var(--blue);
        animation: rpm-ping 2.4s ease-out infinite;
    }

    .rpm-reel-play::after {
        border-color: var(--purple);
        animation-delay: 1.2s;
    }

@keyframes rpm-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.rpm-reel-play svg {
    width: 22px;
    height: 22px;
    fill: var(--text);
    position: relative;
    z-index: 1;
    margin-left: 3px;
}

.rpm-reel-play:hover {
    background: rgba(6,7,11,0.75);
    border-color: rgba(255,255,255,0.4);
}

.rpm-reel-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 42%, rgba(62,123,255,0.18) 49%, rgba(155,92,255,0.18) 53%, transparent 60%);
    transform: translateX(-140%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 2;
}

.rpm-reel-frame:hover .rpm-reel-sweep {
    transform: translateX(140%);
}

.rpm-reel-copy {
    position: relative;
    text-align: left;
}

.rpm-reel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--void);
    text-decoration: none;
    background: linear-gradient(100deg, var(--blue), var(--purple));
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top:10px;
}

    .rpm-reel-cta svg {
        width: 15px;
        height: 15px;
        transition: transform 0.3s ease;
    }

    .rpm-reel-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(62,123,255,0.25);
    }

        .rpm-reel-cta:hover svg {
            transform: translateX(3px);
        }

@media (prefers-reduced-motion: reduce) {
    .rpm-reel-sweep, .rpm-reel-play::before, .rpm-reel-play::after, .rpm-reel-tag .dot {
        animation: none !important;
    }

    .rpm-reel-corner {
        transition: none;
    }
}
