.track-performance-shell{
  display:grid;
  grid-template-columns:minmax(360px,1.12fr) minmax(300px,.88fr);
  gap:26px;
  align-items:stretch;
  margin:26px 0;
}
.neural-performance-card,
.track-control-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--hk-line);
  border-radius:32px;
  background:
    radial-gradient(circle at 50% 18%,rgba(111,71,55,.20),transparent 24%),
    radial-gradient(circle at 20% 78%,rgba(25,114,91,.18),transparent 32%),
    linear-gradient(180deg,rgba(5,17,15,.94),rgba(2,7,6,.92));
  box-shadow:0 30px 120px rgba(0,0,0,.42),0 0 70px rgba(72,255,143,.13);
  backdrop-filter:blur(18px);
}
.neural-performance-card{
  min-height:650px;
  display:grid;
  grid-template-rows:auto 1fr auto auto;
  place-items:center;
  padding:18px;
}
.neural-performance-card:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(72,255,143,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(72,255,143,.055) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:radial-gradient(circle at 50% 44%,#000 0 52%,transparent 82%);
  pointer-events:none;
}
.neural-performance-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.13) 2px,rgba(0,0,0,.13) 4px);
  animation:neuralScan 8s linear infinite;
  pointer-events:none;
}
.neural-topline{
  position:relative;
  z-index:4;
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:10px 14px;
  border:1px solid rgba(98,217,255,.24);
  border-radius:999px;
  background:rgba(2,8,7,.72);
  color:rgba(212,255,231,.8);
  font-family:'Share Tech Mono',monospace;
  letter-spacing:.18em;
  font-size:.72rem;
}
.neural-topline small{
  color:#48ff8f;
  text-shadow:0 0 12px rgba(72,255,143,.48);
}
.neural-stage{
  position:relative;
  z-index:3;
  width:min(92%,520px);
  aspect-ratio:520/640;
  filter:
    drop-shadow(0 28px 40px rgba(0,0,0,.54))
    drop-shadow(0 0 20px rgba(72,255,143,.16))
    drop-shadow(0 0 44px rgba(98,217,255,.10));
}
#neuralBackCanvas,
#neuralFaceCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
#neuralBackCanvas{opacity:.72}
.neural-subtitle{
  position:relative;
  z-index:4;
  width:min(92%,560px);
  min-height:58px;
  padding:14px 16px;
  color:#d9ffeb;
  font-family:'Share Tech Mono',monospace;
  line-height:1.45;
  background:linear-gradient(180deg,rgba(5,20,18,.93),rgba(3,10,9,.84));
  border:1px solid rgba(98,217,255,.22);
  border-radius:10px;
  box-shadow:inset 0 0 24px rgba(72,255,143,.045),0 14px 32px rgba(0,0,0,.28);
}
.neural-bars{
  position:relative;
  z-index:4;
  width:min(92%,520px);
  height:58px;
  display:flex;
  justify-content:center;
  align-items:end;
  gap:9px;
  padding:9px;
}
.neural-bars i{
  width:10px;
  height:14px;
  border-radius:999px;
  background:linear-gradient(#62d9ff,#48ff8f);
  box-shadow:0 0 14px rgba(72,255,143,.24);
  transition:.08s;
}
.neural-performance-card.is-live .neural-bars i{
  animation:neuralBars .72s ease-in-out infinite;
}
.neural-performance-card.is-live .neural-bars i:nth-child(2){animation-delay:.08s}
.neural-performance-card.is-live .neural-bars i:nth-child(3){animation-delay:.16s}
.neural-performance-card.is-live .neural-bars i:nth-child(4){animation-delay:.24s}
.neural-performance-card.is-live .neural-bars i:nth-child(5){animation-delay:.32s}
.neural-performance-card.is-live .neural-bars i:nth-child(6){animation-delay:.40s}
.neural-performance-card.is-live .neural-bars i:nth-child(7){animation-delay:.48s}
.neural-performance-card.is-live .neural-bars i:nth-child(8){animation-delay:.56s}
.track-control-card{
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.track-cover-small{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 0 42px rgba(72,255,143,.18);
  margin-bottom:18px;
}
.hk-audio-console{
  background:rgba(2,8,7,.42);
  border:1px solid rgba(98,217,255,.22);
  border-radius:24px;
  padding:16px;
  margin:18px 0;
}
.hk-audio-console audio{width:100%}
.performance-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
@keyframes neuralScan{
  from{background-position:0 0}
  to{background-position:0 40px}
}
@keyframes neuralBars{
  0%,100%{height:14px}
  50%{height:48px}
}
@media(max-width:1020px){
  .track-performance-shell{grid-template-columns:1fr}
  .neural-performance-card{min-height:600px}
}
@media(max-width:580px){
  .neural-performance-card{min-height:500px;padding:12px}
  .neural-topline{font-size:.58rem;letter-spacing:.12em}
}

.neural-performance-card.voice-active .neural-topline{
  border-color:rgba(72,255,143,.45);
  box-shadow:0 0 24px rgba(72,255,143,.16);
}


.lipsync-mode-switch{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:12px 0 4px;
  flex-wrap:wrap;
}
.lipsync-mode-switch button{
  border:1px solid rgba(102,255,102,.20);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.72);
  border-radius:999px;
  padding:7px 12px;
  cursor:pointer;
  font-weight:800;
  letter-spacing:.04em;
}
.lipsync-mode-switch button.active{
  color:#041018;
  border-color:transparent;
  background:linear-gradient(135deg,var(--hk-cyan),var(--hk-lime));
  box-shadow:0 0 22px rgba(102,255,102,.18);
}
