:root {
    --accent: #3B811F;
    --lens-x: 0px; /* posición horizontal de la lupa */
}

.tabs-effect {
    position: absolute;
    right: 3px;
    top: 5px;
    padding: 0 18px 0 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); 
}

.tabs-effect .tabs-pill {
    position: relative;
    display: flex;
    gap: 5px;
    overflow: visible; /* deja salir la lupa */
    touch-action: pan-x;
}

/* LUPA */
.tabs-effect .lens {
    position: absolute;
    top: 50%;
    left: var(--lens-x);
    transform: translate(-50%, -50%) scale(1);
    width: 110px;
    height: 80%;
    border-radius: 999px;
    pointer-events: none;

    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.5), transparent 65%);
    background-color: rgba(255, 255, 255, 0.03);

    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.08),
        0 10px 20px rgba(15, 23, 42, 0.15);

    backdrop-filter: blur(10px) saturate(1.35) brightness(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.35) brightness(1.1);

    opacity: 0;
    transition:
        left 230ms cubic-bezier(.22, .61, .36, 1),
        width 230ms cubic-bezier(.22, .61, .36, 1),
        opacity 120ms ease-out;
}

.tabs-effect .tabs-pill:hover .lens {
    opacity: 1;
}

/* En táctil mostrar siempre la lupa 
@media (pointer: coarse) {
    .tabs-effect .lens {
        opacity: 1;
    }
}*/

.tabs-effect .lens--boing {
    animation: lens-boing 260ms cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes lens-boing {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    35% {
        transform: translate(-50%, -50%) scale(1.16);
    }

    65% {
        transform: translate(-50%, -50%) scale(0.96);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.tabs-effect .tab {
    position: relative;
    z-index: 1;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    cursor: pointer;
    color: #111827;
    transition:
        transform 140ms ease-out,
        color 140ms ease-out,
        opacity 140ms ease-out;
}

.tabs-effect .tab__icon {
    transition: inherit;
}

/* Efecto zoom de la pestaña que está bajo la lupa */
.tabs-effect .tab--active {
    transform: translateY(-1px) scale(1.12);
}

.tabs-effect .tab--active .tab__icon {
    transform: scale(1.1);
    /*fill: var(--accent);*/
}

.tabs-effect .tabs-pill:hover .tab:not(.tab--active) {
    opacity: 0.78;
}

.tabs-effect .tab:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.tabs-effect .share-media svg {
    width: 20px;
    height: 30px;
}

.tabs-effect .share-media {
    width: 50px;
}

.tabs-effect .share-media:hover svg {fill: unset;}

.tabs-effect .svg-favourites {
    width: 30px;
}

.tabs-effect .desktop-favourites .svg-favourites.empty {
    fill: #000;
}

.tabs-effect .date-icon {
    height: 30px;
    fill: #000;
}

.tabs-effect .radio-btn svg {top: 5px;} 

.popup-box .clipboard-message {
    position: absolute;
    top: 54px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.popup-box .clipboard-message.show {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tabs-effect * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media(max-width: 1024px) {
    .tabs-effect {
        display: none;
    }
}
