* {
  box-sizing: border-box;
}

body {
  background-color: #111;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
}

/* FUNDO */
body::after {
  background: radial-gradient(transparent, #111);
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* GRID */
.grid {
  filter: blur(2px);
}

.grid::before {
  background:
    repeating-linear-gradient(0deg, #ff3860 0, #ff3860 2px, transparent 2px, transparent 40px),
    repeating-linear-gradient(90deg, #ff3860 0, #ff3860 2px, transparent 2px, transparent 40px);
  content: '';
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.12;
  z-index: 0;
}

/* ÁREA DO TOPO */
.top-animation {
  min-height: 620px;
  position: relative;
  z-index: 2;
}

/* DATA */
.date {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  border: 1px solid rgba(255, 56, 96, 0.7);
  border-radius: 999px;
  background: rgba(255, 56, 96, 0.08);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 8px rgba(255, 56, 96, 0.35),
    inset 0 0 8px rgba(255, 56, 96, 0.15);
}

/* TITULO SUPERIOR */
.text-container {
  position: absolute;
  width: 100%;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

.text-container h1 {
  font-size: 4rem;
}

/* TITULO INFERIOR */
.text-text2 {
  position: absolute;
  width: 100%;
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

.text-text2 h1 {
  font-size: 1.8rem;
}

/* TITULOS */
h1 {
  margin: 0.3rem 0;
  color: #ff3860;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow:
    0 0 10px #ff3860,
    0 0 20px #ff3860,
    0 0 40px rgba(255, 56, 96, 0.5);
}

/* TROCA TEXTO */
.text-container .text-normal,
.text-text2 .text-normal {
  display: block;
}

.text-container .text-love,
.text-text2 .text-love {
  display: none;
}

input:checked ~ .top-animation .text-container .text-normal,
input:checked ~ .top-animation .text-text2 .text-normal {
  display: none;
}

input:checked ~ .top-animation .text-container .text-love,
input:checked ~ .top-animation .text-text2 .text-love {
  display: block;
}

/* EKG */
.ekg {
  position: absolute;
  left: 50%;
  top: 220px;
  transform: translateX(-50%);
  max-width: 360px;
  z-index: 8;
}

.ekg:nth-of-type(1),
.ekg:nth-of-type(3) {
  filter: blur(10px);
}

.ekg path {
  stroke: #ff3860;
  animation: draw 1s infinite ease-out forwards;
}

.ekg--novelty {
  display: none;
}

.ekg--novelty path {
  animation-duration: 1.2s;
}

input:checked ~ .top-animation .ekg--original {
  display: none;
}

input:checked ~ .top-animation .ekg--novelty {
  display: block;
}

/* GALERIA */
.media-gallery {
  position: relative;
  width: min(86%, 1180px);
  margin: 20px auto 40px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 56, 96, 0.25);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(255, 56, 96, 0.12);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.media-gallery h2 {
  margin: 0 0 1rem 0.5rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CARDS */
.cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.card {
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 240px;
  border-radius: 22px;
  border: 1px solid rgba(255, 56, 96, 0.12);
  background: rgba(17, 17, 17, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  scroll-snap-align: start;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-6px);
}

.card.special {
  border-color: #ff3860;
  box-shadow: 0 12px 40px rgba(255, 56, 96, 0.35);
}

.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXTO CARD */
.caption {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  color: #f5f5f5;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* SCROLL CARDS */
.cards::-webkit-scrollbar {
  height: 8px;
}

.cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.cards::-webkit-scrollbar-thumb {
  background: rgba(255, 56, 96, 0.55);
  border-radius: 999px;
}

/* BOTÃO CORAÇÃO */
label {
  position: fixed;
  right: 40px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  font-size: 2rem;
  filter: drop-shadow(0 0 5px #ff3860);
}

input {
  position: fixed;
  right: 40px;
  bottom: 36px;
  opacity: 0;
}

/* BOTÃO MUSICA */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #ff3860;
  color: white;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #ff3860;
}

/* ANIMAÇÃO */
@keyframes draw {
  0% {
    opacity: 1;
    stroke-dashoffset: 750;
  }

  75% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .top-animation {
    min-height: 560px;
  }

  .text-container h1 {
    font-size: 2.1rem;
  }

  .text-text2 {
    top: 420px;
  }

  .text-text2 h1 {
    font-size: 1.2rem;
  }

  .ekg {
    top: 240px;
    max-width: 260px;
  }

  .media-gallery {
    width: 94%;
    margin-top: 20px;
  }
}