.rtr-item {
    display:flex;
    justify-content:space-between;
    background:#fff;
    padding:15px;
    border-radius: 20px;
        align-items: center;
            gap: 5px;
}

.rtr-item.top1 {
    border:2px solid #0008ff;
    margin-bottom: 10px;
}

.rtr-left {
    display:flex;
    gap:15px;
    flex-direction: column;
    width: 50%;
}

.rtr-position {
    font-size: 28px;
    display: flex;
    align-items: center;
    height: 50px;
}

.rtr-thumb {
    width: 100%;
    cursor: pointer;
    height: 100%;
    object-fit: cover;
    transition: all 300ms ease;
    transform: scale(1.4);
}

.rtr-badge {
    display:inline-block;
    padding:3px 8px;
    font-size:11px;
    margin-top:5px;
    border-radius:4px;
    font-weight:bold;
}

.rtr-badge.new {
    background:#28a745;
    color:#fff;
}

.rtr-badge.re {
    background:#ffc107;
    color:#000;
}

.rtr-badge.top {
    background:#FF2E00;
    color:#fff;
}
.rtr-list {
    display:flex;
    flex-direction:column;
    width: 100%;
}
#rtr-video-modal {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

.rtr-modal-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
}

.rtr-modal-content {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:80%;
    max-width:900px;
}

.rtr-modal-content iframe {
    width:100%;
    height:476px; /* tamaño estándar YouTube */
}

.rtr-close {
    position:absolute;
    top:-30px;
    right:0;
    color:#fff;
    font-size:25px;
    cursor:pointer;
}
button.rtr-vote-btn, form#rtr-suggest-form button{
    background-color: #052fdb;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color .3s;
    font-size: 14px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}
form#rtr-suggest-form input[type="text"]{
    padding: 10px;
    border-radius: 10px;
}
form#rtr-suggest-form{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    flex-direction: column;
}
span.number{
        font-size: 7vh;
    font-weight: 700;
    text-align: center;
    color: #e0e0e0;
    margin-right: 15px;
}
button.rtr-vote-btn:hover{
    background-color: #08259b;
}
.rtr-item:hover{
        background: #dbe2fb;
}
.rtr-item:hover span.number{
        color: #052fdb;
}
.rtr-right{
    max-width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    width: 50%;
}
.rtr-right:hover .rtr-thumb{
        transform: scale(1.6);
}
.rtr-right::before{
    content: "";
    background: url('../img/play.svg') no-repeat center;
    width: 38px;
    height: 38px;
    border-radius: 100%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 9;
    transform: translate(-50%, -50%);
}


/* MODO HORIZONTAL */
.rtr-horizontal {
    flex-direction: row;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Items como tarjetas */
.rtr-horizontal .rtr-item {
    min-width: 450px;
    margin-right: 10px;
}

/* Dividir 50/50 */
.rtr-horizontal .rtr-left,
.rtr-horizontal .rtr-right {
    width: 50%;
    flex-direction: column;
    justify-content: center;
}

/* Ajuste imagen */
.rtr-horizontal .rtr-right {
    height: auto;
}

/* CONTROLES */
.rtr-slider-controls {
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-bottom:10px;
    position: absolute;
    top: -40px;
    right: 0;
}

.rtr-slider-controls button {
    background:#052fdb;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:10px;
    cursor:pointer;
}

@media(max-width:768px){

    .rtr-horizontal .rtr-item {
        min-width: 100%;
    }

}

/* MODAL MENSAJES */
#rtr-msg-modal {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
}

.rtr-msg-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
}

.rtr-msg-box {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    background:#fff;
    padding:25px;
    border-radius:15px;
    text-align:center;
    width:90%;
    max-width:300px;
}

#rtr-msg-text {
    margin-bottom:15px;
    font-size:16px;
}

#rtr-msg-close {
    background:#052fdb;
    color:#fff;
    border:none;
    padding:8px 20px;
    border-radius:10px;
    cursor:pointer;
}
.rtr-vote-msg{
    font-size: 13px;
    background: #0bad12;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Movimiento neutro */
span.arrow.neutral {
    color: #999;
}

/* Sube (verde) */
span.arrow.up {
    color: #00c853;
    font-weight: bold;
}

/* Baja (rojo) */
span.arrow.down {
    color: #ff3b30;
    font-weight: bold;
}