/* IRF v407 — One clean line: ♥ likes, 💬 comments, 👁 views, ⬇ download. */

/* Remove duplicate/older card overlays and the rejected boxed v406 footer. */
.irf-v406-card-actions,
[data-video-card] .irf-v394-display-view-badge,
.irf-v398-card .irf-v394-display-view-badge,
.fajr260-card .irf-v394-display-view-badge,
.ifx289-small-card .irf-v394-display-view-badge,
.irf-v270-home-interview-card .irf-v394-display-view-badge,
[data-video-card] .irf-v395-download-card,
.irf-v398-card .irf-v395-download-card,
.fajr260-card .irf-v395-download-card,
.ifx289-small-card .irf-v395-download-card,
.irf-v270-home-interview-card .irf-v395-download-card{
  display:none!important;
}

.irf-v407-card-host{
  overflow:hidden;
}

.irf-v407-card-line{
  width:100%;
  min-height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:nowrap;
  padding:7px 8px 8px;
  margin-top:auto;
  border-top:1px solid rgba(203,163,52,.2);
  background:#0b1017;
  color:rgba(255,255,255,.78);
  direction:rtl;
  line-height:1;
}

.irf-v407-card-line[hidden]{
  display:none!important;
}

.irf-v407-card-line.is-loading{
  opacity:.62;
}

.irf-v407-inline-action{
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:2px 0;
  border:0;
  background:none;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
  font:inherit;
  font-size:9px;
  cursor:default;
  transition:color .18s ease,transform .18s ease;
}

button.irf-v407-inline-action,
a.irf-v407-inline-action{
  cursor:pointer;
}

button.irf-v407-inline-action:hover,
a.irf-v407-inline-action:hover{
  color:#f1cf63;
}

button.irf-v407-inline-action:active,
a.irf-v407-inline-action:active{
  transform:scale(.96);
}

.irf-v407-inline-action:focus-visible{
  outline:1px solid #d4ae42;
  outline-offset:3px;
  border-radius:4px;
}

.irf-v407-inline-action:disabled{
  opacity:.52;
  cursor:wait;
}

.irf-v407-symbol{
  font-size:11px;
  line-height:1;
}

.irf-v407-number{
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.irf-v407-inline-action.is-like.is-active,
.irf-v407-inline-action.is-like.is-active .irf-v407-number{
  color:#ef6070;
}

.irf-v407-inline-action.is-download{
  color:#e3c15b;
}

.irf-v407-inline-action.is-disabled{
  pointer-events:none;
  opacity:.4;
}

.irf-v398-card.irf-v407-card-host{
  display:flex;
  flex-direction:column;
  height:auto;
}

.irf-v398-card.irf-v407-card-host .irf-v398-meta{
  flex:0 0 auto;
}

/* Comments window stays separate from the card, keeping cards uncluttered. */
html.irf-v407-comments-open,
html.irf-v407-comments-open body{
  overflow:hidden!important;
}

.irf-v407-comments-modal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  direction:rtl;
}

.irf-v407-comments-modal[hidden]{
  display:none!important;
}

.irf-v407-comments-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(5px);
}

.irf-v407-comments-dialog{
  position:relative;
  width:min(620px,100%);
  max-height:min(820px,92vh);
  display:grid;
  grid-template-rows:auto minmax(120px,1fr) auto;
  overflow:hidden;
  border:1px solid rgba(203,163,52,.52);
  border-radius:20px;
  background:#111722;
  color:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.55);
}

.irf-v407-comments-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 17px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#0a0f17;
}

.irf-v407-comments-header small{
  display:block;
  margin-bottom:5px;
  color:#d8b84f;
  font-size:9px;
  font-weight:900;
}

.irf-v407-comments-header h3{
  margin:0;
  font-size:15px;
  line-height:1.7;
}

.irf-v407-comments-header button{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  background:rgba(255,255,255,.05);
  color:#fff;
  font:inherit;
  font-size:23px;
  cursor:pointer;
}

.irf-v407-comments-list{
  overflow:auto;
  padding:13px 15px;
}

.irf-v407-comment{
  padding:11px 12px;
  margin-bottom:8px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}

.irf-v407-comment > div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}

.irf-v407-comment strong{
  color:#f0ce64;
  font-size:10px;
}

