/* ── Social Video Embed ── */
.sve-card {
    position: relative;
    max-width: 640px;
    margin: 1.5em auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    background: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
}
.rt .elementor-loop-container{
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}
/* Thumbnail */
.sve-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* ratio 16:9 */
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    transition: filter .25s ease;transition: filter .25s ease;
    aspect-ratio: 9 / 16;
}
.sve-card[data-platform="tiktok"] .sve-thumbnail {
    padding-top: 177%; /* ratio 9:16 pour TikTok */
    max-height: 560px;
}

.sve-thumbnail:hover {
    filter: brightness(1.08);
}

/* Badge plateforme */
.sve-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

/* Bouton play */
.sve-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
    z-index: 2;
}
.sve-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;    background: none;
}
.sve-play-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Footer titre */
.sve-footer {
    background: #111;
    padding: 12px 16px;
}
.sve-title {
    margin: 0;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Iframe après clic */
.sve-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.sve-card[data-platform="tiktok"] .sve-iframe-wrapper {
    padding-top: 177%;
}
.sve-iframe-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Message d'erreur */
.sve-error {
    color: #c0392b;
    border-left: 3px solid #c0392b;
    padding: 8px 12px;
    font-size: 14px;
    background: #fdf0ef;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .sve-play-btn { width: 54px; height: 54px; }
    .sve-title    { font-size: 13px; }
}
