/* KKBOX Fixed Floating Player - lives outside pjax container */
#kkbox-fixed-player {
  position: fixed;
  right: -300px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 520px;
  z-index: 9999;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.25);
  transition: right 0.35s ease;
}

#kkbox-fixed-player.open {
  right: 0;
}

#kkbox-fixed-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#kkbox-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, #1db954, #1a1a2e);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: right 0.35s ease;
}

#kkbox-toggle.open {
  right: 300px;
}

#kkbox-toggle:hover {
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  #kkbox-fixed-player {
    width: 260px;
    height: 420px;
  }
  #kkbox-toggle.open {
    right: 260px;
  }
}
