/* ═══ SCOPED COMPONENT STYLES ═══ */

.rv-unified-wrapper {
    padding-top: 150px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #fdfdfd;
    color: #1a1a1a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Scoped box-sizing reset */
.rv-unified-wrapper *,
.rv-unified-wrapper *::before,
.rv-unified-wrapper *::after {
    box-sizing: border-box;
}

/* ═══ VERTICAL GRID LINES ═══ */
.rv-bg-grid-lines {
    position: absolute;
    inset: 0;
    z-index: -25;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 12.5vw 100%;
    pointer-events: none;
}

/* ═══ PIXELATED GLASS GRADIENT BACKGROUND ═══ */
.rv-gradient-blobs {
    position: absolute;
    inset: 0;
    z-index: -20;
    overflow: hidden;
    pointer-events: none;
}

.rv-blob-1 {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 70vw;
    height: 70vw;
    background: #e11d48;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
}

.rv-blob-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: #9f1239;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.20;
}

.rv-pixel-grid-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60vw;
    height: 80%;
    z-index: -15;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom right, transparent 10%, black 50%);
    mask-image: linear-gradient(to bottom right, transparent 10%, black 50%);
}

.rv-glass-block {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: inset 2px 2px 8px rgba(255, 255, 255, 0.5), inset -2px -2px 8px rgba(0, 0, 0, 0.02);
    transform: scale(0.92);
    transition: opacity 1s ease;
}

/* ═══ HERO COMPOSITION ═══ */
.rv-hero-section {
    position: relative;
    z-index: 2;
    flex: 1;
    padding-top: 60px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .rv-hero-section {
        padding-bottom: 120px;
    }
}

/* RIGHT IMAGE */
.rv-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.03, 0.98, 0.52, 0.99), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: #fff;
    width: 100%;
    max-w: 420px;
}

.rv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.05) saturate(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
    display: block;
}

.rv-img-wrap:hover img {
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
    transform: scale(1.04);
}

.rv-vid-overlays {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    mix-blend-mode: normal;
}

.rv-img-wrap:hover .rv-vid-overlays {
    opacity: 0.8;
}

.rv-grid-thirds {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.4) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.4) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.4) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.4) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
        linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.4) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.4) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.4) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.4) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}

.rv-safe-margins {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rv-safe-margins::before {
    content: '';
    position: absolute;
    inset: 5%;
    border: 1px dashed rgba(255, 255, 255, 0.35);
}

.rv-center-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.rv-center-cross::before,
.rv-center-cross::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

.rv-center-cross::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.rv-center-cross::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.rv-rec-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rv-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: 0 0 12px #e11d48;
    animation: rv-blink 1.5s infinite;
}

@keyframes rv-blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* LEFT TYPOGRAPHY */
.rv-title-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: -0.04em;
}

.rv-text-gradient {
    background: linear-gradient(90deg, #e11d48, #be123c, #9f1239);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* ═══ ENTRANCE ANIMATIONS ═══ */
.rv-fade-right {
    opacity: 0;
    transform: translateX(-30px);
    animation: rv-fadeRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rv-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: rv-fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rv-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: rv-fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rv-delay-1 {
    animation-delay: 0.2s;
}

.rv-delay-2 {
    animation-delay: 0.4s;
}

@keyframes rv-fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rv-fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rv-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rv-floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ═══ TIMELINE DOCK (Blended, Short, Responsive) ═══ */
.rv-timeline-dock {
    position: relative;
    z-index: 10;
    padding-bottom: 12px;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.rv-timeline-dock::before {
    content: '';
    position: absolute;
    inset: 0;
    top: -60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    z-index: -1;
    pointer-events: none;
}

.rv-timeline-tools {
    position: absolute;
    top: -34px;
    left: 16px;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.02);
    z-index: 5;
}

@media (min-width: 768px) {
    .rv-timeline-tools {
        left: 24px;
        top: -36px;
        padding: 8px;
    }
}

.rv-tool-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: 0.2s;
}

@media (min-width: 768px) {
    .rv-tool-btn {
        width: 32px;
        height: 32px;
    }
}

.rv-tool-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111;
    transform: translateY(-1px);
}

.rv-tool-btn.active {
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
}

.rv-transport {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .rv-transport {
        gap: 10px;
        padding: 12px 20px;
    }
}

.rv-tbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .rv-tbtn {
        width: 36px;
        height: 36px;
    }
}

.rv-tbtn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
}

.rv-tbtn-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    color: #fff;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .rv-tbtn-play {
        width: 44px;
        height: 44px;
    }
}

.rv-tbtn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.rv-tc-display {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
    margin: 0 10px;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .rv-tc-display {
        font-size: 13px;
        margin: 0 24px;
    }
}

.rv-tc-display .rv-tc-cur {
    color: #111;
    font-weight: 800;
}

/* Tracks */
.rv-ruler {
    position: relative;
    height: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.rv-ph-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.15), transparent);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 19;
}

.rv-ph-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e11d48;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 12px #e11d48;
}

.rv-ph-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #e11d48;
}

.rv-track {
    display: flex;
    align-items: center;
    height: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.025);
    position: relative;
}

.rv-tl {
    width: 56px;
    flex-shrink: 0;
    padding: 0 10px;
    font-family: 'Syne', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.01);
    color: rgba(0, 0, 0, 0.4);
}

.rv-tb {
    flex: 1;
    position: relative;
    height: 100%;
    cursor: text;
}

.rv-clip {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: default;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
}

.rv-clip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.rv-clip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Light mode clip themes */
.rv-cv {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.15), rgba(225, 29, 72, 0.05));
    border: 1px solid rgba(225, 29, 72, 0.4);
    color: #be123c;
}

.rv-cv.rv-hl {
    background: linear-gradient(90deg, #e11d48, #9f1239);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
}

.rv-cb {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
}

.rv-ca {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
}

.rv-ca.rv-alt {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
    color: #888;
}

.rv-clip-dot {
    position: absolute;
    right: 6px;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.9;
    flex-shrink: 0;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.rv-hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.rv-hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}