/* ===========================================
   PALETA MARROM + OURO
=========================================== */

:root {
    --bg: #2b1f17;
    --card-bg: rgba(58, 42, 33, 0.92); /* transparente para ver o vídeo atrás */
    --marrom-ouro: #d4a373;
    --texto: #f0e6d8;
    --radius: 22px;
}


/* ===========================================
   CONFIG DO VÍDEO DE FUNDO
=========================================== */

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* cobre qualquer tela */
    z-index: -1;         /* fica atrás de tudo */
    filter: brightness(0.45) blur(2px);  /* deixa bonito e elegante */
}

/* iPhone / Android: permite autoplay */
video::-webkit-media-controls {
    display: none !important;
}


/* ===========================================
   BODY CONFIG
=========================================== */

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: var(--texto);

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    overflow-x: hidden;
}


/* ===========================================
   CARD PRINCIPAL (versão marrom + flip + dourado)
   — Mantive seu estilo top
=========================================== */

.card_ouvir {
    position: relative;
    background: var(--card-bg);
    padding: 40px;
    width: 95%;
    max-width: 430px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 163, 115, 0.25);
    animation: surgir 0.6s ease forwards;
    overflow: hidden;

    transform-style: preserve-3d;
    transition: 0.5s ease;
}

.card_ouvir:hover {
    transform: translateY(-10px) rotateX(6deg) rotateY(-6deg);
    box-shadow: 0 0 35px rgba(212, 163, 115, 0.55);
}

/* Borda animada ouro */
.card_ouvir::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(130deg,
        #d4a373, #e8c7a1, #b5835a, #d4a373
    );
    background-size: 300% 300%;
    animation: brilhoOuro 5s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

@keyframes brilhoOuro {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(25px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* ===========================================
   TÍTULO
=========================================== */

.card_ouvir h1 {
    font-size: 1.9rem;
    margin-bottom: 22px;
    font-weight: 700;
    color: #f1d5b8;
    text-shadow: 0 0 10px rgba(212, 163, 115, 0.4);
}


/* ===========================================
   VÍDEO / AVATAR
=========================================== */

.avatar {
    width: 100%;
    max-width: 300px;
    border-radius: 18px;
    box-shadow: 0 0 22px rgba(212, 163, 115, 0.4);
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
    background: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}


/* ===========================================
   BOTÃO OURO
=========================================== */

button {
    background: transparent;
    border: 2px solid var(--marrom-ouro);
    padding: 15px 26px;
    width: 100%;
    border-radius: 14px;
    color: var(--marrom-ouro);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(212, 163, 115, 0.4);
    position: relative;
    overflow: hidden;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent,
        rgba(212,163,115,0.6),
        transparent
    );
    transition: 0.5s;
}

button:hover::before {
    left: 120%;
}

button:hover {
    color: #3a2a21;
    background: var(--marrom-ouro);
    box-shadow: 0 0 25px rgba(212, 163, 115, 0.8);
    transform: translateY(-3px);
}


/* ===========================================
   RESPONSIVIDADE MOBILE
=========================================== */

@media (max-width: 480px) {

    .card_ouvir {
        padding: 30px;
        max-width: 92%;
    }

    .avatar {
        max-width: 240px;
    }

    button {
        font-size: 1.1rem;
        padding: 12px 18px;
    }

    .card_ouvir h1 {
        font-size: 1.55rem;
    }

    /* vídeo de fundo funciona igual no mobile */
    .video-bg {
        filter: brightness(0.4) blur(1.5px);
    }
}
