* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  background-color: black;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: white;

  font-family: sans-serif;
}

header {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
}

/* =========================
CARD BASE
========================= */

.cardking {

  width: 95%;
  max-width: 600px;

  border-radius: 20px;

  overflow: hidden;

  position: relative;

  background: rgba(255, 255, 255, 0);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border:
    1px solid rgba(255, 255, 255, 0);

  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.2);

  padding-bottom: 25px;

  color: var(--text-color, white);
}

/* =========================
BADGE
========================= */

.embking {

  position: absolute;

  top: 5px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 7px 14px;

  background: #ffffff;

  color: #333;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .18);

  z-index: 1000;

}

.embblack {

  position: absolute;

  top: 5px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 7px 14px;

 background: linear-gradient(
      145deg,
      #0f0f0f 0%,
      #2a2a2a 30%,
      #cfcfcf 50%,
      #2a2a2a 70%,
      #0f0f0f 100%
    );

  color: #ffffff;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .18);

  z-index: 1000;

}

.badge-icon {

  width: 14px;
  height: 14px;

  object-fit: contain;

}

/* =========================
BANNER
========================= */

.topo {

  width: 100%;

  height: 150px;

  background-size: cover;
  background-position: center;
}

/* =========================
TOP INFO
========================= */

.top-info {

  display: flex;

  align-items: center;

  gap: 1px;

  padding: 0 25px;

  margin-top: -45px;

  position: relative;

  z-index: 5;
}

/* =========================
AVATAR
========================= */

/*
.perfilking {

  width: 95px;
  height: 95px;

  border-radius: 50%;

  object-fit: cover;

  box-shadow:
    0 0 13px rgb(255, 255, 255);

  flex-shrink: 0;
} */

/*==========================
MOLDURA
=========================*/

.avatar-wrapper {

  position: relative;

  width: 90px;
  height: 95px;

  flex-shrink: 0;

}

.perfilking {

  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

}

.avatar-frame {

  position: absolute;

  inset: -13%;

  width: 125%;
  height: 125%;

  pointer-events: none;

  object-fit: contain;

  z-index: 10;

}


/* =========================
BALÃO
========================= */

.balao {

  position: relative;

  top: 27px;
  left: 5px;

  background: rgb(36 36 36);

  padding: 11px 16px;

  border-radius: 20px;

  font-size: 14px;

  color: white;

  max-width: 220px;

  word-break: break-word;
}

.balao::before {

  content: "";

  position: absolute;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: rgb(36 36 36);

  top: -16px;
  left: 4px;
}

.balao::after {

  content: "";

  position: absolute;

  left: 12px;
  top: -5px;

  width: 22px;
  height: 14px;

  border-radius: 50%;

  background: rgb(36 36 36);
}

/* =========================
CONTEÚDO
========================= */

.conteudoking {

  padding: 5px 25px 10px;
}

.conteudoking h1 {

  font-size:
    clamp(28px, 5vw, 38px);

  margin-bottom: 15px;

  font-weight: 700;
}

.conteudoking p {

  font-size:
    clamp(15px, 3vw, 18px);

  line-height: 1.6;

  opacity: 0.9;
}

/* =========================
SOCIAL BOX
========================= */

.social-box {

  width: 100%;

  padding: 0 25px;

  margin-top: 20px;
}

/* =========================
SOCIALS
========================= */

.socials {

  display: flex;

  flex-wrap: wrap;

  gap: 18px;

  align-items: center;

  margin-bottom: 25px;
}

.socials a {

  display: flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  transition: 0.2s;
}

.socials a:hover {

  transform: scale(1.15);
}

.socials img {

  width: 25px;
  height: 25px;

  object-fit: contain;

  display: block;
}

/* =========================
EXTRA CARD
========================= */

