/* dxead.xyz portfolio — monochrome */
:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --fg: #f5f5f5;
  --fg-muted: rgba(255,255,255,0.65);
  --fg-dim: rgba(255,255,255,0.4);
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --card: rgba(255,255,255,0.02);
  --card-hover: rgba(255,255,255,0.04);
  --accent: #ffffff;
  --accent-glow: 255,255,255;
  --cell-border-color: rgba(255,255,255,0.14);
  --cell-fill-color: rgba(255,255,255,0.025);
  --cell-shadow-color: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>') 7 4, auto;
}

a, button, [role="button"], input, select, textarea, label,
.mp-bar, .mp-bar *, .social, .social *, .social-tilt, .social-tilt-inner,
.ripple-cell, .project-tilt, .project-tilt *, .project-tilt-inner,
[onclick], [tabindex]:not([tabindex="-1"]) {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>') 13 12, pointer !important;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255,255,255, 0.06), transparent 60%),
    radial-gradient(800px 400px at 50% 110%, rgba(255,255,255, 0.03), transparent 60%),
    var(--bg);
}

/* App layout */
.app {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}
/* Stage is transparent to clicks so the ripple receives background clicks.
   Each interactive section re-enables events for itself and all descendants.
   filter/preserve-3d/will-change have been removed from social cards so
   pointer-events inheritance now works correctly all the way down. */
.stage { pointer-events: none; }
.stage > * { pointer-events: auto; }

/* ===== Ripple background ===== */
.ripple-root {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: auto;
  z-index: 0;
}
.ripple-clip { position: relative; height: 100%; width: 100%; overflow: hidden; }
.ripple-grid {
  position: relative;
  z-index: 3;
  margin-inline: auto;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 5%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 85% 80% at 50% 5%, #000 35%, transparent 90%);
}
.ripple-cell {
  position: relative;
  border: 0.5px solid var(--cell-border-color);
  background-color: var(--cell-fill-color);
  opacity: 0.7;
  transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
  will-change: transform, background-color;
  box-shadow: inset 0 0 40px 1px var(--cell-shadow-color);
  cursor: inherit;
}
.ripple-cell:hover {
  opacity: 1;
  background-color: rgba(255,255,255, 0.55);
  border-color: rgba(255,255,255, 0.95);
  box-shadow:
    inset 0 0 40px 1px rgba(255,255,255, 0.35),
    0 0 18px rgba(255,255,255, 0.5);
}
.ripple-cell.rippling {
  animation: cell-ripple var(--duration, 600ms) var(--delay, 0ms) cubic-bezier(.2,.7,.2,1) both;
}
@keyframes cell-ripple {
  0%   { background-color: var(--cell-fill-color); transform: scale(1); border-color: var(--cell-border-color); }
  30%  { background-color: rgba(255,255,255, 1); transform: scale(1.12); border-color: rgba(255,255,255, 1); box-shadow: 0 0 22px rgba(255,255,255, 0.85), inset 0 0 30px rgba(255,255,255, 0.7); }
  100% { background-color: var(--cell-fill-color); transform: scale(1); border-color: var(--cell-border-color); }
}

/* ===== Hero ===== */
.stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.5),
    0 0 60px rgba(var(--accent-glow), 0.25);
  background: var(--bg-2);
  position: relative;
}
.avatar-wrap image-slot {
  display: block;
  width: 100%;
  height: 100%;
}

