/*
    Pure CSSS
    I'm using flexbox
    Varaibles you see in the root are actively in use
*/

:root {
  --YTPprimary: #fbfcfc;
  --YTPactive: #f1f1f1;
  --YTPsecondary: #333333;
  --YTPgrey: #555555;
  --YTPb-pad: 10px;
  --YTPs-pad: 5px;
  --YTPbg: rgb(50, 50, 50);
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: var(--YTPbg);
}

a.channel {
  color: inherit;
  text-decoration: none;
}
a.channel:hover {
  text-decoration: underline;
}

.title {
  color: var(--YTPsecondary);
  font-size: 15px;
  font-weight: bold;
}
.sub-title {
  color: var(--YTPgrey);
  font-size: 13px;
}
.icon-active {
  filter: sepia(100%) hue-rotate(150deg) saturate(400%);
}

#playlist {
  width: 60vw;
  height: 45.45vh;
  display: flex;
  transition: all ease 0.3s;
  margin: 50px auto;
}

#video-dis {
  flex: 6.5;
  background: black;
}
#video-dis iframe {
  width: 100%;
  height: 100%;
}
.video-li {
  flex: 3.5;
  display: flex;
  padding: var(--YTPb-pad);
  flex-direction: column;
  background: var(--YTPprimary);
}
.li-collapsed {
  overflow: hidden;
  height: 40px;
}
#vli-info {
  padding: 0 var(--YTPb-pad) 0 var(--YTPb-pad);
}

#upper-info {
  display: flex;
}

#li-titles {
  flex: 9;
}
#li-titles div {
  padding-bottom: 5px;
}

#drop-icon {
  flex: 1;
  cursor: pointer;
  background: url(https://user-images.githubusercontent.com/50569315/118832584-92350500-b8e2-11eb-8398-9a90a4615b98.png)
    no-repeat center;
  background-size: 50%;
}

#lower-info {
  display: flex;
  padding-top: var(--YTPb-pad);
}
#lower-info div {
  width: 40px;
  height: 40px;
  cursor: pointer;
}
#btn-repeat {
  margin-right: var(--YTPb-pad);
  background: url(https://user-images.githubusercontent.com/50569315/118832591-93663200-b8e2-11eb-8b98-3b177304b555.png)
    no-repeat left;
  background-size: 50%;
}
#btn-suffle {
  margin-right: var(--YTPb-pad);
  background: url(https://user-images.githubusercontent.com/50569315/118832597-93fec880-b8e2-11eb-9146-f978064eddb1.png)
    no-repeat left;
  background-size: 45%;
}
#btn-save {
  margin-left: auto;
  order: 2;
  right: 10px;
  margin-right: var(--YTPb-pad);
  background: url(https://user-images.githubusercontent.com/50569315/118832594-93fec880-b8e2-11eb-8201-12cb52be231f.png)
    no-repeat right;
  background-size: 60%;
}

#vli-videos {
  flex: 7;
  overflow: auto;
}

.video-con {
  display: flex;
  cursor: pointer;
  padding: var(--YTPs-pad);
  column-gap: var(--YTPs-pad);
  margin-bottom: var(--YTPb-pad);
}
.video-con:hover,
.active-con {
  background: var(--YTPactive);
}
.index {
  min-width: 15px;
  align-self: center;
}
.thumb {
  width: 100px;
  height: 60px;
  background: var(--YTPsecondary);
}
.thumb img {
  width: 100%;
}
.v-titles {
  flex: 6;
}
.v-titles div:nth-child(2) {
  margin-top: var(--YTPs-pad);
}

@media only screen and (max-width: 1150px) {
  #playlist {
    width: 100vw;
    height: 60vh;
  }
}
@media only screen and (max-width: 950px) {
  #playlist {
    width: 50vw;
    display: block;
    align-items: center;
  }
  #video-dis {
    margin-bottom: var(--YTPb-pad);
    width: 100%;
    height: 300px;
  }
}
@media only screen and (max-width: 800px) {
  #playlist {
    width: 100vw;
    height: inherit;
  }
}
@media only screen and (max-width: 650px) {
  #playlist {
    width: 100vw;
    height: auto;
    transform: none;
  }
}


.playlist-container {
   background-image: url('https://image.noelshack.com/fichiers/2025/34/1/1755541171-edg-playlist-bg.jpg');
   background-size: cover;
   padding: 50px;
   margin: -50px 0 50px;
}

@media only screen and (max-width: 800px) {
  .playlist-container {
    padding: 50px 0;
  }
}

@media only screen and (max-width: 1150px) {
  .playlist-container {
    padding: 50px 0;
  }
}

.playlist-message {
  text-transform: uppercase;
  text-align: center;
}

.playlist-message a:hover {
  color: #f8c234;
}
