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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    
    /* Fundo escuro estilo Spotify, com reflexos vermelhos sutis */
    background-color: #121212;
    background-image: 
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.15) 0%, transparent 40%),
        radial-gradient(circle at bottom right, rgba(229, 9, 20, 0.1) 0%, transparent 40%);
    
    /* Texto claro */
    color: #EBEBEB; 
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================
   SEÇÕES
========================= */

section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

h1, h2, h3 {
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;

    /* Gradiente vermelho vivo para o título */
    background: linear-gradient(135deg, #ff3333, #b30000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ff4d4d;
}

p {
    font-size: 1.05rem;
    color: #B3B3B3; /* Cor de texto secundário estilo Spotify */
}

/* =========================
   HERO
========================= */

#inicio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.foto-principal {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    /* Sombra vermelha bem suave */
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
    transition: .5s ease;
}

.foto-principal:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.4);
}

#inicio p {
    max-width: 700px;
    font-size: 1.1rem;
}

/* =========================
   BOTÃO
========================= */

button {
    border: none;
    padding: 16px 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e50914, #b30000);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5);
}

/* =========================
   CARDS GERAIS (Efeito Vidro Escuro)
========================= */
.contador-card,
.card-historia,
.msg_carta {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 51, 51, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px;
    transition: .4s;
}

/* =========================
   CONTADOR
========================= */

#contador { text-align: center; }

#tempo-juntos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.contador-card {
    min-width: 180px;
    padding: 30px;
}

.contador-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 51, 51, 0.4);
}

.contador-card h3 {
    font-size: 3rem;
    color: #ff3333;
}

.contador-card p {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #EBEBEB;
}

/* =========================
   HISTÓRIA
========================= */

.card-historia {
    max-width: 900px;
    margin: auto;
}

.card-historia h3 {
    margin-bottom: 20px;
    color: #ff4d4d;
}

.card-historia p {
    text-align: justify;
}

/* =========================
   GALERIA (Estilo Instagram Story)
========================= */

.container-fotos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Faz travar na foto certinho */
    gap: 20px;
    padding: 20px 0;
    
    /* Suaviza a rolagem no celular */
    -webkit-overflow-scrolling: touch;
    
    /* Estiliza a barra de rolagem (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: #ff3333 #1e1e1e;
}

/* Estiliza a barra de rolagem (Chrome/Safari) */
.container-fotos::-webkit-scrollbar {
    height: 8px;
}
.container-fotos::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}
.container-fotos::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 10px;
}

.foto-card {
    flex: 0 0 300px; /* Largura fixa para cada foto */
    scroll-snap-align: center; /* Trava a foto no meio da tela */
    overflow: hidden;
    border-radius: 24px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 51, 51, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transition: .4s;
}

.foto-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 51, 51, 0.5);
}

.foto-card img {
    width: 100%;
    height: 400px; /* Aumentei um pouco para parecer mais um story */
    object-fit: cover;
    transition: .5s;
}

.foto-card:hover img {
    transform: scale(1.05);
}

.foto-card p {
    padding: 18px;
    text-align: center;
    font-weight: 600;
    color: #EBEBEB;
}

/* =========================
   CARTA
========================= */

#carta {
    text-align: center;
}

#carta > p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.msg_carta {
    max-width: 650px;
    margin: auto;
    padding: 25px;
}

.msg_carta img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 20px;
}

.msg_carta p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ff4d4d;
    text-align: center;
}

/* =========================
   DIVISORES
========================= */

section::after {
    content: "♥";
    display: block;
    text-align: center;
    margin-top: 80px;
    color: #ff3333;
    opacity: 0.2;
    font-size: 2rem;
}

section:last-child::after {
    display: none;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
    section {
        padding: 70px 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .contador-card {
        min-width: 140px;
        padding: 20px;
    }

    .contador-card h3 {
        font-size: 2rem;
    }

    .foto-card {
        flex: 0 0 260px; /* Diminui um pouco no celular */
    }

    .foto-card img {
        height: 350px;
    }
}


/* =========================
   PLAYER DE MÚSICA
========================= */
#player-musica {
    text-align: center;
}

.player-card {
    max-width: 380px;
    margin: auto;
    
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 51, 51, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capa-musica {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.player-info h3 {
    color: #EBEBEB;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.player-info p {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.controles {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#btn-play-pause {
    background: #ff3333;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    padding: 0;
    padding-left: 4px; /* Centraliza visualmente o ícone de play */
    cursor: pointer;
    transition: 0.3s;
}

#btn-play-pause:hover {
    transform: scale(1.1);
    background: #e50914;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

.progresso-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    font-size: 0.8rem;
    color: #B3B3B3;
}

#barra-progresso {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #404040;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#barra-progresso::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #ff3333;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

#barra-progresso::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* =========================
   CONTADOR DE SEGUNDOS TOTAL
========================= */
#segundos-total {
    text-align: center;
}

.segundos-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.contador-segundos-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 51, 51, 0.2);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.15);
    border-radius: 24px;
    padding: 40px 60px;
    display: inline-block;
    transition: 0.3s;
}

.contador-segundos-card:hover {
    border-color: rgba(255, 51, 51, 0.5);
    transform: scale(1.02);
}

.contador-segundos-card h3 {
    font-size: 4.5rem; /* Número bem grande para dar destaque */
    font-weight: 700;
    background: linear-gradient(135deg, #ff3333, #ff85a2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.contador-segundos-card p {
    font-size: 1.1rem;
    color: #EBEBEB;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .contador-segundos-card h3 {
        font-size: 2.8rem;
    }
    .contador-segundos-card {
        padding: 30px 20px;
        width: 100%;
    }
}