.irf-v407-comment time{
  color:rgba(255,255,255,.4);
  font-size:8px;
}

.irf-v407-comment p{
  margin:0;
  color:rgba(255,255,255,.8);
  font-size:10px;
  line-height:2;
  overflow-wrap:anywhere;
}

.irf-v407-comment.is-pinned{
  border-color:rgba(203,163,52,.42);
  background:rgba(203,163,52,.07);
}

.irf-v407-comment.is-reply{
  margin-right:24px;
  border-right:3px solid rgba(203,163,52,.68);
}

.irf-v407-admin-badge,
.irf-v407-pin-badge{
  display:inline-flex;
  align-items:center;
  margin-right:5px;
  padding:2px 5px;
  border-radius:999px;
  background:rgba(203,163,52,.15);
  color:#f0ce64;
  font-size:7px;
  font-weight:900;
  vertical-align:middle;
}

.irf-v407-pin-badge{
  margin-right:auto;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.55);
}

.irf-v407-comments-empty{
  padding:32px 14px;
  text-align:center;
  color:rgba(255,255,255,.52);
  font-size:10px;
}

.irf-v407-comments-form{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:9px;
  padding:13px 15px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#0a0f17;
}

.irf-v407-comments-form label span{
  display:block;
  margin-bottom:5px;
  color:rgba(255,255,255,.58);
  font-size:8px;
  font-weight:900;
}

.irf-v407-comments-form input,
.irf-v407-comments-form textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:#151d29;
  color:#fff;
  font:inherit;
  font-size:10px;
  outline:0;
}

.irf-v407-comments-form input{
  height:40px;
  padding:0 9px;
}

.irf-v407-comments-form textarea{
  min-height:88px;
  resize:vertical;
  padding:8px 9px;
  line-height:1.8;
}

.irf-v407-comments-form input:focus,
.irf-v407-comments-form textarea:focus{
  border-color:#cba334;
  box-shadow:0 0 0 3px rgba(203,163,52,.12);
}

.irf-v407-comments-bottom{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.irf-v407-comments-bottom button{
  min-width:105px;
  min-height:38px;
  border:0;
  border-radius:9px;
  background:#cba334;
  color:#171108;
  font:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.irf-v407-comments-bottom button:disabled{
  opacity:.55;
  cursor:wait;
}

.irf-v407-comments-message{
  color:#8ee3ad;
  font-size:9px;
  line-height:1.8;
}

.irf-v407-comments-message.is-error{
  color:#ff9e9e;
}

.irf-v407-honeypot{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

.irf-v407-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:2147483200;
  max-width:min(360px,calc(100vw - 36px));
  padding:10px 13px;
  border-radius:10px;
  background:#166534;
  color:#fff;
  font-family:Tahoma,Arial,sans-serif;
  font-size:10px;
  line-height:1.8;
  box-shadow:0 15px 40px rgba(0,0,0,.35);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}

.irf-v407-toast.is-error{
  background:#991b1b;
}

.irf-v407-toast.is-visible{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:680px){
  .irf-v407-card-line{
    min-height:33px;
    gap:8px;
    padding:6px 5px 7px;
  }

  .irf-v407-inline-action{
    gap:3px;
    font-size:8px;
  }

  .irf-v407-symbol{
    font-size:10px;
  }

  .irf-v407-number{
    font-size:8px;
  }

  .irf-v407-comments-modal{
    padding:7px;
    align-items:flex-end;
  }

  .irf-v407-comments-dialog{
    width:100%;
    max-height:92vh;
    border-radius:18px 18px 7px 7px;
  }

  .irf-v407-comments-form{
    grid-template-columns:1fr;
  }

  .irf-v407-comments-bottom{
    grid-column:auto;
    align-items:stretch;
    flex-direction:column;
  }

  .irf-v407-comments-bottom button{
    width:100%;
  }
}

@media(max-width:390px){
  .irf-v407-card-line{
    gap:6px;
  }

  .irf-v407-inline-action{
    font-size:7px;
  }

  .irf-v407-symbol{
    font-size:9px;
  }

  .irf-v407-number{
    font-size:7px;
  }
}

@media(max-width:520px){
  .irf-v407-comment.is-reply{
    margin-right:12px;
  }
}
