@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');

* {
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

:root {
    --font-color: #ffffffdd;
    --font-color-faded: #ffffff88;
    --bg: linear-gradient(-45deg, #070707, #070707);
    --alert: white
}

body {
    height: 100vh;
    background: var(--bg);
    color: var(--font-color);
    font-family: 'General Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alerts {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.alert {
    display: flex;
    align-items: center;
    height: 61px;
    column-gap: 10px;
    padding: 0 20px;
    opacity: 0.9;
    background: var(--bg);
    border: .1px solid var(--font-color-faded);
    color: white;
    border-radius: 5px;
    transition: height .2s;
    z-index: 2
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-in ease-in .5s
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1 }
}

.double-helix {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  width: 20px;
  margin-bottom: 10px;
}

.couple {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--font-color, #fff);
  border-radius: 50%;
  opacity: 0.3;
}

.dot.left {
  animation: helix-left 1s linear infinite;
}

.dot.right {
  animation: helix-right 1s linear infinite;
}

/* Left dot orbits right, gets closer then farther */
@keyframes helix-left {
  0%   { transform: translateX(-10px) scale(0.8); opacity: 0.6; }
  25%  { transform: translateX(0) scale(1); opacity: 1; }
  50%  { transform: translateX(10px) scale(0.8); opacity: 0.6; }
  75%  { transform: translateX(0) scale(0.5); opacity: 0.3; }
  100% { transform: translateX(-10px) scale(0.8); opacity: 0.6; }
}

/* Right dot orbits left, out-of-phase with the left dot */
@keyframes helix-right {
  0%   { transform: translateX(10px) scale(0.8); opacity: 0.6; }
  25%  { transform: translateX(0) scale(0.5); opacity: 0.3; }
  50%  { transform: translateX(-10px) scale(0.8); opacity: 0.6; }
  75%  { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(10px) scale(0.8); opacity: 0.6; }
}

.couple:nth-child(1) .dot { animation-delay: 0s; filter: opacity(0.2) }
.couple:nth-child(2) .dot { animation-delay: -0.1s; filter: opacity(0.4) }
.couple:nth-child(3) .dot { animation-delay: -0.2s; filter: opacity(0.6) }
.couple:nth-child(4) .dot { animation-delay: -0.3s; filter: opacity(0.8) }
.couple:nth-child(5) .dot { animation-delay: -0.4s; }

.name {
    font-weight: 600;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 3px;
    opacity: .8;
}

.kp {
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 5px 0;
    text-align: center;
    letter-spacing: 2px;
}

.icon-container {
    padding: 15px;
}

.icon-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%
}

.about {
    opacity: .8;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.about svg {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
}

.age {
    font-family: 'Consolas', monospace;
}

.socials {
    margin-top: 20px;
    display: flex;
    column-gap: 15px
}

.socials .social-link {
    font-weight: 500;
    position: relative;
    cursor: pointer;
    color: var(--font-color);
    padding: 5px 12px;
    border-radius: 20px;
    filter: opacity(0.8);
    border: 1px solid var(--font-color);
    display: flex;
    align-items: center;
    column-gap: 7px;
    text-decoration: none;
    background: transparent;
    transition: .2s border-color, background .1s, color .1s;
}

.socials .bubble {
    pointer-events: none;
    font-size: 14px;
    position: absolute;
    content: attr(data);
    visibility: hidden;
    top: calc(100% + 15px);
    padding: 10px;
    color: #070707;
    opacity: 0.8;
    background: #fff;
    border-radius: 5px;
    left: 50%;
    transform: translateX(-50%) scaleY(0.97);
    opacity: 0;
    transform-origin: 0 50%;
    transition: visibility .2s, opacity .2s, transform .2s;
}

.socials .bubble::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 7px 6px 7px;
    border-color: transparent transparent #fff transparent;
}

.socials .social-link:hover {
    background: white;
    color: #070707;
    box-shadow: 0 0 4px 4px rgba(255, 255, 255, 0.07);
}

.socials .social-link:hover > .bubble {
    opacity: 1;
    transform: translateX(-50%);
    visibility: visible;
    transition: visibility .2s, opacity .2s, transform .2s;
}

@keyframes listening-in {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
    left: 50%;
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
    left: 50%;
  }
}

@keyframes listening-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
    left: 50%;
  }
  to {
    opacity: 0;
    transform: translate(-50%, 40px);
    left: 50%;
  }
}

.listening {
  animation: listening-in 0.5s cubic-bezier(.4,2,.6,1);
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 0);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background: #191414;
  color: #fff;
  padding: 18px 32px 28px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  min-width: 320px;
  max-width: 440px;
  gap: 18px;
  overflow: visible;
}

.listening.listening-out {
  animation: listening-out 0.4s cubic-bezier(.4,2,.6,1) forwards;
}

.listening-album {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 #0008;
  object-fit: cover;
  background: #232323;
}

.listening-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  position: relative;
}

.listening-title {
  font-size: 1.08em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listening-artist {
  color: #b3b3b3;
  font-weight: 400;
  font-size: 0.98em;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listening .progress-bar-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: #232323;
  border-radius: 2px;
  z-index: 0;
}

.listening .progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transition: width 0.2s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 1px 4px 0 #1db95444;
  z-index: 1;
  width: 0%;
}

/* Remover duplicatas e conflitos */
.progress-bar,
.listening .progress-bar {
  margin-top: 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .listening {
    min-width: 0;
    max-width: 95vw;
    padding: 10px 8vw 18px 8vw;
    font-size: 0.98em;
  }
  .album-cover {
    width: 44px;
    height: 44px;
  }
}