.brand {
  margin-top: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.brand .word { display: inline-block; }
.brand .gen-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transition: opacity .8s ease, filter .8s ease;
}
.brand .gen-word.in { opacity: 1; filter: blur(0); }
.brand .prefix { color: #ffffff; }
.brand .ext { color: var(--fg-muted); font-weight: 500; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94, 0.18), 0 0 12px rgba(34,197,94, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94, 0.18), 0 0 12px rgba(34,197,94, 0.5); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94, 0.10), 0 0 18px rgba(34,197,94, 0.9); }
}
.status-text {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tagline {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-muted);
  height: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.enc-char { display: inline-block; transition: color .15s; }
.enc-char.scrambled { color: var(--fg-dim); }
.enc-char.revealed { color: #ffffff; }

/* ===== Social buttons ===== */
.socials {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
  perspective: 1000px;
}
@media (max-width: 720px) { .socials { grid-template-columns: repeat(2, 1fr); max-width: 360px; } }

/* tilt wrapper — flat 2D only, no preserve-3d / will-change / filter
   (those create stacking contexts that break pointer-event hit-testing) */
.social-tilt { width: 100%; height: 100%; }
.social-tilt-inner {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
  height: 100%;
}
.socials.has-hover .social-tilt:not(:hover) .social-tilt-inner {
  opacity: 0.35;
}
.social-tilt:hover .social svg { transform: scale(1.12) rotate(-4deg); }
.social-tilt:hover .social .label { transform: translateY(-1px); }
.social-tilt:hover .social .meta { opacity: 0.7; }
/* Cartoony / chunky buttons — pill shape with hard offset shadow */
.social {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  background: #111;
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), box-shadow .18s, border-color .18s, background .18s;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 0 0 #000, 0 8px 18px rgba(0,0,0,0.55);
  user-select: none;
}
.social:hover {
  color: #fff;
  border-color: #ffffff;
  background: #1a1a1a;
  box-shadow: 0 8px 0 0 #000, 0 14px 28px rgba(0,0,0,0.7);
}
.social:active { box-shadow: 0 3px 0 0 #000, 0 6px 14px rgba(0,0,0,0.55); }
.social svg { width: 22px; height: 22px; opacity: 0.85; transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.3); color: currentColor; }
.social:hover svg { opacity: 1; }
.social .label { position: relative; z-index: 1; }
.social .meta {
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .25s;
}
.social:hover .meta { opacity: 0.7; }

/* ===== Projects ===== */
.section-head {
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px;
}
.section-head .num {
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.2em;
}
.section-head .title {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
}
.section-head .count {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
}

/* Bento layout: 2-1-1-2 across 3 columns on md+ */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
}
.projects .project-tilt:nth-child(1) { grid-column: span 2; }
.projects .project-tilt:nth-child(2) { grid-column: span 1; }
.projects .project-tilt:nth-child(3) { grid-column: span 1; }
.projects .project-tilt:nth-child(4) { grid-column: span 2; }
@media (max-width: 720px) {
  .projects { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .projects .project-tilt:nth-child(n) { grid-column: span 1; }
}
.project-tilt { width: 100%; height: 100%; }
.project-tilt-inner { width: 100%; height: 100%; }

/* 3D tilt wrapper around each project */
.project-tilt {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.project-tilt-inner {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Focus-card blur: when ANY project is hovered, dim the others */
.projects.has-hover .project-tilt:not(:hover) .project-tilt-inner {
  filter: blur(4px) brightness(0.6);
  transform: scale(0.97);
}

.project {
  position: relative;
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 60%),
    #0d0d0d;
  padding: 24px;
  height: 100%;
  overflow: hidden;
  transition: border-color .3s, background .3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 0 0 #000, 0 12px 24px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
}
.project-tilt:hover .project { border-color: #ffffff; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0) 60%), #111; }

.project .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project .id {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
}
.project .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}
.project .badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse-mini 1.4s ease-in-out infinite;
}
@keyframes pulse-mini { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.project .name {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  transform: translateZ(40px);
}
.project .head { transform: translateZ(50px); }
.project .desc { transform: translateZ(30px); }
.project .foot { transform: translateZ(20px); }
.project .desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 38ch;
}
.project .foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.project .tag {
  border: 1.5px solid var(--line-strong);
  padding: 4px 10px;
  color: var(--fg-muted);
  border-radius: 999px;
}

/* scanlines on coming-soon hover */
.project .scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255, 0.05) 3px,
    rgba(255,255,255, 0.05) 4px
  );
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.project:hover .scan { opacity: 1; }

/* ===== Featured project card ===== */
.project.project-featured {
  padding: 0;
  flex-direction: row;
  overflow: hidden;
  gap: 0;
}
.pf-img {
  position: relative;
  width: 52%;
  flex-shrink: 0;
  overflow: hidden;
}
.pf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  image-rendering: high-quality;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.project-featured:hover .pf-img img { transform: scale(1.04); }
.pf-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, #0d0d0d 95%);
  pointer-events: none;
}
.pf-body {
  flex: 1;
  padding: 26px 26px 26px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.pf-eyebrow {
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pf-site {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color .2s;
  line-height: 1;
}
.pf-site:hover { color: var(--fg-muted); }
.pf-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
}
.pf-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 32ch;
}
@media (max-width: 720px) {
  .project.project-featured { flex-direction: column; }
  .pf-img { width: 100%; height: 130px; flex-shrink: 0; }
  .pf-img-fade { background: linear-gradient(to bottom, transparent 40%, #0d0d0d 95%); }
  .pf-body { padding: 18px 18px 20px; gap: 10px; }
  .pf-site { font-size: 18px; }
}

/* ===== Cursor particles ===== */
.cp-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.cp {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  animation: cp-float var(--dur, 600ms) ease-out forwards;
  pointer-events: none;
}
.cp svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.7));
}
@keyframes cp-float {
  0%   { opacity: var(--op, 0.8); transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(0.15); }
}

