@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@400;500;600&display=swap');

body {
    display: flex;
    flex-direction: column; /* Stack title above piano */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #f6f8ff 0%, #eef2f9 45%, #e1e8f3 100%);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    margin: 0;
    color: #1f2a3a;
    padding: 20px 16px 40px;
    box-sizing: border-box;
}

h1 {
    color: #1f2a3a;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.piano {
    --white-key-width: 60px;
    --white-key-height: 240px;
    --black-key-width: 38px;
    --black-key-height: 150px;
    --piano-padding: 25px;
    --white-key-overlap: -1px;
    --white-key-step: calc(var(--white-key-width) + var(--white-key-overlap));
    display: flex; /* Arrange keys horizontally */
    background-color: #3a3a3a; /* Darker wood-like */
    padding: var(--piano-padding); /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative; /* Needed for positioning black keys */
    z-index: 1;
    border: 3px solid #222;
    max-width: 100%;
    overflow-x: auto;
}

.key {
    border: 1px solid #555;
    cursor: pointer;
    box-shadow: inset 0 -3px 4px rgba(0,0,0,0.2);
    transition: background-color 0.1s ease, box-shadow 0.1s ease;
    display: flex; /* Use flexbox to position text */
    flex-direction: column;
    justify-content: flex-end; /* Push text to the bottom */
    align-items: center;
    padding-bottom: 10px; /* Space for text */
    box-sizing: border-box; /* Include padding in height/width */
    position: relative; /* Needed for absolute positioning of text spans if required */
}

.key.white {
    width: var(--white-key-width);
    flex: 0 0 var(--white-key-width);
    height: var(--white-key-height); /* Slightly taller */
    background-color: #fff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 1;
    margin-right: var(--white-key-overlap); /* Overlap borders slightly */
}

.key.black {
    width: var(--black-key-width);
    height: var(--black-key-height); /* Slightly taller */
    background: linear-gradient(to bottom, #444, #222); /* Gradient for black keys */
    border: 1px solid #000;
    border-radius: 0 0 4px 4px;
    position: absolute;
    z-index: 2;
    transform: translateX(-50%);
    box-shadow: inset 0 -3px 4px rgba(0,0,0,0.5), 0 3px 5px rgba(0,0,0,0.4);
    color: #fff; /* Text color for black keys */
}


/* Style when a key is pressed */
.key.active {
    background-color: #dcdcdc; /* Light grey for pressed white keys */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.key.black.active {
    background: linear-gradient(to bottom, #555, #333);
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.8), 0 1px 1px rgba(0,0,0,0.3);
}

/* --- Text Label Styles --- */
.indian-note {
    font-weight: bold;
    font-size: 16px;
    display: block; /* Ensure it takes its own line */
    margin-bottom: 2px; /* Space between notes */
    color: #333; /* Default color (for white keys) */
    pointer-events: none; /* Prevent text from interfering with clicks */
}

.western-note {
    font-size: 10px;
    color: #888; /* Lighter color */
    display: block;
    pointer-events: none;
}

.key.black .indian-note {
    color: #eee; /* Light color for black keys */
}

.key.black .western-note {
    color: #bbb; /* Light color for black keys */
}


/* --- Sequence Player Styles --- */
.sequence-player {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 640px; /* Limit width */
}

.sequence-player h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.sequence-player label {
  display: block; /* Make label take full width */
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}


.sequence-player input[type="text"] {
  width: calc(100% - 24px); /* Account for padding */
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Include padding in width */
}

.sequence-player button {
  padding: 10px 25px;
  font-size: 16px;
  background-color: #5cb85c; /* Green */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sequence-player button:hover {
  background-color: #4cae4c;
}

.sequence-player button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.sequence-player .info {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  margin-bottom: 0;
}

/* --- Pitch Analyzer Styles --- */
.pitch-analyzer {
  margin-top: 30px;
  padding: 26px 30px 24px;
  background:
    radial-gradient(circle at 12% 12%, rgba(92, 184, 92, 0.2), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(46, 168, 161, 0.18), transparent 42%),
    linear-gradient(130deg, #f9fbff, #eef3ff 60%, #e9f6f3);
  border-radius: 20px;
  border: 1px solid rgba(35, 55, 80, 0.12);
  box-shadow: 0 24px 60px rgba(35, 55, 80, 0.12);
  text-align: left;
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: analyzerEnter 0.6s ease-out;
}

.pitch-analyzer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #5cb85c, #2ea8a1, #5cb85c);
  opacity: 0.9;
}

.pitch-analyzer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(46, 168, 161, 0.22), transparent 70%);
  opacity: 0.7;
}

.pitch-analyzer h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #162233;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 18px;
}

.pitch-subtitle {
  margin: 0;
  font-size: 13px;
  color: #5b6573;
}

.pitch-analyzer .info {
  font-size: 12px;
  color: #5b6573;
  margin-top: 8px;
  margin-bottom: 0;
}

