﻿:root {
    --bg: #0d0d0d;
    --panel: #111;
    --text: #fff;
    --muted: #a7a7a7;
    --line: rgba(255,255,255,.10);
    --info: #00c3ff;
    --green: #7CFF00;
}

/* =========================================================
   BASE
========================================================= */
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
}

    body.va-no-scroll {
        overflow: hidden;
        touch-action: none;
    }

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding-top: 10px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================================
   TOPBAR / HEADER ANTIGO
========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(13,13,13,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand-text {
    font-weight: 900;
    letter-spacing: .4px;
}

.topnav {
    display: flex;
    gap: 18px;
}

.toplink {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
}

    .toplink:hover {
        color: var(--text);
    }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar,
.app-header {
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
}

    .topbar.header-hidden,
    .app-header.header-hidden {
        transform: translateY(-100%);
        opacity: 0.98;
    }

.icon-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);B
    border-radius: 10px;
    padding: 6px 10px;
}


/* =========================================================
   CONTATO / FORMULÁRIO
========================================================= */
.contact-page .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

    .contact-page .form-control:focus {
        background: rgba(255,255,255,.09);
        color: #fff;
        border-color: #ffc107;
        box-shadow: 0 0 0 .2rem rgba(255,193,7,.15);
    }

/* =========================================================
   MOBILE DRAWER
========================================================= */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1250;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 86vw);
    background: var(--panel);
    z-index: 1260;
    border-left: 1px solid var(--line);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.drawer-link {
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255,255,255,.04);
    font-size: 1.2rem;
}

    .drawer-link:hover {
        background: rgba(255,255,255,.08);
    }

/* =========================================================
   FOOTER
========================================================= */
.footer {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    background: rgba(255,255,255,.02);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}

    .footer-link:hover {
        color: var(--text);
    }

/* =========================================================
   FEATURE CARDS / CTA
========================================================= */
.grid-3 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.feature-icon {
    font-size: 1.4rem;
}

.feature-title {
    font-weight: 900;
    margin-top: 6px;
}

.feature-text {
    color: var(--muted);
    margin-top: 6px;
}

.cta-block {
    background: linear-gradient(180deg, rgba(0,195,255,.12), rgba(124,255,0,.06));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.cta-block-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-title {
    margin: 0;
    font-weight: 900;
}

.cta-text {
    margin: 0;
}

/* =========================================================
   NAV USER
========================================================= */
.navuser {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    margin-bottom: 10px;
}

.btn-logout {
    text-align: left;
    width: 100%;
    border: 0;
    background: rgba(255,255,255,.04);
}

    .btn-logout:hover {
        background: rgba(255,255,255,.08);
    }

/* =========================================================
   APP LAYOUT / HEADER NOVO
========================================================= */
.app-shell {
    min-height: 100vh;
    background: #0b0f14;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 20, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.app-nav {
    display: flex;
    align-items: center;
}

/* =========================================================
   NAV LINKS
========================================================= */
.navlinks {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.navlink {
    color: #d7e6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
    border: 1px solid transparent;
    background: transparent;
}

    .navlink:hover {
        border-color: rgba(0,195,255,.35);
        box-shadow: 0 0 18px rgba(0,195,255,.15);
        transform: translateY(-1px);
    }

.navbtn {
    cursor: pointer;
}

/* =========================================================
   MATCH LIST / CARDS
========================================================= */
.match-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    cursor: pointer;
}

    .match-card:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.09);
        border-color: rgba(124,255,0,.35);
    }

    .match-card:focus-visible {
        outline: 2px solid rgba(124,255,0,.55);
        outline-offset: 3px;
    }

.match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
    font-size: .9rem;
    color: #eaeaea;
}

    .match-pill .sep {
        opacity: .6;
    }

.match-city {
    font-size: .9rem;
    color: #bdbdbd;
}

.match-title {
    margin-top: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

    .match-title .vs {
        opacity: .7;
        font-weight: 700;
        margin: 0 6px;
    }

.match-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #c9c9c9;
    font-size: .95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .95;
}

.match-cta {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #7CFF00;
    font-weight: 700;
}

.badge.text-bg-dark.border {
    color: rgba(255,255,255,.75) !important;
}

/* =========================================================
   MATCH HEADER (página do match)
========================================================= */
.match-page,
.cart-page {
    min-width: 0;
}

.match-header {
    margin-bottom: 10px;
}

.match-league {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9aa3aa;
    margin-bottom: 4px;
    line-height: 1.45;
}

.match-teams-inline {
    color: #cfd6dd;
}

.match-x {
    opacity: .5;
    margin: 0 4px;
}

.camera-picker {
    max-width: 420px;
    margin-bottom: 14px;
}

/* =========================================================
   MATCH / CART - BASE COMUM
========================================================= */

.match-page .va-mobile-preview-shell,
.cart-page .va-mobile-preview-shell {
    width: 100%;
}

.match-page .segment-video,
.cart-page .segment-video {
    position: relative;
    width: 100%;
    margin: 0;
    background: #000;
    overflow: hidden;
    border-radius: 18px;
}

