@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

body::before {

position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 4rem;
color: rgba(0, 0, 0, 0.2);
z-index: 9999;
pointer-events: none;
}

:root {

  --color-red-600: hsl(12, 99%, 54%);
  --color-red-600-hover: hsl(12, 100%, 70%);

  --color-black-600: hsl(0, 0%, 5%);
  --color-black-600-hover: hsl(60, 8%, 8%);

  --color-white-600: hsl(65, 23%, 95%);

  --color-gray-600: hsl(60, 2%, 18%);
  --color-gray-500: hsl(60, 3%, 22%);


  --value-2px: 0.125rem;
  --value-4px: 0.25rem;
  --value-6px: 0.375rem;
  --value-8px: 0.5rem;
  --value-10px: 0.625rem;
  --value-12px: 0.75rem;
  --value-14px: 0.875rem;
  --value-16px: 1rem;
  --value-18px: 1.125rem;
  --value-20px: 1.25rem;
  --value-24px: 1.5rem;
  --value-28px: 1.75rem;
  --value-30px: 1.875rem;
  --value-40px: 2.5rem;
}



body {
  margin: 0;
  padding: 0;
  height: 100svh;

  color: var(--color-black-600);

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 250, "GRAD" 0, "opsz" 24;
}

img {
    position: relative;
    height: 100%;
    width: 23.5rem;
    object-fit: cover;
}

.tags button {
  border: none;
  padding-block: 2px;
  padding-inline: 8px;

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
}

html::-webkit-scrollbar {
  width: 0.3rem;
  height: 1rem;
}

html::-webkit-scrollbar-track {
  background: var(--color-gray-500);
}

html::-webkit-scrollbar-thumb {
  border-radius: 0.1rem;
  background: var(--color-red-600);
}

.tags button:hover {
  color: black;
}

p {
  font-size: 0.9em;
  width: 90%;
}

h1 {
  font-size: 1.5em;
}

.flex-x {
  display: flex;
  gap: var(--value-16px);
}

.flex-y {
  display: flex;
  flex-direction: column;
  gap: var(--value-16px);
}

.icon-text-center {
  display: flex;
  align-items: center;

  justify-content: center;
  gap: var(--value-8px);
}

#container {
  position: relative;
  height: fit-content;
  width: 100%;
  margin-top: 5em;
}

#container>.flex-x {
  gap: var(--value-20px);
}


.player-content {
  padding: var(--value-40px) var(--value-20px) 0 var(--value-40px);
  backdrop-filter: blur(var(--value-18px));
}

.player-content>.flex-y {
  gap: var(--value-24px);
}

#player-text>h1 {
  margin-top: 0;
 
}

.player-tags-rating>.rating {
  flex-basis: 1;
  flex-shrink: 0;
}

.player-tags-rating {
  justify-content: flex-start;
}

.tags {
  overflow-x: auto;
}

.tags>button {
  border-radius: var(--value-2px);
  background-color: #007bff;
}

.tags>button:hover {
  background-color: var(--color-white-600);
  cursor: pointer;
}

.button-primary {
  width: fit-content;
  background-color: var(--color-red-600);
  border-radius: var(--value-4px);
  color: var(--color-white-600);
  padding-inline: var(--value-10px);
  padding-block: var(--value-8px);
  cursor: pointer;
  transition: transform 0.2s ease;

  &:active {
    transform: scale(0.95);
  }
}

.button-secondary {
  width: fit-content;
  background-color: var(--color-gray-600);
  border-radius: var(--value-4px);
  color: var(--color-white-600);
  padding-inline: var(--value-8px);
  padding-block: var(--value-6px);

  transition: transform 0.2s ease;

  &:active {
    transform: scale(0.98);
  }
}

.button-secondary:hover {
  background-color: rgb(74, 83, 114);
  color: rgb(255, 255, 255);
}

.user-actions>button {
  background-color: transparent;
  flex-shrink: 0;
  color: var(--color-black-600);
  cursor: pointer;
}

