:root {
  --dark: #333; /* Темный цвет */
  --light: #fff; /* Светлый цвет */
  --link: #3498db; /* Цвет ссылки (если понадобится в будущем) */
  --link-hover: #2980b9; /* Цвет ссылки при наведении */
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

.light-theme {
  background-color: #e6e6e6;
  color: #000000;
}

.dark-theme {
  background-color: #181818;
  color: #ffffff;
}

.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.buttons {
  display: flex;
  background-color: rgb(46, 46, 46);
  gap: 30px;
  border-radius: 25px;
  justify-content: center;
  width: 150px;
  margin-bottom: 20px;
}

.vote-btn {
  margin-top: 5px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vote-btn:active {
  transform: scale(0.9);
}

.icon {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
  transition: filter 0.3s, fill 0.3s;
  fill: #000000;
}

.castro {
  margin-top: 5px;
  margin-bottom: 5px;
}

.icon:hover {
  transform: scale(1.1);
  transition: filter 0.3s, fill 0.3s, transform 0.3s ease-in-out;
  fill: rgb(255, 90, 123) !important;
}

.vote-btn.active .icon {
  filter: none;
}

#like-btn.active .icon {
  fill: rgb(255,0,51) /* Для активного лайка */
}

#dislike-btn.active .icon {
  fill: rgb(133, 133, 255); /* Для активного дизлайка */
}

.toggle-switch {
  position: relative;
  width: 200px;
}

label {
  position: absolute;
  width: 100%;
  height: 100px;
  background-color: var(--dark);
  border-radius: 50px;
  cursor: pointer;
  left: 0;
}

input {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  border-radius: 50px;
  transition: 0.3s;
}

input:checked ~ .slider {
  background-color: var(--light);
}

.slider::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 16px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  box-shadow: inset 28px -4px 0px 0px var(--light);
  background-color: var(--dark);
  transition: 0.3s;
}

input:checked ~ .slider::before {
  transform: translateX(95px);
  background-color: var(--dark);
  box-shadow: none;
}


#volume-control {
  display: block !important;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

#volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2c2c2c;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

#volume-control::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2c2c2c;
  border-radius: 50%;
  cursor: pointer;
}

#volume-control:focus {
  background: #aaa;
}

/* Стиль для отображения процента громкости */
#volume-value {
  font-size: 1.2em;
  margin-top: 10px;
}