.player-wrapper {
  position: relative;
  max-width: 100%;
  margin-bottom: 20px;
}

subtitle-menu {
  position: absolute;
  bottom: 50px;
  right: 15px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

subtitle-menu.is-open {
  display: flex;
  animation: cuhk-subtitle-fadein 0.2s ease-out;
}

@keyframes cuhk-subtitle-fadein {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

subtitle-menu button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  position: relative;
}

subtitle-menu button:hover {
  background: rgba(255, 255, 255, 0.15);
}

subtitle-menu button.active {
  color: #00e676;
  font-weight: 600;
}

subtitle-menu button.active::before {
  content: '✓';
  position: absolute;
  right: 12px;
  color: #00e676;
  font-weight: bold;
}
