* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-height: 100vh;
    --safe-gap: clamp(14px, 2.2vw, 28px);
    --bg-focus-x: 62%;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: #000;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
}

.site-bg,
.site-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.site-bg {
    z-index: 0;
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: var(--bg-focus-x) center;
    background-size: cover;
}

.site-overlay {
    z-index: 1;
    background: rgba(0, 0, 0, 0.32);
}

.brand-stack {
    position: fixed;
    top: var(--safe-gap);
    left: var(--safe-gap);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.4vw, 14px);
}

.brand-swap {
    width: clamp(204px, 22.95vw, 337px);
    display: grid;
}

.brand-swap img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
}

.brand-right {
    position: fixed;
    top: var(--safe-gap);
    right: var(--safe-gap);
    width: min(442px, calc((100vw - (var(--safe-gap) * 2)) * 0.85));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 3;
}

.brand-message {
    width: clamp(188px, 29.1vw, 448px);
    height: auto;
    display: block;
    align-self: flex-end;
}

.brand-logo {
    animation: brandSwapLogo 15s ease-in-out infinite;
    opacity: 1;
}

.brand-badge {
    animation: brandSwapBadge 15s ease-in-out infinite;
    opacity: 0;
}

@keyframes brandSwapLogo {
    0%, 53.333% {
        opacity: 1;
    }
    66.667%, 86.667% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes brandSwapBadge {
    0%, 53.333% {
        opacity: 0;
    }
    66.667%, 86.667% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: min(600px, 80vw);
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 14px 19px 14px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
    width: 100%;
}

.social-whatsapp-large {
    justify-content: flex-start;
}

.social-whatsapp-large .social-icon {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(88, 39, 137, 0.72);
    border-color: rgba(200, 100, 250, 0.58);
    box-shadow: 0 8px 24px rgba(88, 39, 137, 0.35);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.social-instagram .social-icon {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-tiktok .social-icon {
    background: linear-gradient(135deg, #25f4ee, #000000, #fe2c55);
}

.social-shopee .social-icon {
    background: #ee4d2d;
}

.social-whatsapp .social-icon {
    background: #25d366;
}

.social-amazon .social-icon {
    background: #ff9900;
}

.social-mercadolivre .social-icon {
    background: #ffd000;
    color: #000;
}

.social-label {
    line-height: 1.3;
    font-size: 13px;
}

.player-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    background: rgba(20, 20, 20, 0.88);
    max-height: 0;
    opacity: 0;
    transition: max-height 300ms ease, opacity 300ms ease, z-index 0s 300ms;
}

.player-container.is-opened {
    max-height: 500px;
    opacity: 1;
    z-index: 4;
    transition: max-height 300ms ease, opacity 300ms ease, z-index 0s;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 12px;
    color: #ffeb3b;
    background: rgba(88, 39, 137, 0.95);
}

.player-title {
    font-size: 13px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.player-toggle {
    border: 0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #582789;
    background: #ffeb3b;
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease;
}

.player-toggle:hover {
    background: #fff176;
    transform: translateY(-1px);
}

.player-toggle:active {
    transform: translateY(0);
}

.player-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 14px 19px 14px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: rgba(0, 0, 0, 0.62);
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
    width: 100%;
    z-index: 3;
}

.player-trigger:hover {
    transform: translateY(-2px);
    background: rgba(88, 39, 137, 0.72);
    border-color: rgba(200, 100, 250, 0.58);
    box-shadow: 0 8px 24px rgba(88, 39, 137, 0.35);
}

.player-trigger .social-icon {
    background: linear-gradient(135deg, #ff6600, #ff9933);
}

.trigger-badge {
    margin-left: auto;
    height: 26px;
    width: auto;
    flex-shrink: 0;
}

.site-footer {
    position: relative;
    margin-top: auto;
    width: 100%;
    padding: 16px var(--safe-gap);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: #cccccc;
    z-index: 2;
}

.site-footer strong {
    color: #ffeb3b;
    font-weight: 700;
}

.player-container.is-opened .player-trigger {
    display: none;
}

.player-body {
    max-height: 260px;
    opacity: 1;
    transition: max-height 220ms ease, opacity 180ms ease;
}

.player-container.is-collapsed .player-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.player-container.is-opened .player-toggle {
    display: none;
}

.player-container iframe {
    width: 100%;
    height: 166px;
    display: block;
    border: 0;
}

.player-meta {
    font-size: 10px;
    color: #cccccc;
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Interstate, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Garuda, Verdana, Tahoma, sans-serif;
    font-weight: 100;
    padding: 6px 10px 8px;
}

.player-meta a {
    color: #cccccc;
    text-decoration: none;
}

@media (min-aspect-ratio: 16/9) {
    .site-bg {
        background-size: auto 100%;
    }
}

@media (max-width: 640px) {
    .brand-stack {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        flex-direction: column;
        gap: 15px;
        z-index: 3;
    }

    .brand-swap {
        width: clamp(202px, 24.75vw, 333px);
    }

    .brand-message {
        display: none;
    }

    .brand-right {
        display: none;
    }

    .social-links {
        width: 98vw;
        max-width: 98vw;
        margin-top: -2px;
        gap: 4px;
        align-items: center;
    }

    .social-link {
        font-size: 13px;
        padding: 11px 12px 11px 10px;
        border-radius: 6px;
        width: 100%;
    }

    .social-label {
        font-size: 13px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .player-trigger {
        width: calc(100vw - (var(--safe-gap) * 2));
        font-size: 12px;
        padding: 11px 12px 11px 10px;
        display: none;
    }

    .player-trigger .social-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .footer-rights {
        display: none;
    }
}