/* ===== Footer ===== */
.foot-bar {
  margin: 80px auto 40px;
  max-width: 1000px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* hero entry animation */
.fade-in { animation: fadeInUp 700ms ease both; }
.fade-in.d1 { animation-delay: 60ms; }
.fade-in.d2 { animation-delay: 140ms; }
.fade-in.d3 { animation-delay: 220ms; }
.fade-in.d4 { animation-delay: 300ms; }
.fade-in.d5 { animation-delay: 380ms; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Toast ===== */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.toast-wrap.in { opacity: 1; }
.toast {
  background: #0c0c0c;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
  animation: toastPop .25s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes toastPop {
  from { transform: translateY(8px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Music Player ===== */
.mp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 284px;
  background: rgba(8,8,8,0.96);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 14px 14px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--fg);
  box-shadow: 0 6px 0 0 #000, 0 16px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  user-select: none;
  transition: width .3s cubic-bezier(.2,.7,.2,1), height .3s cubic-bezier(.2,.7,.2,1), padding .3s cubic-bezier(.2,.7,.2,1), border-radius .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mp.collapsed {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10,10,10,0.98);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 4px 0 0 #000, 0 10px 28px rgba(0,0,0,0.75);
}
.mp.collapsed[data-playing="1"] {
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 4px 0 0 #000, 0 10px 28px rgba(0,0,0,0.75), 0 0 0 3px rgba(255,255,255,0.05), 0 0 32px rgba(255,255,255,0.1);
}
.mp-collapse {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px; height: 20px;
  padding: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
  z-index: 1;
}
.mp-collapse:hover { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }
.mp.collapsed .mp-collapse {
  width: 18px; height: 18px;
  top: -6px; right: -6px;
  background: rgba(18,18,18,0.98);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

.mp-mini {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: opacity .2s;
}
.mp-mini:hover { opacity: 0.85; }
.mp-mini:active { opacity: 0.7; }
.mp-mini-disc {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: repeating-radial-gradient(circle at 50% 50%, #1e1e1e 0 2px, #111 2px 4px);
  transition: opacity .3s;
}
.mp-mini.playing .mp-mini-disc {
  animation: spin 5s linear infinite;
  opacity: 1;
}
.mp-mini-icon {
  position: relative;
  z-index: 1;
  background: rgba(8,8,8,0.72);
  border-radius: 999px;
  padding: 5px;
  width: 24px; height: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  transition: box-shadow .2s, background .2s;
}
.mp-mini.playing .mp-mini-icon {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 10px rgba(255,255,255,0.15);
  background: rgba(12,12,12,0.88);
}

.mp-head { display: flex; align-items: center; gap: 12px; }
.mp-disc {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle at 50% 50%, #1a1a1a 0 2px, #0a0a0a 2px 4px);
  border: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.mp-disc[data-spin="1"] { animation: spin 4s linear infinite; }
.mp-disc-inner {
  position: absolute;
  inset: 30%;
  border-radius: 999px;
  background: #fff;
  opacity: 0.85;
}
.mp-disc-hole {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: #050505;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.mp-info { min-width: 0; flex: 1; }
.mp-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mp-bar {
  margin-top: 12px;
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  cursor: pointer;
}
.mp-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: #fff;
  border-radius: 999px;
}
.mp-bar-thumb {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #050505;
}
.mp-time {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.14em;
}

.mp-controls { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.mp-btn {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.mp-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.mp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.mp-btn.primary {
  width: 34px; height: 34px;
  background: #fff;
  color: #050505;
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(255,255,255,0.2);
  transition: background .2s, box-shadow .2s, transform .15s;
}
.mp-btn.primary:hover { background: #f0f0f0; box-shadow: 0 4px 16px rgba(255,255,255,0.3); transform: scale(1.08); }
.mp-btn.primary:active { transform: scale(0.94); }

.mp-vol { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--fg-muted); }
.mp-vol input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  outline: none;
}
.mp-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px; height: 10px;
  background: #fff; border-radius: 999px;
  cursor: pointer;
}
.mp-vol input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  background: #fff; border-radius: 999px; border: 0;
  cursor: pointer;
}

@media (max-width: 520px) {
  .mp { right: 12px; bottom: 12px; width: 248px; }
}
