.shvh-player-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.shvh-watermark {
    /* This class is applied to the component we created in JavaScript */
    position: absolute;
    z-index: 10;
    pointer-events: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    white-space: pre-wrap;
    will-change: transform;
}

/* Static Positioning (used when animation is 'none') */
.shvh-watermark-pos-top-left { top: 5%; left: 5%; }
.shvh-watermark-pos-top-right { top: 5%; right: 5%; text-align: right; }
.shvh-watermark-pos-bottom-left { bottom: 50px; left: 5%; }
.shvh-watermark-pos-bottom-right { bottom: 50px; right: 5%; text-align: right; }
.shvh-watermark-pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

/* Wide Floating Animation */
.shvh-watermark.animation-floating {
    animation: shvh-float-wide 25s ease-in-out infinite alternate;
}

@keyframes shvh-float-wide {
    0% { transform: translate(0, 0); top: 10%; left: 10%; }
    25% { transform: translate(10px, -5px); top: 15%; left: 80%; }
    50% { transform: translate(-5px, 10px); top: 75%; left: 60%; }
    75% { transform: translate(5px, 5px); top: 80%; left: 15%; }
    100% { transform: translate(0, 0); top: 10%; left: 10%; }
}

/**
 * Final public CSS.
 * This version uses the standard aspect-ratio trick for desktop
 * and a fixed height for mobile to ensure compatibility.
 */

/* --- Default Styles for Desktop --- */
.shvh-iframe-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #000;
}

.shvh-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- NEW: Mobile-Specific Styles --- */
/* These styles will only apply on screens 767px wide or smaller */
@media (max-width: 767px) {
    .shvh-iframe-wrapper {
        height: 250px; /* A fixed, predictable height for mobile devices */
        padding-top: 0; /* We no longer need the padding trick on mobile */
    }
}
