.rm-aparat-fix {
  box-sizing: border-box;
}
.rm-aparat-fix *,
.rm-aparat-fix *::before,
.rm-aparat-fix *::after {
  box-sizing: border-box;
}
.rm-aparat-fix.rm-aparat-card {
  position: relative;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.rm-aparat-fix.rm-aparat-card:hover,
.rm-aparat-fix.rm-aparat-card:focus-visible {
  border-color: rgba(0,0,0,.16);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  outline: none;
}
.rm-aparat-media,
.rm-aparat-poster {
  position: relative;
}
.rm-aparat-fix .rm-aparat-poster {
  width: 100%;
  height: auto;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #111;
}
.rm-aparat-fix .rm-aparat-poster img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.rm-aparat-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.68);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  pointer-events: none;
}
.rm-aparat-play span {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}
.rm-aparat-fix .rm-aparat-duration {
  z-index: 4;
  right: auto;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}
.rm-aparat-fix .rm-aparat-detail {
  padding: 12px 16px 14px;
  margin: 0;
  text-align: right;
  direction: rtl;
}
.rm-aparat-fix .rm-aparat-detail p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: inherit;
}
.rm-aparat-inline {
  width: 100%;
}
.rm-aparat-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}
.rm-aparat-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rm-aparat-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rm-aparat-modal.is-open {
  display: flex;
}
.rm-aparat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(3px);
}
.rm-aparat-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.rm-aparat-close {
  position: absolute;
  z-index: 5;
  top: -16px;
  left: -16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
body.rm-aparat-modal-open {
  overflow: hidden !important;
}
.rm-aparat-error {
  padding: 12px 14px;
  border: 1px solid #efb4b4;
  border-radius: 8px;
  direction: rtl;
  text-align: right;
  background: #fff6f6;
}
@media (max-width: 767px) {
  .rm-aparat-modal {
    padding: 12px;
  }
  .rm-aparat-modal-dialog {
    width: 100%;
  }
  .rm-aparat-close {
    top: 8px;
    left: 8px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,.68);
    color: #fff;
  }
  .rm-aparat-play {
    width: 54px;
    height: 54px;
  }
}
