/* ============ TaalMaster styles ============ */
kbd {
  background: #2a2140; border: 1px solid #4b3a70; border-radius: 4px;
  padding: 1px 5px; font-size: 10px; color: #d8c9ff;
}

.panel {
  background: linear-gradient(160deg, #171126 0%, #120d1e 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 8px; flex-wrap: wrap;
}
.panel-head h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: .5px;
}

.ctl label {
  display: block; font-size: 11px; color: #9d8fc0;
  margin-bottom: 4px; letter-spacing: .3px;
}
.sel {
  background: #1f1733; border: 1px solid #3d2f5e; color: #e9e2ff;
  border-radius: 8px; padding: 5px 8px; font-size: 12px; outline: none;
}
.sel:focus { border-color: #8b5cf6; }

.btn-amber, .btn-green, .btn-sky, .btn-rose {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: all .15s; color: #fff;
}
.btn-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.btn-green { background: linear-gradient(135deg, #10b981, #059669); }
.btn-sky   { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.btn-rose  { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.btn-amber:hover, .btn-green:hover, .btn-sky:hover, .btn-rose:hover { transform: scale(1.06); }
.playing { box-shadow: 0 0 16px rgba(255,255,255,.35); }

/* ---- Beat grid ---- */
.beat {
  min-width: 58px; padding: 7px 4px; text-align: center; cursor: pointer;
  background: #1d1531; border: 1px solid #362a55; border-radius: 10px;
  transition: all .1s; user-select: none;
}
.beat:hover { border-color: #8b5cf6; }
.beat-num { display: block; font-size: 9px; color: #7a6b9e; }
.beat-bol { display: block; font-size: 13px; font-weight: 700; color: #e5dcff; font-family: 'Rajdhani', sans-serif; letter-spacing: .5px; }
.beat.sam { border-color: #f59e0b; background: #2a1e12; }
.beat.sam .beat-num { color: #f59e0b; }
.beat.tali { border-color: #6d5aa8; }
.beat.khali { opacity: .65; border-style: dashed; }
.beat.now {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: #fbbf24; transform: scale(1.1);
  box-shadow: 0 0 18px rgba(245, 158, 11, .5);
}
.beat.now .beat-num, .beat.now .beat-bol { color: #fff; }

/* ---- Drums ---- */
.drum {
  position: relative; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s; user-select: none; touch-action: none;
}
.drum:active { transform: scale(.97); }
.drum.struck { animation: strike-anim .18s ease-out; }
@keyframes strike-anim {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(251,191,36,0); }
  40% { transform: scale(1.04); box-shadow: 0 0 40px rgba(251,191,36,.55); }
  100% { transform: scale(1); }
}
.bayan-drum {
  width: 190px; height: 190px;
  background: radial-gradient(circle at 38% 32%, #efe6d8 0%, #d9cbb5 34%, #b9a687 60%, #8a734f 100%);
  box-shadow: inset 0 -14px 30px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.55), 0 0 0 10px #3c3630, 0 0 0 13px #57493a;
}
.dayan-drum {
  width: 150px; height: 150px;
  background: radial-gradient(circle at 38% 32%, #f2ead9 0%, #e0d2ba 36%, #c2ac8a 62%, #93794f 100%);
  box-shadow: inset 0 -12px 26px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.55), 0 0 0 9px #4a3120, 0 0 0 12px #63432c;
}
.drum-syahi {
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3a3a 0%, #171717 55%, #000 100%);
  box-shadow: inset 0 3px 8px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.5);
  position: absolute; top: 50%; left: 58%; transform: translate(-50%, -50%);
}
.drum-syahi.small { width: 56px; height: 56px; left: 50%; }
.drum-label {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: 2px; color: rgba(60,40,20,.55);
  font-family: 'Rajdhani', sans-serif;
}

/* ---- Bol Pads ---- */
.pad {
  padding: 12px 4px; border-radius: 12px; font-weight: 700; font-size: 14px;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 1px;
  background: linear-gradient(160deg, #241a3d, #1a1230);
  border: 1px solid #3e2f63; color: #d9ccff;
  transition: all .1s; user-select: none; touch-action: none;
}
.pad:hover { border-color: #8b5cf6; color: #fff; }
.pad.hit {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: #fbbf24; color: #fff; transform: scale(1.06);
  box-shadow: 0 0 16px rgba(245,158,11,.5);
}

/* ---- Tanpura strings ---- */
.tstring {
  width: 7px; height: 84px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, #c9b58a, #8f7a4e);
  box-shadow: 0 0 4px rgba(0,0,0,.4);
  transition: all .12s;
}
.tstring:hover { background: linear-gradient(180deg, #ecd9a8, #b09760); }
.tstring.active {
  background: linear-gradient(180deg, #6ee7b7, #10b981);
  box-shadow: 0 0 14px rgba(16,185,129,.7);
  animation: vibrate .5s linear;
}
@keyframes vibrate {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(2px); } 40% { transform: translateX(-2px); }
  60% { transform: translateX(1.5px); } 80% { transform: translateX(-1.5px); }
}

/* ---- Swarmandal ---- */
.swar-box {
  display: flex; gap: 6px; align-items: flex-end; justify-content: center;
  height: 110px; padding: 8px;
  background: linear-gradient(160deg, #10203a55, #0b1424);
  border-radius: 12px; border: 1px solid #1e3a5f66;
  touch-action: none;
}
.swar-str {
  width: 6px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #93c5fd, #3b82f6);
  opacity: .7; transition: all .12s;
}
.swar-str:hover { opacity: 1; }
.swar-str.ring {
  background: linear-gradient(180deg, #e0f2fe, #38bdf8);
  box-shadow: 0 0 12px rgba(56,189,248,.8); opacity: 1;
  animation: vibrate .45s linear;
}

/* ---- Metronome lights ---- */
.mlight {
  width: 16px; height: 16px; border-radius: 50%;
  background: #241a3d; border: 1px solid #3e2f63; transition: all .08s;
}
.mlight.on { background: #f43f5e; box-shadow: 0 0 10px rgba(244,63,94,.7); }
.mlight.on.accent { background: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.9); }

/* ---- Harmonium keys ---- */
.harm-box {
  display: flex; height: 100px; border-radius: 10px; overflow: hidden;
  border: 1px solid #3e2f63; position: relative; touch-action: none;
}
.hkey {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px; cursor: pointer; user-select: none;
  font-size: 10px; font-weight: 700; transition: background .08s;
}
.hkey.white { background: linear-gradient(180deg, #f5f0e6, #ddd2bd); color: #6b5d42; border-right: 1px solid #b8a988; }
.hkey.black { background: linear-gradient(180deg, #2b2b2b, #111); color: #999; height: 62%; border-radius: 0 0 4px 4px; z-index: 2; margin: 0 -2%; flex: .7; }
.hkey.white.down { background: linear-gradient(180deg, #fcd34d, #f59e0b); color: #7c2d12; }
.hkey.black.down { background: linear-gradient(180deg, #a855f7, #7e22ce); color: #fff; }

@media (max-width: 640px) {
  .bayan-drum { width: 150px; height: 150px; }
  .dayan-drum { width: 120px; height: 120px; }
  .beat { min-width: 48px; }
}