.match-page .segment-timeline,
.cart-page .segment-timeline {
    margin-top: 8px !important;
}

    .match-page .segment-timeline .timeline-wrapper,
    .cart-page .segment-timeline .timeline-wrapper {
        position: relative;
        overflow: visible;
        padding-top: 14px;
        min-height: 58px;
        --timeline-track-center: 34px; /* base */
    }

.match-page .cart-segment-meta,
.cart-page .cart-segment-meta {
    margin-top: 12px;
}

/* =========================================================
   RANGE / TIMELINE
========================================================= */

.segment-options {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .segment-options .btn {
        min-width: 110px;
    }

.segment-timeline input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 3;
}
.timeline-actions-row,
.timeline-toolbar,
.markers-panel,
.markers-list {
    touch-action: pan-y;
}

    .segment-timeline input[type="range"]::-webkit-slider-runnable-track {
        height: 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        border: 1px solid rgba(255,255,255,.10);
    }

    .segment-timeline input[type="range"]::-moz-range-track {
        height: 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        border: 1px solid rgba(255,255,255,.10);
    }

    .segment-timeline input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, #b7ff5a 0%, #7CFF00 52%, #57b800 100%);
        border: 3px solid #fff;
        box-shadow: 0 0 0 3px rgba(124,255,0,.18), 0 4px 10px rgba(0,0,0,.35);
        margin-top: -11px;
    }

    .segment-timeline input[type="range"]::-moz-range-thumb {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, #b7ff5a 0%, #7CFF00 52%, #57b800 100%);
        border: 3px solid #fff;
        box-shadow: 0 0 0 3px rgba(124,255,0,.18), 0 4px 10px rgba(0,0,0,.35);
    }

    .segment-timeline input[type="range"]::-moz-range-progress {
        height: 8px;
        border-radius: 999px;
        background: rgba(124,255,0,.35);
    }

.timeline-wrap
{
    touch-action: pan-x;
}

.segment-timeline {
    touch-action: auto;
}



