@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/YekanBakhFaNum-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/YekanBakhFaNum-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/YekanBakhFaNum-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.mvp-player {
  --mvp-accent: #d6b36a;
  --mvp-ratio: 16 / 9;
  --mvp-radius: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: #fff;
  font-family: "Yekan Bakh FaNum", Tahoma, Arial, sans-serif;
  outline: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.mvp-stage {
  position: relative;
  aspect-ratio: var(--mvp-ratio);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--mvp-radius);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .055), transparent 48%),
    #030504;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .42),
    0 1px 0 rgba(255, 255, 255, .08) inset;
  isolation: isolate;
}

.mvp-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset;
  pointer-events: none;
}

.mvp-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, .86) 100%);
  opacity: .78;
  transition: opacity .3s ease;
}

.mvp-player.is-playing:not(.show-controls) .mvp-stage::after {
  opacity: 0;
}

.mvp-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020303;
}

.mvp-big-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(68px, 10vw, 88px);
  height: clamp(68px, 10vw, 88px);
  padding: 0;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #17140d;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff3cd 0%, var(--mvp-accent) 62%, color-mix(in srgb, var(--mvp-accent) 74%, #4f3d18) 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .48),
    0 0 0 7px rgba(255, 255, 255, .07),
    0 0 40px color-mix(in srgb, var(--mvp-accent) 22%, transparent);
  cursor: pointer;
  transition: transform .24s ease, opacity .24s ease, box-shadow .24s ease;
}

.mvp-big-play:hover,
.mvp-big-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.055);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, .52),
    0 0 0 10px rgba(255, 255, 255, .075),
    0 0 48px color-mix(in srgb, var(--mvp-accent) 28%, transparent);
  outline: none;
}

.mvp-big-play svg {
  width: 34%;
  height: 34%;
  margin-left: 4px;
  fill: currentColor;
}

.mvp-player.is-playing .mvp-big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.84);
}

.mvp-pulse {
  position: absolute;
  inset: -2px;
  border: 1px solid color-mix(in srgb, var(--mvp-accent) 75%, #fff);
  border-radius: inherit;
  animation: mvp-pulse 2.35s ease-out infinite;
}

@keyframes mvp-pulse {
  0% { opacity: .72; transform: scale(1); }
  72%, 100% { opacity: 0; transform: scale(1.42); }
}

.mvp-controls {
  position: absolute;
  z-index: 5;
  right: clamp(8px, 2.2vw, 18px);
  bottom: clamp(8px, 2.2vw, 18px);
  left: clamp(8px, 2.2vw, 18px);
  display: flex;
  min-height: 76px;
  padding: 10px 12px 9px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(25, 27, 27, .7), rgba(7, 9, 9, .84)),
    rgba(8, 10, 10, .76);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .32),
    0 1px 0 rgba(255, 255, 255, .07) inset;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transition: opacity .25s ease, transform .25s ease;
}

.mvp-player.is-playing:not(.show-controls) .mvp-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.mvp-progress-row {
  display: flex;
  width: 100%;
  min-height: 15px;
  padding-inline: 5px;
  align-items: center;
}

.mvp-control-row,
.mvp-control-group {
  display: flex;
  align-items: center;
}

.mvp-control-row {
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
}

.mvp-control-group {
  min-width: 0;
  gap: 5px;
}

.mvp-control-group-secondary {
  justify-content: flex-end;
}

.mvp-control {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 9px;
  place-items: center;
  color: rgba(255, 255, 255, .88);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.mvp-toggle {
  color: #17140d;
  border-color: color-mix(in srgb, var(--mvp-accent) 80%, #fff);
  border-radius: 50%;
  background: var(--mvp-accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--mvp-accent) 18%, transparent);
}

.mvp-control:not(.mvp-toggle):hover,
.mvp-control:not(.mvp-toggle):focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .08);
  outline: none;
  transform: translateY(-1px);
}

