/* ═══════════════════════════════════════════════════════════════
   ATLAS BEATS — share page (share.html)
   Loads after style.css and reuses its tokens (--c1/--c2/--glass…),
   fonts, .wm wordmark, .footer and .toast.
   ═══════════════════════════════════════════════════════════════ */
body.share-page { --player-h: 0px; --hero-h: 0px; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
body.share-page .toasts { bottom: 26px; z-index: 300; }
body.share-page .footer { max-width: 100%; overflow: hidden; display: grid; justify-items: center; gap: 6px; margin-top: 10px; }
body.share-page .footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
body.share-page .footer .footer-links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 12px; transition: color .2s, border-color .2s, transform .25s var(--spring); }
body.share-page .footer .footer-links a:hover { color: #fff; border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); transform: translateY(-2px); }
body.share-page .footer .wordmark { font-family: var(--font-logo); font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
body.share-page .footer .wordmark .wm { display: inline-flex; align-items: baseline; gap: .38em; direction: ltr; }
body.share-page .footer .wordmark .wm b { color: #fff; }
body.share-page .footer .wordmark .wm i { font-style: normal; font-weight: 600; letter-spacing: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sh-bg, .sh-bg * { contain: strict; }

/* ── ambient background ─────────────────────────────────────── */
.sh-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 700px at 50% -10%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), var(--bg); }
.sh-bg-art { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(70px) saturate(1.5) brightness(.55); opacity: 0; transform: scale(1.1); transition: opacity 1.4s ease, background-image 1s; }
body.has-art .sh-bg-art { opacity: .7; }
.sh-bg-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; mix-blend-mode: screen; animation: shFloat 22s ease-in-out infinite alternate; }
.sh-bg-glow.a { left: -20vmax; top: -20vmax; background: var(--c1); }
.sh-bg-glow.b { right: -22vmax; bottom: -24vmax; background: var(--c2); animation-delay: -11s; animation-duration: 27s; }
.sh-bg-grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.6'/></svg>"); }
@keyframes shFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

/* ── top bar ────────────────────────────────────────────────── */
.sh-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 34px); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: color-mix(in srgb, var(--bg) 55%, transparent); border-bottom: 1px solid var(--line); }
.sh-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 13px; transition: background .2s, color .2s, transform .2s; }
.sh-back:hover { background: var(--glass-2); color: #fff; }
.sh-back .i { width: 18px; height: 18px; }
html[dir="rtl"] .sh-back .i { transform: scaleX(-1); }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; min-width: 0; justify-self: center; }
.sh-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 22px color-mix(in srgb, var(--c1) 55%, transparent); }
.sh-brand .wm, .sh-cover-ph .wm { display: inline-flex; align-items: baseline; gap: .38em; font-family: var(--font-logo); font-weight: 800; font-size: 16px; letter-spacing: 2.4px; text-transform: uppercase; }
.sh-brand .wm b, .sh-cover-ph .wm b { color: #fff; }
.sh-brand .wm i, .sh-cover-ph .wm i { font-style: normal; font-weight: 600; letter-spacing: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sh-lang { justify-self: end; display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); direction: ltr; }
.sh-lang button { height: 32px; min-width: 36px; padding: 0 9px; border-radius: 9px; font-weight: 800; font-size: 12px; color: var(--muted); transition: background .2s, color .2s; }
.sh-lang button:hover { color: #fff; }
.sh-lang button.on { color: #0b0b12; background: #fff; }

/* ── layout ─────────────────────────────────────────────────── */
.sh-main { position: relative; z-index: 1; width: min(1180px, 100% - clamp(28px, 6vw, 68px)); max-width: 100%; margin: 0 auto; padding: clamp(18px, 4vw, 44px) 0 30px; display: grid; gap: clamp(22px, 3.4vw, 40px); }

/* ── hero ───────────────────────────────────────────────────── */
.sh-hero { display: grid; min-width: 0; max-width: 100%; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(18px, 3vw, 34px); border-radius: 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--glass-2) 75%, transparent), color-mix(in srgb, var(--glass) 40%, transparent)); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; overflow: hidden; animation: shIn .7s var(--ease) both; }
.sh-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 70%), radial-gradient(500px 300px at 100% 100%, color-mix(in srgb, var(--c2) 16%, transparent), transparent 70%); pointer-events: none; }
@keyframes shIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.sh-cover-wrap { position: relative; display: grid; place-items: center; }
.sh-cover { position: relative; width: 100%; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #0b0b14; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2) inset; transform: rotate(-2deg); transition: transform .8s var(--spring); }
.sh-hero:hover .sh-cover { transform: rotate(0deg) scale(1.02); }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.sh-cover img.loaded { opacity: 1; }
.sh-cover-ph { position: absolute; inset: 0; display: grid; place-items: center; background: conic-gradient(from 210deg at 50% 50%, color-mix(in srgb, var(--c1) 70%, #000), color-mix(in srgb, var(--c2) 70%, #000), color-mix(in srgb, var(--c1) 70%, #000)); }
.sh-cover-ph .wm { font-size: clamp(16px, 3vw, 24px); }
.sh-cover img.loaded + .sh-cover-ph { display: none; }
.sh-live { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(239, 68, 68, .92); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 11px; letter-spacing: 1.5px; }
.sh-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: shPulse 1.2s ease-in-out infinite; }
@keyframes shPulse { 50% { opacity: .35; transform: scale(.7); } }
.sh-eq { position: absolute; bottom: -12px; display: flex; gap: 4px; align-items: flex-end; height: 26px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.sh-eq i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--c2), var(--c1)); animation: shEq 1s ease-in-out infinite; height: 40%; }
.sh-eq i:nth-child(2) { animation-delay: -.2s; } .sh-eq i:nth-child(3) { animation-delay: -.45s; } .sh-eq i:nth-child(4) { animation-delay: -.1s; } .sh-eq i:nth-child(5) { animation-delay: -.35s; }
@keyframes shEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.sh-meta { position: relative; min-width: 0; display: grid; gap: 12px; align-content: center; }
.sh-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c1) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .3px; }
.sh-kicker .i { width: 15px; height: 15px; }
.sh-title { margin: 0; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.12; font-weight: 900; letter-spacing: -.5px; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.sh-artist { font-size: clamp(16px, 2vw, 21px); font-weight: 600; color: var(--ink-2); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sh-chip .i { width: 14px; height: 14px; }
.sh-chip.st { background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 28%, transparent), color-mix(in srgb, var(--c2) 22%, transparent)); border-color: color-mix(in srgb, var(--c2) 40%, transparent); color: #fff; }
.sh-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: shPulse 1.6s ease-in-out infinite; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); color: #fff; font-weight: 700; font-size: 14px; transition: transform .2s var(--spring), background .2s, box-shadow .3s; white-space: nowrap; }
.sbtn:hover { transform: translateY(-2px); background: var(--glass-3); }
.sbtn:active { transform: scale(.97); }
.sbtn .i { width: 18px; height: 18px; }
.sbtn.primary { color: #0b0b12; background: #fff; border-color: #fff; box-shadow: 0 10px 30px rgba(255, 255, 255, .18); }
.sbtn.primary .i { fill: currentColor; stroke: none; }
.sbtn.primary:hover { background: #fff; box-shadow: 0 14px 40px rgba(255, 255, 255, .26); }
.sbtn.accent { background: linear-gradient(90deg, var(--c1), var(--c2)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--c1) 45%, transparent); }
.sbtn.accent:hover { box-shadow: 0 14px 42px color-mix(in srgb, var(--c2) 50%, transparent); }
.sbtn.done { background: rgba(52, 211, 153, .2); border-color: rgba(52, 211, 153, .5); }
.sh-link { display: flex; align-items: center; gap: 6px; height: 44px; padding: 4px 4px 4px 14px; border-radius: 13px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); direction: ltr; }
.sh-link input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink-2); font-family: var(--font-en); font-size: 13px; outline: none; text-overflow: ellipsis; }
.sh-link-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); color: #fff; transition: background .2s; }
.sh-link-btn:hover { background: var(--glass-3); }
.sh-link-btn .i { width: 16px; height: 16px; }
.sh-sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* ── apps ───────────────────────────────────────────────────── */
.sh-apps { display: grid; gap: 18px; min-width: 0; max-width: 100%; animation: shIn .8s .1s var(--ease) both; }
.sh-main > * { min-width: 0; }
.sh-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; max-width: 100%; }
.sh-tabs { display: flex; flex: 0 1 auto; min-width: 0; gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--spring); }
.sh-tabs button .n { font-family: var(--font-en); font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink-2); }
.sh-tabs button:hover { color: #fff; }
.sh-tabs button.on { color: #0b0b12; background: #fff; box-shadow: 0 6px 18px rgba(255, 255, 255, .18); }
.sh-tabs button.on .n { background: rgba(0, 0, 0, .12); color: #0b0b12; }
.sh-filter { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 240px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, background .2s; }
.sh-filter:focus-within { border-color: color-mix(in srgb, var(--c2) 60%, transparent); background: var(--glass-2); }
.sh-filter .i { width: 17px; height: 17px; }
.sh-filter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 14px; }
.sh-filter input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sh-filter .cnt { font-family: var(--font-en); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink-2); white-space: nowrap; }
.sh-groups { display: grid; gap: 22px; }
.sh-group { display: grid; gap: 12px; }
.sh-group[hidden] { display: none; }
.sh-group-head { display: flex; align-items: center; gap: 12px; }
.sh-group-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.sh-group-head h3 .i { width: 17px; height: 17px; color: var(--accent); }
.sh-group-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sh-group-head .tag { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c2) 16%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--c2) 35%, transparent); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.shapp { --b: #888; position: relative; display: grid; justify-items: center; gap: 9px; padding: 16px 8px 13px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); text-align: center; cursor: pointer; transition: transform .35s var(--spring), background .25s, border-color .25s, box-shadow .35s; animation: appIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); overflow: hidden; }
@keyframes appIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.shapp::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 80px at 50% 0%, color-mix(in srgb, var(--b) 35%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.shapp:hover { transform: translateY(-4px); background: var(--glass-2); border-color: color-mix(in srgb, var(--b) 55%, var(--line-2)); box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--b) 30%, transparent); }
.shapp:hover::before { opacity: 1; }
.shapp:active { transform: scale(.95); }
.shapp.hit { animation: appHit .5s var(--spring); }
@keyframes appHit { 30% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.shapp .ico { position: relative; width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--b); box-shadow: 0 8px 22px color-mix(in srgb, var(--b) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .35s var(--spring); overflow: hidden; }
.shapp:hover .ico { transform: scale(1.08) rotate(-3deg); }
.shapp .ico svg { width: 32px; height: 32px; fill: #fff; }
.shapp .ico.dark svg { fill: #fff; }
.shapp .ico.light svg { fill: #111; }
.shapp .ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shapp .ico.pad img { width: 76%; height: 76%; object-fit: contain; }
.shapp .nm { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.shapp .sub { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: -5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.shapp .shbadge { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 9px; font-weight: 900; letter-spacing: .5px; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--ink-2); font-family: var(--font-en); }
.shapp .shbadge.ir { background: linear-gradient(90deg, #239f40, #da0000); color: #fff; }
.shapp.copy-only .shbadge { background: color-mix(in srgb, var(--c2) 30%, transparent); color: #fff; }
.sh-none { text-align: center; padding: 30px; color: var(--muted); font-weight: 600; }

/* ── extras: story card + QR ────────────────────────────────── */
.sh-extras { display: grid; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; animation: shIn .9s .18s var(--ease) both; }
.sh-card-box, .sh-qr-box { min-width: 0; padding: 20px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line-2); display: grid; gap: 16px; align-content: start; }
.sh-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sh-box-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.sh-box-head h2 .i { width: 18px; height: 18px; color: var(--accent); }
.sh-box-head .hint { font-size: 12px; color: var(--muted); font-weight: 600; }
.sh-card-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.sh-card-preview { position: relative; width: 200px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-2); background: #0b0b14; transition: width .4s var(--ease); }
.sh-card-preview.post { width: 260px; }
.sh-card-preview canvas { width: 100%; height: auto; display: block; }
.sh-card-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 5, 8, .7); color: var(--ink-2); font-weight: 700; font-size: 12px; backdrop-filter: blur(4px); transition: opacity .3s; }
.sh-card-preview.ready .sh-card-loading { opacity: 0; pointer-events: none; }
.sh-card-acts { display: grid; gap: 10px; align-content: center; justify-items: start; }
.sh-card-acts .sbtn { width: 100%; max-width: 280px; }
.sh-card-acts .seg { display: inline-flex; gap: 3px; }
.sh-card-acts .seg button { transition: background .25s, color .25s; }
.sh-card-acts .seg button.on { background: #fff; color: #0b0b12; }
.sh-qr { position: relative; width: min(100%, 250px); aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding: 10px; }
.sh-qr canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.sh-qr-logo { position: absolute; left: 50%; top: 50%; width: 21%; height: 21%; transform: translate(-50%, -50%); border-radius: 22%; box-shadow: 0 0 0 5px #fff; }

/* ── caption sheet (copy-first apps) ────────────────────────── */
.sh-sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sh-sheet.show { opacity: 1; pointer-events: auto; }
.sh-sheet-card { width: min(560px, 100%); margin: 0 10px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; transform: translateY(30px); transition: transform .45s var(--spring); display: grid; gap: 14px; }
.sh-sheet.show .sh-sheet-card { transform: none; }
.sh-sheet-head { display: flex; align-items: center; gap: 12px; }
.sh-sheet-head .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; }
.sh-sheet-head .ico svg { width: 24px; height: 24px; fill: #fff; } .sh-sheet-head .ico img { width: 100%; height: 100%; object-fit: cover; }
.sh-sheet-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.sh-sheet-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sh-sheet-head .x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); color: #fff; }
.sh-sheet textarea { width: 100%; min-height: 110px; resize: vertical; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.6; outline: none; }
.sh-sheet-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-sheet-acts .sbtn { flex: 1; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .sh-extras { grid-template-columns: 1fr; }
  .sh-hero { grid-template-columns: minmax(200px, 280px) 1fr; }
}
@media (max-width: 767px) {
  .sh-top { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 12px; gap: 8px; }
  .sh-brand { gap: 7px; } .sh-brand img { width: 30px; height: 30px; } .sh-brand .studio-tag { font-size: 8.5px; padding: 3px 7px; letter-spacing: .12em; }
  .sh-back span { display: none; }
  .sh-back { padding: 0; width: 40px; justify-content: center; }
  .sh-back .i { width: 20px; height: 20px; }
  .sh-brand .wm { font-size: 14px; }
  .sh-lang { position: relative; }
  .sh-lang button { min-width: 30px; padding: 0 6px; font-size: 11px; }
  /* compact language switcher: only the active language shows; tap it to unfold the rest as a dropdown */
  .sh-lang:not(.open) button:not(.on) { display: none; }
  .sh-lang:not(.open) button.on::after { content: '▾'; margin-inline-start: 4px; font-size: 10px; opacity: .7; }
  .sh-lang.open { position: absolute; top: calc(100% + 6px); inset-inline-end: 10px; z-index: 30; flex-wrap: wrap; max-width: calc(100vw - 20px); padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); border-color: var(--line-2); box-shadow: var(--shadow); animation: shIn .25s var(--ease) both; }
  .sh-lang.open button { height: 36px; min-width: 44px; font-size: 12px; }
  .sh-main { width: min(100% - 24px, 1180px); padding-top: 16px; gap: 20px; }
  .sh-hero { grid-template-columns: 1fr; text-align: center; padding: 18px 16px 20px; border-radius: 24px; }
  .sh-cover-wrap { width: min(62vw, 260px); margin: 0 auto 8px; }
  .sh-meta { justify-items: center; }
  .sh-title { font-size: clamp(24px, 7vw, 32px); }
  .sh-chips, .sh-actions { justify-content: center; }
  .sh-actions .sbtn { flex: 1 1 calc(50% - 10px); padding: 0 12px; font-size: 13px; }
  .sh-actions .sbtn.primary { flex-basis: 100%; }
  .sh-link { width: 100%; }
  .sh-tools { flex-direction: column; align-items: stretch; }
  .sh-tabs { justify-content: flex-start; width: 100%; }
  .sh-tabs button { height: 36px; padding: 0 12px; font-size: 12.5px; }
  .sh-filter { min-width: 0; }
  .sh-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .shapp { padding: 13px 6px 11px; border-radius: 17px; gap: 8px; }
  .shapp .ico { width: 50px; height: 50px; border-radius: 15px; }
  .shapp .ico svg { width: 28px; height: 28px; }
  .shapp .nm { font-size: 11.5px; }
  .sh-card-row { grid-template-columns: 1fr; justify-items: center; }
  .sh-card-acts { justify-items: stretch; width: 100%; }
  .sh-card-acts .sbtn { max-width: none; }
  .sh-card-acts .seg { justify-self: center; }
}
@media (max-width: 480px) {
  .sh-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-lang { gap: 2px; }
  .sh-lang button { min-width: 28px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .sh-bg-glow, .sh-eq i, .sh-live i, .sh-chip .dot { animation: none; } }
@media (max-width: 379px) { .sh-brand .studio-tag { display: none; } .sh-brand .wm { font-size: 13px; } }

/* v5.7: inside the site's page layer the strip already has a back button → hide the page's own one (no more two back buttons) */
html.framed .sh-back { display: none !important; }