.timeline-markers-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.timeline-marker {
    position: absolute !important;
    top: 6px !important;
    transform: translateX(-50%) !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffe082 0%, #ffc107 60%, #b88900 100%);
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.35);
    z-index: 6 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

    .timeline-marker:hover {
        transform: translateX(-50%) scale(1.10) !important;
    }

    .timeline-marker::before {
        content: attr(data-label);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        transform: translateX(-50%) translateY(4px);
        background: rgba(10,10,10,.96);
        color: #fff;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        max-width: min(260px, calc(100vw - 24px));
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0;
        pointer-events: none;
        transition: opacity .16s ease, transform .16s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,.32);
        border: 1px solid rgba(255,255,255,.08);
        z-index: 40;
    }

    .timeline-marker::after {
        content: "";
        position: absolute;
        left: 50%;
        top: calc(100% + 1px);
        width: 2px;
        height: 8px;
        background: linear-gradient(180deg, rgba(255,193,7,.95), rgba(255,193,7,.22));
        transform: translateX(-50%);
        border-radius: 999px;
        pointer-events: none;
    }

    .timeline-marker:hover::before,
    .timeline-marker.is-active::before {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .timeline-marker:hover::after,
    .timeline-marker.is-active::after {
        opacity: 1;
    }

.timeline-marker--edge-left::before {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(6px);
}

.timeline-marker--edge-left:hover::before {
    transform: translateX(0) translateY(0);
}

.timeline-marker--edge-left::after,
.timeline-marker--edge-right::after {
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-marker--edge-right::before {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(6px);
}

.timeline-marker--edge-right:hover::before {
    transform: translateX(0) translateY(0);
}

.timeline-marker--edge-left.is-active::before {
    transform: translateX(0) translateY(0);
}

.timeline-marker--edge-right.is-active::before {
    transform: translateX(0) translateY(0);
}

.timeline-wrap,
.timeline-markers-layer,
.timeline-marker {
    overflow: visible !important;
}

    .timeline-marker.is-active {
        transform: translateX(-50%) scale(1.2) !important;
        box-shadow: 0 0 0 4px rgba(124,255,0,.25), 0 0 18px rgba(124,255,0,.35), 0 10px 24px rgba(0,0,0,.42);
        filter: brightness(1.08);
        z-index: 8 !important;
    }

    .timeline-markers-layer.has-active .timeline-marker:not(.is-active) {
        opacity: .45;
        filter: saturate(.6);
    }

    .timeline-markers-layer.has-active .timeline-marker.is-active {
        opacity: 1 !important;
        filter: none;
    }

    .timeline-markers-layer.has-active .timeline-marker:not(.is-active):hover {
        opacity: .6 !important;
        filter: brightness(1.03) saturate(.85);
    }

    .timeline-marker.is-hovered::before,
    .timeline-marker.is-active::before,
    .timeline-marker:hover::before {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .timeline-marker.is-hovered::after,
    .timeline-marker.is-active::after,
    .timeline-marker:hover::after {
        opacity: 1;
    }
.timeline-marker--edge-left.is-hovered::before,
.timeline-marker--edge-left.is-active::before {
    transform: translateX(0) translateY(0);
}

.timeline-marker--edge-right.is-hovered::before,
.timeline-marker--edge-right.is-active::before {
    transform: translateX(0) translateY(0);
}
.timeline-marker.is-hovered {
    transform: translateX(-50%) scale(1.10) !important;
    box-shadow: 0 0 0 3px rgba(124,255,0,.18), 0 6px 14px rgba(0,0,0,.28);
    filter: brightness(1.05);
    z-index: 7 !important;
}

.timeline-markers-layer.has-hover .timeline-marker:not(.is-hovered):not(.is-active) {
    opacity: .55;
    filter: saturate(.7);
}

@media (hover: hover) and (pointer: fine) {
    .timeline-marker:hover::after {
        opacity: 1;
    }
}
.timeline-markers-layer.has-active .timeline-marker.is-hovered:not(.is-active) {
    opacity: .7;
}

.timeline-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.timeline-actions-row {
    display: grid;
    grid-template-columns: minmax(120px, 170px) 1fr minmax(120px, 170px);
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}


.timeline-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 4px; /* antes 6/8 */
    margin-bottom: 6px;
}

.timeline-toggle-label {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: .18s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

    .timeline-toggle-label::-webkit-details-marker {
        display: none;
    }

    .timeline-toggle-label:hover {
        border-color: rgba(255,255,255,.18);
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
        transform: translateY(-1px);
    }

.timeline-toggle-left,
.timeline-toggle-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-toggle-left {
    font-weight: 600;
    letter-spacing: .1px;
}

    .timeline-toggle-left i {
        font-size: 1rem;
        opacity: .92;
        color: #b9ff66;
    }

.timeline-toggle-count {
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    background: rgba(159,255,61,.14);
    color: #b9ff66;
    border: 1px solid rgba(159,255,61,.24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.timeline-toggle-chevron {
    transition: transform .18s ease, opacity .18s ease;
    opacity: .8;
}

.markers-panel-shell[open] .timeline-toggle-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.markers-panel {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
}

.markers-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #9aa3aa;
    margin-bottom: 12px;
    font-weight: 700;
}

.markers-hint {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .3px;
    color: rgba(255,255,255,.55);
    text-transform: none;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 4px 8px;
    border-radius: 999px;
}

.markers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.marker-list-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    color: #fff;
    border-radius: 999px;
    padding: 9px 13px;
    cursor: pointer;
    transition: .16s ease;
    max-width: 100%;
}

    .marker-list-item:hover {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
        border-color: rgba(255,193,7,.32);
        transform: translateY(-1px);
    }

    .marker-list-item.is-active {
        border-color: rgba(255,193,7,.45);
        background: linear-gradient(180deg, rgba(255,193,7,.14), rgba(255,193,7,.06));
        box-shadow: 0 0 0 3px rgba(255,193,7,.10), 0 8px 18px rgba(0,0,0,.14);
    }

.marker-list-time {
    font-weight: 800;
    color: #ffc107;
    white-space: nowrap;
    font-size: .86rem;
}

.marker-list-name {
    color: #f3f3f3;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .93rem;
}

@media (max-width: 768px) {
    .timeline-toggle-label {
        padding: 12px 13px;
        border-radius: 14px;
    }

    .timeline-toggle-left {
        font-size: .95rem;
    }

    .timeline-toggle-count {
        min-width: 26px;
        height: 26px;
        font-size: .78rem;
    }

    .markers-panel {
        padding: 12px;
        border-radius: 14px;
    }

    .markers-list {
        gap: 8px;
    }

    .marker-list-item {
        padding: 8px 11px;
        gap: 8px;
    }

    .marker-list-name {
        max-width: 180px;
        font-size: .9rem;
    }

    .markers-panel-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .markers-hint {
        font-size: .7rem;
    }
}

.segment-options-inline {
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .segment-options-inline .btn {
        min-width: 110px;
    }

.time-pill {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    min-width: 110px;
    margin: 0;
}

    .time-pill.highlight {
        background: rgba(124,255,0,.08);
        border: 1px solid rgba(124,255,0,.30);
    }

.time-label {
    font-size: 11px;
    color: #9aa3aa;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.time-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* =========================================================
   PREVIEW POP - COMUM
========================================================= */

.match-page .varena-preview-pop,
.cart-page .varena-preview-pop {
    position: absolute;
    display: block;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
}

    .match-page .varena-preview-pop::after,
    .cart-page .varena-preview-pop::after {
        display: none;
    }

.match-page .varena-preview-viewport,
.cart-page .varena-preview-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
}

.match-page .varena-preview-crop,
.cart-page .varena-preview-crop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
}

.match-page .varena-preview-img,
.cart-page .varena-preview-img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.match-page .varena-preview-meta,
.cart-page .varena-preview-meta,
.match-page .varena-preview-viewport,
.cart-page .varena-preview-viewport,
.match-page .varena-preview-crop,
.cart-page .varena-preview-crop,
.match-page .varena-preview-img,
.cart-page .varena-preview-img {
    pointer-events: none !important;
}

.varena-preview-pill {
    display: inline-block;
    background: rgba(0,0,0,.68);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
}

/* =========================================================
   MATCH
========================================================= */

.match-page .segment-video.segment-video--match {
    min-height: 320px;
    height: 320px;
    width: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.match-page .segment-preview-img--match {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
}

    .match-page .segment-preview-img--match .varena-preview-pop {
        position: absolute !important;
        display: block !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .match-page .segment-preview-img--match .varena-preview-viewport {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: 18px;
        background: #000;
    }

    .match-page .segment-preview-img--match .varena-preview-crop {
        position: absolute;
        left: 50%;
        top: 50%;
        transform-origin: center center;
        overflow: hidden;
    }

    .match-page .segment-preview-img--match .varena-preview-meta {
        left: 12px;
        bottom: 12px;
    }

.match-buy-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 18px;
    height: 100%;
}

.match-buy-box__label {
    color: #9ca3af;
    font-size: .9rem;
    margin-bottom: 6px;
}

.match-buy-box__value {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.match-buy-box__meta {
    color: #cbd5e1;
    font-size: .9rem;
    margin-top: 8px;
}
.va-type-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.va-chip {
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

    .va-chip.active {
        background: #00c853;
        color: #000;
        border-color: #00c853;
    }

.match-card--quick {
    border: 1px solid rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.12);
}

.match-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.match-type-badge--quick {
    background: linear-gradient(135deg, #00ff88, #00c853);
    color: #000;
}

.match-type-badge--event {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.match-meta-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-bottom: .75rem;
}

.match-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.match-meta-badge,
.match-meta-date {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 32px;
    padding: .38rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
}

.match-meta-badge {
    color: #fff;
    font-weight: 700;
}

.match-meta-teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.team-name {
    word-break: break-word;
}

.match-x-divider {
    color: #22c55e;
    font-weight: 800;
    opacity: .95;
}



.precision-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #7ee7ff;
    font-weight: 500;
}

.precision-hint-sub {
    display: block;
    font-size: 0.75rem;
    color: #9aa4ad;
    font-weight: 400;
    margin-top: 2px;
}
/* =========================================================
   CART
========================================================= */

.cart-page .segment-video.segment-video--cart {
    min-height: 320px;
    height: 320px;
    width: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.cart-page .segment-preview-img--cart {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
}

    .cart-page .segment-preview-img--cart .varena-preview-pop {
        position: absolute !important;
        display: block !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .cart-page .segment-preview-img--cart .varena-preview-viewport {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: 18px;
        background: #000;
    }

    .cart-page .segment-preview-img--cart .varena-preview-crop {
        position: absolute;
        left: 50%;
        top: 50%;
        transform-origin: center center;
        overflow: hidden;
    }

    .cart-page .segment-preview-img--cart .varena-preview-meta {
        left: 12px;
        bottom: 12px;
    }

.cart-segment-meta {
    margin-top: 12px;
}

.cart-segment-name {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

.time-pill-duration {
    min-width: 120px;
}
.va-preview-state {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255,255,255,.03), rgba(0,0,0,.72) 60%), linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.78));
    backdrop-filter: blur(4px);
}

.va-preview-state__icon {
    font-size: 34px;
    line-height: 1;
    color: #ffc107;
}

.va-preview-state__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.va-preview-state__sub {
    max-width: 340px;
    font-size: .92rem;
    line-height: 1.45;
    color: rgba(255,255,255,.72);
}

.va-preview-state__spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.14);
    border-top-color: #7CFF00;
    animation: vaSpin .85s linear infinite;
    box-shadow: 0 0 0 4px rgba(124,255,0,.08);
}
.va-green {
    color: var(--green);
    font-weight: 700;
}

@keyframes vaSpin {
    to {
        transform: rotate(360deg);
    }
}


.cart-inline-row {
    display: grid;
    grid-template-columns: minmax(110px, 140px) 1fr minmax(110px, 140px);
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.cart-inline-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.cart-inline-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
}

.cart-inline-name {
    color: #fff;
}

.cart-inline-sep {
    opacity: .45;
}

.cart-inline-duration {
    color: #d6e4ff;
    font-weight: 700;
}

    .cart-inline-duration::before {
        content: "\1F551 ";
        opacity: .72;
        font-weight: 500;
        margin-right: 2px;
    }

.cart-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

    .cart-inline-actions .btn {
        min-width: 0;
    }



.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-header-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.cart-header-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.cart-header-price {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
}



.cart-total-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-total-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255,255,255,.55);
}

