.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;

  /* 👇 hide text before font loads */
  /* opacity: 0; */
  /* transition: opacity 0.15s ease; */
}

/* show once font is ready */
.material-icons.loaded {
  opacity: 1;
}

.yt-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* iframe */
body .post-youtube iframe,
body .yt-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}
.yt-overlay-thumbnail{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 6;
}
.yt-overlay-thumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-main-controls {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}
.yt-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0,0,0,0.6); */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 11;
  /* transform: translateY(-4px); */
}

/* Spinner */
.yt-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff0000;
  /* YouTube red */
  border-radius: 50%;
  animation: yt-spin 1s linear infinite;
}

@keyframes yt-spin {
  to {
    transform: rotate(360deg);
  }
}

/* overlay */
.yt-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.yt-bhulok-logo-container {
  position: absolute;
  height: 40px;
  width: 40px;
  top: 12px;
  left: 13px;
  background: white;
  border-radius: 50%;
  display: none;
}
.yt-bhulok-logo-container img {
  width: 100%;
}
.yt-controls button {
  background: #111;
  color: #fff;
  border: none;
  padding: 4px 8px;
}
.yt-controls button {
  height: 30px;
  width: 30px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: none;
  color: #efefef;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
}

.yt-overplay-play-button {
  background: white;
  width: 90px;
  height: 60px;
  border-radius: 8px;
  font-size: 24px;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  /* border-radius: 50%; */
}

.yt-overplay-play-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* border-radius: 50%; */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); */
  /* transform: scale(1.12) translateX(-1px); */
}
.yt-seek-controls {
  /* position: absolute; */
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  align-items: center;
}
.yt-seek-controls button {
  background: none;
  border: none;
  outline: none;
  width:50px;

}
.yt-seek-controls button svg{
  /* width: 36px; */
}
.yt-seek-controls button i {
  font-size: 36px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
}
.yt-overlay-logo {
  background: white;
  width: 90px;
  height: 90px;
}
.yt-corner-logo-container{
  width: 110px;
    /* height: 40px; */
    aspect-ratio: 170 / 40;
    position: absolute;
    bottom: 15px;
    right: 14px;
    /* right: 14px; */
    /* bottom: 5px; */
    display: none;
}
.yt-corner-logo-container img{
  width: 100%;
}
/* controls */
.yt-controls {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px;
  /* border-radius: 6px; */
  gap: 20px;
  padding: 0px 10px;
  padding-top: 0px;
  height: 100%;
  justify-content: space-between;
  display: none;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  padding:0px;
}

.yt-controls-vertical-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  margin-top: auto;
  /* margin-bottom: 10px; */
  /* background-color:rgba(0,0,0, 0.4); */
  /* padding:0px 10px 10px 10px; */
}
.yt-controls-top {
  width: 100%;
  z-index: 1;
  /* margin-top: 20px; */
}
.yt-controls-bottom {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0px;
  /* margin-top: 15px; */
}
.yt-controls-left,
.yt-controls-mid,
.yt-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yt-controls-mid {
  justify-content: center;
}
.yt-controls-left {
  justify-content: flex-start;
  /* align-items: baseline; */
}
.yt-controls-right {
  justify-content: flex-end;
  padding-right:10px ;
  gap: 10px;
}
.yt-controls-mid button i {
  font-size: 28px;
}
.yt-time {
  display: flex;
  font-size: 14px;
  font-weight: 300;
  color: white !important;
}


.yt-controls-main-play-btn {
  background: white;
  width: 90px;
  height: 90px;
  /* border-radius: 8px; */
  /* font-size: 24px; */
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  border-radius: 50%;
}
.yt-controls-main-play-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: scale(1.12) translateX(-1px);
}

.yt-mute-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}

.yt-mute-btn.muted {
  opacity: 0.6;
}

.yt-seek {
  flex: 1;
}
.yt-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 1px;
  /* background: linear-gradient(
    to right,
    #4f46e5 0%,
    #4f46e5 40%,
    #e5e7eb 40%,
    #e5e7eb 100%
  ); */

  /* background: #e5e7eb !important; */
  background: #fff !important;

  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

/* Chrome / Edge / Safari */
.yt-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #4f46e5;
  border-radius: 50%;
  /* border: 2px solid #fff; */
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Firefox */
.yt-range-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #4f46e5;
  border-radius: 50%;
  /* border: 2px solid #fff; */
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.yt-range-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.6);
}

/* Chrome / Edge / Safari */
.yt-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #4f46e5;
  border-radius: 50%;
  /* border: 2px solid #fff; */
  cursor: pointer;

  /* 👇 this makes the round move smoothly */
  transition: transform 0.12s linear;
}

/* Firefox */
.yt-range-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #4f46e5;
  border-radius: 50%;
  /* border: 2px solid #fff; */
  cursor: pointer;
}


.yt-volume {
  width: 60px;
  height: 2px !important;
  max-width: 160px !important;
}

.post-youtube:before {
  padding-bottom: 0;
}

.yt-quality-menu {
  /* position: relative; */
  position: static;
  font-family: Arial, sans-serif;
}

/* button */
.yt-quality-btn {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* popup list */
.yt-quality-list {
  position: absolute;
  bottom: 110%;
  right: 10px;
  min-width: 110px;
  background: #212121;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: none;
  /* z-index: 100; */
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.9);
  overflow: scroll;
  height: 160px;
}

/* show menu */
.yt-quality-menu.open .yt-quality-list {
  display: block;
}

/* items */
.yt-quality-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.yt-quality-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* active */
.yt-quality-item.active::after {
  content: "✓";
  float: right;
  opacity: 0.8;
}

/* mobile-friendly */
@media screen and (max-width: 768px) {
  .yt-overplay-play-button {
      width: 75px;
      height: 50px;
  }
  .yt-quality select {
    font-size: 14px !important;
  }
  .yt-volume {
    display: none !important;
  }
  .yt-controls {
    /* padding: 0px 10px; */
    /* padding-top:0px ; */
    gap: 12px;
  }
  .yt-controls button {
    height: 24px;
    width: 24px;
    font-size: 12px;
  }
  .yt-seek-controls button{
    width:50px;
  }
  .yt-controls-main-play-btn {
    width: 75px;
  }
}

.ytp-chrome-top .ytp-show-cards-title {
  display: "none" !important;
}

.ytp-watermark .yt-uix-sessionlink {
  display: none !important;
}

@media screen and (max-width: 540px) {
  .yt-controls-left button i,
  .yt-controls-mid button i,
  .yt-controls-right button i {
    font-size: 18px;
  }
  .yt-controls span {
    font-size: 14px;
  }
  .yt-time {
    /* display: none; */
  }
  .yt-corner-logo-container{
    /* width: 85px; */
  }
  
}

@media screen and (max-width: 450px) {
 .yt-corner-logo-container{
    width: 100px;
    right: 8px;
    bottom: 6px;
 }
 .yt-overplay-play-button{
          width: 70px;
        height: 50px
 }
 .yt-quality-list{
    height: 130px;
  }
  .yt-controls-bottom{
    padding: 5px 0px;
  }
}

@media screen and (max-width: 360px) {
 .yt-corner-logo-container{
   width: 85px;
    right: 4px;
    bottom: 8px;
 }
 .yt-quality-list{
    height: 90px;
  }
}