.mvp-toggle:hover,
.mvp-toggle:focus-visible {
  color: #17140d;
  background: color-mix(in srgb, var(--mvp-accent) 88%, #fff);
  outline: none;
  transform: scale(1.045);
}

.mvp-control svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mvp-icon-pause,
.mvp-icon-muted {
  display: none;
}

.mvp-player.is-playing .mvp-icon-play,
.mvp-player.is-muted .mvp-icon-volume {
  display: none;
}

.mvp-player.is-playing .mvp-icon-pause,
.mvp-player.is-muted .mvp-icon-muted {
  display: inline-flex;
}

.mvp-time {
  display: flex;
  flex: 0 0 auto;
  min-width: 88px;
  padding-inline: 5px;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .72);
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mvp-current {
  color: #fff;
}

.mvp-time-separator {
  color: rgba(255, 255, 255, .32);
}

.mvp-progress,
.mvp-volume {
  height: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(to right, var(--mvp-accent) 0 var(--mvp-fill, 0%), rgba(255, 255, 255, .2) var(--mvp-fill, 0%) 100%);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mvp-progress {
  width: 100%;
  flex: 1 1 auto;
}

.mvp-volume {
  flex: 0 1 66px;
  width: 66px;
  height: 4px;
  --mvp-fill: 100%;
}

.mvp-progress::-webkit-slider-thumb,
.mvp-volume::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mvp-accent);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .42);
  appearance: none;
  -webkit-appearance: none;
  transition: transform .16s ease;
}

.mvp-progress:hover::-webkit-slider-thumb,
.mvp-volume:hover::-webkit-slider-thumb {
  transform: scale(1.13);
}

.mvp-progress::-moz-range-thumb,
.mvp-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mvp-accent);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .42);
}

.mvp-speed {
  height: 34px;
  min-width: 48px;
  padding: 0 7px;
  color: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, .045);
  font: 600 11px/1 sans-serif;
  cursor: pointer;
}

.mvp-speed:hover,
.mvp-speed:focus-visible {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .075);
}

.mvp-speed option {
  color: #111;
}

.mvp-loader {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: none;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: var(--mvp-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mvp-spin .8s linear infinite;
  pointer-events: none;
}

.mvp-player.is-loading .mvp-loader {
  display: block;
}

@keyframes mvp-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mvp-player:focus-visible .mvp-stage {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--mvp-accent) 56%, transparent),
    0 28px 80px rgba(0, 0, 0, .42);
}

.mvp-admin-notice {
  padding: 12px 16px;
  border-right: 4px solid #d63638;
  background: #fff;
  color: #1d2327;
}

.mvp-player:fullscreen,
.mvp-player:-webkit-full-screen {
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: 0;
  place-items: center;
  background: #000;
}

.mvp-player:fullscreen .mvp-stage,
.mvp-player:-webkit-full-screen .mvp-stage {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mvp-controls {
    background: rgba(8, 10, 10, .94);
  }
}

@media (max-width: 640px) {
  .mvp-stage {
    border-radius: min(var(--mvp-radius), 20px);
  }

  .mvp-big-play {
    width: 70px;
    height: 70px;
  }

  .mvp-controls {
    right: 6px;
    bottom: 6px;
    left: 6px;
    min-height: 70px;
    padding: 8px 8px 7px;
    gap: 3px;
    border-radius: 15px;
  }

  .mvp-progress-row {
    min-height: 13px;
    padding-inline: 4px;
  }

  .mvp-control-row {
    gap: 5px;
  }

  .mvp-control-group {
    gap: 2px;
  }

  .mvp-control {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .mvp-time {
    min-width: 82px;
    padding-inline: 4px;
    font-size: 10px;
  }

  .mvp-volume,
  .mvp-speed {
    display: none;
  }
}

@media (max-width: 360px) {
  .mvp-controls {
    padding-inline: 6px;
  }

  .mvp-control {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .mvp-time {
    min-width: 76px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mvp-player *,
  .mvp-player *::before,
  .mvp-player *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