.cart-total-value {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.cart-total-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border-radius: 14px;
    width: 100%;

}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-total-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-total-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(255,255,255,.58);
}

.cart-total-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.cart-total-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .cart-total-actions .btn {
        min-width: 180px;
    }


/* =========================================================
   PURCHASE COMPRAS
========================================================= */


.purchase-media-shell {
    min-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.06);
}

.purchase-thumb {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #111, #000);
}

.purchase-thumb__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.purchase-thumb__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.38));
}

.purchase-thumb--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(34,197,94,.16), transparent 40%), linear-gradient(to bottom, #121212, #050505);
}

.purchase-thumb__fallback-icon {
    font-size: 52px;
    color: rgba(255,255,255,0.22);
}

.purchase-overlay {
    position: relative;
    z-index: 2;
    min-height: 260px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.purchase-overlay__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(8px);
}

.purchase-overlay__badge--success {
    background: rgba(34,197,94,.92);
    color: #04130a;
}

.purchase-overlay__badge--danger {
    background: rgba(239,68,68,.92);
    color: #fff;
}

.purchase-overlay__content {
    max-width: 560px;
}

.purchase-overlay__title {
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.purchase-overlay__sub {
    margin-top: 8px;
    font-size: 1rem;
    color: rgba(255,255,255,0.86);
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.purchase-overlay__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.purchase-overlay__spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: va-spin .9s linear infinite;
}

@keyframes va-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .purchase-media-shell,
    .purchase-overlay {
        min-height: 220px;
    }

    .purchase-overlay {
        padding: 14px;
    }

    .purchase-overlay__title {
        font-size: 1.35rem;
    }

    .purchase-overlay__sub {
        font-size: .94rem;
    }
}

