/* Tehran Song 2026 — sitewide layer: tokens, old-token mapping, header, drawer. */

/* ---------- tokens (Firouzeh & Tala) ---------- */
html[data-theme][data-theme]{
	--ts-bg:#F4F7F7;--ts-surface:#fff;--ts-surface2:#EEF3F3;--ts-line:#E2EAEA;
	--ts-text:#101B22;--ts-muted:#5F7078;
	--ts-accent:#0A7C77;--ts-accent-hover:#086A66;--ts-accent-deep:#06504D;--ts-accent-soft:#E3F1F0;--ts-on-accent:#fff;
	--ts-gold:#C9971C;--ts-gold-soft:#FBF1D6;--ts-gold-ink:#7A5A0B;
	--ts-shadow:0 18px 40px -18px rgba(16,27,34,.22);
	--ts-r:14px;--ts-r-lg:22px;--ts-wrap:1240px;
	--ts-font:Vazirmatn,Tahoma,sans-serif;
	--ts-ease:cubic-bezier(.2,.8,.2,1);
	/* the previous theme's tokens, so older templates follow the new palette */
	--bg:var(--ts-bg);--header:var(--ts-surface);--panel:var(--ts-surface);--panel2:var(--ts-surface2);--soft:var(--ts-surface2);
	--line:var(--ts-line);--text:var(--ts-text);--muted:var(--ts-muted);--accent:var(--ts-accent);--accent2:var(--ts-accent-hover);
	--glow:rgba(10,124,119,.14);--shadow:0 14px 35px rgba(16,27,34,.08);
	color-scheme:light;
}
html[data-theme=dark][data-theme]{
	--ts-bg:#0A1418;--ts-surface:#111E24;--ts-surface2:#16262D;--ts-line:#1E3139;
	--ts-text:#E9F3F2;--ts-muted:#93A8AD;
	--ts-accent:#22C3B8;--ts-accent-hover:#5AD3CA;--ts-accent-deep:#0F6F69;--ts-accent-soft:#12302F;--ts-on-accent:#04201E;
	--ts-gold:#E5B53A;--ts-gold-soft:#2E2614;--ts-gold-ink:#E5B53A;
	--ts-shadow:0 18px 40px -18px rgba(0,0,0,.6);
	--glow:rgba(34,195,184,.14);--shadow:0 16px 45px rgba(0,0,0,.3);
	color-scheme:dark;
}
html[data-theme] body{font-family:var(--ts-font);background:var(--ts-bg);color:var(--ts-text)}
html{scroll-padding-top:128px}
::selection{background:var(--ts-accent);color:var(--ts-on-accent)}
.ts26-wrap{width:min(var(--ts-wrap),calc(100% - 32px));margin-inline:auto}
.ts26-hd svg,.ts26-drawer svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ts26-skip:focus{right:16px;top:12px;z-index:100;padding:8px 14px;border-radius:10px;background:var(--ts-accent);color:var(--ts-on-accent)}
.ts26-hd :focus-visible,.ts26-drawer :focus-visible{outline:2px solid var(--ts-accent);outline-offset:2px;border-radius:10px}

/* ---------- header ---------- */
.ts26-hd{position:sticky;top:0;z-index:50;background:var(--ts-surface);transition:box-shadow .3s}
.admin-bar .ts26-hd{top:32px}
.ts26-hd.is-stuck{box-shadow:0 10px 30px -18px rgba(16,27,34,.35)}
.ts26-hd__in{display:flex;align-items:center;gap:18px;height:72px;transition:height .3s var(--ts-ease)}
.ts26-hd.is-stuck .ts26-hd__in{height:62px}

.ts26-ib{width:42px;height:42px;flex:none;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--ts-muted);cursor:pointer;transition:background .2s,color .2s}
.ts26-ib:hover{background:var(--ts-surface2);color:var(--ts-text)}
.ts26-ib.mobile-menu-toggle{display:none}

.ts26-brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ts-text)}
.ts26-brand__logo{width:40px;height:40px;border-radius:12px;object-fit:contain}
.ts26-brand__logo--mark{display:grid;place-items:center;background:var(--ts-accent);color:var(--ts-on-accent)}
.ts26-brand__t{display:flex;flex-direction:column;line-height:1.35}
.ts26-brand__t b{font-size:17px;font-weight:700;letter-spacing:-.01em}
.ts26-brand__t small{font-size:12px;color:var(--ts-muted)}