.extra-card {

  width: 100%;

  margin-top: 20px;

  padding: 10px 22px;

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0);

  border:
    1px solid rgba(255, 255, 255, 0.06);

  display: flex;

  align-items: center;

  gap: 22px;

  text-decoration: none;

  backdrop-filter: blur(18px);

  transition: 0.3s;

  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.25);
}

.extra-card:hover {

  transform: translateY(-2px);

  background:
    rgba(255, 255, 255, 0.04);
}

.extra-card-icon {

  width: 55px;
  height: 55px;

  border-radius: 25px;

  background:
    rgba(255, 255, 255, 0.04);

  display: flex;

  justify-content: center;
  align-items: center;

  flex-shrink: 0;
}

.extra-card-icon img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 22px;
}

.extra-card span {

  font-size: 17px;

  color: var(--text-color, white);

  line-height: 1.5;

  font-weight: 500;
}

/* =========================
MOBILE
========================= */

@media(max-width:600px) {

  .top-info {

    gap: 14px;

    padding: 0 18px;
  }

.avatar-wrapper {

  position: relative;

  width: 90px;
  height: 95px;

  flex-shrink: 0;

}

.perfilking {

  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

}

.avatar-frame {

  position: absolute;

  inset: -13%;

  width: 125%;
  height: 125%;

  pointer-events: none;

  object-fit: contain;

  z-index: 10;

}

  .balao {

    font-size: 13px;

    padding: 10px 14px;
  }

  .conteudoking {

    padding: 20px 18px 10px;
  }

  .social-box {

    padding: 0 18px;
  }
}

/* ========================================================
TEMPLATE 2
======================================================== */

.cardkingdois-theme .cardking {

  background: #0f0f0f00;

  border:
    1px solid rgb(255 255 255 / 0%);

  box-shadow:
    0 0 40px rgb(255 255 255 / 9%);

  max-width: 520px;
}

.cardkingdois-theme .top-info {

  display: flex;

  justify-content: center;
  align-items: center;

  flex-direction: column;

  margin-top: -45px;

  padding: 0;

  gap: 0;
}

.cardkingdois-theme .perfilking {

  width: 100px;
  height: 100px;

  margin: 0 auto;

  display: block;
}

.cardkingdois-theme .avatar-wrapper {

  position: relative;

  width: 90px;
  height: 95px;

  flex-shrink: 0;

}

.cardkingdois-theme .avatar-frame {

  position: absolute;

  inset: -10%;

  width: 130%;
  height: 125%;

  pointer-events: none;

  object-fit: contain;

  z-index: 10;

}


.cardkingdois-theme .balao {

  position: absolute;

  left: -99999px;
}

.cardkingdois-theme .conteudoking {

  text-align: center;
}

.cardkingdois-theme .socials {

  justify-content: center;
}