.player-actions {
  align-items: flex-end;
  height: 100%;
}

#episodes>button {
  height: 3rem;
  cursor: pointer;
}

#episodes>button:hover {
  color: var(--color-red-600);
}

h3 {
  color: var(--color-red-600);
}

#episodes {
  padding-bottom: var(--value-30px);
  flex-wrap: wrap;
}

.filled {
  font-variation-settings: "FILL" 1;
}

#video-box {
  display: flex;
  width: 70%;

  cursor: pointer;
  height: 67vh;
  margin: 52px auto;

}
.mainCourse{
margin-top: 3em;
}

.video-container video.paused {
  display: none;
  
}

#action {
  padding-bottom: var(--value-40px);
}

#action>button {
  font-size: var(--value-18px);
}

.flex-x {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-part {
  cursor: pointer;
  text-align: center;
}

.thumbnail {
  width: 120px;
  height: 90px;
  object-fit: cover;

}

#textPlay {
  color: white;

}

.button-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}


.material-symbols-rounded {
  margin-right: 8px;
  font-size: 20px;
}

#btnOP{
display: flex;
justify-content: center;
}

.WannaAsk{
font-size: 17px;
color: black;
font-family: sans-serif;
font-weight: 500;
margin: 12px;
}

.container {
  max-width: 1200px;
margin: 20px auto;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 20px;
}

@media (max-width: 1200px) {
  .container {
    margin: 0;
  }
}

.main-video-container {
  flex: 1 1 700px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 15px;
}

.main-video {
  margin-bottom: 7px;
  border-radius: 5px;
  width: 100%;
}

.main-video__title {
  font-size: 20px;
  color: #444;
}

@media (max-width: 450px) {
  .main-video__title {
    font-size: 15px;
    text-align: center;
  }
}

.video-list-container {
  flex: 1 1 350px;
  height: 485px;
  overflow-y: scroll;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 15px;
}

.video-list-container::-webkit-scrollbar {
  width: 10px;
}

.video-list-container::-webkit-scrollbar-track {
  background-color: #fff;
  border-radius: 5px;
}

.video-list-container::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 5px;
}

.list {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background-color: #eee;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 10px;
}

.list:last-child {
  margin-bottom: 0;
}

.list.active {
  background-color: #007bff;
}

.list.active .list__title {
  color: #fff;
}

@media (max-width: 450px) {
  .list {
    flex-flow: column;
    gap: 10px;
  }
}

.list__video {
  width: 100px;
  border-radius: 5px;
}

@media (max-width: 450px) {
  .list__video {
    width: 100%;
  }
}

.list__title {
  font-size: 17px;
  color: #444;
}

@media (max-width: 450px) {
  .list__title {
    font-size: 15px;
    text-align: center;
  }
}
#ButtonSee{
  padding: 21px 30px 18px 35px;
background:  #007bff;
outline: 0;
align-items: center;
overflow: hidden;
border: none;
color: white;
display: flex;
font-size: 20px;
margin-top: 4em;
gap: 10px;
border-radius: 15px;
cursor: pointer;

}
#ButtonSee:hover{
  background-color: #536ab6;
}
#Click:hover{
text-decoration: underline;
color: black;
}


.controls {
 
  bottom: 10px;


  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
   justify-content: center;
    margin: auto;
    margin-bottom: 10px;
  align-items: center;
}
.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  margin: 0 10px;
  cursor: pointer;
  transition: color 0.3s;
}
.controls button:hover {
  color: #f39c12;
}


.custom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: #222;
  padding: 8px;
  border-radius: 5px;
}

#seekBar {
  flex-grow: 1;
  appearance: none;
  height: 5px;
  background: #666;
  border-radius: 5px;
  outline: none;
}

#seekBar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: red;
  cursor: pointer;
}

#timeDisplay {
  color: white;
  font-size: 14px;
  white-space: nowrap;
}
