@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center,
    #7a0c1a 0%,
    #3b0006 40%,
    #000000 100%);
}

/* ================= CARD ================= */

.card {
  width: min(92vw, 420px);
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px;
}

/* ================= BANNER ================= */

.banner {
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= AVATAR ================= */

.pfp {
  margin-top: -55px;
}

.pfp img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #b11226;
  box-shadow: 0 0 25px rgba(255,59,59,0.6);
  transition: 0.3s ease;
}

.pfp img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255,59,59,0.9);
}

/* ================= USERNAME ================= */

.username {
  margin-top: 15px;
}

.username-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff4d4d, #b11226);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= DESCRIPTION ================= */

.description {
  margin-top: 6px;
  text-align: center;
}

.description-text {
  font-size: 13px;
  font-weight: 600;
  color: #5a2a30;
}

/* ================= PLAYER ================= */

/* ================= PLAYER (MAIOR / WIDGET) ================= */

.player{
  margin-top: 18px;
  width: min(88%, 330px);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 22px;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(177,18,38,0.20);
  backdrop-filter: blur(12px);

  box-shadow: 0 16px 40px rgba(0,0,0,0.18),
              0 0 24px rgba(255,59,59,0.22);
}

.player-btn{
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;

  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(0,0,0,0.35));
  display: grid;
  place-items: center;

  box-shadow: 0 14px 34px rgba(0,0,0,0.25),
              0 0 22px rgba(255,59,59,0.30);

  transition: 0.2s ease;
  overflow: hidden;
  flex: 0 0 auto;
}

.player-btn:hover{
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28),
              0 0 32px rgba(255,59,59,0.55);
}

.player-btn i{
  color: #fff;
  font-size: 18px;
  z-index: 2;
}

.player-btn .ring{
  position:absolute;
  inset:-20px;
  border-radius: 22px;
  background: radial-gradient(circle at center,
    rgba(255,59,59,0.42) 0%,
    rgba(255,59,59,0.16) 40%,
    transparent 70%);
  transform: scale(var(--pulse, 1));
  transition: transform .08s linear;
  z-index: 1;
}

.player-meta{
  flex: 1;
  min-width: 0; /* importante pra ellipsis funcionar */
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.player-meta .track{
  font-size: 14px;
  font-weight: 900;
  color: #2a0f14;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta .hint{
  font-size: 12px;
  font-weight: 700;
  opacity: .72;
  color: #2a0f14;
}

.card.is-bumping {
  animation: bump 420ms ease-out;
}

@keyframes bump {
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(-1px) scale(1.01); }
  35%  { transform: translateY(0) scale(1.005); }
  55%  { transform: translateY(-0.5px) scale(1.008); }
  100% { transform: translateY(0) scale(1); }
}

/* ================= SOCIAL ================= */

.social-buttons {
  margin-top: 20px;
}

.social-buttons i {
  font-size: 38px;
  color: #b11226;
  transition: 0.3s ease;
}

.social-buttons i:hover {
  transform: scale(1.15);
  color: #ff4d4d;
  text-shadow: 0 0 18px rgba(255,59,59,0.7);
}

/* ================= INTRO SUAVE ================= */

.card {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(.16,1,.3,1),
    filter 0.8s ease;
}

/* Quando ativar */
.card.intro-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ================= FOG CINEMATOGRÁFICA ================= */

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;

  background:
    radial-gradient(circle at 30% 40%, rgba(255,0,40,0.15), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(120,0,0,0.2), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255,30,30,0.1), transparent 70%);

  animation: fogMove 30s ease-in-out infinite alternate;
  filter: blur(80px);
  opacity: 0.7;
}

@keyframes fogMove {
  0% {
    transform: translate(-5%, -5%) scale(1);
  }
  50% {
    transform: translate(5%, 5%) scale(1.05);
  }
  100% {
    transform: translate(-3%, 3%) scale(1.02);
  }
}

/* Aura que segue o mouse (fundo interativo) */
body{
  --mx: 50%;
  --my: 50%;
}

/* camada de luz */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  /* a aura vermelha/rosada segue o mouse */
  background:
    radial-gradient(220px 220px at var(--mx) var(--my),
      rgba(255, 60, 90, 0.22),
      rgba(255, 60, 90, 0.10) 35%,
      transparent 70%);

  mix-blend-mode: screen;
  transition: background 0.05s linear;
}

/* efeito no mouse */

.card{
  --cx: 50%;
  --cy: 50%;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: inherit;
  background: radial-gradient(240px 240px at var(--cx) var(--cy),
    rgba(255, 59, 59, 0.16),
    transparent 70%);
}

/* ================= RESPIRAÇÃO DO FUNDO ================= */

body {
  animation: backgroundBreath 14s ease-in-out infinite;
}

@keyframes backgroundBreath {
  0% {
    background: radial-gradient(circle at center,
      #7a0c1a 0%,
      #3b0006 40%,
      #000000 100%);
  }

  50% {
    background: radial-gradient(circle at center,
      #8f0f22 0%,
      #470008 45%,
      #000000 100%);
  }

  100% {
    background: radial-gradient(circle at center,
      #7a0c1a 0%,
      #3b0006 40%,
      #000000 100%);
  }
}

/* ================= INTRO EM ETAPAS ================= */

.banner,
.pfp,
.username,
.description,
.player,
.social-buttons {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}