.cardkingdois-theme .extra-card {

  background:
    rgba(255, 255, 255, 0.02);

  border:
    1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================
TEMPLATE 3
======================================================== */

.template3-theme .cardking {

  width: 95%;
  max-width: 1000px;

  padding-bottom: 30px;

  border-radius: 28px;

  background:
    linear-gradient(135deg,
      rgb(255 255 255 / 23%),
      rgb(255 255 255 / 21%));

  border:
    1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.template3-theme .topo {

  height: 250px;

  border-radius:
    28px 28px 0 0;

  overflow: hidden;

  position: relative;
}

.template3-theme .top-info {

  align-items: flex-end;

  gap: 22px;

  padding: 0 38px;

  margin-top: -70px;
}

.template3-theme .perfilking {

  width: 140px;
  height: 140px;

  border:
    5px solid #101414;

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06);
}

.template3-theme .avatar-wrapper {

  position: relative;

  width: 95px;
  height: 95px;

  flex-shrink: 0;

}

.template3-theme .avatar-frame {

  position: absolute;

  inset: -10%;

  width: 170%;
  height: 170%;

  pointer-events: none;

  object-fit: contain;

  z-index: 10;

}

.template3-theme .conteudoking {

  padding: 60px 38px 0px;
}

.template3-theme .social-box {

  display: block;

  width: calc(100% - 76px);

  margin: 22px auto 0;

  padding: 28px;

  border-radius: 28px;

  background:
    rgba(255, 255, 255, 0.03);

  border:
    1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(18px);
}

.template3-theme .socials {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 16px;

  margin-bottom: 0;
}

.template3-theme .socials a {

  width: 100%;

  min-height: 92px;

  border-radius: 20px;

  padding: 16px 20px;

  background:
    rgba(255, 255, 255, 0.03);

  border:
    1px solid rgba(255, 255, 255, 0.06);

  display: flex;

  align-items: center;

  justify-content: flex-start;

  gap: 16px;

  overflow: hidden;
}

.template3-theme .socials img {

  width: 26px;
  height: 26px;

  margin-left: 14px;
}

.template3-theme .social-text {

  display: flex;

  flex-direction: column;

  gap: 3px;

  margin-left: 12px;
}

.template3-theme .social-text strong {

  font-size: 15px;

  color: white;
}

.template3-theme .social-text span {

  font-size: 14px;

  color: rgba(255, 255, 255, 0.45);
}

.template3-theme #extras-container {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 16px;

  margin-top: 16px;
}

.template3-theme .extra-card {

  margin-top: 0;

  min-height: 90px;
  width: 204%;
}

@media(max-width:700px) {

  .template3-theme .socials {

    grid-template-columns: 1fr;
  }

  .template3-theme #extras-container {

    grid-template-columns: 1fr;
  }

  .template3-theme .extra-card {

    margin-top: 0;

    min-height: 90px;
    width: 100%;
  }
}

/* ── TRIGGER ── */
.ac2-trigger {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.ac2-trigger:hover {
  background: #1a1a1a;
  border-color: #333;
  transform: scale(1.06);
}

.ac2-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.ac2-bar {
  width: 2.5px;
  border-radius: 2px;
  background: #555;
  transition: background 0.2s;
  transform-origin: bottom;
}

.ac2-trigger:hover .ac2-bar,
.ac2-trigger.playing .ac2-bar {
  background: #fff;
}

.ac2-bar:nth-child(1) {
  height: 6px
}

.ac2-bar:nth-child(2) {
  height: 11px
}

.ac2-bar:nth-child(3) {
  height: 8px
}

.ac2-bar:nth-child(4) {
  height: 13px
}

.ac2-bar:nth-child(5) {
  height: 5px
}

.ac2-trigger.playing .ac2-bar:nth-child(1) {
  animation: acb1 0.9s ease-in-out infinite
}

.ac2-trigger.playing .ac2-bar:nth-child(2) {
  animation: acb2 0.75s ease-in-out infinite
}

.ac2-trigger.playing .ac2-bar:nth-child(3) {
  animation: acb3 1.1s ease-in-out infinite
}

.ac2-trigger.playing .ac2-bar:nth-child(4) {
  animation: acb4 0.85s ease-in-out infinite
}

.ac2-trigger.playing .ac2-bar:nth-child(5) {
  animation: acb5 0.95s ease-in-out infinite
}

@keyframes acb1 {

  0%,
  100% {
    height: 6px
  }

  50% {
    height: 11px
  }
}

@keyframes acb2 {

  0%,
  100% {
    height: 11px
  }

  50% {
    height: 5px
  }
}

@keyframes acb3 {

  0%,
  100% {
    height: 8px
  }

  50% {
    height: 13px
  }
}

@keyframes acb4 {

  0%,
  100% {
    height: 13px
  }

  50% {
    height: 6px
  }
}

@keyframes acb5 {

  0%,
  100% {
    height: 5px
  }

  50% {
    height: 10px
  }
}

/* ── HORIZONTAL PILL ── */
.ac2-pill {
  position: fixed;
  bottom: 28px;
  left: 72px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 6px;
  height: 36px;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  animation: ac2-in 0.22s cubic-bezier(0.34, 1.46, 0.64, 1) both;
  user-select: none;
  white-space: nowrap;
}

@keyframes ac2-in {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* cover thumbnail */
.ac2-thumb {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: block;
}

.ac2-thumb-ph {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #444;
  flex-shrink: 0;
}

/* info */
.ac2-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 120px;
}

.ac2-song {
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac2-artist {
  font-size: 9px;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'JetBrains Mono', monospace;
}

/* seek */
.ac2-seek-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ac2-time {
  font-size: 9px;
  color: #3a3a3a;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.ac2-range {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 2px;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s;
}

.ac2-range:hover {
  height: 3px;
}

.ac2-seek {
  background: linear-gradient(to right,
      #e0e0e0 0%, #e0e0e0 var(--p, 0%),
      #252525 var(--p, 0%), #252525 100%);
}

.ac2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s;
}

.ac2-range::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.ac2-range::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* divider */
.ac2-sep {
  width: 1px;
  height: 14px;
  background: #1e1e1e;
  flex-shrink: 0;
}

/* buttons */
.ac2-btn {
  background: none;
  border: none;
  color: #3a3a3a;
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}

.ac2-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.1);
}

