/* ==========================================================================
   STREAMRANK F1 - REWARDS & CHANNEL POINTS OVERLAY HUD
   Theme: High-Tech Cyberpunk & F1 Telemetry (#ec4899 / #a855f7 / #00f2fe)
   ========================================================================== */

.rewards-overlay {
    position: fixed;
    top: 45%;
    left: 90%;
    transform: translate(-90%, -45%);
    transform-origin: 0 0;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
    font-family: 'Titillium Web', 'Outfit', sans-serif;
}

.rewards-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.rewards-overlay.hiding {
    opacity: 0;
    transform: translate(-90%, -45%) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.3s ease;
}

/* Card Container (Clean Media Only) */
.rewards-card {
    position: relative;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Main Body Layout */
.rewards-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

/* Media Section (Triple de tamano: ~520px) */
.rewards-media-container {
    width: auto;
    height: auto;
    max-width: 540px;
    max-height: 420px;
    background: transparent !important;
    border: none !important;
    border-radius: 14px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.rewards-media-container iframe,
.rewards-media-container video {
    width: 520px;
    height: 293px;
    max-width: 90vw;
    object-fit: cover;
    border: none;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.rewards-media-container img {
    max-width: 520px;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.85));
}

.rewards-yt-wrapper {
    position: relative;
    width: 520px;
    height: 293px;
    max-width: 90vw;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    background: #000;
}

.rewards-yt-wrapper iframe {
    position: absolute;
    width: 854px !important;
    height: 480px !important;
    max-width: none !important;
    top: -8px;
    left: -9px;
    transform: scale(0.63);
    transform-origin: top left;
    border: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rewards-yt-shield {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 10;
}

/* Audio Visualizer Mode */
.rewards-audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(13, 16, 23, 0.9) 70%);
}

.rewards-audio-bar {
    width: 5px;
    height: 36px;
    background: #ec4899;
    border-radius: 3px;
    animation: rewardsAudioWave 0.8s infinite ease-in-out alternate;
}

.rewards-audio-bar:nth-child(1) { animation-delay: 0.1s; height: 18px; }
.rewards-audio-bar:nth-child(2) { animation-delay: 0.3s; height: 32px; }
.rewards-audio-bar:nth-child(3) { animation-delay: 0.2s; height: 44px; }
.rewards-audio-bar:nth-child(4) { animation-delay: 0.4s; height: 26px; }
.rewards-audio-bar:nth-child(5) { animation-delay: 0.15s; height: 38px; }
.rewards-audio-bar:nth-child(6) { animation-delay: 0.35s; height: 20px; }

@keyframes rewardsAudioWave {
    0% { transform: scaleY(0.3); opacity: 0.6; }
    100% { transform: scaleY(1.2); opacity: 1; }
}
