.reels-carousel {
position: relative;
}

.reel-card {
border-radius: 20px;
overflow: hidden;
background: #000;
border: 0px;
min-width: 250px;
}

.reel-image {
position: relative;
aspect-ratio: 4 / 6;
overflow: hidden;
}

.reel-image .reel-image-main {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

/* ===== Overlay superior ===== */
.reel-top {
position: absolute;
top: 0; left: 0; right: 0;
padding: 10px 12px;
background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%);
display: flex; align-items: flex-start;
pointer-events: none;
}

.reel-author {
display: flex; align-items: center;
background: rgba(0,0,0,.35);
border: 1px solid rgba(255,255,255,.18);
border-radius: 999px;
padding: 6px 10px;
pointer-events: auto;
}

.reel-avatar {
width: 28px !important; height: 28px !important; border-radius: 50%;
object-fit: cover;
border: 1px solid rgba(255,255,255,.6);
margin-right: 8px;
}

.reel-author-meta { line-height: 1.1; }
.reel-name { font-size: 13px; line-height: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.reel-handle { font-size: 12px; color: rgba(255,255,255,.85); padding-top: 2px; }

.reel-verified {
display: inline-block; margin-left: 6px;
font-size: 13px; line-height: 1;
color: #4cc2ff;
}
/* ===== Overlay superior ===== */

/* ===== Overlay inferior ===== */
.reel-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 70px 12px 15px 12px; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%); pointer-events: none; }
.reel-bottom .reel-title { font-weight: 600; font-size: 18px; color: #fff; line-height: 24px; margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
/* ===== Overlay inferior ===== */

.reel-video {
position: relative;
aspect-ratio: 4 / 6;
overflow: hidden;
}

.reel-video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.reel-info {
background: #fff;
padding: 15px;
text-align: left;
}

.reel-user {
font-weight: 600;
font-size: 14px;
line-height: 18px;
color: #0096ff;
}

.reel-title {
font-weight: 600;
font-size: 18px;
line-height: 22px;
color: #333;
margin-top: 2px;
}

/* Flechas personalizadas */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
position: absolute;
top: 40%;
background: rgba(0, 0, 0, 0.5);
border: none;
color: white;
font-size: 24px;
width: 35px;
height: 35px;
border-radius: 50%;
z-index: 10;
}

.owl-nav button.owl-prev {
left: -15px;
}

.owl-nav button.owl-next {
right: -15px;
}

/* Estilos para el modal de previsualización */
#reelModal .modal-dialog {
    max-width: 400px;
}

#reelModal .modal-content {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

#reelModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin: 0px;
}

#reelModal .btn-close:hover {
    opacity: 1;
}

.reel-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reel-image:hover {
    transform: scale(1.02);
}

/* Asegurar que los overlays sean visibles en el modal */
#reelModal .reel-top,
#reelModal .reel-bottom {
    z-index: 999;
    pointer-events: none;
}

#reelModal .reel-author {
    pointer-events: auto;
}