.ts26-search{position:relative;flex:1;max-width:560px;margin-inline-start:12px;display:flex;align-items:center;height:46px;padding:0 14px;border-radius:14px;background:var(--ts-surface2);border:1px solid transparent;color:var(--ts-muted);transition:background .2s,border-color .2s,box-shadow .25s}
.ts26-search:hover{border-color:var(--ts-line)}
.ts26-search:focus-within{background:var(--ts-surface);border-color:var(--ts-accent);box-shadow:0 0 0 4px var(--ts-accent-soft)}
.ts26-search input{flex:1;min-width:0;height:100%;border:0;background:transparent;padding:0 10px;font:inherit;font-size:14px;color:var(--ts-text);outline:0}
.ts26-search input::placeholder{color:var(--ts-muted)}
.ts26-search input::-webkit-search-cancel-button{display:none}
.ts26-search kbd{display:grid;place-items:center;min-width:24px;height:24px;border-radius:7px;border:1px solid var(--ts-line);background:var(--ts-surface);font:700 12px/1 var(--ts-font);color:var(--ts-muted);transition:opacity .2s}
.ts26-search:focus-within kbd{opacity:0}
.ts26-search__go{position:absolute;inset-inline-end:5px;height:36px;padding:0 14px;border:0;border-radius:10px;background:var(--ts-accent);color:var(--ts-on-accent);font:700 13px var(--ts-font);cursor:pointer;opacity:0;pointer-events:none;transform:scale(.96);transition:opacity .2s,transform .2s,background .2s}
.ts26-search:focus-within .ts26-search__go{opacity:1;pointer-events:auto;transform:none}
.ts26-search__go:hover{background:var(--ts-accent-hover)}

/* the artists' button: gold ring, mic in a gold disc, a slow sheen */
.ts26-pub{position:relative;isolation:isolate;overflow:hidden;margin-inline-start:auto;flex:none;display:inline-flex;align-items:center;gap:10px;height:46px;padding-inline:6px 14px;border-radius:999px;background:var(--ts-surface);color:var(--ts-text);font-weight:700;font-size:14px;white-space:nowrap;
	box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ts-gold) 70%,transparent),0 8px 22px -14px var(--ts-gold);transition:transform .2s var(--ts-ease),box-shadow .25s}