/* =========================================================
   LOCATION BADGE
========================================================= */
.match-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    transition: all .15s ease;
    white-space: nowrap;
}

    .match-location-badge i {
        opacity: .8;
    }

.match-card:hover .match-location-badge {
    border-color: rgba(124,255,0,.45);
    color: #fff;
    box-shadow: 0 0 14px rgba(124,255,0,.25);
    transform: translateY(-1px);
}

.cart-failed-alert {
    background: rgba(255,193,7,.08);
    border: 1px solid rgba(255,193,7,.35);
    color: #fff;
    border-radius: 12px;
}

    .cart-failed-alert .bi-exclamation-triangle-fill {
        color: #ffc107;
        font-size: 1.1rem;
    }

/* =========================================================
   SCOREBAR / CART PREVIEW INFO
========================================================= */
.va-scorebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
    margin-bottom: 10px;
}

.va-scorebar--mini {
    padding: 8px 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

.va-live {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
    white-space: nowrap;
}

.va-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #ff3b30;
    box-shadow: 0 0 10px rgba(255,59,48,.65);
}

.va-live-text {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .8px;
}

.va-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.va-mid-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.va-team {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,255,255,.92);
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.va-sep {
    opacity: .6;
    font-weight: 800;
}

.va-mid-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.va-clock-main {
    font-weight: 950;
    font-size: 16px;
    letter-spacing: .8px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.12);
}

.va-range {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.va-right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.va-pill {
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124,255,0,.08);
    border: 1px solid rgba(124,255,0,.30);
    color: rgba(255,255,255,.92);
}

.va-timeline-wrap {
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
}

.va-range-input {
    width: 100%;
    accent-color: #7CFF00;
}

.va-subtimes {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.70);
}

    .va-subtimes b {
        color: rgba(255,255,255,.92);
    }

/* =========================================================
   MODO ROTACIONADO / SELEÇÃO MOBILE
========================================================= */

.va-landscape-hint {
    text-align: center;
    font-size: 15px;
    color: #a7a7a7;
    margin-bottom: 8px;
}

.va-landscape-toast {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 4000;
    width: min(92vw, 520px);
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(10,10,10,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    text-align: center;
}

    .va-landscape-toast.is-visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

.va-landscape-toast__title {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.va-landscape-toast__text {
    font-size: 12px;
    color: #cfd6dd;
    margin-top: 2px;
}
.va-landscape-fab {
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 4001;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,10,10,.72);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.va-landscape-panel {
    position: fixed;
    right: 10px;
    top: 58px;
    z-index: 4001;
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(10,10,10,.88);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0,0,0,.30);
    display: none;
    flex-direction: column;
    gap: 6px;
}

    .va-landscape-panel.is-open {
        display: flex;
    }

.va-landscape-panel__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.04);
    border: 0;
}

.va-mobile-preview-shell {
    width: 100%;
}

.va-selection-floating-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2205;
    display: flex;
    gap: 8px;
    opacity: .84;
}

    .va-selection-floating-actions:active,
    .va-selection-floating-actions:hover {
        opacity: 1;
    }

    .va-selection-floating-actions .btn {
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
    }

