/* ============================================
   PLAYER VSL — CSS Premium Dark Theme
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050505;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background: radial-gradient(ellipse at center top, #0d0d0d 0%, #050505 70%);
}

/* ============================================
   URGENCY TOP BAR
   ============================================ */
.urgency-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(90deg, #1a0000 0%, #2d0a0a 50%, #1a0000 100%);
    border-bottom: 1px solid rgba(231,76,60,0.3);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.urgency-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.urgency-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: urgencyPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231,76,60,0.6); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(231,76,60,0); }
}

.urgency-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgency-text strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Timer */
.urgency-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}

.timer-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-value {
    font-size: 16px;
    font-weight: 800;
    color: #e74c3c;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    padding: 2px 8px;
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.25);
    border-radius: 6px;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { border-color: rgba(231,76,60,0.25); }
    50%      { border-color: rgba(231,76,60,0.5); }
}

/* ============================================
   HEADLINE
   ============================================ */
.headline-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.headline {
    font-size: 19px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.55;
    letter-spacing: -0.2px;
}

/* "30mil" — gradient text highlight */
.hl-value {
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* "IA" — tech badge */
.hl-tech {
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(231,76,60,0.3);
}

/* Subtitle lines — "Mesmo começando..." / "Sem precisar..." */
.hl-sub {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* "Assista abaixo e entenda" — CTA line */
.headline-cta {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 0.3px;
}

.headline-arrow {
    display: inline-block;
    animation: bounceDown 1.5s ease-in-out infinite;
    font-size: 18px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* ============================================
   PLAYER WRAPPER
   ============================================ */
.player-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 16px;
    padding-top: 56px; /* Space for fixed urgency bar */
    margin-top: 16px;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================
   PLAYER CONTAINER
   ============================================ */
.player-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 vertical */
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 8px 40px rgba(0,0,0,0.6),
        0 0 80px rgba(200,30,40,0.06);
}

.player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* ============================================
   FAKE PROGRESS BAR
   ============================================ */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.08);
    z-index: 15;
    cursor: default !important;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c0392b, #e74c3c, #ff6b6b);
    transition: width 0.5s linear;
    border-radius: 0 2px 2px 0;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(231,76,60,0.8), 0 0 20px rgba(231,76,60,0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

/* ============================================
   UNMUTE OVERLAY — Blur forte + Card sólido
   ============================================ */
.unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.unmute-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.unmute-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    padding: 20px;
    width: 100%;
}

/* Card sólido em volta do texto */
.unmute-card {
    background: rgba(15,15,15,0.85);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 0 40px rgba(231,76,60,0.08);
}

.unmute-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.unmute-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Sound Wave Animation */
.sound-wave-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    height: 44px;
}

.sound-wave-icon span {
    display: block;
    width: 5px;
    background: #e74c3c;
    border-radius: 3px;
    animation: soundWave 1s ease-in-out infinite;
}

.sound-wave-icon span:nth-child(1) { height: 14px; animation-delay: 0.0s; }
.sound-wave-icon span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.sound-wave-icon span:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.sound-wave-icon span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.sound-wave-icon span:nth-child(5) { height: 14px; animation-delay: 0.4s; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50%      { transform: scaleY(1.3); opacity: 1; }
}

/* ============================================
   PLAY OVERLAY (Fallback)
   ============================================ */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
}

.play-overlay.visible {
    display: flex;
}

.play-btn-wrapper {
    text-align: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(231,76,60,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 30px rgba(231,76,60,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: playPulse 2s ease-in-out infinite;
}

.play-btn svg {
    width: 36px;
    height: 36px;
    color: #fff;
    margin-left: 4px;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(231,76,60,0.6);
}

.play-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(231,76,60,0.4); }
    50%      { box-shadow: 0 0 50px rgba(231,76,60,0.7); }
}

/* ============================================
   PAUSE INDICATOR
   ============================================ */
.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.pause-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pause-indicator svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* ============================================
   RETURN OVERLAY (tab switch)
   ============================================ */
.return-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 22;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.return-overlay.visible {
    display: flex;
}

.return-card {
    background: rgba(15,15,15,0.9);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: fadeInUp 0.4s ease-out;
}

.return-icon {
    width: 56px;
    height: 56px;
    background: rgba(231,76,60,0.15);
    border: 2px solid rgba(231,76,60,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: #e74c3c;
    animation: playPulse 2s ease-in-out infinite;
}

.return-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.return-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.return-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-container {
    margin-top: 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    pointer-events: none;
}

.cta-container.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite, ctaGlow 2s ease-in-out infinite;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 24px rgba(192,57,43,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(231,76,60,0.55);
}

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.cta-icon {
    font-size: 20px;
}

.cta-arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 4px 24px rgba(192,57,43,0.4); }
    50%      { box-shadow: 0 4px 40px rgba(231,76,60,0.65); }
}

