:root {
  --bg: #0c0b09;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.68);
  --glass: rgba(18, 16, 14, 0.32);
  --stroke: rgba(244, 239, 230, 0.14);
  --accent: #e8b86d;
  --accent2: #9fd4c0;
  --shade-tint: transparent;
  --font: "Outfit", system-ui, sans-serif;
  --display: "GroboldPro", "Syne", "Outfit", sans-serif;
  --perfil: "GroboldPro", "Syne", "Outfit", sans-serif;
}

@font-face {
  font-family: "GroboldPro";
  src: url("/fonts/GROBOLDpro.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Home —— */
.home {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.home-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(232, 184, 109, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 70%, rgba(90, 140, 120, 0.18), transparent 55%),
    linear-gradient(160deg, #14110e, #0c0b09 55%, #12181a);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

.home-main {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: center;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff6e6, var(--accent) 50%, #9fd4c0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandIn 0.9s ease both;
}

.home-main h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  animation: rise 0.7s 0.1s ease both;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
  animation: rise 0.7s 0.2s ease both;
}

.lookup {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 0.7s 0.3s ease both;
}

.lookup input {
  flex: 1 1 14rem;
  max-width: 18rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  outline: none;
}

.lookup input:focus {
  border-color: var(--accent);
}

.lookup button,
.enter-btn,
.link-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: #1a140c;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lookup button:hover,
.enter-btn:hover,
.link-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  text-decoration: none;
}

.hint {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  animation: rise 0.7s 0.4s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes brandIn {
  from { opacity: 0; letter-spacing: 0.2em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.04em; filter: none; }
}

/* —— Enter gate (guns.lol vibe) —— */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 184, 109, 0.12), transparent 45%),
    #0c0b09;
}

.enter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  color: var(--ink);
  padding: 1rem;
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.enter-at {
  font-family: var(--perfil);
  font-weight: 700;
  font-size: 1.35rem;
}

.name-fill {
  display: inline-block;
}

.enter-hint {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.enter-gate.is-leaving {
  animation: gateOut 0.55s ease forwards;
  pointer-events: none;
}

@keyframes gateOut {
  to { opacity: 0; transform: scale(1.04); filter: blur(8px); }
}

/* —— Profile stage —— */
.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3.5rem;
  overflow: hidden;
}

.stage.is-in .card {
  animation: cardIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stage.is-in .bg {
  animation: bgIn 1.1s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes bgIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 40%,
      color-mix(in srgb, var(--shade-tint) 22%, transparent) 0%,
      transparent 45%
    ),
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 25%, rgba(8, 7, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.22), rgba(8, 7, 6, 0.55));
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.75rem 1.4rem 1.5rem;
  border-radius: 1.35rem;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(var(--glass-blur, 12px)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur, 12px)) saturate(1.15);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
}

/* Proteção leve contra arrastar / selecionar mídia do perfil */
.profile-page img,
.profile-page .avatar-halo,
.profile-page .moldura,
.profile-page .pet-btn img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Proporções do canvas 800x800: círculo em (400,320) r=195 — avatar atrás, moldura na frente.
   Altura cortada (~69%) pra remover o espaço transparente sob a moldura. */
.avatar-wrap.has-mold {
  --mold-size: 220px;
  width: var(--mold-size);
  height: calc(var(--mold-size) * 0.69);
  margin: 0 auto 0.15rem;
  overflow: hidden;
}

.avatar-wrap.has-mold .avatar {
  position: absolute;
  width: 48.75%;
  height: auto;
  aspect-ratio: 1;
  left: 25.625%;
  top: calc(var(--mold-size) * 0.15625);
  border: 0;
  z-index: 1;
}

.avatar-wrap.has-mold .moldura {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--mold-size);
  height: var(--mold-size);
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

.avatar-wrap.has-mold .ring {
  display: none;
}

.enter-avatar-wrap {
  margin-bottom: 0.35rem;
}

.enter-avatar-wrap:not(.has-mold) {
  width: 96px;
  height: 96px;
}

.enter-avatar-wrap:not(.has-mold) .avatar {
  width: 96px;
  height: 96px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(232, 184, 109, 0.12);
}

.enter-avatar-wrap.has-mold {
  --mold-size: 180px;
}

.ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: spinSlow 10s linear infinite;
  border-top-color: transparent;
  border-left-color: transparent;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.uname {
  font-family: var(--perfil);
  font-weight: 700;
  font-size: 1.65rem;
  margin: 0 0 0.45rem;
  word-break: break-word;
  letter-spacing: 0.02em;
}

.uname.name-fill {
  display: inline-block;
  max-width: 100%;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
}

.badge.premium {
  color: #1a140c;
  background: var(--accent);
  border-color: transparent;
}

.badge.verified {
  color: #9fd4c0;
  border-color: rgba(159, 212, 192, 0.35);
}

.badge.locked {
  color: var(--muted);
}

.views {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  cursor: default;
  outline: none;
}

.views > :not(.glass-tip) {
  opacity: 0.92;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent));
}

