@import url('https://fonts.googleapis.com/css2?family=Andika:ital,wght@0,400;0,700;1,400;1,700&family=Lexend:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Andika:ital,wght@0,400;0,700;1,400;1,700&family=Lexend:wght@100..900&family=Playwrite+IT+Moderna:wght@100..400&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* Reset simples */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Funnel Display", serif;
    font-optical-sizing: auto;
    background-color: #0f111a;
    /* Fundo escuro/azul marinho */
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
}

/* Tela de introdução (botão central) */
.intro {
    position: fixed;
    inset: 0;
    /* top:0, left:0, right:0, bottom:0 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f111a;
    z-index: 9999;
    /* Para ficar sobre tudo */
}

.intro button {
    font-size: 2rem;
    padding: 12px 24px;
    background-color: #0f1119;
    border: 1px solid red;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.intro button:hover {
    background-color: red;
}

/* Container principal (inicia oculto) */
.container {
    display: none;
    /* Fica oculto até clicar */
    width: 90%;
    max-width: 900px;
    /* Conteúdo não passa de 900px */
    text-align: center;
    border-radius: 8px;
    margin: 0 auto;
    /* centraliza */
    padding-top: 4em;
}

/* SLIDER: uso de aspect-ratio + media query para mobile/desktop */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 275 / 470;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #0f111a;
}

/* Em telas acima de 768px (desktop), limitamos a largura em 275px 
para ficar fininho e alto. Ajuste 768px se quiser outro breakpoint. */
@media (min-width: 768px) {
    .slider {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .slider {
        max-width: 300px;
    }
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f111a;
}

.slides img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Ajuste específico para imagens em modo retrato */
.slides img[style*="aspect-ratio: 3/4"],
.slides img[style*="aspect-ratio: 2/3"],
.slides img[style*="aspect-ratio: 4/5"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #121212;
}

h3.title {
    margin-top: 20px;
    /* font-weight: 700; */
    font-family: "Playwrite IT Moderna", cursive;;
    font-size: 2em;
    color: red;
    text-decoration: underline;
    text-decoration-thickness: 3px; /* Define a espessura do sublinhado */
    text-decoration-color: red; /* Garante que a cor do sublinhado seja vermelho */
    font-weight: bold;
}

.counter {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 400;
    padding-top: 30px;
}

.message {
    margin: 20px 0;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: "Andika", sans-serif;
    white-space: pre-wrap;
}

.video-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.video-section iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
}

/* Corações */
.heart {
    position: fixed;
    font-size: 1.5rem;
    top: -1vh;
    transform: translateY(0);
    animation: fall 3s linear forwards;
    pointer-events: none;
    z-index: 100; /* Reduzido para não interferir com o Swiper */
}

hr {
    width: 50%;
    margin: 0 auto;
    margin-top: 4em;
}

@keyframes fall {
    from {
        transform: translateY(0vh) translateX(-10vw);
    }

    to {
        transform: translateY(105vh) translateX(10vw);
    }
}

.counter-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .counter-item {
    background-color: #000000;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: white;
  }
  
  .counter-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
  }
  
  .counter-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 5px 0 0 0;
    font-style: italic;
    font-family: "Andika", sans-serif;
  }
  
  h2.title {
    text-align: center;
    color: white;
    font-style: italic;
    margin-bottom: 30px;
    font-family: "Andika", sans-serif";
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    pointer-events: none; /* Desabilita interação com o iframe */
  }

  .video-wrapper iframe {
    pointer-events: none; /* Desabilita cliques no iframe */
  }

  /* Garantir que nosso player tenha prioridade */
  .audio-player {
    pointer-events: auto;
    z-index: 1001; /* Maior que o iframe */
  }

  .som-botao {
    position: relative;
    bottom: 10px;
    left: 130px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    cursor: pointer;
  }

  iframe {
    width: 100%;
    height: 315px;
  }

  /* Ajustando o z-index do Swiper para funcionar corretamente */
  .swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 275 / 470;
    margin: 0 auto;
    overflow: hidden; /* Mudado de volta para hidden para evitar problemas de scroll */
    border-radius: 8px;
    z-index: 10; /* Aumentado para funcionar corretamente */
    background: #0f111a;
  }

  /* Em telas acima de 768px (desktop), limitamos a largura em 275px 
  para ficar fininho e alto. Ajuste 768px se quiser outro breakpoint. */
  @media (min-width: 768px) {
    .swiper {
      max-width: 300px;
    }
  }

  @media (max-width: 768px) {
    .swiper {
      max-width: 250px;
    }
  }

  .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f111a;
  }

  .swiper-slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
  }

  /* Sombras mais dramáticas para slides caídos */
  .swiper-slide-next img,
  .swiper-slide-prev img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .swiper-slide-active img {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  }

  /* Efeito cards nativo do Swiper - CSS customizado removido */

  /* Paginação do Swiper em vermelho */
  .swiper-pagination-bullet {
    background-color: red !important;
    opacity: 0.5;
  }

  .swiper-pagination-bullet-active {
    background-color: red !important;
    opacity: 1;
  }

  /* Player de áudio mobile-first - Layout como da imagem */
  .audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f111a;
    border-top: 1px solid rgba(197, 82, 82, 0.3);
    z-index: 1000;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  }

  .player-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }

  .song-info {
    text-align: center;
    margin-bottom: 4px;
  }

  .song-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-family: "Roboto", sans-serif;
  }

  .player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .time-display {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
    font-family: "Roboto", sans-serif;
  }

  .progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
  }

  .progress-fill {
    height: 100%;
    background: red;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
  }

  .play-pause-btn {
    background: red;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
  }

  .play-pause-btn:hover {
    background: #ff6b6b;
    transform: scale(1.05);
  }

  .play-pause-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  .volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .volume-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    position: relative;
  }

  .volume-btn:hover {
    color: red;
    transform: scale(1.1);
  }

  .volume-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }


  /* Responsividade para desktop */
  @media (min-width: 768px) {
    .audio-player {
      padding: 16px 24px;
    }

    .player-container {
      gap: 12px;
    }

    .song-title {
      font-size: 14px;
    }

    .player-controls {
      gap: 16px;
    }

    .time-display {
      font-size: 14px;
      min-width: 40px;
    }

    .play-pause-btn {
      width: 36px;
      height: 36px;
    }

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

    .volume-btn svg {
      width: 20px;
      height: 20px;
    }

    .progress-bar {
      height: 4px;
    }
  }