.video-js {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  color: #fff;
  background-color: #000;
  position: relative;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  word-break: initial;
}


.player-wrapper {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden; /* verhindert Flackern */
}

.playlist-sidebar {
  position: absolute;
  top: 38px;
  left: 0;
  width: 115px;
  max-height: 600px;
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.7);
  transform: translateX(-110%);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 10;
  border-radius: 0 10px 10px 0;
  padding-top: 10px;
  box-shadow: 4px 0 12px rgba(0,0,0,0.5);
}

/* geöffnet */
.playlist-sidebar.active {
    transform: translateX(0);
    box-shadow: 8px 0 20px rgba(0,0,0,0.7);
}

/* Playlist Items */
.playlist-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
	color:#827b7b;
}

.playlist-item:hover { background: #2a2a2a; }
.playlist-item.active { background: #fdfeff70; color: #000; }

.playlist-thumb {
    width: 90px;
    height: 55px;
    object-fit: cover;
    margin-right: 10px;
    background: #000;
    border-radius: 4px;
}

.toggle-playlist {
  position: absolute;
  top: 0px;
  left: -1px;
  z-index: 20;
  background: #00000075;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

/* Video Title */
.video-title {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Mobile: Playlist Slide-In */
@media (max-width: 768px){
    .playlist-sidebar {
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
}
.player-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.video-js {
    width: 100% !important;
    height: auto !important;
}

#baseVideos li.hidden {
    display: none !important;
}

#baseVideos li.in-playlist {
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

/* Häkchen oben rechts */
#baseVideos li.in-playlist::after {
    content: "✔";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: green;
    font-weight: bold;
}

/* Overlay bei Hover */
#baseVideos li.in-playlist::before {
    content: "Dieses Video ist schon in der Playlist";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 5px;
}

#baseVideos li.in-playlist:hover::before {
    opacity: 1;
}

#baseVideos video,
#playlistVideos video {
    max-height: 180px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#baseVideos li.in-playlist {
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

#baseVideos li.in-playlist::after {
    content: "✔";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: green;
    font-weight: bold;
}

#baseVideos li.in-playlist::before {
    content: "Dieses Video ist schon in der Playlist";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 5px;
}

#baseVideos li.in-playlist:hover::before {
    opacity: 1;
}

.video-js {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  color: #fff;
  background-color:transprent !important;
}

#content { font-family: Arial, sans-serif; }
ul { list-style:none; padding:0; }
.video-item, .playlist-item {
    border:1px solid #ccc;
    margin:5px;
    padding:5px;
    /*cursor:move;*/
    background:#f9f9f9;
    border-radius:6px;
}
.video-item video {
    width:100%;
    max-width:220px;
}
.remove {
    margin-top:5px;
    padding:3px 6px;
    font-size:12px;
    background:#dc3545;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
}

.video-js {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  color: #fff;
  background-color:transprent !important;
}