.glass-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 8;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 42%, transparent),
      rgba(18, 16, 14, 0.55) 42%,
      color-mix(in srgb, var(--accent2) 32%, transparent)
    );
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  filter: none;
}

.views:hover .glass-tip,
.views:focus-visible .glass-tip,
.social-ico:hover .glass-tip,
.social-ico:focus-visible .glass-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.views-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

.bio {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.stat {
  padding: 0.55rem 0.35rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.stat strong {
  display: block;
  font-size: 1.05rem;
}

.stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* —— Seções elegantes —— */
.sec {
  margin: 0 0 1.15rem;
  text-align: left;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}

.sec-head::before,
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 230, 0.18), transparent);
}

.sec-head span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  white-space: nowrap;
}

.sec-head em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.sec-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.fact {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.06);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}

.fact dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.relation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}

.relation:hover {
  text-decoration: none;
}

.relation:hover strong {
  color: var(--accent);
}

.relation-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.relation-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.relation-body strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.relation-body span {
  color: var(--muted);
  font-size: 0.78rem;
}

.friends {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.friends[data-collapsed="true"] .chip-more {
  display: none;
}

.friend {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.friend:hover {
  border-color: rgba(232, 184, 109, 0.4);
  background: rgba(232, 184, 109, 0.1);
  color: var(--accent);
  text-decoration: none;
}

.friend-more {
  cursor: pointer;
  font: inherit;
  color: var(--accent);
  border-color: rgba(232, 184, 109, 0.3);
  background: transparent;
}

.sec .links {
  margin-bottom: 0;
}

/* legado (home / outros) */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.meta-item,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.82rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.chip-row[data-collapsed="true"] .chip-more {
  display: none;
}

.chip-toggle {
  cursor: pointer;
  font: inherit;
  color: var(--accent);
  border-color: rgba(232, 184, 109, 0.35);
  background: rgba(232, 184, 109, 0.08);
}

.hero {
  position: relative;
  width: min(100%, 17rem);
  margin: 0 auto 0.2rem;
  overflow: visible;
}

.hero .avatar-wrap {
  margin-bottom: 0;
}

.avatar-wrap.has-mold.has-pet {
  overflow: visible;
}

.avatar-wrap.has-mold.has-pet .moldura {
  clip-path: inset(0 0 31% 0);
}

.avatar-wrap.has-mold.no-mold .avatar-halo {
  position: absolute;
  left: calc(25.625% - 3px);
  top: calc(var(--mold-size) * 0.15625 - 3px);
  width: calc(48.75% + 6px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.avatar-wrap.has-mold.no-mold .avatar {
  border: 0;
  box-shadow: none;
  z-index: 1;
}

.pet-btn {
  position: absolute;
  left: 80%;
  top: 50%;
  z-index: 5;
  width: 4.85rem;
  height: 4.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  line-height: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  animation: petFloat 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.pet-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.pet-btn:hover,
.pet-btn[aria-expanded="true"] {
  transform: scale(1.08);
  animation: none;
}

@keyframes petFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pet-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 8;
  min-width: 13.5rem;
  max-width: 16rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 42%, transparent),
      rgba(18, 16, 14, 0.55) 42%,
      color-mix(in srgb, var(--accent2) 32%, transparent)
    );
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
  animation: petPopIn 0.28s ease both;
}

.pet-pop[hidden] {
  display: none;
}

@keyframes petPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.pet-pop-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.pet-pop-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.pet-pop-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.pet-pop-text strong {
  font-family: var(--perfil);
  font-size: 0.98rem;
  line-height: 1.2;
  word-break: break-word;
}

.pet-pop-text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pet-pop-locked {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pet-pop-section {
  margin: 0.55rem 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pet-pop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.pet-pop-list li {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
}

.pet-pop-list em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.links {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.link-btn {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.social-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
  outline: none;
}

.social-ico > :not(.glass-tip) {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 40%, transparent));
  transition: filter 0.2s ease;
}

.social-ico:hover {
  text-decoration: none;
}

.social-ico:hover svg {
  transform: translateY(-2px) scale(1.08);
}

.social-ico svg {
  display: block;
  transition: transform 0.2s ease;
}

.social-ico:hover > :not(.glass-tip) {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent));
}

.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: #1a140c;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.music-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.music-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.music-btn.is-playing .music-ico {
  animation: musicPulse 1.1s ease-in-out infinite;
}

.music-ico {
  display: inline-grid;
  place-items: center;
  width: 1em;
  font-size: 0.85em;
  line-height: 1;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.music-bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.music-bar .music-btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  gap: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.music-bar .music-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(232, 184, 109, 0.35);
}

.music-time {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2.4rem;
}

.music-time:last-child {
  text-align: right;
}

.music-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}

.music-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--music-progress, 0%), rgba(255, 255, 255, 0.12) var(--music-progress, 0%));
}

.music-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #1a140c;
  box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.18);
}

.music-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.music-seek::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.music-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #1a140c;
}

.foot {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}

.foot a {
  color: inherit;
  pointer-events: auto;
}

@media (max-width: 420px) {
  .card {
    padding: 1.4rem 1rem 1.25rem;
  }
}
