
/* Tehran Song 2026 — front page: music-app shelves (ported from design/home-v2). */
.hv{--gap:36px;color:var(--ts-text);font-family:var(--ts-font)}
.hv svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hv a{color:inherit;text-decoration:none}
.hv button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.hv img{display:block;max-width:100%}
.hv :focus-visible{outline:2px solid var(--ts-accent);outline-offset:3px;border-radius:10px}
.hv-wrap{width:min(1240px,calc(100% - 32px));margin-inline:auto}
.hv-shelf{margin-top:var(--gap)}
.hv-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.hv-head h2{margin:0;font-size:21px;line-height:1.4;font-weight:700}
.hv-head p{margin:2px 0 0;font-size:13px;color:var(--ts-muted)}
.hv-head__side{display:flex;align-items:center;gap:8px}
.hv-more{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:10px;font-size:13px;color:var(--ts-muted);transition:background .2s,color .2s}
.hv-more:hover{background:var(--ts-surface);color:var(--ts-accent)}
.hv-more svg{width:16px;height:16px}
.hv-arrows{display:flex;gap:4px}
.hv-arrows button{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--ts-surface);color:var(--ts-muted);transition:background .2s,color .2s,opacity .2s}
.hv-arrows button:hover{color:var(--ts-accent)}
.hv-arrows button:disabled{opacity:.35;cursor:default}
.hv-arrows svg{width:16px;height:16px}
.hv-rail{display:grid;grid-auto-flow:column;grid-auto-columns:176px;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:2px 2px 6px}
.hv-rail::-webkit-scrollbar{display:none}
.hv-seg{display:inline-flex;padding:3px;border-radius:12px;background:var(--ts-surface)}
.hv-seg button{height:32px;padding:0 14px;border-radius:9px;font-size:13px;color:var(--ts-muted);transition:background .2s,color .2s}
.hv-seg button[aria-selected=true],.hv-seg button[aria-pressed=true]{background:var(--ts-accent);color:var(--ts-on-accent);font-weight:700}
.hv-seg--soft{background:var(--ts-surface2)}
.hv-seg--soft button[aria-selected=true],.hv-seg--soft button[aria-pressed=true]{background:var(--ts-surface);color:var(--ts-text)}
.hv [hidden]{display:none!important}

/* intro */
.hv-intro{padding:30px 0 4px}
.hv-intro h1{margin:0;font-size:clamp(24px,2.8vw,32px);line-height:1.35;font-weight:700;letter-spacing:-.01em}
.hv-fresh{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-size:14px;color:var(--ts-muted)}
.hv-fresh i{width:8px;height:8px;border-radius:50%;background:var(--ts-accent);box-shadow:0 0 0 0 var(--ts-accent);animation:hv-ping 2.2s ease-out infinite}
@keyframes hv-ping{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--ts-accent) 60%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
.hv-fresh b{color:var(--ts-text)}

/* stories */
.hv-stories{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;padding:18px 2px 6px}
.hv-stories::-webkit-scrollbar{display:none}
.hv-story{flex:none;width:84px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
.hv-story__ring{position:relative;width:76px;height:76px;border-radius:50%;padding:3px;background:var(--ts-line);transition:transform .2s var(--ts-ease)}
.hv-story.is-new .hv-story__ring{background:conic-gradient(from 200deg,var(--ts-accent),var(--ts-gold),var(--ts-accent))}
.hv-story__ring img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid var(--ts-bg);background:var(--ts-surface2)}
.hv-story:hover .hv-story__ring{transform:scale(1.05)}
.hv-story b{font-size:12px;font-weight:700;line-height:1.4;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-story small{margin-top:-6px;font-size:11px;color:var(--ts-accent)}
.hv-story:not(.is-new) small{color:var(--ts-muted)}
.hv-story.is-pin .hv-story__ring{background:var(--ts-gold)}
.hv-story.is-pin small{color:var(--ts-gold)}

/* chips */
.hv-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:12px 2px 2px}
.hv-chips::-webkit-scrollbar{display:none}
.hv-chips a{flex:none;height:36px;display:inline-flex;align-items:center;padding:0 15px;border-radius:999px;background:var(--ts-surface);font-size:13px;box-shadow:inset 0 0 0 1px var(--ts-line);transition:background .2s,color .2s}
.hv-chips a:hover{background:var(--ts-accent-soft);color:var(--ts-accent)}