.pitch-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.pitch-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
}


.pitch-analyzer button {
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: linear-gradient(120deg, #5cb85c, #2ea8a1);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 18px rgba(46, 168, 161, 0.25);
}

.pitch-analyzer button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(46, 168, 161, 0.35);
}

.pitch-analyzer button:focus-visible {
  outline: 2px solid rgba(46, 168, 161, 0.6);
  outline-offset: 2px;
}

.pitch-analyzer button:disabled {
  background: #cbd6df;
  box-shadow: none;
  cursor: not-allowed;
}

.pitch-status {
  font-size: 12px;
  color: #1d2b3a;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 168, 161, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pitch-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.pitch-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(35, 55, 80, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(35, 55, 80, 0.08);
  backdrop-filter: blur(6px);
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #526175;
}

.metric-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  color: #1f2a3a;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.metric-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #5b6573;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.meter {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(46, 168, 161, 0.18);
  overflow: hidden;
}

#confidence-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5cb85c, #2ea8a1, #2f9db5);
  transition: width 0.2s ease;
}

.pitch-panels {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}

.pitch-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(35, 55, 80, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 32px rgba(35, 55, 80, 0.08);
}

.pitch-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #5b6573;
}

.pitch-panel-header h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f2a3a;
}

.pitch-panel canvas {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(35, 55, 80, 0.15);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(92, 184, 92, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

#pitch-graph {
  height: 260px;
}

#activation {
  height: 360px;
  background-image: linear-gradient(180deg, rgba(18, 28, 48, 0.95), rgba(8, 12, 24, 0.9));
}

.pitch-advanced {
  margin-top: 14px;
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 55, 80, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(35, 55, 80, 0.08);
}

.pitch-advanced summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f2a3a;
  font-weight: 600;
}

.pitch-advanced summary::-webkit-details-marker {
  display: none;
}

.pitch-advanced summary::after {
  content: "+";
  color: #2ea8a1;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.pitch-advanced[open] summary::after {
  content: "-";
}

.pitch-advanced-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 16px;
}

.pitch-setting label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2c3a4d;
}

.pitch-setting-control {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pitch-setting input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(35, 55, 80, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  color: #1f2a3a;
  box-sizing: border-box;
}

.pitch-setting input:focus-visible {
  outline: 2px solid rgba(46, 168, 161, 0.4);
  outline-offset: 2px;
  border-color: rgba(46, 168, 161, 0.6);
}

.hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(46, 168, 161, 0.12);
  border: 1px solid rgba(46, 168, 161, 0.35);
  color: #2ea8a1;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
}

.hint::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: #1f2a3a;
  color: #f4f8ff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 24px rgba(15, 28, 45, 0.22);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.hint::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1f2a3a transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hint:hover::after,
.hint:focus::after,
.hint:hover::before,
.hint:focus::before {
  opacity: 1;
}

.pitch-setting label:hover .hint::after,
.pitch-setting label:hover .hint::before {
  opacity: 1;
}

.pitch-setting label:hover .hint::after {
  transform: translateX(-50%) translateY(0);
}

.hint:hover::after,
.hint:focus::after {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .piano {
    --white-key-width: 52px;
    --white-key-height: 210px;
    --black-key-width: 34px;
    --black-key-height: 130px;
    --piano-padding: 20px;
    border-radius: 12px;
  }

  .pitch-analyzer {
    padding: 22px 22px 20px;
  }

  #pitch-graph {
    height: 220px;
  }

  #activation {
    height: 300px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 26px;
    text-align: center;
  }

  .piano {
    --white-key-width: 46px;
    --white-key-height: 190px;
    --black-key-width: 30px;
    --black-key-height: 118px;
    --piano-padding: 16px;
  }

  .sequence-player {
    margin-top: 32px;
    padding: 18px;
  }

  .pitch-controls {
    gap: 8px 12px;
  }

  #pitch-graph {
    height: 200px;
  }

  #activation {
    height: 260px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 16px 12px 30px;
  }

  h1 {
    font-size: 22px;
  }

  .piano {
    --white-key-width: 40px;
    --white-key-height: 170px;
    --black-key-width: 26px;
    --black-key-height: 105px;
    --piano-padding: 12px;
  }

  .sequence-player {
    padding: 16px;
  }

  .pitch-analyzer {
    padding: 18px;
  }

  .pitch-controls {
    flex-direction: column;
  }

  .pitch-analyzer button {
    width: 100%;
    max-width: 220px;
  }

  #pitch-graph {
    height: 180px;
  }

  #activation {
    height: 220px;
  }
}

@keyframes analyzerEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- Speed Control Styles --- */
.speed-control {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Spacing between label, slider, value */
}

.speed-control label {
  margin-bottom: 0; /* Override previous label style */
  font-weight: bold;
  color: #444;
}

.speed-control input[type="range"] {
  flex-grow: 1; /* Allow slider to take available space */
  max-width: 250px; /* Limit slider width */
  cursor: pointer;
  margin: 0;
}

