/* Subtitle control styles */

.pp-subtitle-submenu {
  position: absolute;
  bottom: 0;
  right: 100%;
  background: rgba(24, 24, 32, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 101;
  min-width: 150px;
  white-space: nowrap;
  margin-right: 8px;
  padding: 8px 0;
}

.pp-subtitle-item {
  cursor: pointer;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.pp-subtitle-item:last-child {
  border-bottom: none;
}

.pp-subtitle-item:hover:not(.selected) {
  background: rgba(255, 255, 255, 0.1) !important;
}

.pp-subtitle-item.selected {
  background: rgba(33, 150, 243, 0.3) !important;
}

/* Subtitle toggle wrapper and button */
.pp-subtitle-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pp-subtitle-toggle-btn {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 16px !important;
  min-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
}

.pp-subtitle-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Subtitle indicator */
.pp-subtitle-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background-color: #f03;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Hide subtitle toggle wrapper when display is none */
.pp-subtitle-toggle-wrapper[style*="display: none"] {
  display: none !important;
} 