:root {
  --theme-color: #121212;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a { text-decoration: none; }
body {
  font-family: Arial, sans-serif;
  background: #212121;
  color: #fff;
  line-height: 1.6;bg-teal
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 13px; 
  overflow: hidden;
}

.main {
  min-height: 100vh;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 50px 20px;
  background-size: auto 700px;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: background-color .5s ease-in-out, background-image ۰5s ease-in-out;
  overflow: hidden;
}
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--theme-color) 30%, transparent 60%);
}

.main > div { position: relative; z-index: 1; }

.contorl-btns,
.progress-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.progress {
  appearance: none;
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, .4);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 1px;
}

.progress-bar {
  height: 100%;
  background: var(--theme-color);
  border-radius: 6px;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform .2s;
}

.btn-dle img { margin-right: 8px; }

.pay-list {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
  height: 100%;
  width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s;
  text-align: left;
  overflow-y: auto;
  scrollbar-width: none;
  backdrop-filter: blur(10px);
  z-index: 10;
}
@media (min-width:1090px) {
  .pay-list.active {
    opacity: 0;
    pointer-events: none;
  }
}

.pay-list::-webkit-scrollbar { display: none; }
.playlist-container {
    width: 100%
}
.pl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
  opacity: .5;
  transition: opacity .3s;
  cursor: pointer;
}

.pl-item.active { opacity: 1; }

.pl-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pl-sub {
  max-width: 100px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.pl-title {
  max-width: 160px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* Theme Colors */
.bg-red    { background-color: #b71c1c; --theme-color: #b71c1c; }
.bg-black  { background-color: #121212; --theme-color: #121212; }
.bg-blue   { background-color: #115fae; --theme-color: #115fae; }
.bg-brown { background-color: #614434; --theme-color: #614434; }
.bg-orange { background-color: #c95627; --theme-color: #c95627; }
.bg-purple   { background-color: #3a1633; --theme-color: #3a1633; }
.bg-teal   { background-color: #618249; --theme-color: #618249; }
.bg-pink   { background-color: #B82B59; --theme-color: #B82B59; }


.btn-dle {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 11px;
  border-radius: 100px;
  padding: 2px 15px 2px 8px;
  height: 48px;
  background: color-mix(in srgb, var(--theme-color), transparent 40%);
  box-shadow:
    0 1px 0 1px color-mix(in srgb, var(--theme-color), #0004 50%),
    0 -1px 0 1px color-mix(in srgb, var(--theme-color), #0004 25%),
    inset 0 2px 5px rgba(255,255,255,.2),
    inset 0 -2px 5px rgba(0,0,0,.2);
  backdrop-filter: blur(5px);
  transition: background-color .5s;
  width: 135px;
}
.close-playlist {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 40px;
}
.close-playlist:before , .close-playlist:after {
  content: "";
  height: 5px;
  width: 18px;
  background: #888;
  position: relative;
  display: block;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 16px;
  transform: rotateZ(12deg) skewX(12deg);
  margin: 0 -1px
}
.close-playlist:after {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 16px;
  transform: rotateZ(-12deg)skewX(-12deg);
}
/* Mobile */
@media (max-width:1090px) {
  .main {
    min-height: 100vh
  }
  .close-playlist {
      display: flex
  }
  .pay-list {
    position: fixed;
    width: 100%;
    height: fit-content;
    max-height: 80dvh;
    bottom: -80dvh;
    left: 0;
    top: unset;
    transform: none;
    background: rgba(0,0,0,.7);
    transition: bottom .5s;
    padding-top: 0
  }
  .pay-list.active { 
    bottom: 0;
  }
  .big-title { display:none; }
}