/* =========================================================
   RESPONSIVO GERAL
========================================================= */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   NOTEBOOK / DESKTOP
========================================================= */
@media (min-width: 992px) {
    .match-page .segment-options {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .match-page .va-segment-editor-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .match-page .va-editor-hidden-mobile {
        display: block !important;
    }

    .va-selection-floating-actions {
        display: none !important;
    }

    .timeline-actions-row {
        grid-template-columns: 150px 1fr 150px;
        gap: 16px;
        margin-top: 12px;
    }

    .segment-options-inline {
        flex-wrap: nowrap;
    }

        .segment-options-inline .btn {
            min-width: 120px;
        }
}

/* =========================================================
   MOBILE GERAL
========================================================= */
@media (max-width: 991.98px) {
    .app-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .brand-logo {
        height: 44px;
    }

    .navlinks {
        width: 100%;
        gap: 8px;
    }

    .match-page {
        padding-top: 12px !important;
        padding-bottom: 18px !important;
    }

        .match-page > .d-flex.align-items-center.justify-content-between {
            align-items: flex-start !important;
            gap: 12px !important;
            margin-bottom: 14px !important;
        }

        .match-page h2 {
            font-size: 2rem;
            line-height: 1.08;
            margin-bottom: 6px !important;
        }

        .match-page .text-secondary {
            line-height: 1.45;
        }

    .match-header {
        margin-bottom: 8px;
    }

    .match-league {
        font-size: 11px;
        line-height: 1.5;
    }

    .camera-picker {
        max-width: 100%;
        margin-bottom: 12px;
    }

    .cart-page .d-flex.justify-content-between.align-items-start {
        gap: 12px !important;
    }

        .cart-page .d-flex.justify-content-between.align-items-start > div:last-child {
            width: 100%;
        }

            .cart-page .d-flex.justify-content-between.align-items-start > div:last-child .d-flex {
                width: 100%;
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

    .cart-page .va-scorebar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cart-page .va-live {
        align-self: flex-start;
    }

    .cart-page .va-right {
        justify-content: flex-end;
    }

    .cart-page .va-team {
        max-width: 80vw;
    }

    .cart-page .d-flex.justify-content-end.gap-2.mt-3.flex-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }

        .cart-page .d-flex.justify-content-end.gap-2.mt-3.flex-wrap .btn:first-child {
            grid-column: 1 / -1;
        }

    .cart-page .card-body.d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 {
        align-items: stretch !important;
    }

        .cart-page .card-body.d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 .btn {
            width: 100%;
        }

    .va-scorebar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .va-live {
        align-self: flex-start;
    }

    .va-right {
        justify-content: flex-end;
    }

    .va-team {
        max-width: 80vw;
    }

    .va-subtimes {
        flex-direction: column;
        align-items: flex-start;
    }

    .varena-preview-pill {
        font-size: 10px !important;
        padding: 3px 7px !important;
        max-width: 52vw;
    }

    .cart-failed-alert .btn {
        width: 100%;
    }

    .match-meta-card {
        gap: .45rem;
        margin-bottom: .6rem;
    }

    .match-meta-top {
        gap: .4rem;
    }

    .match-meta-badge,
    .match-meta-date {
        font-size: .76rem;
        padding: .34rem .6rem;
        min-height: 30px;
    }

    .match-meta-teams {
        font-size: .95rem;
        gap: .35rem;
    }
}

/* =========================================================
   MOBILE PORTRAIT
========================================================= */
@media (max-width: 991.98px) and (orientation: portrait) {
    .match-page .va-landscape-hint--landscape,
    .cart-page .va-landscape-hint--landscape {
        display: none;
    }

    .match-page .segment-video,
    .cart-page .segment-video.segment-video--cart {
        min-height: 220px;
        height: 220px;
    }
    
     .match-page .segment-video.segment-video--match,
     .cart-page .segment-video.segment-video--cart {
         min-height: 220px;
         height: 220px;
     }

    .match-page .segment-timeline,
    .cart-page .segment-timeline {
        margin-top: 6px !important;
        margin-bottom: 2px !important;
    }

    .timeline-actions-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "start end"
            "actions actions";
        gap: 8px;
        margin-top: 8px;
    }  
        .cart-inline-row {
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
                "start end"
                "center center";
            gap: 8px;
            margin-top: 8px;
        }

            .cart-inline-row > .time-pill:first-child {
                grid-area: start;
            }

            .cart-inline-row > .cart-inline-center {
                grid-area: center;
            }

            .cart-inline-row > .time-pill:last-child {
                grid-area: end;
            }

            .cart-inline-row .time-pill {
                width: 100%;
                min-width: 0;
                padding: 8px 10px;
                align-items: flex-start;
            }

            .cart-inline-row .time-value {
                font-size: 12px;
            }

        .cart-inline-center {
            gap: 8px;
        }

        .cart-inline-info {
            font-size: 13px;
            justify-content: center;
            text-align: center;
        }

        .cart-inline-actions {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

            .cart-inline-actions .btn:first-child {
                grid-column: 1 / -1;
            }

    .match-page .timeline-actions-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "start end"
            "actions actions";
        gap: 8px;
        margin-top: 8px;
    }

        .match-page .timeline-actions-row > .time-pill:first-child {
            grid-area: start;
        }

        .match-page .timeline-actions-row > .segment-options-inline {
            grid-area: actions;
        }

        .match-page .timeline-actions-row > .time-pill:last-child {
            grid-area: end;
        }

        .match-page .timeline-actions-row .time-pill {
            width: 100%;
            min-width: 0;
        }

    .match-page .segment-options-inline {
        justify-content: center;
        flex-wrap: wrap;
    }


}