.ts26-pub::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--ts-gold) 22%,transparent) 50%,transparent 70%);transform:translateX(120%);animation:ts26-sheen 6s ease-in-out 2s infinite}
.ts26-pub:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1.5px var(--ts-gold),0 14px 28px -14px var(--ts-gold)}
.ts26-pub:active{transform:scale(.98)}
.ts26-pub__ic{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#E2B444,#B7860F);color:#2A1E02;box-shadow:0 4px 10px -4px #B7860F}
.ts26-pub__ic svg{width:18px;height:18px}
.ts26-pub__go{width:16px!important;height:16px!important;color:var(--ts-gold);transition:transform .2s}
.ts26-pub:hover .ts26-pub__go{transform:translateX(-3px)}
@keyframes ts26-sheen{0%,70%{transform:translateX(120%)}100%{transform:translateX(-120%)}}

.ts26-theme{position:relative}
.ts26-theme svg{position:absolute;transition:transform .45s var(--ts-ease),opacity .3s}
.ts26-theme__sun{opacity:0;transform:rotate(-90deg) scale(.6)}
html[data-theme=dark] .ts26-theme__moon{opacity:0;transform:rotate(90deg) scale(.6)}
html[data-theme=dark] .ts26-theme__sun{opacity:1;transform:none}

/* menu row */
.ts26-nav{border-top:1px solid var(--ts-line)}
.ts26-nav__in{position:relative}
.ts26-nav ul{list-style:none;margin:0;padding:0}
.ts26-nav .ts26-menu,.ts26-nav__in>ul{display:flex;gap:4px;height:48px;align-items:stretch;overflow-x:auto;scrollbar-width:none}
.ts26-nav__in>ul::-webkit-scrollbar{display:none}
.ts26-nav__in>ul>li{position:relative;display:flex}
.ts26-nav__in>ul>li>a{position:relative;display:flex;align-items:center;gap:4px;padding:0 12px;font-size:14px;color:var(--ts-muted);white-space:nowrap;transition:color .2s}
.ts26-nav__in>ul>li>a::after{content:"";position:absolute;inset-inline:12px;bottom:0;height:2px;border-radius:2px;background:var(--ts-accent);transform:scaleX(0);transition:transform .3s var(--ts-ease)}
.ts26-nav__in>ul>li>a:hover{color:var(--ts-text)}
.ts26-nav__in>ul>li:hover>a::after,.ts26-nav__in>ul>li.current-menu-item>a::after,.ts26-nav__in>ul>li.current-menu-ancestor>a::after{transform:scaleX(1)}
.ts26-nav__in>ul>li.current-menu-item>a,.ts26-nav__in>ul>li.current-menu-ancestor>a{color:var(--ts-text);font-weight:700}
.ts26-nav .menu-item-has-children>a::before{content:"";order:2;width:6px;height:6px;margin-top:-3px;border:solid currentColor;border-width:0 0 1.6px 1.6px;transform:rotate(-45deg);opacity:.6}
.ts26-nav .sub-menu{position:absolute;top:100%;inset-inline-start:0;z-index:60;min-width:220px;padding:8px;border-radius:16px;background:var(--ts-surface);box-shadow:0 22px 48px -18px rgba(16,27,34,.35);border:1px solid var(--ts-line);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s var(--ts-ease),visibility .2s}
.ts26-nav li:hover>.sub-menu,.ts26-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.ts26-nav .sub-menu a{display:block;padding:8px 12px;border-radius:10px;font-size:14px;color:var(--ts-text);transition:background .2s,color .2s}
.ts26-nav .sub-menu a:hover{background:var(--ts-accent-soft);color:var(--ts-accent)}
/* when submenus exist the row cannot clip them */
.ts26-nav__in>ul:has(.sub-menu){overflow:visible}

/* old mobile helpers are replaced by the header itself */
.ts-mobile-homebar,.ts-mobile-play-prompt{display:none!important}

/* ---------- drawer ---------- */
.mobile-drawer.ts26-drawer{position:fixed;inset:0 0 0 auto;display:flex;flex-direction:column;gap:14px;width:min(86vw,340px)!important;padding:16px!important;background:var(--ts-surface)!important;background:var(--ts-surface);color:var(--ts-text);overflow-y:auto;transform:translateX(105%);transition:transform .35s var(--ts-ease);box-shadow:-20px 0 50px -20px rgba(0,0,0,.35)!important}
.mobile-drawer.ts26-drawer.is-open{transform:none}
.mobile-drawer.ts26-drawer a{border-bottom:0;padding:0}
.mobile-drawer-backdrop.ts26-drawer-bg{display:block;position:fixed;inset:0;background:rgba(10,20,24,.5);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.mobile-drawer-backdrop.ts26-drawer-bg.is-open{opacity:1;visibility:visible}
.ts26-drawer__head{display:flex;align-items:center;justify-content:space-between}
.ts26-drawer__nav ul{list-style:none;margin:0;padding:0}
.mobile-drawer .ts26-drawer__nav>ul>li>a,.mobile-drawer .ts26-drawer__extra a{display:flex;align-items:center;min-height:46px;padding:0 12px;border-radius:12px;font-size:15px;transition:background .2s,color .2s}
.ts26-drawer__nav a:hover,.ts26-drawer__nav .current-menu-item>a{background:var(--ts-accent-soft);color:var(--ts-accent)}
.ts26-drawer__nav .sub-menu{padding-inline-start:12px;border-inline-start:2px solid var(--ts-line);margin:2px 12px 6px 0}
.mobile-drawer .ts26-drawer__nav .sub-menu a{display:block;padding:6px 10px;font-size:14px;color:var(--ts-muted);border-radius:10px}
.ts26-drawer__extra{margin:10px 0 0!important;padding:10px 0 0!important;border-top:1px solid var(--ts-line)!important;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.ts26-drawer__extra a{min-height:40px;justify-content:center;background:var(--ts-surface2);font-size:14px}
.mobile-drawer .ts26-pub--block,.mobile-drawer .ts26-pub.ts26-pub--block{display:inline-flex;flex:none!important;height:46px!important;min-height:46px;padding-inline:6px 14px;margin:0;width:100%;justify-content:flex-start;order:0}
.ts26-pub--block .ts26-pub__go{margin-inline-start:auto}
html.mobile-menu-open{overflow:hidden}

/* ---------- responsive ---------- */
@media (max-width:1080px){
	.ts26-brand__t small{display:none}
	.ts26-search{margin-inline-start:0}
}
@media (max-width:860px){
	html{scroll-padding-top:16px}
	.ts26-hd,.admin-bar .ts26-hd{position:relative;top:0}
	.ts26-hd__in{flex-wrap:wrap;height:auto!important;gap:10px;padding:10px 0 12px}
	.ts26-ib.mobile-menu-toggle{display:grid}
	.ts26-brand{margin-inline-end:auto}
	.ts26-theme{order:2}
	.ts26-search{order:3;flex:1 1 100%;max-width:none;height:44px}
	.ts26-search kbd{display:none}
	.ts26-pub{order:4;flex:1 1 100%;margin:0;height:42px;justify-content:flex-start}
	.ts26-pub .ts26-pub__go{margin-inline-start:auto}
	.ts26-pub__ic{width:30px;height:30px}
	.ts26-nav .sub-menu{display:none}
	.ts26-nav__in>ul:has(.sub-menu){overflow-x:auto}
	.ts26-nav .menu-item-has-children>a::before{display:none}
	.ts26-nav .ts26-menu,.ts26-nav__in>ul{height:44px}
	.ts26-nav__in>ul>li>a{font-size:13px;padding:0 10px}
}
@media (prefers-reduced-motion:reduce){
	.ts26-pub::after{animation:none}
	.ts26-hd *,.mobile-drawer.ts26-drawer{transition:none!important}
}

/* ---------- footer ---------- */
html[data-theme] body{background:var(--ts-bg)!important}
.ts26-ft{margin-top:24px;background:var(--ts-surface);color:var(--ts-text);font-size:14px;line-height:1.8}
.ts26-ft svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ts26-ft a{color:inherit;text-decoration:none}
.ts26-ft :focus-visible{outline:2px solid var(--ts-accent);outline-offset:2px;border-radius:10px}
.ts26-ft__top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:32px;align-items:center;padding:40px 0 30px;border-bottom:1px solid var(--ts-line)}
.ts26-ft__brand p{margin:12px 0 16px;max-width:52ch;color:var(--ts-muted)}
.ts26-ft__social{display:flex;flex-wrap:wrap;gap:8px}
.ts26-ft__social a{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ts-surface2);color:var(--ts-muted);transition:background .2s,color .2s,transform .15s}
.ts26-ft__social a:hover{background:var(--ts-accent-soft);color:var(--ts-accent);transform:translateY(-2px)}
.ts26-ft__social svg{width:18px;height:18px}
.ts26-ft__cta{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:center;padding:18px 20px;border-radius:var(--ts-r-lg);background:linear-gradient(135deg,var(--ts-accent-deep),var(--ts-accent));color:#fff!important;box-shadow:var(--ts-shadow);transition:transform .2s var(--ts-ease)}
.ts26-ft__cta::before{content:"";position:absolute;z-index:-1;inset-inline-end:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--ts-gold) 55%,transparent),transparent 70%)}
.ts26-ft__cta:hover{transform:translateY(-2px)}
.ts26-ft__cta .ts26-pub__ic{width:46px;height:46px;grid-row:span 2}
.ts26-ft__cta .ts26-pub__ic svg{width:22px;height:22px}
.ts26-ft__cta b{display:block;font-size:17px}
.ts26-ft__cta small{display:block;font-size:13px;opacity:.85}
.ts26-ft__cta-go{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:6px;height:34px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ts-gold) 60%,transparent);font-weight:700;font-size:13px}
.ts26-ft__cta-go svg{width:16px;height:16px;color:#F3D27A}
.ts26-fcols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;padding:30px 0}
.ts26-fcol h2{margin:0 0 10px;font-size:15px;font-weight:700}
.ts26-fcol .ts26-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ts26-fcol .ts26-li{display:flex;align-items:center;gap:10px;padding:6px;border-radius:12px;transition:background .2s}
.ts26-fcol .ts26-li:hover{background:var(--ts-surface2)}
.ts26-fcol .ts26-li img{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none}
.ts26-fcol .ts26-li span{min-width:0;line-height:1.5}
.ts26-fcol .ts26-li b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts26-fcol .ts26-li small{font-size:12px;color:var(--ts-muted)}
.ts26-fcol__more{display:inline-flex;align-items:center;gap:4px;margin-top:8px;font-size:13px;font-weight:700;color:var(--ts-accent)!important}
.ts26-fcol__more svg{width:16px;height:16px;transition:transform .2s}
.ts26-fcol__more:hover svg{transform:translateX(-3px)}
.ts26-ft__bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:16px 0 22px;border-top:1px solid var(--ts-line);font-size:12px;color:var(--ts-muted)}
.ts26-ft__bottom p{margin:0}

