.maml-library-wrap{
  --maml-orange:#FF8300;
  --maml-dark:#17141D;
  --maml-text:#17141D;
  --maml-border:rgba(23,20,29,.08);
  max-width:1600px;
  margin:0 auto;
  padding:36px 18px 54px;
  color:var(--maml-text);
  font-family:Estedad,Tahoma,Arial,sans-serif;
}
.maml-hero{
  text-align:center;
  margin-bottom:26px;
  padding:30px 20px;
  background:linear-gradient(180deg,rgba(255,131,0,.07),rgba(255,131,0,.025));
  border:1px solid rgba(255,131,0,.15);
  border-radius:24px;
  box-shadow:0 18px 45px rgba(23,20,29,.05);
}
.maml-hero h1{
  margin:0 0 12px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.25;
}
.maml-hero p{
  max-width:900px;
  margin:0 auto;
  color:#55525d;
  font-size:16px;
  line-height:1.95;
}
.maml-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.maml-card{
  background:#fff;
  border:1px solid var(--maml-border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 14px 38px rgba(23,20,29,.07);
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.maml-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 44px rgba(23,20,29,.11);
  border-color:rgba(255,131,0,.26);
}
.maml-video-wrap{
  background:#0e0d12;
  aspect-ratio:16/9;
  overflow:hidden;
  position:relative;
}
.maml-video,.maml-video-placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.maml-video{
  opacity:0;
  transition:opacity .35s ease;
}
.maml-video.is-ready{
  opacity:1;
}
.maml-video-placeholder{
  color:#bbb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.maml-video-loading{
  position:absolute;
  inset:0;
  background:rgba(14,13,18,.4);
  pointer-events:none;
  opacity:0;
  transition:opacity .2s;
}
.maml-video-wrap.is-loading .maml-video-loading{
  opacity:1;
}
.maml-card-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.maml-titles{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.maml-title-fa{
  margin:0;
  font-size:15px;
  line-height:1.5;
  color:var(--maml-orange);
  text-align:right;
  direction:rtl;
  font-weight:700;
}
.maml-title-en{
  margin:0;
  font-size:20px;
  line-height:1.45;
  color:var(--maml-dark);
  text-align:left;
  direction:ltr;
  font-weight:700;
}
.maml-desc{
  margin:0;
  color:#666;
  font-size:14px;
  line-height:1.9;
  text-align:left;
  direction:ltr;
}
.maml-prompt-label{
  font-size:12px;
  font-weight:700;
  color:#7b7984;
  text-align:left;
  direction:ltr;
  margin-top:2px;
}
.maml-prompt-preview{
  margin:0;
  background:#17141D;
  color:#F4F4F6;
  border-radius:16px;
  padding:16px;
  line-height:1.9;
  font-size:13px;
  direction:ltr;
  text-align:left;
  white-space:pre-wrap;
  word-break:break-word;
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:168px;
  flex:1 1 auto;
  position:relative;
}
.maml-prompt-preview:after{
  content:'...';
  position:absolute;
  left:16px;
  bottom:12px;
  background:#17141D;
  padding-inline-start:8px;
}
.maml-actions{margin-top:auto;display:block;flex-shrink:0}
.maml-copy-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border:0;
  border-radius:14px;
  font-family:inherit;
  font-weight:800;
  font-size:15px;
  text-decoration:none !important;
  cursor:pointer;
  transition:all .2s ease;
  background:var(--maml-orange);
  color:#fff !important;
  box-shadow:0 10px 24px rgba(255,131,0,.18);
}
.maml-copy-btn:hover{filter:brightness(1.05);transform:translateY(-1px)}
.maml-copy-btn.is-copied{
  background:#0a7a2f;
  box-shadow:0 10px 24px rgba(10,122,47,.18);
}
.maml-empty{
  grid-column:1/-1;
  text-align:center;
  background:#fff;
  padding:28px;
  border-radius:18px;
  border:1px solid rgba(23,20,29,.08);
}
@media (max-width:1150px){
  .maml-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .maml-library-wrap{padding:18px 12px 34px}
  .maml-grid{grid-template-columns:1fr}
}