.speed-control span {
  font-family: monospace; /* Use monospace for consistent width */
  font-size: 14px;
  background-color: #eee;
  padding: 3px 6px;
  border-radius: 3px;
  color: #333;
  min-width: 45px; /* Ensure enough space for "x.xx" */
  text-align: right;
}


/* --- Controls Row (Optional Grouping) --- */
.controls-row {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  align-items: center;
  gap: 20px; /* Spacing between control groups */
  margin-top: 15px;
  margin-bottom: 15px;
}

/* --- Piano Controls --- */
.piano-controls {
  width: min(840px, 100%);
  margin: 12px 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 5;
}

.control-block {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 58, 0.14);
  background: linear-gradient(140deg, #ffffff 0%, #f4f8ff 55%, #eef7f4 100%);
  box-shadow: 0 10px 18px rgba(31, 42, 58, 0.12);
  backdrop-filter: blur(6px);
}

.control-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(92, 184, 92, 0.18), rgba(46, 168, 161, 0.12), transparent 65%);
  opacity: 0.7;
  border-radius: inherit;
  pointer-events: none;
}

.control-block > * {
  position: relative;
  z-index: 1;
}

.control-block:focus-within {
  border-color: rgba(92, 184, 92, 0.6);
  box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.2), 0 12px 20px rgba(31, 42, 58, 0.14);
}

.control-block label {
  margin-bottom: 0;
  font-weight: 600;
  color: #2a3a52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.3px;
  font-size: 13px;
}

.control-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: #eef3f9;
  color: #2c3e50;
  padding: 2px 5px;
  border-radius: 6px;
  min-width: 36px;
  text-align: right;
}

.control-block select {
  width: 100%;
  padding: 6px 34px 6px 10px;
  border: 1px solid #c7d2e2;
  border-radius: 8px;
  background-image:
    linear-gradient(45deg, transparent 50%, #51657c 50%),
    linear-gradient(135deg, #51657c 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f4f7fb);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%, 0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  font-size: 13px;
  color: #2b3b4d;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  width: 100%;
  z-index: 2;
}

.custom-select-trigger {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #c7d2e2;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  font-size: 13px;
  color: #2b3b4d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.custom-select-trigger:focus-visible {
  outline: none;
  border-color: #2ea8a1;
  box-shadow: 0 0 0 2px rgba(46, 168, 161, 0.2);
}

.custom-select-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #51657c;
  border-bottom: 2px solid #51657c;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(-135deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 58, 0.14);
  background: linear-gradient(160deg, #ffffff, #eef3fa 60%, #e8f4f0);
  box-shadow: 0 18px 30px rgba(31, 42, 58, 0.18);
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #1f2a3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 252, 0.9));
}

.custom-select-option:hover,
.custom-select-option:focus,
.custom-select-option:focus-visible {
  background: linear-gradient(90deg, rgba(92, 184, 92, 0.22), rgba(46, 168, 161, 0.15));
  outline: none;
}

.custom-select-option[aria-selected="true"] {
  font-weight: 600;
  color: #1b3b34;
  background: linear-gradient(90deg, rgba(92, 184, 92, 0.28), rgba(46, 168, 161, 0.2));
}

.custom-select-option[aria-selected="true"]::after {
  content: "✓";
  font-size: 12px;
  color: #2ea8a1;
}

.control-block input[type="range"] {
  width: 100%;
  margin: 0;
  height: 22px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

@media (min-width: 820px) {
  .control-block {
    grid-template-columns: 0.9fr 1.7fr;
    align-items: center;
  }

  .control-block label {
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  .control-block select,
  .control-block input[type="range"] {
    align-self: center;
  }
}

.control-block select:focus-visible {
  outline: none;
  border-color: #2ea8a1;
  box-shadow: 0 0 0 2px rgba(46, 168, 161, 0.2);
}

.control-block select option {
  background-color: #f4f7fb;
  background-image: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  color: #1f2a3a;
  padding: 6px 10px;
}

.control-block select option:checked {
  background-color: #dff3ea;
  color: #1f2a3a;
}

.control-block input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(92, 184, 92, 0.75), rgba(92, 184, 92, 0.18));
  border: 1px solid rgba(31, 42, 58, 0.16);
}

.control-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #5cb85c;
  box-shadow: 0 3px 6px rgba(31, 42, 58, 0.25);
}

.control-block input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(92, 184, 92, 0.25);
  border: 1px solid rgba(31, 42, 58, 0.16);
}

.control-block input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(92, 184, 92, 0.75);
}

.control-block input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #5cb85c;
  box-shadow: 0 3px 6px rgba(31, 42, 58, 0.25);
}

.control-block input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2), 0 3px 6px rgba(31, 42, 58, 0.25);
}

.control-block input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2), 0 3px 6px rgba(31, 42, 58, 0.25);
}
