/* CategoryReels — مشابه CategoryReels.tsx */

.ic-reels-cat {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.ic-reels-cat[hidden] {
  display: none !important;
}

.ic-reels-cat.is-open {
  pointer-events: auto;
}

.ic-reels-cat__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ic-reels-cat.is-open .ic-reels-cat__backdrop {
  opacity: 1;
}

.ic-reels-cat__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #000;
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.ic-reels-cat.is-open .ic-reels-cat__panel {
  transform: translateY(0);
}

.ic-reels-cat__head {
  position: relative;
  flex: 0 0 auto;
  margin-top: 28px;
  margin-bottom: 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

.ic-reels-cat__close {
  position: absolute;
  top: -35px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ic-reels-cat__close img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ic-reels-cat__title {
  margin: 0;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

.ic-reels-cat__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.ic-reels-cat__item {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 102px;
  min-height: 102px;
  margin: 0 0 14px;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: #151515;
  color: #fff;
  text-align: right;
  cursor: pointer;
  font-family: "IRANYekan", Tahoma, sans-serif;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(24px);
  transition: background 0.18s ease;
}

.ic-reels-cat.is-open .ic-reels-cat__item {
  animation: ic-reels-cat-item-in 0.42s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  animation-delay: calc(100ms * var(--ic-reels-cat-i, 0));
}

.ic-reels-cat__item.is-selected {
  background: #081f52;
}

.ic-reels-cat__item:active {
  transform: scale(0.985);
}

.ic-reels-cat__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ic-reels-cat__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.ic-reels-cat__name {
  display: block;
  width: 100%;
  margin: 0 0 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-align: right;
}

.ic-reels-cat__desc {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 16px;
  color: #919aaf;
  text-align: right;
}

@keyframes ic-reels-cat-item-in {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