.ac2-btn.play-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 9px;
  transition: background 0.15s, transform 0.12s;
}

.ac2-btn.play-btn:hover {
  background: #ddd;
  transform: scale(1.08);
}

.ac2-btn.close-x {
  font-size: 9px;
  color: #2a2a2a;
}

.ac2-btn.close-x:hover {
  color: #666;
  background: none;
  transform: none;
}

.notfound-page {

  width: 100%;
  height: 100vh;

  background:
    linear-gradient(to top,
      rgba(145, 145, 145, 0.493),
      rgba(0, 0, 0, 0.596)),
    url("https://i.pinimg.com/736x/b9/f6/fb/b9f6fb42bf176d06de708bc564fa29a8.jpg");

  background-size: cover;
  background-position: center;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;

  font-family: sans-serif;

}

.notfound-content {

  display: flex;
  align-items: center;
  gap: 60px;

  z-index: 2;

}

.astronaut {

  width: 180px;

  animation: float 4s ease-in-out infinite;

}

.notfound-text h2 {

  color: white;
  font-size: 50px;
  font-weight: 400;

}

.notfound-text h1 {

  color: white;
  font-size: 180px;
  line-height: 1;

}

.notfound-text p {

  color: white;
  opacity: .8;

  font-size: 20px;

  margin-top: 10px;
  margin-bottom: 30px;

}

.back-home {

  color: white;

  text-decoration: none;

  border: 2px solid white;

  padding: 12px 28px;

  border-radius: 999px;

  transition: .25s;

}

.back-home:hover {

  background: white;
  color: black;

}

@keyframes float {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }

}

/* ========================================================
TEMPLATE 4
======================================================== */

.template4-theme .cardking {

  max-width: 650px;

  min-height: 260px;

  border-radius: 24px;

  overflow: visible;

  background:
    rgba(0, 0, 0, .25);

  border:
    2px solid rgba(255, 255, 255, .25);

  backdrop-filter: blur(15px);

  padding: 30px;

}

/* remove banner */

.template4-theme .topo {

  display: none;

}

/* remove badge */

.template4-theme .embking {

  display: none;

}

/* remove balão */

.template4-theme .balao {

  position: absolute;

  left: -99999px;

}

/* avatar solto */

.template4-theme .top-info {

  margin: 1;

  padding: 0;

}

.template4-theme .perfilking {

  position: absolute;

  top: -35px;

  left: 25px;

  width: 120px;
  height: 120px;

  border-radius: 20px;

  box-shadow: none;

  border: none;

}

.template4-theme .avatar-wrapper {

  position: relative;

  width: 0px;
  height: 0px;

  flex-shrink: 0;

}

