.vidreelo-wrap { position: relative; margin: 1em 0; }
.vidreelo-wrap, .vidreelo-wrap * { box-sizing: border-box; } .vidreelo-track { display: flex; gap: 14px; }
.vidreelo-layout-carousel .vidreelo-track {
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-bottom: 4px;
}
.vidreelo-layout-carousel .vidreelo-track::-webkit-scrollbar { display: none; }
.vidreelo-layout-grid .vidreelo-track {
display: grid;
grid-template-columns: repeat(var(--vidreelo-cols, 5), 1fr);
} .vidreelo-card {
flex: 0 0 calc((100% - (var(--vidreelo-cols, 5) - 1) * 14px) / var(--vidreelo-cols, 5));
scroll-snap-align: start;
display: flex; flex-direction: column;
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}
.vidreelo-layout-grid .vidreelo-card { flex: none; } .vidreelo-card-media {
position: relative;
width: 100%;
aspect-ratio: 9 / 16;
background: #11131a;
overflow: hidden;
cursor: pointer;
}
.vidreelo-card-media .vidreelo-poster,
.vidreelo-card-media video,
.vidreelo-card-media iframe {
position: absolute; inset: 0;
width: 100%; height: 100%;
object-fit: cover;
display: block;
margin: 0;
border: 0;
}
.vidreelo-card-media video,
.vidreelo-card-media iframe { opacity: 0; transition: opacity .35s ease; z-index: 1; }
.vidreelo-card-media iframe { pointer-events: none; } .vidreelo-card-media.is-playing video,
.vidreelo-card-media.is-playing iframe { opacity: 1; }
.vidreelo-card-play {
position: absolute; top: 50%; left: 50%;
transform: translate(-50%,-50%);
z-index: 3; line-height: 0;
width: 56px; height: 56px; border-radius: 50%;
background: rgba(0,0,0,.32);
display: flex; align-items: center; justify-content: center;
transition: opacity .25s, transform .2s;
backdrop-filter: blur(2px);
}
.vidreelo-card-media.is-playing .vidreelo-card-play { opacity: 0; }
.vidreelo-card:hover .vidreelo-card-play { transform: translate(-50%,-50%) scale(1.08); } .vidreelo-badge {
position: absolute; top: 10px; left: 10px; z-index: 4;
background: #e23744; color: #fff;
font-size: 12px; font-weight: 800; line-height: 1;
padding: 5px 8px; border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,.25);
} .vidreelo-card-pthumb {
position: absolute; left: 10px; bottom: 10px; z-index: 4;
width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
border: 2px solid #fff; background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,.3);
display: block;
transition: transform .15s;
}
.vidreelo-card-pthumb:hover { transform: scale(1.06); }
.vidreelo-card-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .vidreelo-card-info { padding: 10px 12px 12px; }
.vidreelo-card-ptitle {
display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical;
overflow: hidden;
font-size: 14px; font-weight: 600; line-height: 1.3;
color: #1a1a1a; text-decoration: none;
}
.vidreelo-card-ptitle:hover { color: var(--vidreelo-accent, #e1306c); }
.vidreelo-card-title {
display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; color: #1a1a1a;
}
.vidreelo-stars { display: inline-flex; gap: 1px; margin: 4px 0; font-size: 14px; line-height: 1; }
.vidreelo-star { color: #d9d9d9; }
.vidreelo-star.is-on { color: #f5a623; }
.vidreelo-card-price { display: flex; align-items: baseline; gap: 8px; }
.vidreelo-price-now { color: #e23744; font-weight: 800; font-size: 15px; }
.vidreelo-price-was { color: #9aa0a6; text-decoration: line-through; font-size: 12px; } .vidreelo-nav {
position: absolute; top: 38%; z-index: 5;
width: 40px; height: 40px; border: 0; border-radius: 50%;
background: #fff; color: #222; cursor: pointer;
box-shadow: 0 3px 12px rgba(0,0,0,.2);
font-size: 15px; line-height: 40px; padding: 0;
transition: transform .15s, background .15s, color .15s;
}
.vidreelo-nav:hover { background: var(--vidreelo-accent, #e1306c); color: #fff; transform: scale(1.08); }
.vidreelo-prev { left: -8px; }
.vidreelo-next { right: -8px; } .vidreelo-hide-title .vidreelo-card-info { display: none; } @media (max-width: 1024px) {
.vidreelo-layout-carousel .vidreelo-card {
flex-basis: calc((100% - (var(--vidreelo-cols-t, 3) - 1) * 14px) / var(--vidreelo-cols-t, 3));
}
.vidreelo-layout-grid .vidreelo-track { grid-template-columns: repeat(var(--vidreelo-cols-t, 3), 1fr); }
} @media (max-width: 600px) {
.vidreelo-layout-carousel .vidreelo-card {
flex-basis: calc((100% - (var(--vidreelo-cols-m, 2) - 1) * 12px) / var(--vidreelo-cols-m, 2));
}
.vidreelo-layout-grid .vidreelo-track { grid-template-columns: repeat(var(--vidreelo-cols-m, 2), 1fr); gap: 12px; }
.vidreelo-layout-carousel .vidreelo-track { gap: 12px; }
.vidreelo-nav { display: none; }
.vidreelo-card-info { padding: 8px 10px 10px; }
} .vidreelo-player { position: fixed; inset: 0; z-index: 999999; background: #000; display: none; }
.vidreelo-player.is-open { display: block; }
body.vidreelo-lock { overflow: hidden; }
.vidreelo-stage {
height: 100%; width: 100%;
overflow-y: auto;
scroll-snap-type: y mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.vidreelo-stage::-webkit-scrollbar { display: none; }
.vidreelo-slide {
position: relative; height: 100%;
scroll-snap-align: start;
display: flex; align-items: center; justify-content: center;
}
.vidreelo-slide video, .vidreelo-slide iframe {
width: auto; height: 100%; max-width: 100%;
aspect-ratio: 9 / 16; background: #000; border: 0; object-fit: contain;
}
@media (max-width: 600px) { .vidreelo-slide video, .vidreelo-slide iframe { width: 100%; height: auto; } }
.vidreelo-close, .vidreelo-mute {
position: absolute; z-index: 12;
width: 44px; height: 44px; border: 0; border-radius: 50%;
background: rgba(0,0,0,.45); color: #fff; cursor: pointer;
display: flex; align-items: center; justify-content: center;
}
.vidreelo-close { top: 16px; right: 16px; font-size: 24px; }
.vidreelo-mute { top: 16px; right: 70px; }
.vidreelo-close:hover, .vidreelo-mute:hover { background: var(--vidreelo-accent, #e1306c); }
.vidreelo-arrows { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 12; display: flex; flex-direction: column; gap: 12px; }
.vidreelo-arrows button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; font-size: 18px; }
.vidreelo-arrows button:hover { background: var(--vidreelo-accent, #e1306c); }
@media (max-width: 600px) { .vidreelo-arrows { display: none; } }
.vidreelo-shop {
position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
}
.vidreelo-shop::-webkit-scrollbar { display: none; }
.vidreelo-product {
flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
background: rgba(255,255,255,.96); border-radius: 12px;
padding: 8px 12px 8px 8px; text-decoration: none; color: #111;
max-width: 260px; box-shadow: 0 3px 12px rgba(0,0,0,.25);
}
.vidreelo-product img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #eee; }
.vidreelo-product .vidreelo-pt { font-size: 13px; font-weight: 600; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vidreelo-product .vidreelo-pp { font-size: 13px; color: var(--vidreelo-accent, #e1306c); font-weight: 700; }
.vidreelo-product .vidreelo-buy { margin-left: 4px; font-size: 12px; font-weight: 700; color: #fff; background: var(--vidreelo-accent, #e1306c); padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
.vidreelo-caption {
position: absolute; left: 14px; right: 90px; bottom: 96px; z-index: 11;
color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}