/* Buyers Counter */
.buyers-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

.buyers-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 5px rgba(46,204,113,0); }
}

.buyers-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.buyers-text strong {
    color: #2ecc71;
    font-weight: 700;
}

/* ============================================
   RESUME OVERLAY (inside player)
   ============================================ */
.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 26;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.resume-overlay.visible {
    display: flex;
}

.resume-play-icon {
    width: 56px;
    height: 56px;
    background: rgba(231,76,60,0.15);
    border: 2px solid rgba(231,76,60,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: #e74c3c;
    animation: playPulse 2s ease-in-out infinite;
}

.resume-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.resume-ol-continue {
    padding: 12px 24px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(231,76,60,0.3);
    transition: transform 0.15s;
}

.resume-ol-continue:hover {
    transform: scale(1.03);
}

.resume-ol-restart {
    padding: 8px 16px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s;
}

.resume-ol-restart:hover {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   SOCIAL PROOF TOAST
   ============================================ */
.social-toast {
    position: fixed;
    bottom: 24px;
    left: 16px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(18,18,18,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46,204,113,0.15);
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.4),
        0 0 20px rgba(46,204,113,0.05);
    max-width: 320px;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.social-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.social-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.social-toast-body {
    min-width: 0;
}

.social-toast-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-toast-msg {
    font-size: 11px;
    font-weight: 500;
    color: rgba(46,204,113,0.9);
    margin-bottom: 1px;
}

.social-toast-time {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .social-toast {
        bottom: auto;
        top: 48px;
        left: 8px;
        right: 8px;
        max-width: none;
        padding: 10px 14px;
        border-radius: 10px;
        transform: translateY(-100%);
    }

    .social-toast.visible {
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }

    .urgency-bar {
        padding: 6px 10px;
    }

    .urgency-text {
        font-size: 10px;
    }

    .timer-label {
        display: none;
    }

    .timer-value {
        font-size: 14px;
    }

    .headline-container {
        margin-bottom: 12px;
    }

    .headline {
        font-size: 17px;
    }

    .hl-sub {
        font-size: 14px;
    }

    .headline-cta {
        font-size: 15px;
    }

    .player-wrapper {
        max-width: 100%;
        padding: 8px;
        padding-top: 48px;
        margin-top: 8px;
    }

    .player-container {
        border-radius: 10px;
    }

    .unmute-card {
        padding: 24px 20px;
        max-width: 240px;
    }

    .unmute-title {
        font-size: 17px;
    }

    .unmute-subtitle {
        font-size: 14px;
    }

    .sound-wave-icon {
        height: 36px;
    }

    .sound-wave-icon span {
        width: 4px;
    }

    .sound-wave-icon span:nth-child(1) { height: 12px; }
    .sound-wave-icon span:nth-child(2) { height: 20px; }
    .sound-wave-icon span:nth-child(3) { height: 30px; }
    .sound-wave-icon span:nth-child(4) { height: 20px; }
    .sound-wave-icon span:nth-child(5) { height: 12px; }

    .play-btn {
        width: 64px;
        height: 64px;
    }

    .play-btn svg {
        width: 28px;
        height: 28px;
    }

    .cta-container {
        margin-top: 16px;
        padding: 0 8px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 8px;
    }

    .resume-badge {
        padding: 0 8px;
    }
}

@media (max-width: 380px) {
    .headline {
        font-size: 15px;
    }

    .hl-sub {
        font-size: 13px;
    }

    .headline-cta {
        font-size: 14px;
    }

    .cta-btn {
        font-size: 14px;
        padding: 14px 16px;
        gap: 8px;
    }

    .unmute-card {
        padding: 20px 16px;
        max-width: 220px;
    }

    .unmute-title {
        font-size: 15px;
    }
}

/* Ultra-small screens (iPhone SE, Galaxy Fold) */
@media (max-width: 320px) {
    .headline {
        font-size: 14px;
    }

    .hl-sub {
        font-size: 12px;
    }

    .hl-tech {
        font-size: 0.8em;
        padding: 1px 4px;
    }

    .headline-cta {
        font-size: 13px;
    }

    .urgency-text {
        font-size: 9px;
    }

    .timer-value {
        font-size: 12px;
        padding: 2px 6px;
    }

    .cta-btn {
        font-size: 13px;
        padding: 12px 12px;
    }
}

/* ============================================
   DISABLE INTERACTIONS
   ============================================ */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::cue {
    display: none !important;
}