.template4-theme .avatar-frame {

  position: absolute;

  inset: -55%;

  width: 300%;
  height: 180%;

  pointer-events: none;

  object-fit: contain;

  z-index: 10;

}

/* conteúdo */

.template4-theme .conteudoking {

  padding-top: 95px;

  padding-left: 0;

}

.template4-theme .conteudoking h1 {

  margin-left: 20px;

  font-size: 42px;

  margin-bottom: 8px;

}

.template4-theme .conteudoking p {

  margin-left: 20px;

  opacity: .9;

  font-size: 20px;

}

/* redes */

.template4-theme .social-box {

  padding: 0;

  margin-top: 0;

}

.template4-theme .socials {

  margin-left: 20px;

  gap: 18px;

}

.template4-theme .socials img {

  width: 32px;
  height: 32px;

}

/* extras escondidos */

.template4-theme #extras-container {

  display: none;

}

/* ========================================================
Marca d agua
======================================================== */

.watermark-card {

  position: fixed;

  top: 20px;
  right: 20px;

  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 14px;

  border-radius: 10px;

  text-decoration: none;

  color: white;

  background: rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, .08);

  transition: .25s;

}

.watermark-card:hover {

  transform: scale(1.05);

  background: rgba(255, 255, 255, .08);

}

.watermark-card img {

  width: 28px;
  height: 28px;

  border-radius: 30%;

  object-fit: cover;

}

.watermark-card span {

  font-size: 13px;
  font-weight: 600;

}

.entrance-avatar{

  width: 95px;
  height: 95px;

  border-radius: 50%;

  object-fit: cover;

  margin-bottom: 0px;

  border: 2px solid rgba(255,255,255,.15);

  box-shadow:
    0 0 20px rgba(255,255,255,.15);

}

#entrance-screen {

  position: fixed;

  inset: 0;

  z-index: 999999;

  display: flex;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, .75);

  backdrop-filter: blur(25px);

  cursor: pointer;

  transition: .5s;

}

.entrance-content {

  text-align: center;

}

.entrance-content h1 {

  font-size:
    clamp(35px, 3vw, 60px);

  margin-bottom: 15px;

}

.entrance-content p {

  font-size:
    clamp(14px, 2vw, 20px);

  opacity: .7;

  animation:
    pulse 1.8s infinite;

}

@keyframes pulse {

  0%,
  100% {

    opacity: .4;

  }

  50% {

    opacity: 1;

  }

}

.like-box {

  position: absolute;

  top: 15px;
  right: 15px;

  display: flex;

  align-items: center;

  gap: 11px;

  padding: 5px 12px;

  border-radius: 9px;

  background: rgba(0, 0, 0, .35);

  backdrop-filter: blur(10px);

  z-index: 1000;

}

#like-btn {

  font-size: 13px;

  color: white;

  cursor: pointer;

  transition: .2s;

}

#like-btn.liked {

  color: #ff2d55;

}

#like-count {

  font-size: 14px;

  font-weight: 600;

}

.album-page {

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,.9);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 99999;

}

.album-page.active {

  display: flex;

}

.close-album {

  position: absolute;

  top: 20px;
  right: 20px;

  background: none;
  border: none;

  color: white;

  font-size: 30px;

  cursor: pointer;

}

.album-grid{
  width:90%;
  max-width:700px;

  display:grid;

  grid-template-columns:
  repeat(2,1fr);

  gap:15px;
}

.album-grid img{

  width:100%;
  height:300px;

  object-fit:cover;

  border-radius:20px;

  display:block;
}

.album-btn {

  position: absolute;

  top: 15px;
  left: 15px;

  z-index: 1000;

  width: 35px;
  height: 35px;

  border-radius: 100px;

}

.album-grid img {
  animation: albumImgOpen .4s ease;
}

@keyframes albumImgOpen {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