/* back to top (app.js shows it) */
.ts-scroll-top.ts26-top{width:44px!important;height:44px!important;border:0!important;border-radius:14px!important;display:grid;place-items:center;background:var(--ts-surface)!important;color:var(--ts-text)!important;box-shadow:0 10px 24px rgba(16,27,34,.16)!important}
.ts-scroll-top.ts26-top:hover{color:var(--ts-accent)!important}
.ts-scroll-top.ts26-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* mobile bottom bar in the new palette */
.ts-app-nav{background:color-mix(in srgb,var(--ts-surface) 92%,transparent)!important;border-color:var(--ts-line)!important;font-family:var(--ts-font)}
.ts-app-nav a,.ts-app-nav button{color:var(--ts-muted)!important;font-family:var(--ts-font)!important}
.ts-app-nav a.is-primary{color:var(--ts-gold-ink)!important}
.ts-app-nav a.is-primary svg{color:var(--ts-gold)}
.ts-app-nav svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:980px){.ts26-fcols{grid-template-columns:repeat(2,minmax(0,1fr))}.ts26-ft__top{grid-template-columns:1fr}}
@media (max-width:560px){.ts26-fcols{grid-template-columns:1fr}.ts26-ft__top{padding-top:28px}.ts26-ft__bottom{justify-content:center;text-align:center}}
.ts26-fcol .ts26-li>span{flex:1}
.ts26-fcol .ts26-list>li{min-width:0}