/* cards */
.hv-card{scroll-snap-align:start;min-width:0}
.hv-card__art{position:relative;display:block;aspect-ratio:1;border-radius:18px;overflow:hidden;background:var(--ts-surface2)}
.hv-card__art img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ts-ease)}
.hv-card:hover .hv-card__art img{transform:scale(1.05)}
.hv .hv-card__pp{position:absolute;inset-inline-start:10px;bottom:10px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--ts-accent);color:var(--ts-on-accent);box-shadow:0 10px 24px -8px rgba(0,0,0,.5);opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s var(--ts-ease)}
.hv .hv-card:hover .hv-card__pp,.hv .hv-card__pp:focus-visible,.hv .hv-card__pp.is-on{opacity:1;transform:none}
.hv .hv-card__pp svg{width:18px;height:18px;fill:currentColor;stroke:none}
.hv-card b{display:block;margin-top:10px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-card small{display:block;font-size:12px;color:var(--ts-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-badge{position:absolute;inset-inline-end:10px;top:10px;height:24px;display:inline-flex;align-items:center;gap:4px;padding:0 9px;border-radius:999px;background:rgba(10,20,24,.72);color:#fff;font-size:11px;font-weight:700;backdrop-filter:blur(6px);direction:ltr}
.hv-badge--gold{background:var(--ts-gold);color:#2A1E02}

/* mood radio */
.hv-moods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.hv-mood{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:168px;padding:16px;border-radius:22px;color:#fff;text-align:start;transition:transform .25s var(--ts-ease),box-shadow .25s}
.hv-mood:hover{transform:translateY(-3px);box-shadow:0 18px 40px -18px rgba(0,0,0,.5)}
.hv-mood__mosaic{position:absolute;inset:0;z-index:-2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.hv-mood__mosaic img{width:100%;height:100%;object-fit:cover}
.hv-mood::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(200deg,color-mix(in srgb,var(--m) 35%,transparent),color-mix(in srgb,var(--m) 92%,#000) 78%)}
.hv-mood small{font-size:12px;opacity:.85}
.hv-mood b{font-size:18px;line-height:1.4}
.hv-mood__pp{position:absolute;inset-inline-end:14px;top:14px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.95);color:#101B22;transition:transform .2s}
.hv-mood:hover .hv-mood__pp{transform:scale(1.08)}
.hv-mood__pp svg{width:16px;height:16px;fill:currentColor;stroke:none}
.hv-mood.is-playing .hv-mood__pp{background:var(--ts-gold)}
.hv-eq{display:none;align-items:flex-end;gap:2px;height:14px}
.hv-eq i{width:3px;background:currentColor;border-radius:2px;animation:hv-eq 1s ease-in-out infinite}
.hv-eq i:nth-child(2){animation-delay:.2s}.hv-eq i:nth-child(3){animation-delay:.4s}
@keyframes hv-eq{0%,100%{height:4px}50%{height:14px}}
.hv-mood.is-playing .hv-eq{display:inline-flex}

/* chart */
.hv-chart{padding:22px;border-radius:24px;background:var(--ts-surface)}
.hv-chart .hv-head{margin-bottom:16px;flex-wrap:wrap}
.hv-chart__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(var(--rows,4),auto);gap:4px 28px}
.hv-ch{display:flex;align-items:center;gap:12px;padding:8px;border-radius:14px;transition:background .2s;min-width:0}
.hv-ch:hover{background:var(--ts-surface2)}
.hv-ch__rank{flex:none;width:30px;text-align:center;font-size:20px;font-weight:700;color:var(--ts-text)}
.hv-ch:nth-child(-n+3) .hv-ch__rank{color:var(--ts-accent)}
.hv-ch__mv{flex:none;width:34px;height:22px;display:inline-flex;align-items:center;justify-content:center;gap:2px;border-radius:7px;font-size:11px;font-weight:700;direction:ltr}
.hv-ch__mv.up{background:var(--ts-accent-soft);color:var(--ts-accent)}
.hv-ch__mv.down{background:#FBE9E7;color:#B4423C}
.hv-ch__mv.same{color:var(--ts-muted)}
.hv-ch__mv.new{width:auto;padding:0 7px;background:var(--ts-gold-soft);color:var(--ts-gold-ink)}
html[data-theme=dark] .hv-ch__mv.down{background:#3A1E1C;color:#F08A82}
.hv-ch a{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
.hv-ch img{flex:none;width:50px;height:50px;border-radius:12px;object-fit:cover}
.hv-ch span{min-width:0;line-height:1.5}
.hv-ch b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-ch small{font-size:12px;color:var(--ts-muted)}
.hv-chart__note{margin:12px 4px 0;font-size:12px;color:var(--ts-muted)}

/* today: stacked rich cards, grouped by day, load more */
.hv-day{margin-top:22px}
.hv-day:first-child{margin-top:0}
.hv-day__h{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:15px;font-weight:700}
.hv-day__h small{font-size:12px;font-weight:400;color:var(--ts-muted)}
.hv-day__h::after{content:"";flex:1;height:1px;background:var(--ts-line)}
.hv-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hv-rel{position:relative;display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;padding:12px;border-radius:20px;background:var(--ts-surface);transition:box-shadow .25s,transform .25s var(--ts-ease);animation:hv-in .45s var(--ts-ease) both}
.hv-rel:hover{box-shadow:0 18px 40px -22px rgba(16,27,34,.35);transform:translateY(-2px)}
@keyframes hv-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hv-rel__art{position:relative;display:block;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--ts-surface2)}
.hv-rel__art img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ts-ease)}
.hv-rel:hover .hv-rel__art img{transform:scale(1.05)}
.hv-time{position:absolute;inset-inline-start:8px;top:8px;height:22px;display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;background:rgba(10,20,24,.72);color:#fff;font-size:11px;font-weight:700;direction:ltr;backdrop-filter:blur(6px)}
.hv-rel__body{min-width:0;display:flex;flex-direction:column;gap:4px}
.hv-rel__top{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ts-muted)}
.hv-kind{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--ts-accent-soft);color:var(--ts-accent-deep);font-size:11px;font-weight:700}
.hv-kind.is-album{background:var(--ts-gold-soft);color:var(--ts-gold-ink)}
.hv-kind.is-video{background:#EEE9FB;color:#5B4BB7}
html[data-theme=dark] .hv-kind.is-video{background:#241F3D;color:#B4A8F0}
.hv-rel h3{margin:2px 0 0;font-size:16px;line-height:1.5;font-weight:700}
.hv-rel h3 a:hover{color:var(--ts-accent)}
.hv-rel__artist{font-size:13px;font-weight:700;color:var(--ts-accent)}
.hv-rel__ex{margin:2px 0 0;font-size:12.5px;line-height:1.8;color:var(--ts-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hv-rel__foot{margin-top:auto;padding-top:8px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hv-stat{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px;border-radius:8px;background:var(--ts-surface2);font-size:12px;color:var(--ts-muted)}
.hv-stat svg{width:14px;height:14px}
.hv-rel__acts{margin-inline-start:auto;display:flex;gap:6px}
.hv .hv-rel__pp{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--ts-accent-soft);color:var(--ts-accent);transition:background .2s,color .2s}
.hv .hv-rel__pp:hover,.hv .hv-rel__pp.is-on{background:var(--ts-accent);color:var(--ts-on-accent)}
.hv .hv-rel__pp svg{width:14px;height:14px;fill:currentColor;stroke:none}
.hv-rel__dl{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:11px;background:var(--ts-accent);color:var(--ts-on-accent)!important;font-size:13px;font-weight:700;transition:background .2s}
.hv-rel__dl:hover{background:var(--ts-accent-hover)}
.hv-rel__dl svg{width:15px;height:15px}
.hv-loadmore{display:flex;align-items:center;justify-content:center;gap:8px;width:min(360px,100%);height:50px;margin:22px auto 0;border-radius:16px;background:var(--ts-surface);color:var(--ts-text)!important;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 1px var(--ts-line);transition:background .2s,color .2s}
.hv-loadmore:hover{background:var(--ts-accent-soft);color:var(--ts-accent)!important;box-shadow:none}
.hv-loadmore svg{width:16px;height:16px;transform:rotate(-90deg)}
.hv-loadmore.is-busy svg{animation:hv-spin .8s linear infinite}
@keyframes hv-spin{to{transform:rotate(270deg)}}
.hv-pages{display:flex;justify-content:center;gap:6px;margin-top:12px;font-size:13px;color:var(--ts-muted)}
.hv-pages a{min-width:34px;height:34px;display:inline-grid;place-items:center;padding:0 10px;border-radius:10px;background:var(--ts-surface)}
.hv-pages a[aria-current]{background:var(--ts-accent);color:var(--ts-on-accent)}
@media (max-width:900px){.hv-feed{grid-template-columns:1fr}}
@media (max-width:520px){.hv-rel{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px}.hv-rel h3{font-size:14.5px}.hv-rel__ex{display:none}.hv-rel__dl span{display:none}.hv-rel__dl{width:36px;padding:0;justify-content:center}}

/* tabbed shelf */
.hv-tabbed .hv-head{flex-wrap:wrap}

/* listeners */
.hv-said{display:grid;grid-auto-flow:column;grid-auto-columns:280px;gap:14px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;padding:2px}
.hv-said::-webkit-scrollbar{display:none}
.hv-quote{scroll-snap-align:start;display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:20px;background:var(--ts-surface);transition:transform .2s var(--ts-ease)}
.hv-quote:hover{transform:translateY(-2px)}
.hv-quote svg{width:26px;height:20px;color:var(--ts-gold)}
.hv-quote p{margin:0;flex:1;font-size:14px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hv-quote div{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ts-muted)}
.hv-quote div i{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:13px;background:hsl(var(--h) 45% 92%);color:hsl(var(--h) 45% 30%)}
.hv-quote div b{color:var(--ts-text)}

.hv-end{height:64px}

@media (max-width:1080px){.hv-moods{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
	.hv{--gap:28px}
	.hv-rail{grid-auto-columns:148px;gap:12px}
	.hv-moods{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:200px;overflow-x:auto;scrollbar-width:none}
	.hv-chart{padding:16px}
	.hv-chart__list{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none}
	.hv-arrows{display:none}
	.hv .hv-card__pp{opacity:1;transform:none;width:38px;height:38px}
	.hv-head h2{font-size:19px}
}

/* theme additions */
.ts26 .site-main{padding:0}
.hv-wrap{width:min(var(--ts-wrap,1240px),calc(100% - 32px))}
.hv-fresh{margin:8px 0 0}
.hv-mood{cursor:default}
.hv-mood__t{display:flex;flex-direction:column;color:#fff!important}
.hv-mood__t:hover b{text-decoration:underline;text-underline-offset:4px}
.hv .hv-mood__pp{border:0;cursor:pointer;color:#101B22}
.hv .hv-card__pp,.hv .hv-rel__pp,.hv .hv-ch__pp{border:0;cursor:pointer}
.hv .hv-card__pp.is-playing,.hv .hv-card__pp.is-paused{opacity:1;transform:none}
.hv .hv-card__pp{position:absolute}
.hv-card{position:relative}
.hv-card .hv-card__pp{top:calc(176px - 54px);bottom:auto}
.hv .hv-rel__pp.is-playing,.hv .hv-rel__pp.is-paused{background:var(--ts-accent);color:var(--ts-on-accent)}
.hv .hv-ch__pp{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--ts-accent-soft);color:var(--ts-accent);opacity:0;transition:opacity .2s,background .2s,color .2s}
.hv .hv-ch:hover .hv-ch__pp,.hv .hv-ch__pp:focus-visible,.hv .hv-ch__pp.is-playing{opacity:1}
.hv .hv-ch__pp:hover,.hv .hv-ch__pp.is-playing{background:var(--ts-accent);color:var(--ts-on-accent)}
.hv .hv-ch__pp svg,.hv .hv-card__pp svg,.hv .hv-rel__pp svg{fill:currentColor;stroke:none}
.hv-rel__artist a{color:var(--ts-accent)}
.hv-rel__artist .artist-links{display:inline-flex;flex-wrap:wrap;gap:2px 6px}
.hv-rel__artist .artist-links__separator{color:var(--ts-muted);font-weight:400}
.hv-rel__top time{font-size:12px}
.hv-rel__art img{width:100%;height:100%}
.hv-pane__bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-6px 0 10px}
.hv-banner{display:block;border-radius:22px;overflow:hidden}
.hv-banner img{width:100%;height:auto}
.hv-quote span{color:var(--ts-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-back{margin:14px auto 0;width:max-content;display:flex}
.hv-head h2 small{font-size:13px;font-weight:400;color:var(--ts-muted)}
@media (max-width:760px){.hv .hv-ch__pp{opacity:1}.hv-card .hv-card__pp{top:calc(148px - 48px)}}
.hv .hv-mood__pp{position:absolute;inset-inline-end:14px;top:14px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.95);color:#101B22;box-shadow:0 8px 20px -8px rgba(0,0,0,.5);transition:transform .2s}
.hv .hv-mood__pp:hover{transform:scale(1.08)}
.hv .hv-mood__pp svg{width:16px;height:16px;fill:currentColor;stroke:none}
.hv-seg button{border:0;cursor:pointer;font:inherit}
.hv-loadmore small{font-size:12px;font-weight:400;color:var(--ts-muted)}

/* segmented tabs never wrap their labels; on narrow screens the row scrolls sideways */
.hv-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
.hv-seg::-webkit-scrollbar{display:none}
.hv-seg button,.hv-seg a{flex:none;white-space:nowrap}
