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

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #0d071a, #1a102d);
  color: #e8e0ff;
  min-height: 100vh;
}

.page-title {
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 40px;
  text-align: center;
  text-shadow: 0 0 5px rgba(155, 89, 182, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-icon {
  width: 75px;
  height: 75px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

.muted-icon {
  width: 36px;
  height: 36px;
  vertical-align: middle;
  margin-right: 6px;
}

.player-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

input[type="file"] {
  display: none;
}

.file-label {
  background: rgba(155, 89, 182, 0.8);
  border: none;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  padding: 10px 18px;
  transition: 0.3s ease;
  box-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.file-label:hover {
  background: rgba(185, 109, 212, 1);
  box-shadow: 0 0 6px rgba(185, 109, 212, 0.4);
}

#fileName {
  font-size: 13px;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}


.time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-row span {
  font-size: 13px;
  min-width: 36px;
  opacity: 0.75;
}

.seek-bar {
  flex: 1;
}


.controls-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.options-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

button {
  background: rgba(155, 89, 182, 0.8);
  border: none;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  padding: 10px 18px;
  transition: 0.3s ease;
  box-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

button:hover:not(:disabled) {
  background: rgba(185, 109, 212, 1);
  box-shadow: 0 0 6px rgba(185, 109, 212, 0.4);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.active {
  background: rgba(185, 109, 212, 1);
  box-shadow: 0 0 6px rgba(185, 109, 212, 0.4);
}

button.inactive {
  background: rgba(155, 89, 182, 0.35);
  box-shadow: none;
}

/* --- Sliders --- */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row label {
  font-size: 14px;
  min-width: 46px;
  opacity: 0.8;
}

.slider-row span {
  font-size: 13px;
  min-width: 36px;
  opacity: 0.75;
  text-align: right;
}

input[type="range"] {
  flex: 1;
  accent-color: rgba(155, 89, 182, 1);
  cursor: pointer;
  height: 4px;
}


.hint {
  font-size: 12px;
  opacity: 0.45;
  text-align: center;
  margin: 0;
}

kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'Roboto', sans-serif;
}