/* =========================================================
   MATCH - MOBILE LANDSCAPE FULL
========================================================= */
@media (max-width: 991.98px) and (orientation: landscape) {
  
    .match-page .va-mobile-preview-shell {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 !important;
    }

    .match-page .segment-video.segment-video--match {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        min-height: 100dvh;
        height: 100dvh;
        border-radius: 0 !important;
        overflow: hidden;
        background: #000;
    }

    .match-page .segment-preview-img--match {
        width: 100%;
        height: 100%;
        min-height: 100%;
        border-radius: 0 !important;
        overflow: hidden;
        background: #000;
    }

    .match-page .varena-preview-viewport {
        border-radius: 0 !important;
    }

    .match-page .segment-timeline {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 6px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
  

    .match-page .timeline-wrapper {
        position: relative;
        overflow: visible;
        padding-top: 14px;
        min-height: 58px;
        --timeline-track-center: 34px; /* base */
    }

    .match-page .segment-timeline input[type="range"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .match-page .timeline-actions-row {
        grid-template-columns: 120px 1fr 120px;
        gap: 8px;
        margin-top: 6px;
        padding: 0 10px 6px;
    }

    .match-page .segment-options-inline {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .match-page .segment-options-inline .btn {
        min-width: 82px;
        padding: 7px 10px;
        font-size: .95rem;
    }

    .match-page .time-pill {
        min-width: 0;
        padding: 7px 9px;
    }

    .match-page .time-label {
        font-size: 9px;
    }

    .match-page .time-value {
        font-size: 12px;
    }
    .match-page .timeline-marker {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        top: 4px !important;
    }

        .match-page .timeline-marker::after {
            height: 10px;
        }

    .match-page .timeline-wrapper {
        --timeline-track-center: 36px;
    }


        .match-page.va-preview-focus-mode .match-top-row {
            margin-bottom: .5rem !important;
        }

        .match-page.va-preview-focus-mode .match-header,
        .match-page.va-preview-focus-mode .text-secondary {
            opacity: .92;
        }

        .match-page.va-preview-focus-mode .segment-video--match {
            min-height: 48vh;
        }

        .match-page.va-preview-focus-mode .segment-timeline {
            position: relative;
            z-index: 3;
        }

        .match-page.va-preview-focus-mode .timeline-actions-row {
            position: sticky;
            bottom: -10px;
            z-index: 4;
            padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
            background: linear-gradient( to top, rgba(8, 8, 10, 0.96), rgba(8, 8, 10, 0.78), rgba(8, 8, 10, 0.12) );
            backdrop-filter: blur(4px);
        }

        .match-page.va-preview-focus-mode .segment-options-inline {
            gap: .35rem;
            flex-wrap: wrap;
            justify-content: center;
        }

            .match-page.va-preview-focus-mode .segment-options-inline .btn {
                padding: .4rem .7rem;
                font-size: .92rem;
            }

        .match-page.va-preview-focus-mode #segmentEditorCard {
            margin-top: 1rem !important;
        }
    
}

/* =========================================================
   CART - MOBILE LANDSCAPE FULL
========================================================= */
@media (max-width: 991.98px) and (orientation: landscape) {

    .cart-page .row.g-3 > .col-12 {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cart-page .row.g-3 > .col-12 > .card {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin: 0;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
    }

    .cart-page .row.g-3 > .col-12 > .card > .card-body {
        padding-left: 14px !important;
        padding-right: 14px !important;
        border-radius: 0 !important;
    }

    .cart-page .va-mobile-preview-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .cart-page .segment-video.segment-video--cart {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        min-width: calc(100vw - 28px);
        margin-left: 0;
        margin-right: 0;
        min-height: 100dvh;
        height: 100dvh;
        border-radius: 0 !important;
        overflow: hidden;
        background: #000;
    }

    .cart-page .segment-preview-img--cart {
        width: 100%;
        height: 100%;
        min-height: 100%;
        border-radius: 0 !important;
        overflow: hidden;
        background: #000;
    }

    .cart-page .varena-preview-viewport {
        border-radius: 0 !important;
    }

    .cart-page .segment-timeline,
    .cart-page .cart-segment-meta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .cart-page .segment-timeline {
        margin-top: 6px !important;
        padding: 0 !important;
    }

    .cart-page .timeline-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
    }

    .cart-page .segment-timeline input[type="range"] {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .cart-page .cart-segment-meta {
        margin-top: 8px !important;
        padding: 0 !important;
    }

    .cart-page .timeline-times {
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        margin-top: 8px !important;
    }

    .cart-page .timeline-times .time-pill,
    .cart-page .time-pill-duration {
        flex: 1 1 0;
        min-width: 0;
    }

    .cart-page .time-value {
        font-size: 11px;
    }

    .cart-page .va-clock-main {
        font-size: 12px;
    }

    .cart-page .va-range {
        font-size: 10px;
    }

    .cart-page .d-flex.justify-content-end.gap-2.mt-3.flex-wrap {
        margin-top: 10px !important;
    }
}

/* =========================
   LANDSCAPE MODE EXPANDIDO
   ========================= */
@media (max-width: 991.98px) and (orientation: landscape) {
    .match-page.landscape-mode .topbar,
    .match-page.landscape-mode .footer,
    .cart-page.landscape-mode .topbar,
    .cart-page.landscape-mode .footer {
        display: none !important;
    }

    .match-page.landscape-mode,
    .cart-page.landscape-mode {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .match-page .va-landscape-hint--portrait,
    .cart-page .va-landscape-hint--portrait {
        display: none;
    }

    .va-landscape-hint {
        position: fixed;
        top: 4px;
        left: 0;
        right: 0;
        z-index: 3000;
        font-size: 12px;
        opacity: .82;
        pointer-events: none;
    }
    .cart-total-card {
        background: linear-gradient( to right, rgba(255,255,255,0.04), rgba(255,255,255,0.02) );
        width: 100vw;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
/* =========================
   QUICKRAZOR
   ========================= */

.va-quick-shell {
    max-width: 720px;
}

.va-quick-brand {
    font-size: 1.05rem;
    letter-spacing: .5px;
}

.va-quick-hero {
    background: radial-gradient(circle at top right, rgba(255,193,7,.14), transparent 32%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.va-quick-card {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.va-quick-soft {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
}

.va-time-card {
    position: relative;
    border-radius: 22px;
    padding: 1rem;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.va-time-card--start::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(13,110,253,.16), transparent 65%);
    pointer-events: none;
}

.va-time-card--end {
    border-color: rgba(255,193,7,.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 0 0 1px rgba(255,193,7,.06);
}

    .va-time-card--end::after {
        content: "";
        position: absolute;
        inset: auto -30px -30px auto;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(255,193,7,.20), transparent 65%);
        pointer-events: none;
    }

.va-time-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .85rem;
}

.va-time-title {
    font-size: .92rem;
    color: #adb5bd;
    font-weight: 600;
    letter-spacing: .02em;
}

.va-time-big {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}

.va-time-sub {
    color: #adb5bd;
    font-size: .82rem;
    margin-top: .5rem;
}

.va-time-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    margin: .9rem 0;
}

.va-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,193,7,.08), rgba(255,193,7,.03));
    border: 1px solid rgba(255,193,7,.18);
}

.va-summary-bar__title {
    font-size: .8rem;
    color: #ffd666;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.va-summary-bar__range {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.va-summary-bar__desc {
    font-size: .85rem;
    color: #adb5bd;
}

.va-select-clean {
    background-color: #111 !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    min-height: 46px;
}

.va-input-clean {
    background-color: #111 !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    min-height: 46px;
}

.va-form-label {
    color: #9aa0a6;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .45rem;
}

.va-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: #d1d5db;
}

.va-chip--gold {
    background: rgba(255,193,7,.12);
    border-color: rgba(255,193,7,.24);
    color: #ffd666;
}

.va-hint {
    color: #adb5bd;
    font-size: .86rem;
}

    .va-hint strong {
        color: #fff;
    }

.va-action {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: .01em;
}

.va-reset-btn {
    border-radius: 999px;
}

@@media (max-width: 575.98px) {
    .va-time-big {
        font-size: 1.65rem;
    }

    .va-summary-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .va-time-card {
        padding: .85rem;
    }

    .va-time-big {
        font-size: 1.5rem;
    }

    .va-time-card .row {
        flex-direction: row;
    }

    .va-time-card .col-6 {
        width: 50%;
    }

    .va-select-clean {
        min-height: 42px;
        font-size: .95rem;
    }
}

/* =========================
   CAMERAS VIRTUAIS
   ========================= */

.segment-preview-img.mode-full,
.segment-preview-img.mode-left,
.segment-preview-img.mode-right {
    width: 100%;
    height: 100%;
}

.segment-preview-img.mode-left .varena-preview-viewport,
.segment-preview-img.mode-right .varena-preview-viewport,
.segment-preview-img.mode-full .varena-preview-viewport {
    overflow: hidden;
}
.camera-view-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.camera-view-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: #fff;
    border-radius: 14px;
    min-height: 48px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: .16s ease;
}

    .camera-view-btn i {
        font-size: 1rem;
        opacity: .95;
    }

    .camera-view-btn:hover {
        border-color: rgba(255,255,255,.38);
        background: rgba(255,255,255,.05);
    }

    .camera-view-btn.is-active {
        background: linear-gradient(180deg, #1f9d62, #168653);
        border-color: rgba(40, 210, 125, .55);
        box-shadow: 0 0 0 3px rgba(40,210,125,.14);
    }


@media (max-width: 768px) {

    .camera-view-picker {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .camera-view-btn {
        width: 100%;
        min-width: 0;
        padding: 11px 10px;
        font-size: .95rem;
        border-radius: 13px;
    }

       
        .camera-view-btn:nth-child(1) {
            grid-column: 1 / -1;
        }


    .va-feature-card {
        padding: 16px;
        border-radius: 18px;
    }

    .va-card-head {
        gap: 10px;
        margin-bottom: 8px;
    }

    .va-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        border-radius: 12px;
    }

    .va-card-title {
        font-size: 1rem;
    }

    .va-card-text {
        font-size: .95rem;
        line-height: 1.45;
    }
}


.va-feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 18px;
}

.va-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.va-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(181, 138, 0, 0.14);
    border: 1px solid rgba(255, 214, 102, 0.18);
    flex-shrink: 0;
}

.va-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.va-card-text {
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    font-size: .98rem;
}


#previewHost,
.varena-preview-pop,
.varena-preview-viewport,
.varena-preview-crop,
.varena-preview-img,
.timeline-marker,
.camera-view-btn,
#matchTimelineRange {
    will-change: transform;
    transform: translateZ(0);
}

#matchTimelineRange,
.timeline-marker,
.camera-view-btn {
    touch-action: manipulation;
}

.varena-preview-img,
.varena-preview-crop,
.varena-preview-viewport {
    backface-visibility: hidden;
}

/* =========================
  . Feedback visual (CSS)
   ========================= */
.dt-feedback {
    position: absolute;
    top: 40%;
    font-size: 28px;
    font-weight: bold;
    color: white;
    opacity: 0;
    animation: dtFade 0.5s ease forwards;
    pointer-events: none;
}

.dt-left::after,
.dt-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
}

.dt-left::after {
    left: 0;
    background: rgba(255,255,255,0.08);
}

.dt-right::after {
    right: 0;
    background: rgba(255,255,255,0.08);
}
@keyframes dtFade {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

