:host {
  line-height: initial;
  font-family: var(--rtk-font-family, sans-serif);

  font-feature-settings: normal;
  font-variation-settings: normal;
}

p {
  margin: var(--rtk-space-0, 0px);
  padding: var(--rtk-space-0, 0px);
}


:host {
  display: flex;
  height: 100%;
  max-height: 100%;
  min-height: 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  border-radius: var(--rtk-border-radius-md, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
}

.player-container {
  position: relative;
  margin-left: var(--rtk-space-4, 16px);
  margin-right: var(--rtk-space-4, 16px);
  margin-top: var(--rtk-space-4, 16px);
  margin-bottom: var(--rtk-space-0, 0px);
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  border-radius: var(--rtk-border-radius-md, 8px);
}

.loader {
  position: absolute;
  z-index: 10;
  height: 100%;
  width: 100%;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

p {
  margin-top: var(--rtk-space-1, 4px);
  margin-bottom: var(--rtk-space-1, 4px);
  font-size: 16px;
  color: rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));
}


.unmute-popup {
  position: absolute;
  z-index: 30 !important;
  display: flex;
  width: var(--rtk-space-72, 288px);
  flex-direction: column;
  border-radius: var(--rtk-border-radius-md, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  padding: var(--rtk-space-4, 16px);
  text-align: center;
  max-width: 70%;
}


.unmute-popup h3 {
  margin: var(--rtk-space-0, 0px);
  font-size: 16px;
  font-weight: 500;
}


.unmute-popup p {
  margin-top: var(--rtk-space-3, 12px);
  margin-bottom: var(--rtk-space-3, 12px);
  font-size: 14px;
}

.control-bar {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  display: flex;
  height: auto;
  align-items: center;
  padding: 12px 16px;
  z-index: 30; /* Higher z-index to ensure it's above the video */ --tw-bg-opacity: 1; background-color: rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  border-radius: 6px; /* rounded-md fallback */ border-radius: var(--rtk-border-radius-md, 8px); background-color: rgba(var(--rtk-colors-background-900, 26 26 26) / 0.8);
  gap: 12px;
}

.timings {
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
}

.control-btn {
  border: none;
  margin-right: var(--rtk-space-2, 8px);
  border-radius: var(--rtk-border-radius-sm, 4px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
  cursor: pointer;
  font-size: 24px;
  height: 30px;
  width: 30px;
}

.fullscreen-btn {
  margin-right: 20px;
  height: 30px;
}

.control-btn:hover {
  opacity: 0.8;
}

.control-btn:focus {
  outline: none;
}


.control-groups{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#livestream-video,
.livestream-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  -o-object-fit: fill !important;
     object-fit: fill !important;
  z-index: 10;
  border-radius: var(--rtk-border-radius-md, 8px);
  border-width: 0px;
}

/* Non-fullscreen: add padding to container for spacing (no bottom padding) */
:host:not(:fullscreen) .video-container {
  padding: 16px 16px 0 16px;
}

/* Fullscreen: remove padding and ensure full coverage */
:host(:fullscreen) .video-container,
:host(:-webkit-full-screen) .video-container,
:host(:-moz-full-screen) .video-container {
  padding: 0;
}


.level-select {
  border-radius: var(--rtk-border-radius-sm, 4px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  height: 30px;
  cursor: pointer;
  border-radius: 5px;
  margin-right: 10px;
}

.level-select:focus {
  outline: none;
}

.level-select option {
  border-radius: var(--rtk-border-radius-sm, 4px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
}

.volume-control-holder{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Seekbar Styles */
.seekbar-container {
  flex: 1;
  min-width: 100px;
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.seekbar {
  width: 100%;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.seekbar-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
}

.seekbar-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  transition: width 0.1s ease;
}

.seekbar-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  transform: translate(-50%, -50%);
  transition: left 0.1s ease;
  opacity: 0;
}

.seekbar:hover .seekbar-handle {
  opacity: 1;
}

.seekbar:hover .seekbar-track {
  height: 6px;
}

.seekbar:hover .seekbar-handle {
  width: 14px;
  height: 14px;
}