:root {
  --bg-main: #2b2b2b;
  --text-main: #ededed;
  --text-muted: #c9d1d9;

  --overlay-start: rgba(15, 20, 20, 0.7);
  --overlay-end: rgba(10, 10, 10, 0.9);

  --primary: #5e1ea2;
  --p: #5e1ea2;
  --fab-bg: #5e1ea2;
  --fab-hover: #671475;

  --chip-bg: #21262d;
  --chip-border: #30363d;

  --player-bg: #eaeaeaf9;
  --player-text: #2b2b2b;

  --btn-blue: #5e1ea2;
  --btn-blue-dark: #671475;

  --btn-width: 50px;

  --link-blue: #5e1ea2;
  --link-blue-border: #170629;

  --gray-1: #444;
  --gray-2: #666;

  --shadow: rgba(154, 55, 225, 0.759);
}

@font-face {
  font-family: Vazir;
  src: url(Vazir.ttf);
}

body {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  font-family: Vazir;
  color: var(--text-main);
  /* background-color: var(--bg-main); */
}

@media only screen and (min-width: 1024px) {
  body{
    position: relative;
    display: block;
    width: 80%;
    margin: auto;
  }
  [id^="global-"] {
    left: 10% !important;
  }
  #gotop{
    right: 10% !important;
  }
}
@media only screen and (min-width: 1360px) {
  body{
    display: block;
    width: 50%;
    margin: auto;
  }
  [id^="global-"] {
    left: 25% !important;
  }
  #gotop{
    right: 25% !important;
  }
}
@media only screen and (min-width: 1600px) {
  body{
    display: block;
    width: 40%;
    margin: auto;
  }
  [id^="global-"] {
    left: 30% !important;
  }
  #gotop{
    right: 30% !important;
  }
}

body::before {
  /* width: 100vw;
  height: 200vh; */
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(var(--overlay-start), var(--overlay-end)),
    url("./bg.jpg") center/contain repeat;
  background-size: 50%;
  z-index: 0;
}

.wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 9999999;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-x: hidden;
}

.card {
  border: none;
  border-radius: 8px;
}

.text-muted {
  color: var(--text-muted) !important;
}

audio {
  width: 100%;
  height: 50px;
}

.song {
  box-sizing: border-box;
  padding: 5px 10px !important;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.modal.fade.show {
  background-color: #282c31ee;
}
.modal-content {
  border: 3px solid var(--primary);
}

#global-repeat {
  position: fixed !important;
  bottom: 15px !important;
  left: 15px;
  width: var(--btn-width);
  height: var(--btn-width);
  border-radius: 50%;
  border: 3px solid var(--link-blue-border);
  color: var(--bg-main);
  font-size: 28px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px 1px var(--shadow);
  background-color: var(--text-muted);
  border-color: var(--text-main);
}
#global-repeat.active {
  color: rgb(14, 108, 72);
  border-color: rgb(48, 152, 112);
  border-width: 5px;
  transition: 0.15s ease-in-out;
}
#global-repeat svg {
  transform: scale(75%);
  transition: 0.15s ease-in-out;
}
#global-repeat.active svg {
  transform: scale(125%);
}

#global-play {
  display: none;
  position: fixed !important;
  bottom: 80px !important;
  left: 15px;
  width: var(--btn-width);
  height: var(--btn-width);
  border-radius: 50%;
  border: 3px solid var(--link-blue-border);
  color: var(--bg-main);
  font-size: 28px;
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px 1px var(--shadow);
  background-color: var(--link-blue);
  border-color: var(--text-main);
}
@keyframes borderPulse {
  0%   { box-shadow: 0 0 0 0 rgba(48,152,112, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(48,152,112, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(48,152,112, 0); }
}
#global-play.active {
  color: rgb(14, 108, 72);
  border-color: rgb(48, 152, 112);
  border-width: 5px;
  transition: 0.15s ease-in-out;
  animation: borderPulse 1.2s ease-in-out infinite;
}
#global-play .play-icon{
  fill: var(--text-main);
}
#global-play .pause-icon{
  fill: var(--text-main);
}

#global-see {
  display: none;
  position: fixed !important;
  bottom: 145px !important;
  left: 15px;
  width: var(--btn-width);
  height: var(--btn-width);
  border-radius: 50%;
  border: 3px solid var(--link-blue-border);
  color: var(--text-main);
  font-size: 28px;
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px 1px var(--shadow);
  background-color: #272829ec;
  border-color: var(--text-main);
}

#gotop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 999;
  user-select: none;
  box-shadow: 0 0 10px 1px var(--shadow);
}

.ups {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chips {
  width: 100%;
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.chip {
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--chip-bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  border: 1px solid var(--chip-border);
  transition: 0.15s;
}

.chip.active {
  background: var(--fab-bg);
  color: #fff;
  border-color: var(--fab-bg);
}

.chip:hover {
  color: #fff;
  border-color: #fff;
}

.file-btn {
  display: inline-block;
  padding: 18px 12px;
  background: var(--fab-bg);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.file-btn:hover {
  background: var(--fab-hover);
}

.header {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  direction: ltr;
  margin-top: 15px;
}

.header a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 900;
  text-shadow: 0 0 10px var(--text-muted);
  background-color: #edededed;
  border-radius: 15px;
  padding: 0 7px;
}

#countBox {
  display: inline-block;
  direction: rtl;
  color: var(--text-muted);
  /* padding: 5px 25px; */
  /* background-color: #21262daf; */
  /* border-radius: 5px; */
}

.owner {
  font-size: 0.9em;
  word-break: break-word;
  direction: ltr;
  text-align: center;
  color: var(--text-main);
  position: absolute;
  transform: rotate(-80deg) translateX(-125%);
  transform-origin: 0 0;
  top: 3px;
  left: -10px;
  z-index: 9;
  width: 120px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#add {
  border-radius: 7px;
  border: 1px solid var(--link-blue-border);
  background: var(--fab-bg);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px 1px var(--shadow);
  padding: 11px 5px;
  margin-bottom: 17px;
}
#add:hover {
  background: var(--fab-hover);
}
#add span{
  margin: 0 5px;
}

