.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 100;
  pointer-events: auto;
  overflow: hidden;
  transition:
    height 0.2s ease,
    background 0.2s ease,
    backdrop-filter 0.2s ease,
    opacity 0.3s ease-in-out;
  background: var(--primary-transparent); /* Semi-transparent background */
  backdrop-filter: blur(6px); /* Blur effect */
  box-shadow: var(--control-shadow-unified);
}

.progress-container:hover,
.progress-container.expanded {
  height: 7px;
  cursor: pointer;
  background: var(--primary-glow); /* Darker semi-transparent background on hover */
}

.progress-buffer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgb(var(--primary-rgb), 0.3);
  transition:
    width 0.1s linear,
    height 0.2s ease;
  z-index: 1;
}

.progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: hsl(var(--hue) 95% 60%);
  box-shadow:
    0 0 6px hsl(var(--hue) 95% 60% / 60%),
    0 0 10px hsl(var(--hue) 95% 60% / 40%);
  transition:
    width 0.1s linear,
    height 0.2s ease;
  transform-origin: left center;
  z-index: 2;
}

.controls-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  transition: opacity 0.3s ease-in-out;
}

.control-button {
  position: absolute;
  bottom: 10px;
  z-index: 101;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0.8;
}

.control-button .control-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 3px hsl(var(--hue) 95% 70% / 70%));
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

#previous-button,
#next-button {
  width: 43px;
  height: 43px;
}

#previous-button .control-icon,
#next-button .control-icon {
  width: 22px;
  height: 22px;
}

#previous-button {
  left: 10px;
}

#next-button {
  left: 58px;
}

.hfr-toggle-button {
  right: 10px;
}

.control-button:hover {
  opacity: 1;
}

.control-button:hover .control-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px hsl(var(--hue) 95% 70% / 80%));
}

.hfr-toggle-button.spinning .hfr-icon-img {
  animation: spin 1s linear infinite;
}

.container:fullscreen:hover .hfr-toggle-button,
.container:fullscreen:active .hfr-toggle-button {
  opacity: 0.8;
  visibility: visible;
  transition-delay: 0s;
}

.container:fullscreen .hfr-toggle-button {
  opacity: 0;
  visibility: hidden;
  transition-delay: var(--ui-autohide-delay);
}

.tap-controls-overlay {
  display: none;
}

#interaction-zones {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 99;
  touch-action: auto;
}

.zone {
  flex: 1;
  height: 100%;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: auto;
  cursor: pointer;
}

.zone.zone-active {
  background-color: rgb(255 255 255 / 5%);
  transition: background-color 0.05s ease-out;
}
