/* Ahangi v16 — six across, readable lyrics, accurate captions, compact related music. */
/* Fill every available column; four curated items become four large covers, six become six. */
html body.a5-body .a6-featured .a6-feature-row{
 display:grid!important;grid-template-columns:repeat(var(--a16-feature-count,6),minmax(0,1fr))!important;
 gap:clamp(8px,1vw,14px)!important;align-items:stretch!important;justify-content:stretch!important;
 width:100%;overflow:visible!important;
}
html body.a5-body .a6-featured .a6-feature-row>.a6-feature-tile{
 display:block;min-width:0!important;width:100%!important;max-width:none!important;
 flex:none!important;margin:0!important;
}
html body.a5-body .a6-featured .a6-feature-tile .a6-feature-image{width:100%;aspect-ratio:3/4;}
/* The title and singer live inside their own cover, never underneath the next section. */
html body.a5-body .a14-artist-latest{display:block;min-width:0;overflow:hidden;}
html body.a5-body .a14-artist-latest .a14-artist-cover-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start;
}
html body.a5-body .a14-artist-latest .a14-artist-cover{
 display:block;position:relative;aspect-ratio:4/5;min-width:0;width:100%;height:auto;
 overflow:hidden;border-radius:11px;background:#e7edf0;isolation:isolate;
}
html body.a5-body .a14-artist-latest .a14-artist-cover>img{
 position:absolute!important;inset:0;width:100%!important;height:100%!important;
 object-fit:cover!important;aspect-ratio:auto!important;border-radius:0!important;
}
html body.a5-body .a14-artist-latest .a16-artist-cover-caption{
 position:absolute;right:0;left:0;bottom:0;z-index:2;min-width:0;
 display:flex;flex-direction:column;align-items:center;gap:0;
 background:linear-gradient(0deg,rgba(18,30,41,.92),rgba(18,30,41,.62) 68%,transparent);
 padding:26px 7px 9px;opacity:0;transition:opacity .2s ease;pointer-events:none;
}
html body.a5-body .a14-artist-latest .a16-artist-cover-caption strong,
html body.a5-body .a14-artist-latest .a16-artist-cover-caption small{
 display:block!important;max-width:100%;min-width:0;margin:0!important;padding:0!important;
 text-align:center!important;color:#fff!important;font-size:11px!important;line-height:1.65!important;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html body.a5-body .a14-artist-latest .a16-artist-cover-caption small{font-size:9.5px!important;color:#dce8ef!important;}
html body.a5-body .a14-artist-latest .a14-artist-cover:is(:hover,:focus-visible) .a16-artist-cover-caption{opacity:1;}
/* One clean English credit; pathological legacy values cannot stretch the song hero. */
html body.a5-body :is(.a5-english,.a6-track-en,.ag-track-en){max-width:100%;overflow-wrap:break-word;word-break:normal;unicode-bidi:plaintext;}
html body.a5-body .a5-song-overview .a5-english{font-size:11px!important;line-height:1.75!important;}
/* Real \n verse boundaries remain untouched, with readable lines and no forced horizontal layout. */
html body.a5-body .a5-lyrics .mz-lyrics{width:100%;max-width:100%;min-width:0;overflow:hidden;direction:rtl;text-align:center;}
html body.a5-body .a5-lyrics .mz-lyrics pre{
 display:block!important;width:100%;max-width:100%;white-space:pre-wrap!important;
 overflow-wrap:break-word!important;word-break:normal!important;direction:rtl!important;
 unicode-bidi:plaintext;text-align:center!important;line-height:2.15!important;
 font-family:Vazirmatn,Tahoma,Arial,sans-serif!important;font-size:13px!important;
 margin:0!important;padding:0 4px!important;
}
/* Six small, square similar works in one desktop row instead of two huge rows. */
html body.a5-body .a15-related-panel .a15-similar-grid{
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 gap:10px!important;align-items:stretch!important;margin-top:13px!important;
}
html body.a5-body .a15-related-panel .a15-similar-card{
 display:flex!important;flex-direction:column;gap:5px!important;
 min-width:0!important;max-width:none!important;padding:6px!important;
 border-radius:11px;background:#f9fbfc;
}
html body.a5-body .a15-related-panel .a15-similar-cover{
 width:100%!important;aspect-ratio:1/1!important;height:auto!important;min-height:0!important;
 border-radius:8px!important;overflow:hidden!important;
}
html body.a5-body .a15-related-panel .a15-similar-cover>img{width:100%!important;height:100%!important;object-fit:cover!important;}
html body.a5-body .a15-related-panel .a15-similar-card strong{
 font-size:10.5px!important;line-height:1.7!important;text-align:center!important;
 -webkit-line-clamp:1!important;white-space:nowrap!important;text-overflow:ellipsis!important;
}
html body.a5-body .a15-related-panel .a15-similar-card small{
 font-size:9.5px!important;line-height:1.6!important;text-align:center!important;
 overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
/* Human readable tags: regular spaces, not underscore/dash-separated pseudo-hashtags. */
html body.a5-body .a14-song-tags .a14-hashtag{text-decoration:none;white-space:normal;word-break:normal;overflow-wrap:break-word;}
html body.a5-body .a14-song-tags a.a14-hashtag:hover{background:#dceef7;color:#176c91;border-color:#b6d7e7;}
@media(max-width:980px){
 html body.a5-body .a6-featured .a6-feature-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 html body.a5-body .a15-related-panel .a15-similar-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 html body.a5-body .a6-featured .a6-feature-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
 html body.a5-body .a14-artist-latest .a14-artist-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 html body.a5-body .a15-related-panel .a15-similar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 html body.a5-body .a14-artist-latest .a16-artist-cover-caption{opacity:1;padding-bottom:7px;}
 html body.a5-body .a5-lyrics .mz-lyrics pre{font-size:12.5px!important;line-height:2.05!important;}
}
@media(hover:none){html body.a5-body .a14-artist-latest .a16-artist-cover-caption{opacity:1;}}
@media(prefers-reduced-motion:reduce){html body.a5-body .a14-artist-latest .a16-artist-cover-caption{transition:none;}}