#search {
  direction: ltr;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  background-color: #cdcdcd;
  color: var(--link-blue-border);
  border-radius: 0;
  padding: 15px 11px;
  border-radius: 3px;
  margin-bottom: 17px !important;
}

/* textarea desc! */
#desc::placeholder {
  color: var(--gray-2);
}

.desc {
  box-sizing: border-box;
  margin-top: 0px;
  min-width: 260px;
  max-width: 260px;
  text-align: center;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border: 2px #21262d solid;
  box-shadow: 0 4px 10px 1px #454c5536;
  padding: 8px;
  font-size: 0.75em;
}

.player-sub:empty {
  display: none;
}

.desc:empty {
  display: none;
}

.song:has(.desc:empty) .player-sub {
  border-radius: 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.player .row1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.player {
  width: 100%;
  min-width: 260px;
  max-width: 260px;
  background: var(--player-bg);
  color: var(--player-text);
  border: 2px solid #21262d;
  border-radius: 8px;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding: 10px;
  margin: 0;
  direction: ltr;
  user-select: none;
}

.player.active {
  box-shadow:
    0 0px 25px 5px var(--fab-hover),
    0 0 15px var(--player-bg);
}

.player .play {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--btn-blue);
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.player .name {
  font-size: 0.85em;
  line-height: 1.3;
  color: var(--btn-blue-dark);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 5px;
  outline: none;

  /* we paint progress here */
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--p, 0%),
    var(--bg-main) var(--p, 0%),
    var(--bg-main) 100%
  );
  background-color: var(--bg-main);
}
.seek::-webkit-slider-runnable-track {
  background: transparent;
  height: 7px;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: -4px;
  cursor: pointer;
}
/* Firefox (this one actually supports progress natively) */
.seek::-moz-range-track {
  background: transparent;
  height: 7px;
}
.seek::-moz-range-progress {
  background: var(--primary);
  height: 7px;
}
.seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.player .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 0 8px;
  margin-top: 7px;
}

.player .dl {
  text-decoration: none;
  font-size: 2em;
  color: var(--btn-blue-dark);
}

.player .date {
  color: #5e5e5eb9;
}

.player .icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.player-sub {
  width: 100%;
  min-width: 260px;
  max-width: 260px;
  background-color: rgba(22, 3, 37, 0.063);
  color: var(--text-main);
  padding: 8px;
  margin: 0;
  direction: ltr;
  user-select: none;
  border: 2px #21262d solid;
}

.player-sub .cats {
  font-size: 0.7em;
  color: var(--text-main);
  word-break: break-all;
  word-wrap: break-word;
  line-height: 2.5em;
}

.player-sub .cat {
  padding: 3px 10px;
  border-radius: 5px;
  background-color: #e7deea39;
  margin-right: 5px;
}

.reaction-btn {
  box-sizing: border-box;
  direction: ltr;
  text-align: center;
  margin: auto;
  position: absolute;
  transform-origin: 0 0;
  transform: translate(0px, -75%);
  top: 100%;
  right: 0;
  z-index: 11;
  width: 30px;
  height: 30px;
}

.react-toggle {
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  border: none !important;
  cursor: pointer;
  font-size: 23px;
  color: #edededfc;
  padding: 0;
  background-color: var(--link-blue);
}

.react-toggle:hover {
  background-color: var(--link-blue);
}

.react-box {
  position: absolute;
  bottom: 28px;
  left: 17px;
  background: var(--link-blue);
  padding: 11px 7px;
  border-radius: 10px;
  border: 3px solid var(--link-blue-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 111;
}

.react-box span {
  cursor: pointer;
  font-size: 18px;
}

.hidden {
  display: none;
}

.reaction-list {
  margin-top: 5px;
}

.reacts-view span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  filter: contrast(90%);
  font-size: 0.75em;
  padding: 3px 11px;
  margin-right: 5px;
  border-radius: 20px;
  background-color: #797b7f21;
}

.reacts-view span.mine {
  filter: contrast(100%);
  box-shadow: 0 0 8px 2px inset rgba(96, 17, 116, 0.934);
  cursor: pointer;
}

.reacts-view span.mine:hover {
  transform: scale(1.1);
}

.ts{
  color:#7c6ee6;
  cursor:pointer;
  font-weight:bold;
  text-decoration: underline;
}
.ts:hover{
  text-decoration:underline;
}

.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 109, 253, 0.13);
  color: var(--link-blue);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.share:hover {
  background: var(--link-blue);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(13, 109, 253, 0.53);
}

.share:active {
  transform: scale(0.95);
}

.share.copied {
  background: var(--fab-hover);
  color: #fff;
}

.del-top {
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  margin-bottom: 3px;
}

.del {
  padding: 2px 25px;
}

footer {
  margin-top: 25px;
  margin-bottom: 25px;
  width: 100%;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .react-toggle {
    display: flex;
    font-size: 30px;
  }
}