/* header search suggestions */
.ts26-search{position:relative}
.ac{position:absolute;top:calc(100% + 8px);inset-inline:0;z-index:70;padding:8px;border-radius:18px;background:var(--ts-surface);box-shadow:0 24px 50px -18px rgba(16,27,34,.4);border:1px solid var(--ts-line);font-family:var(--ts-font)}
.ac h4{margin:6px 8px 4px;font-size:11px;font-weight:700;color:var(--ts-muted)}
.ac a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:12px;color:var(--ts-text);text-decoration:none}
.ac a:hover,.ac a.is-on{background:var(--ts-surface2)}
.ac img{width:40px;height:40px;border-radius:10px;object-fit:cover}
.ac a.is-artist img{border-radius:50%}
.ac span{min-width:0;line-height:1.5}
.ac b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac small{font-size:11px;color:var(--ts-muted)}
.ac .ac-all{justify-content:center;margin-top:4px;color:var(--ts-accent);font-size:13px;font-weight:700}
.ac[hidden]{display:none}

/* visually hidden text for screen readers (labels, player title) */
.screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto;clip-path:none;width:auto;height:auto;margin:0;padding:8px 12px;background:var(--ts-surface);color:var(--ts-text);z-index:100010}

/* footer lists as tabs on phones */
.ts26-ftabs{display:none}
@media (max-width:560px){
	.ts26-fcols.is-tabbed{padding-top:22px;gap:14px}
	.ts26-fcols.is-tabbed .ts26-ftabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:2px}
	.ts26-ftabs::-webkit-scrollbar{display:none}
	.ts26-ftabs button{flex:none;height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--ts-surface2);color:var(--ts-muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
	.ts26-ftabs button[aria-selected=true]{background:var(--ts-accent);color:var(--ts-on-accent)}
	.ts26-fcols.is-tabbed .ts26-fcol{display:none}
	.ts26-fcols.is-tabbed .ts26-fcol.is-on{display:block}
	.ts26-fcols.is-tabbed .ts26-fcol h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}

/* search boxes: the box itself shows the focus ring, so the field inside gets none (no double ring) */
.ts26-search input:focus,.ts26-search input:focus-visible,.pg-search input:focus,.pg-search input:focus-visible{outline:0!important;box-shadow:none!important}
