/* Notbroken — Sing (Recover: Breathe | Calm | Sleep | Sing), v2.43.0; v2.45.0 song tiles, finder and the page glow; v2.45.1 layouts for every
   screen size (phones, phones held sideways, tablets, desktops), clean YouTube pictures and the Why sing? cards. Tokens match the other tools. */
:root {
  --primary: #84C0A0; --primary-deep: #5B8A72; --terra: #E8A375; --text-light: #F2EFEA; --muted: #A5AFBC;
  --surface-bg: rgba(255, 255, 255, 0.10); --surface-border: rgba(255, 255, 255, 0.18); --card: rgba(31, 36, 43, 0.82); --line: #3A424E;
  --ink: #13171D;
  --f-out: #8FB3E0; --f-shout: #E8A375; --f-soothe: #84C0A0; --f-lift: #E9C46A; --f-belong: #B9A6E0; --f-joy: #F0A6B8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #15181D; color: var(--text-light); }
.page-container { min-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 1rem;
  background: linear-gradient(-45deg, #151A2B, #1E3A2E, #1A1F36, #2A4A3A); background-size: 400% 400%; }
main.sg { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 1rem; padding: 0.25rem 0 1rem; }
h1, h2, h3 { font-family: 'Literata', Georgia, serif; font-weight: 600; margin: 0; color: var(--text-light); }
a { color: #A6D2BC; }
a:hover { color: var(--text-light); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

/* shared pieces (the same look as the other tools) */
.nb-panel { background: var(--surface-bg); border: 1px solid var(--surface-border); border-radius: 20px; padding: 1rem 1.1rem; }
.nb-btn { font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px; border: 1px solid var(--surface-border); background: rgba(255,255,255,.08); color: var(--text-light);
  padding: 11px 16px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, transform .1s; }
.nb-btn:hover { background: rgba(255,255,255,.16); color: var(--text-light); }
.nb-btn:active { transform: scale(.98); }
.nb-btn:disabled { opacity: .6; cursor: default; transform: none; }
.nb-btn--primary { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.nb-btn--primary:hover { background: #A6D2BC; color: var(--ink); }
.nb-btn--ghost { background: transparent; }
.nb-btn--sm { font-size: 14px; padding: 8px 12px; min-height: 44px; border-radius: 12px; }
.sg-i { width: 18px; height: 18px; flex: 0 0 auto; }

.sg-hero { text-align: center; padding: .6rem .5rem 0; }
.sg-hero__eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin: 0 0 8px; }
.sg-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; }
.sg-hero p { max-width: 560px; margin: 10px auto 0; color: rgba(242,239,234,.84); line-height: 1.55; font-size: 15px; }

/* this week */
.sg-week { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sg-week__days { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sg-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sg-dot.is-on { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.sg-dot.is-today:not(.is-on) { border-style: dashed; border-color: #6A7584; }
.sg-dot.is-future { opacity: .55; }
.sg-week__txt { margin: 0; font-size: 13px; color: var(--muted); }
.sg-week__notes { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0 2px 12px; border-left: 1px solid var(--line); text-decoration: none; color: var(--text-light); min-width: 64px; min-height: 44px; }
.sg-week__notes svg { width: 20px; height: 20px; color: var(--terra); }
.sg-week__notes b { font-size: 18px; }
.sg-week__notes span { font-size: 11.5px; color: var(--muted); }
html:not(.sg-js) .sg-week { display: none; }

/* feelings */
.sg-h2 { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.sg-feels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .sg-feels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-feel { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 96px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text-light); transition: border-color .15s, transform .1s; }
.sg-feel:hover { border-color: #5A6472; color: var(--text-light); }
.sg-feel:active { transform: scale(.98); }
.sg-feel b { font-size: 16px; }
.sg-feel small { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.sg-ficon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sg-ficon svg { width: 18px; height: 18px; }
.sg-ficon--big { width: 44px; height: 44px; border-radius: 13px; }
.sg-ficon--big svg { width: 22px; height: 22px; }
.sg-ficon--out { background: rgba(143,179,224,.18); color: var(--f-out); }
.sg-ficon--shout { background: rgba(232,163,117,.18); color: var(--f-shout); }
.sg-ficon--soothe { background: rgba(132,192,160,.18); color: var(--f-soothe); }
.sg-ficon--lift { background: rgba(233,196,106,.18); color: var(--f-lift); }
.sg-ficon--belong { background: rgba(185,166,224,.18); color: var(--f-belong); }
.sg-ficon--joy { background: rgba(240,166,184,.18); color: var(--f-joy); }
.sg-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sg-extra { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text-light); text-decoration: none; font-size: 14px; font-weight: 600; }
.sg-extra:hover { color: var(--text-light); border-color: #5A6472; }
.sg-extra small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sg-extra--warm { border-color: #4A7560; background: rgba(132,192,160,.10); }
html:not(.sg-js) .sg-jsonly { display: none !important; }

/* a view (feeling, song, done, my singing, warm-up) */
.sg-view { display: flex; flex-direction: column; gap: 12px; }
.sg-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 14px; font-weight: 600; text-decoration: none; }
.sg-vhead { display: flex; align-items: center; gap: 12px; }
.sg-vhead h2 { font-size: 26px; line-height: 1.15; }
.sg-vhead p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sg-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border-left: 3px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text-light); }
.sg-note--out { border-left-color: var(--f-out); } .sg-note--shout { border-left-color: var(--f-shout); } .sg-note--soothe { border-left-color: var(--f-soothe); }
.sg-note--lift { border-left-color: var(--f-lift); } .sg-note--belong { border-left-color: var(--f-belong); } .sg-note--joy { border-left-color: var(--f-joy); }
.sg-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sg-card h3 { font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sg-card h3 svg { width: 18px; height: 18px; color: var(--f-lift); }
.sg-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.sg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-opt { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); flex: 0 0 auto; }
.sg-small { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chip { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text-light); cursor: pointer; }
.sg-chip[aria-pressed="true"] { background: rgba(132,192,160,.2); border-color: var(--primary); color: #CDEBDD; }
.sg-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sg-facebtn { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; min-height: 56px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.05); color: var(--text-light); cursor: pointer; }
.sg-facebtn span { font-size: 11.5px; color: var(--muted); }
.sg-facebtn[aria-pressed="true"] { border-color: var(--primary); background: rgba(132,192,160,.16); color: #CDEBDD; }
.sg-facebtn[aria-pressed="true"] span { color: #CDEBDD; }
.sg-face { width: 26px; height: 26px; }
.sg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-btns--two > * { flex: 1 1 0; min-width: 0; }
.sg-listh { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.sg-calm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 4px 0; font-size: 13px; color: var(--muted); }
.sg-calm a { font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.sg-calm span { flex: 1 0 100%; text-align: center; }

/* the song: YouTube's player is never covered — at least 200 x 200 px, and nothing is drawn over it */
.sg-setbar { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--f-lift); }
.sg-setbar svg { width: 16px; height: 16px; }
.sg-player { position: relative; width: 100%; height: 56.25vw; max-height: 405px; min-height: 200px; min-width: 200px; border-radius: 12px; overflow: hidden; background: #0E1116; }
@media (min-width: 752px) { .sg-player { height: 405px; } }
@supports (aspect-ratio: 16 / 9) { .sg-player { height: auto; aspect-ratio: 16 / 9; max-height: none; } }
.sg-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-player__start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #0E1116; cursor: pointer; display: block; }
.sg-player__start img { width: 100%; height: 100%; object-fit: contain; display: block; }   /* YouTube's picture, whole and undimmed */
.sg-player__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(242,239,234,.94); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.sg-player__play svg { width: 26px; height: 26px; margin-left: 3px; }
.sg-player__note { margin-top: -4px; }
.sg-songh { font-size: 24px; line-height: 1.2; }
.sg-songa { margin: -6px 0 0; font-size: 14px; color: #A6D2BC; }
.sg-why { margin: 0; font-size: 14.5px; line-height: 1.5; }
.sg-tip { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(232,163,117,.12); border: 1px solid rgba(232,163,117,.4); font-size: 14px; line-height: 1.45; color: var(--text-light); }
.sg-tip svg { width: 20px; height: 20px; color: var(--terra); flex: 0 0 auto; margin-top: 1px; }
.sg-ended { margin: 0; font-size: 14px; font-weight: 600; color: var(--f-lift); text-align: center; }
.sg-sang { font: inherit; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: 16px; border: 0; background: var(--primary); color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.sg-sang svg { width: 20px; height: 20px; }
.sg-sang:hover { background: #A6D2BC; color: var(--ink); }
.sg-sang.is-glow { box-shadow: 0 0 0 4px rgba(233,196,106,.45); }
.sg-sang--next { font-size: 15.5px; min-height: 52px; }
.sg-breath { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.sg-breath p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.sg-privacy { text-align: center; }

/* done */
.sg-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 6px; }
.sg-done__ring { width: 84px; height: 84px; border-radius: 50%; background: rgba(132,192,160,.16); border: 2px solid var(--primary); color: #A6D2BC; display: flex; align-items: center; justify-content: center; }
.sg-done__ring svg { width: 38px; height: 38px; }
.sg-done h2 { font-size: 30px; }
.sg-done__kind { margin: 0; font-size: 16px; line-height: 1.45; }
.sg-plus { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(232,163,117,.16); border: 1px solid rgba(232,163,117,.45); font-size: 14px; font-weight: 700; color: #F2C4A4; }
.sg-plus svg { width: 15px; height: 15px; }
.sg-newbadge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sg-newbadge > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--muted); }
.sg-newbadge small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sg-newbadge b { font-size: 16px; color: var(--text-light); }
.sg-bicon { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; background: rgba(132,192,160,.18); border: 2px solid var(--primary); color: #A6D2BC; display: inline-flex; align-items: center; justify-content: center; }
.sg-bicon svg { width: 20px; height: 20px; }
.sg-nudge { text-align: center; }

/* my singing */
.sg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .sg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sg-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sg-stats b { font-size: 22px; }
.sg-stats span { font-size: 12px; color: var(--muted); }
.sg-mdots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sg-mdot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.sg-mdot b { font-size: 11px; font-weight: 600; }
.sg-mdot.is-on { background: rgba(132,192,160,.2); border-color: var(--primary); color: #CDEBDD; }
.sg-mdot.is-future { opacity: .5; }
.sg-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .sg-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-badge { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card); border: 1px dashed #4A5260; }
.sg-badge .sg-bicon { grid-row: 1 / 3; background: transparent; border: 2px dashed #5A6472; color: var(--muted); }
.sg-badge b { font-size: 13.5px; }
.sg-badge span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.sg-badge.is-got { border-style: solid; border-color: var(--line); }
.sg-badge.is-got .sg-bicon { background: rgba(132,192,160,.18); border: 2px solid var(--primary); color: #A6D2BC; }
.sg-log { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sg-log li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #2E353F; font-size: 14px; }
.sg-log li:last-child { border-bottom: 0; }
.sg-log small { display: block; font-size: 12px; color: var(--muted); }
.sg-log b { font-weight: 600; font-size: 13px; color: var(--muted); text-align: right; flex: 0 0 auto; }
.sg-clear { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sg-clear .nb-btn { color: var(--terra); }

/* warm-up */
.sg-ring { position: relative; width: 140px; height: 140px; margin: 4px auto; }
.sg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sg-ring__bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 8; }
.sg-ring__fg { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .2s linear; }
.sg-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Literata', Georgia, serif; font-size: 34px; }

/* all songs (static list: search engines, and phones without JavaScript) */
.sg-honest p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: rgba(242,239,234,.88); }
.sg-attr { display: block; margin-top: 4px; font-size: 12.5px; }

/* Why sing? — what studies have found about singing and feelings, each with its source, then their limits */
.sg-ev { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 12px; }
.sg-ev__head { display: flex; flex-direction: column; gap: 6px; }
.sg-eyebrow { margin: 0; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.sg-ev__head h2 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); line-height: 1.2; }
.sg-ev__head p:last-child { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.55; color: rgba(242,239,234,.86); }
.sg-ev__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sg-evcard { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "i h" "p p" "s s"; align-items: center; gap: 8px 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sg-evcard__i { grid-area: i; }
.sg-evcard h3 { grid-area: h; font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sg-evcard > p { grid-area: p; margin: 0; font-size: 14px; line-height: 1.55; color: rgba(242,239,234,.9); align-self: start; }
.sg-evcard > p.sg-src { grid-area: s; align-self: end; }
.sg-src { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding-top: 8px; border-top: 1px solid #2E353F; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sg-src a { display: inline-block; padding: 5px 0; color: #A6D2BC; text-underline-offset: 2px; }
.sg-src a::after { content: '\2197'; font-size: 11px; margin-left: 3px; text-decoration: none; }
.sg-ev__limits { padding: 14px 16px; border-radius: 16px; background: rgba(233,196,106,.08); border: 1px solid rgba(233,196,106,.32); }
.sg-ev__limits h3 { font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sg-ev__limits h3 svg { width: 18px; height: 18px; color: var(--f-lift); flex: 0 0 auto; }
.sg-ev__limits p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
@media (min-width: 640px) { .sg-ev__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-evcard { grid-template-rows: auto 1fr auto; } }

.sg-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40;
  background: #242A32; color: var(--text-light); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.sg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .sg-toast, .sg-ring__fg, .sg-feel, .sg-tile__play { transition: none; } }
@media print { .sg-player, .sg-week, .sg-extras, .nb-notice { display: none !important; } }
.sg-honest details { border-top: 1px solid var(--line); }
.sg-honest details:first-of-type { margin-top: 8px; }
.sg-honest summary { cursor: pointer; font-weight: 700; font-size: 14.5px; min-height: 44px; padding: 6px 0; display: flex; align-items: center; color: var(--text-light); }
.sg-honest details p { margin: 0 0 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- the live heart (v2.44.0): beside the player, never over it ---- */
.sg-heartcard { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: visible; }
.sg-heartcard__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sg-heart__h { font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-heart__h svg { width: 17px; height: 17px; color: #FF8FB0; }
.sg-heart__label { margin: 0; font-family: 'Literata', Georgia, serif; font-size: 18px; font-weight: 600; color: #FFD3DF; }
.sg-heart__note { color: #F2C4A4; }
/* v2.49.1: how to let the heart hear you when Lockdown Mode is on (only shown on iPhone / iPad when the microphone is blocked) */
.sg-michelp { font-size: 12.5px; line-height: 1.45; color: var(--text-light); }
.sg-michelp summary { display: inline-block; cursor: pointer; color: #A6D2BC; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; padding: 4px 0; min-height: 24px; list-style: none; }
.sg-michelp summary::-webkit-details-marker { display: none; }
.sg-michelp summary::after { content: ' \25BE'; text-decoration: none; display: inline-block; margin-left: 3px; }
.sg-michelp[open] summary::after { content: ' \25B4'; }
.sg-michelp summary:focus-visible { outline: 3px solid var(--nb-terra, #C17B4A); outline-offset: 2px; border-radius: 4px; }
.sg-michelp p { margin: 4px 0 0; }
.sg-i--mic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.sg-consent ul { margin: 6px 0 8px; padding-left: 1.1em; font-size: 13px; line-height: 1.45; color: var(--text-light); }
.sg-consent li { margin-bottom: 4px; }
.sg-consent p { margin: 0; font-size: 14px; }
.sg-linkbtn { font: inherit; font-size: 13px; font-weight: 600; color: #A6D2BC; background: none; border: 0; padding: 6px 0; min-height: 32px; cursor: pointer; text-decoration: underline; align-self: flex-start; }
.sg-heart { position: relative; width: 92px; height: 92px; flex: 0 0 auto; --hg: .12; --hs: 1; }
.sg-heart__halo { position: absolute; inset: -16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 143, 176, .65) 0%, rgba(255, 143, 176, .18) 45%, rgba(255, 143, 176, 0) 70%);
  opacity: calc(var(--hg) * 1.15); transform: scale(calc(.65 + var(--hg) * .7)); transition: opacity .3s, transform .3s; }
.sg-heart__hop { position: absolute; inset: 0; display: block; }
.sg-heart__body { position: absolute; inset: 6px; display: block; transform: scale(var(--hs)); transform-origin: 50% 62%;
  filter: drop-shadow(0 0 calc(var(--hg) * 20px) rgba(255, 130, 170, calc(.15 + var(--hg) * .85))) saturate(calc(.45 + var(--hg) * .75)) brightness(calc(.78 + var(--hg) * .4)); }
.sg-heart__body svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sg-heart__happy { display: none; }
.sg-heart.is-happy .sg-heart__eyes { display: none; }
.sg-heart.is-happy .sg-heart__happy { display: inline; }
.sg-heart__cheek { opacity: calc(.15 + var(--hg) * .8); }
.sg-heart.is-singing .sg-heart__mouth { transform: translateY(1px) scaleY(1.25); transform-origin: 60px 64px; }
.sg-heart__spark { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: 0; pointer-events: none; background: #FFE08A;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sg-heart__mini { position: absolute; left: 50%; top: 40%; width: 16px; height: 15px; margin-left: -8px; opacity: 0; pointer-events: none; }
.sg-heart__mini svg { width: 100%; height: 100%; display: block; }
.sg-heart__wow { position: absolute; left: 50%; top: -14px; transform: translate(-50%, 0) scale(0); opacity: 0; pointer-events: none; z-index: 2;
  background: #FFE08A; color: #3A1F2A; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sg-heart.is-wow .sg-heart__hop { animation: sgHop 1.1s cubic-bezier(.3, 1.6, .5, 1); }
.sg-heart.is-wow .sg-heart__spark { animation: sgSpark 1.1s ease-out var(--d) forwards; }
.sg-heart.is-wow .sg-heart__mini { animation: sgFloat 1.9s ease-out var(--d) forwards; }
.sg-heart.is-wow .sg-heart__wow { animation: sgPop 2.3s ease forwards; }
.sg-heart.is-wow .sg-heart__halo { opacity: 1; transform: scale(1.5); }
@keyframes sgHop { 0% { transform: none; } 22% { transform: translateY(-14px) rotate(-9deg) scale(1.2); } 48% { transform: translateY(-6px) rotate(9deg) scale(1.12); } 72% { transform: translateY(-2px) rotate(-3deg); } 100% { transform: none; } }
@keyframes sgSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-10px) scale(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(1.15); } }
@keyframes sgFloat { 0% { opacity: 0; transform: translate(var(--x), 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) * 1.5), -86px) scale(1.1); } }
@keyframes sgPop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.3); } 12% { opacity: 1; transform: translate(-50%, -8px) scale(1.12); } 22% { transform: translate(-50%, -6px) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .sg-heart.is-wow .sg-heart__hop, .sg-heart.is-wow .sg-heart__spark, .sg-heart.is-wow .sg-heart__mini { animation: none; }
  .sg-heart.is-wow .sg-heart__wow { animation: none; opacity: 1; transform: translate(-50%, -6px) scale(1); }
  .sg-heart__halo { transition: none; }
}
@media (max-width: 360px) { .sg-heartcard { gap: 12px; padding: 12px; } .sg-heart { width: 76px; height: 76px; } }


/* ---- v2.45.0: songs as picture tiles — title and artist only; the details are on each song's screen ---- */
.sg-all { display: flex; flex-direction: column; gap: 12px; }
.sg-all__top h2 { font-size: 22px; }
.sg-all__top p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
/* v2.47.0: the search and filters stay where they are on the page (no longer stuck to the top as you scroll) */
.sg-find { display: flex; flex-direction: column; gap: 10px; position: relative; padding: 12px; margin: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255,255,255,.07); }
.sg-search { position: relative; display: flex; align-items: center; }
.sg-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.sg-search input { width: 100%; font: inherit; font-size: 16px; color: var(--text-light); background: rgba(255,255,255,.08); border: 1px solid var(--surface-border);
  border-radius: 999px; min-height: 48px; padding: 10px 48px 10px 42px; outline: none; -webkit-appearance: none; appearance: none; }
.sg-search input::placeholder { color: #9AA4B2; }
.sg-search input:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(132,192,160,.35); }
.sg-search input::-webkit-search-cancel-button { display: none; }
.sg-search__x { position: absolute; right: 4px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sg-search__x svg { width: 18px; height: 18px; }
.sg-fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-overflow-scrolling: touch; }
.sg-fchips::-webkit-scrollbar { display: none; }
.sg-fchip { flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text-light); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sg-fchip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.sg-fchip[aria-pressed="true"] { background: var(--text-light); border-color: var(--text-light); color: var(--ink); }
.sg-fchip--out i { color: var(--f-out); } .sg-fchip--shout i { color: var(--f-shout); } .sg-fchip--soothe i { color: var(--f-soothe); }
.sg-fchip--lift i { color: var(--f-lift); } .sg-fchip--belong i { color: var(--f-belong); } .sg-fchip--joy i { color: var(--f-joy); }
.sg-fchip[aria-pressed="true"] i { color: inherit; }
.sg-fchip--easy { border-style: dashed; }
.sg-fchips--sm .sg-fchip { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.sg-count { margin: 0; font-size: 13px; color: var(--muted); }
.sg-count:empty { display: none; }
.sg-empty { margin: 8px 0; font-size: 14px; color: var(--muted); list-style: none; }

.sg-shelf { display: flex; flex-direction: column; gap: 8px; }
.sg-shelf + .sg-shelf { margin-top: 22px; }
.sg-shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-shelf__head h3 { font-family: 'Figtree', sans-serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.sg-shelf__head small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.sg-shelf__all { flex: 0 0 auto; font: inherit; font-size: 13.5px; font-weight: 700; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--surface-border); background: rgba(255,255,255,.06); color: #CDEBDD; cursor: pointer; white-space: nowrap; }
.sg-shelf__all:hover { background: rgba(255,255,255,.12); color: var(--text-light); }
.sg-row2 { list-style: none; margin: 0; padding: 2px 0 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 560px) { .sg-row2 { grid-auto-columns: 46%; } }
@media (min-width: 760px) { .sg-row2 { grid-auto-columns: 38%; } }
.sg-row2 > li { scroll-snap-align: start; min-width: 0; }
.sg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 640px) { .sg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
.sg-grid > li { min-width: 0; }

.sg-tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-light); border-radius: 14px; }
.sg-row2, .sg-fchips, .sg-grid { position: relative; }   /* hidden labels stay inside their own scrolling row */
.sg-tile:hover { color: var(--text-light); }
.sg-tile__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0E1116;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sg-tile--out { --fc: var(--f-out); } .sg-tile--shout { --fc: var(--f-shout); } .sg-tile--soothe { --fc: var(--f-soothe); }
.sg-tile--lift { --fc: var(--f-lift); } .sg-tile--belong { --fc: var(--f-belong); } .sg-tile--joy { --fc: var(--f-joy); }
.sg-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-tile:hover .sg-tile__img { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px var(--fc, var(--primary)); }
.sg-tile__m { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); margin-top: -2px; font-variant-numeric: tabular-nums; min-width: 0; }
.sg-tile__m > i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc, var(--primary)); flex: 0 0 auto; }
.sg-tile__sung { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--ink); background: var(--primary); padding: 1px 6px 1px 4px; border-radius: 999px; }
.sg-tile__sung svg { width: 12px; height: 12px; stroke-width: 3; }
.sg-tile__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(132,192,160,.95); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.sg-tile__play svg { width: 18px; height: 18px; }
.sg-tile:hover .sg-tile__play, .sg-tile:focus-visible .sg-tile__play { opacity: 1; transform: none; }
@media (hover: none) { .sg-tile__play { display: none; } }
.sg-tile__t { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-tile__a { font-size: 13.5px; color: #B7C0CC; line-height: 1.3; margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the feeling screen: one big way in, then a light check-in and the songs */
.sg-pickme { font: inherit; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: 16px; cursor: pointer;
  border: 1px solid transparent; background: var(--primary); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .1s, filter .15s; }
.sg-pickme:hover { filter: brightness(1.06); }
.sg-pickme:active { transform: scale(.985); }
.sg-pickme svg { width: 24px; height: 24px; flex: 0 0 auto; }
.sg-pickme b { display: block; font-size: 16.5px; }
.sg-pickme small { display: block; font-size: 13px; opacity: .8; }
.sg-pickme--out { background: var(--f-out); } .sg-pickme--shout { background: var(--f-shout); } .sg-pickme--soothe { background: var(--f-soothe); }
.sg-pickme--lift { background: var(--f-lift); } .sg-pickme--belong { background: var(--f-belong); } .sg-pickme--joy { background: var(--f-joy); }
.sg-checkin { gap: 8px; }
.sg-ci__q { margin: 2px 0 0 !important; font-size: 13.5px !important; font-weight: 600; color: #DCE2E9; }
.sg-checkin .sg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.sg-checkin .sg-chips::-webkit-scrollbar { display: none; }
.sg-checkin .sg-chip { flex: 0 0 auto; white-space: nowrap; }
.sg-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 6px; }
.sg-listbar .sg-listh { margin: 0; }
.sg-set__pair { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: sgset; }
.sg-set__pair li { display: flex; flex-direction: column; gap: 6px; min-width: 0; counter-increment: sgset; position: relative; }
.sg-set__pair img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 10px; display: block; background: #0E1116; }
.sg-set__pair b { font-size: 13.5px; line-height: 1.3; display: block; }
.sg-set__pair small { font-size: 12px; color: var(--muted); display: block; }
.sg-set__pair small:first-child { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--f-lift); margin-bottom: 1px; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sg-tags span { font-size: 11.5px; font-weight: 600; color: #C9D1DB; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); }
.sg-songa + .sg-tags { margin-top: -2px; }

/* ---- v2.45.0: the heart takes the stage, and the page glows with it ---- */
.page-container > main, .page-container > .nb-foot { position: relative; z-index: 1; }
.sg-aura { position: fixed; inset: 0; z-index: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
html.sg-live .sg-aura { opacity: 1; }
.sg-aura i { position: absolute; inset: 0; display: block; transition: opacity .6s linear; }
/* rose first, then gold as the singing gets better; capped so text over it keeps strong contrast */
.sg-aura__rose { background: radial-gradient(130% 80% at 50% 30%, rgba(196, 44, 110, .5) 0%, rgba(160, 36, 96, .3) 45%, rgba(100, 28, 74, .15) 78%, rgba(100, 28, 74, .07) 100%);
  opacity: .4; opacity: clamp(0, calc((var(--sg-glow, 0) - .14) * 1.4), 1); }
.sg-aura__gold { background: radial-gradient(90% 55% at 50% 28%, rgba(200, 120, 40, .28) 0%, rgba(190, 96, 60, .12) 55%, rgba(190, 96, 60, 0) 85%);
  opacity: 0; opacity: clamp(0, calc((var(--sg-glow, 0) - .6) * 2.6), 1); }
html.sg-wowflash .sg-aura__gold { opacity: 1; transition: opacity .15s ease; }
/* while the page glows, the quieter text gets lighter so it stays easy to read on the warmer background (AA) */
html.sg-live .sg-view .sg-small, html.sg-live .sg-songa, html.sg-live .sg-tags span, html.sg-live .sg-calm, html.sg-live .sg-why { color: #ECE4E8; }
html.sg-live .sg-view a:not(.nb-btn):not(.sg-sang), html.sg-live .sg-linkbtn { color: #D6F0E2; }
html.sg-live .sg-heart__label { color: #FFE3EA; }
html.sg-wowflash .sg-aura__rose { opacity: 1; transition: opacity .15s ease; }

.sg-heartcard { position: relative; transition: box-shadow .5s ease, border-color .5s ease, background .5s ease; }
.sg-heartcard.is-live { flex-direction: column; text-align: center; gap: 8px; padding: 22px 16px 16px;
  border-color: rgba(255, 143, 176, .45); background: linear-gradient(180deg, rgba(255, 120, 160, .12), rgba(255, 120, 160, .03) 60%), var(--card);
  box-shadow: 0 0 0 1px rgba(255, 143, 176, .10), 0 12px 44px rgba(255, 86, 140, .10); box-shadow: 0 0 0 1px rgba(255, 143, 176, .10), 0 12px 44px rgba(255, 86, 140, calc(.08 + var(--sg-glow, 0) * .45)); }
html[data-level="3"] .sg-heartcard.is-live, html[data-level="4"] .sg-heartcard.is-live { border-color: rgba(255, 205, 120, .7); }
.sg-heartcard.is-live .sg-heartcard__txt { align-items: center; }
.sg-heartcard.is-live .sg-heart { width: 124px; height: 124px; margin: 4px auto 6px; transform: scale(calc(.88 + var(--hg) * .5)); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.sg-heartcard.is-live .sg-heart__label { font-size: 22px; }
.sg-heart__cheer { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #FFE3EA; min-height: 1.4em; }
.sg-heartcard.is-levelup { animation: sgLevel .7s ease; }
@keyframes sgLevel { 0% { transform: none; } 30% { transform: scale(1.025); } 100% { transform: none; } }
.sg-heart.is-beckon .sg-heart__hop { animation: sgBeckon 3s ease-in-out infinite; }
@keyframes sgBeckon { 0%, 66%, 100% { transform: none; } 74% { transform: rotate(-9deg) translateY(-4px); } 82% { transform: rotate(8deg) translateY(-4px); } 90% { transform: rotate(-3deg); } }
.sg-heart.is-wow.is-beckon .sg-heart__hop { animation: sgHop 1.1s cubic-bezier(.3, 1.6, .5, 1); }
.sg-burst { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; pointer-events: none; overflow: hidden; }
.sg-burst i { position: absolute; width: 20px; height: 18px; margin: -9px 0 0 -10px; opacity: 0; display: block;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C4 15 1 11 1 7a5 5 0 0 1 10-1 5 5 0 0 1 10 1c0 4-3 8-9 14z' fill='%23FF8FB0'/%3E%3C/svg%3E");
  animation: sgBurst 1.6s cubic-bezier(.15, .7, .3, 1) var(--dl) forwards; }
.sg-burst i.s { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #FFE08A; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes sgBurst { 0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); } 12% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) {
  .sg-heartcard.is-live .sg-heart { transition: none; }
  .sg-heartcard.is-levelup, .sg-heart.is-beckon .sg-heart__hop { animation: none; }
  .sg-aura, .sg-aura i { transition: none; }
}
@media print { .sg-aura, .sg-burst, .sg-find { display: none !important; } }


/* ---- v2.45.1: one layout for every screen ----
   phones (from 320 px): one column, everything in thumb reach, tiles no smaller than 126 px wide;
   phones held sideways: the video and the heart side by side, the video sized to fit the screen's height;
   tablets: two columns of cards, three of feelings;
   laptops and desktops (from 1000 px): a wider page, the song screen in two columns with the heart beside the video,
   the feeling screen with its check-in beside the big button, six feelings in a row and three columns of cards. */
.sg-feelv, .sg-song, .sg-feelv__lead, .sg-song__stage, .sg-song__side, .sg-song__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sg-song__stage { gap: 8px; }
.sg-player__note { margin-top: 0; }
/* the heading that takes focus when a screen changes (so screen readers start there) is not a control: no ring on it */
html.app .sg-view [tabindex="-1"]:focus, html.app .sg-view [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
@media (pointer: coarse) {
  .sg-chip, .sg-fchip, .sg-fchips--sm .sg-fchip { min-height: 44px; }
  .sg-back { min-height: 44px; }
  .sg-linkbtn, .sg-calm a { min-height: 44px; }
}
@media (max-width: 359px) {
  .page-container { padding: .75rem; }
  .sg-hero p { font-size: 14.5px; }
  .sg-feel { padding: 10px; min-height: 88px; }
  .sg-feel small { font-size: 12px; }
  .sg-evcard { padding: 12px 14px; }
  .sg-week { flex-wrap: wrap; }
  .sg-dot { width: 24px; height: 24px; }
}

/* phones held sideways (short and wide): the video fits the height, the heart sits beside it */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 600px) {
  .sg-hero { padding-top: .2rem; }
  .sg-feels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-song { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 38%); column-gap: 16px; row-gap: 12px; align-items: start; }
  .sg-song > .sg-back, .sg-song > .sg-setbar { grid-column: 1 / -1; }
  .sg-song__stage { grid-column: 1; }
  .sg-song__side { grid-column: 2; grid-row: span 2; position: -webkit-sticky; position: sticky; top: 8px; }
  .sg-song__info { grid-column: 1; }
  .sg-song .sg-player { width: 100%; max-width: calc((100vh - 64px) * 16 / 9); }
  .sg-heartcard { flex-direction: column; text-align: center; gap: 10px; }
  .sg-heartcard__txt { align-items: center; }
  .sg-heartcard.is-live .sg-heart { width: 104px; height: 104px; }
  .sg-row2 { grid-auto-columns: 40%; }
}

@media (min-width: 1000px) {
  main.sg { max-width: 1080px; gap: 1.25rem; }
  .sg-hero p { max-width: 620px; }
  .sg-week, .sg-view:not(.is-wide), .sg-honest { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
  .sg-feels { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sg-feel { min-height: 118px; }
  .sg-extras { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .sg-row2 { grid-auto-columns: 23.4%; grid-auto-columns: max(214px, 23.4%); gap: 16px; }
  .sg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
  .sg-find { border-radius: 14px; }
  .sg-fchips { flex-wrap: wrap; overflow: visible; }
  .sg-ev__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .sg-ev__head { align-items: center; text-align: center; }
  .sg-ev__limits { max-width: 760px; margin: 0 auto; }
  /* the song: the video and the heart side by side, the song's notes under the video */
  .sg-song { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 20px; row-gap: 14px; align-items: start; }
  .sg-song > .sg-back, .sg-song > .sg-setbar { grid-column: 1 / -1; }
  .sg-song__stage { grid-column: 1; }
  .sg-song__side { grid-column: 2; grid-row: span 2; position: -webkit-sticky; position: sticky; top: 12px; }
  .sg-song__info { grid-column: 1; }
  .sg-song .sg-player { max-width: calc((100vh - 120px) * 16 / 9); }
  .sg-heartcard { flex-direction: column; text-align: center; padding: 22px 18px 18px; gap: 12px; }
  .sg-heartcard__txt { align-items: center; }
  .sg-heartcard .sg-heart { width: 112px; height: 112px; }
  .sg-heartcard.is-live .sg-heart { width: 150px; height: 150px; }
  .sg-songh { font-size: 28px; }
  /* the feeling: the note, the big button and the set on the left, the check-in on the right, then all its songs */
  .sg-feelv { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 20px; row-gap: 14px; align-items: start; }
  .sg-feelv > * { grid-column: 1 / -1; }
  .sg-feelv > .sg-feelv__lead { grid-column: 1; }
  .sg-feelv > .sg-checkin { grid-column: 2; }
  .sg-checkin .sg-chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1400px) { main.sg { max-width: 1200px; } .sg-song { grid-template-columns: minmax(0, 1fr) 380px; } }


/* ---- v2.46.0: a visual pass on the song lists ----
   bigger song pictures (about one and a half per phone screen, three and a bit on a desktop), a scroll bar in each
   feeling's own colour, back and on arrows for mouse users, an end card that opens the whole list, tinted feeling cards,
   and a Just added shelf instead of a New badge on every tile. Nothing is drawn over YouTube's pictures. */
.sg-shelf[data-feel="out"], .sg-feel[data-feel="out"], .sg-more--out { --fr: 143, 179, 224; }
.sg-shelf[data-feel="shout"], .sg-feel[data-feel="shout"], .sg-more--shout { --fr: 232, 163, 117; }
.sg-shelf[data-feel="soothe"], .sg-feel[data-feel="soothe"], .sg-more--soothe { --fr: 132, 192, 160; }
.sg-shelf[data-feel="lift"], .sg-feel[data-feel="lift"], .sg-more--lift { --fr: 233, 196, 106; }
.sg-shelf[data-feel="belong"], .sg-feel[data-feel="belong"], .sg-more--belong { --fr: 185, 166, 224; }
.sg-shelf[data-feel="joy"], .sg-feel[data-feel="joy"], .sg-more--joy { --fr: 240, 166, 184; }
.sg-shelf--new { --fr: 255, 211, 110; }
.sg-row2 { scroll-padding-left: 2px; scrollbar-width: thin; scrollbar-color: rgba(var(--fr, 132, 192, 160), .7) rgba(255, 255, 255, .07); }
.sg-row2::-webkit-scrollbar { height: 8px; }
.sg-row2::-webkit-scrollbar-track { background: rgba(255, 255, 255, .07); border-radius: 999px; }
.sg-row2::-webkit-scrollbar-thumb { background: rgba(var(--fr, 132, 192, 160), .7); border-radius: 999px; }
.sg-row2::-webkit-scrollbar-thumb:hover { background: rgba(var(--fr, 132, 192, 160), .95); }
.sg-row2:hover { scrollbar-color: rgba(var(--fr, 132, 192, 160), .95) rgba(255, 255, 255, .1); }
.sg-row2::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* Chrome, Edge and Safari draw the rounded bar above (no arrow buttons); Firefox uses scrollbar-color */
@supports selector(::-webkit-scrollbar) { .sg-row2, .sg-row2:hover { scrollbar-width: auto; scrollbar-color: auto; } }
.sg-shelf__head { flex-wrap: nowrap; }
.sg-shelf__head h3 > span:last-child { min-width: 0; }
.sg-shelf__head .sg-ficon { width: 38px; height: 38px; border-radius: 12px; }
.sg-shelf__nav { display: none; gap: 6px; flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) { .sg-shelf__nav { display: inline-flex; } }
.sg-shelf__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--surface-border); background: rgba(255,255,255,.06); color: var(--text-light);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sg-shelf__btn svg { width: 18px; height: 18px; }
.sg-shelf__btn--next svg { transform: scaleX(-1); }
.sg-shelf__btn:hover:not(:disabled) { background: rgba(var(--fr, 132, 192, 160), .22); border-color: rgba(var(--fr, 132, 192, 160), .6); }
.sg-shelf__btn:disabled { opacity: .35; cursor: default; }
.sg-ficon--new { background: rgba(255, 211, 110, .18); color: #FFD36E; }
.sg-fchip--new i { display: none; }
.sg-fchip--new { border-color: rgba(255, 211, 110, .55); }
/* the end of each shelf: a card in the feeling's colour that opens the whole list */
.sg-more-li { scroll-snap-align: start; min-width: 0; }
.sg-more { display: block; text-decoration: none; color: var(--text-light); }
.sg-more__box { aspect-ratio: 16 / 9; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px;
  background: linear-gradient(150deg, rgba(var(--fr), .26), rgba(var(--fr), .08)); border: 1px solid rgba(var(--fr), .45); transition: background .15s; }
.sg-more__box svg { width: 22px; height: 22px; color: rgb(var(--fr)); }
.sg-more__box b { font-size: 16px; }
.sg-more__box small { font-size: 12.5px; color: #DCE2E9; }
.sg-more:hover { color: var(--text-light); }
.sg-more:hover .sg-more__box { background: linear-gradient(150deg, rgba(var(--fr), .36), rgba(var(--fr), .12)); }
/* the feelings on the home screen: each card carries its feeling's colour */
.sg-feel[data-feel] { position: relative; background: linear-gradient(155deg, rgba(var(--fr), .17), rgba(var(--fr), .04) 62%), var(--card); border-color: rgba(var(--fr), .3); }
.sg-feel[data-feel]:hover { border-color: rgba(var(--fr), .6); }
.sg-feel[data-feel] .sg-ficon { width: 38px; height: 38px; border-radius: 12px; }
.sg-feel[data-feel] small { color: #C4CCD6; }
/* section headings share one rhythm: a small coloured eyebrow, then the heading */
.sg-all__top .sg-eyebrow { margin-bottom: 4px; }
.sg-all__top h2 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); }
.sg-all { gap: 16px; }
@media (prefers-reduced-motion: reduce) { .sg-more__box { transition: none; } }

/* ---- v2.47.0: "Turn on the heart" says why, and beckons gently ---- */
.sg-heart__why { margin: 0; font-size: 14px; line-height: 1.45; color: #DCE2E9; }
.sg-heart__why b { color: #FFD3DF; font-weight: 700; }
.sg-heartbtn { background: #FF8FB0; border-color: #FF8FB0; color: #2A1520; text-align: left; padding: 8px 16px 8px 12px; gap: 10px; }
.sg-heartbtn:hover { background: #FFB0C6; border-color: #FFB0C6; color: #2A1520; }
.sg-heartbtn svg { width: 20px; height: 20px; fill: rgba(42, 21, 32, .18); }
.sg-heartbtn > span { display: flex; flex-direction: column; line-height: 1.2; }
.sg-heartbtn small { font-size: 12px; font-weight: 600; opacity: .85; }
.sg-heart__ask { position: absolute; left: 50%; top: -18px; z-index: 2; transform: translate(-50%, 4px) scale(.6); opacity: 0; pointer-events: none; white-space: nowrap;
  background: #FFD3DF; color: #2A1520; font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sg-heartcard.is-live .sg-heart__ask { display: none; }
/* the nudge (a few seconds, at most three times a visit): the heart wakes and beats lub-dub twice, says "Sing with me!",
   and the button glows in time with it — then everything rests again */
.sg-heartcard.is-nudge .sg-heart__hop { animation: sgLubdub 1.25s ease-in-out 3; }
.sg-heartcard.is-nudge .sg-heart__body { animation: sgWake 3.75s ease-in-out 1; }
.sg-heartcard.is-nudge .sg-heart__halo { animation: sgHaloOn 1.25s ease-in-out 3; }
.sg-heartcard.is-nudge .sg-heart__ask { animation: sgAsk 4.4s ease 1 forwards; }
.sg-heartcard.is-nudge .sg-heartbtn { animation: sgRing 1.25s ease-out 3; }
.sg-heartcard.is-nudge .sg-heartbtn:hover, .sg-heartcard.is-nudge .sg-heartbtn:focus-visible { animation: none; }
@keyframes sgLubdub { 0%, 46%, 100% { transform: none; } 10% { transform: scale(1.13); } 20% { transform: scale(.97); } 30% { transform: scale(1.08); } }
@keyframes sgWake { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 130, 170, .25)) saturate(.55) brightness(.83); }
  18%, 80% { filter: drop-shadow(0 0 16px rgba(255, 130, 170, .85)) saturate(1.1) brightness(1.04); } }
@keyframes sgHaloOn { 0%, 100% { opacity: .1; transform: scale(.8); } 12% { opacity: .85; transform: scale(1.12); } 40% { opacity: .3; transform: scale(.95); } }
@keyframes sgAsk { 0% { opacity: 0; transform: translate(-50%, 4px) scale(.6); } 8% { opacity: 1; transform: translate(-50%, -4px) scale(1.06); } 14% { transform: translate(-50%, -2px) scale(1); }
  86% { opacity: 1; transform: translate(-50%, -2px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px) scale(1); } }
@keyframes sgRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 143, 176, 0); } 10% { box-shadow: 0 0 20px 4px rgba(255, 143, 176, .65); } 22% { box-shadow: 0 0 8px 1px rgba(255, 143, 176, .3); }
  32% { box-shadow: 0 0 18px 3px rgba(255, 143, 176, .55); } 60% { box-shadow: 0 0 6px 0 rgba(255, 143, 176, .12); } }
@media (prefers-reduced-motion: reduce) {
  /* no movement: the heart lights up and the words show, the button wears a soft steady ring, for the same few seconds */
  .sg-heartcard.is-nudge .sg-heart__hop, .sg-heartcard.is-nudge .sg-heart__halo, .sg-heartcard.is-nudge .sg-heart__body, .sg-heartcard.is-nudge .sg-heart__ask, .sg-heartcard.is-nudge .sg-heartbtn { animation: none; }
  .sg-heartcard.is-nudge .sg-heart__body { filter: drop-shadow(0 0 12px rgba(255, 130, 170, .7)) saturate(1) brightness(1); }
  .sg-heartcard.is-nudge .sg-heart__ask { opacity: 1; transform: translate(-50%, -2px); }
  .sg-heartcard.is-nudge .sg-heartbtn { box-shadow: 0 0 0 4px rgba(255, 143, 176, .45); }
}

/* ---- v2.47.0: under the player — full screen and share ---- */
.sg-stagebtns { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-stagebtns .nb-btn { flex: 0 1 auto; }
.sg-fsbtn svg { color: #FF8FB0; }

/* ---- v2.47.0: full screen with the heart ----
   The song screen becomes a layer over everything: a bar with the song and Exit on top, then the video and the heart —
   side by side when the screen is wide, the heart under the video when it is tall. The glow sits behind both, never over
   the player; YouTube's player stays at least 200 x 200 px. */
.sg-fsbar { display: none; }
html.sg-fs-on, html.sg-fs-on body { overflow: hidden !important; }
html.sg-fs-on .page-container { overflow: hidden !important; }
html.sg-fs-on .page-container > main { z-index: 2500; }
html.sg-fs-on .sg-burst, html.sg-fs-on .sg-toast { z-index: 2600; }
.sg-song.is-fs { position: fixed; inset: 0; z-index: 2500; margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: start; justify-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  background: linear-gradient(-45deg, #151A2B, #1E3A2E, #1A1F36, #2A4A3A); }
.sg-song.is-fs::before, .sg-song.is-fs::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s linear; }
.sg-song.is-fs::before { background: radial-gradient(130% 80% at 50% 30%, rgba(196, 44, 110, .5) 0%, rgba(160, 36, 96, .3) 45%, rgba(100, 28, 74, .15) 78%, rgba(100, 28, 74, .07) 100%); }
.sg-song.is-fs::after { background: radial-gradient(90% 55% at 50% 28%, rgba(200, 120, 40, .28) 0%, rgba(190, 96, 60, .12) 55%, rgba(190, 96, 60, 0) 85%); }
html.sg-live .sg-song.is-fs::before { opacity: clamp(0, calc((var(--sg-glow, 0) - .14) * 1.4), 1); }
html.sg-live .sg-song.is-fs::after { opacity: clamp(0, calc((var(--sg-glow, 0) - .6) * 2.6), 1); }
html.sg-wowflash .sg-song.is-fs::before, html.sg-wowflash .sg-song.is-fs::after { opacity: 1; transition: opacity .15s ease; }
.sg-song.is-fs > .sg-back, .sg-song.is-fs > .sg-setbar, .sg-song.is-fs > .sg-song__info, .sg-song.is-fs .sg-stagebtns, .sg-song.is-fs .sg-player__note { display: none !important; }
.sg-song.is-fs > .sg-fsbar { display: flex; grid-column: 1 / -1; grid-row: 1; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.sg-fsbar__t { margin: 0; min-width: 0; font-size: 15px; line-height: 1.3; overflow: hidden; }
.sg-fsbar__t b { font-family: 'Literata', Georgia, serif; font-weight: 600; font-size: 17px; }
.sg-fsbar__t span { color: #DCE2E9; }
.sg-fsbar__t small { display: block; font-size: 12px; color: #C9D1DA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-fsbar__x { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-light); background: rgba(255,255,255,.1); border: 1px solid var(--surface-border); }
.sg-fsbar__x:hover { background: rgba(255,255,255,.2); }
.sg-fsbar__x svg { width: 18px; height: 18px; }
.sg-song.is-fs { grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr); align-content: stretch; }   /* tall screens: the video and heart sit in the middle */
.sg-song.is-fs > .sg-song__stage { grid-column: 1; grid-row: 3; width: 100%; position: relative; z-index: 2; }
.sg-song.is-fs > .sg-song__side { grid-column: 1; grid-row: 4; width: 100%; max-width: 560px; position: static; }
.sg-song.is-fs .sg-player { width: 100%; max-width: calc((100vh - 330px) * 16 / 9); max-width: calc((100dvh - 330px) * 16 / 9); min-width: 200px; min-height: 200px; margin: 0 auto; }
.sg-song.is-fs .sg-heartcard { background: rgba(20, 24, 32, .55); }
.sg-song.is-fs .sg-heartcard.is-live { padding: 30px 16px 16px; }
.sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 132px; height: 132px; }
/* wide screens and phones held sideways: the video fills the height, the heart sits beside it */
@media (orientation: landscape) {
  .sg-song.is-fs { grid-template-columns: minmax(0, 1fr) minmax(210px, 30%); grid-template-rows: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 8px; }
  .sg-song.is-fs > .sg-song__stage { grid-column: 1; grid-row: 2; align-self: center; }
  .sg-song.is-fs > .sg-song__side { grid-column: 2; grid-row: 2; align-self: center; max-width: none; }
  .sg-song.is-fs .sg-player { max-width: calc((100vh - 84px) * 16 / 9); max-width: calc((100dvh - 84px) * 16 / 9); }
  .sg-song.is-fs .sg-heartcard { flex-direction: column; text-align: center; gap: 10px; }
  .sg-song.is-fs .sg-heartcard__txt { align-items: center; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 160px; height: 160px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .sg-song.is-fs { grid-template-columns: minmax(0, 1fr) minmax(200px, 34%); }
  .sg-song.is-fs .sg-fsbar__t small { display: none; }
  .sg-song.is-fs .sg-heartcard { padding: 10px; gap: 6px; }
  .sg-song.is-fs .sg-heartcard .sg-heart { width: 72px; height: 72px; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 104px; height: 104px; }
  .sg-song.is-fs .sg-heart__why { font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .sg-song.is-fs .sg-heart__more { display: none; }
  .sg-song.is-fs .sg-fsbar__x { padding: 6px 12px; }
}
@media (orientation: landscape) and (min-width: 1000px) {
  .sg-song.is-fs { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; padding-left: 28px; padding-right: 28px; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 170px; height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .sg-song.is-fs::before, .sg-song.is-fs::after { transition: none; } }
@media print { .sg-stagebtns, .sg-fsbar { display: none !important; } }

/* ---- v2.47.0: a song's own page (sing/<song>/) and every song A–Z (sing/all/) ---- */
.sg-sp { gap: 1.1rem; }
.sg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.sg-crumbs a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; }
.sg-crumbs a:hover { text-decoration: underline; }
.sg-crumbs > span { color: var(--muted); }
.sg-sp__song { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sg-sp__head { display: flex; flex-direction: column; gap: 6px; }
.sg-sp__eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.sg-sp__eyebrow .sg-ficon { width: 26px; height: 26px; border-radius: 8px; }
.sg-sp__eyebrow .sg-ficon svg { width: 15px; height: 15px; }
.sg-sp h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.15; }
.sg-sp__by { margin: 0; font-size: 17px; color: #DCE2E9; }
.sg-sp__lead { margin: 0; font-size: 15px; line-height: 1.55; color: #DCE2E9; }
.sg-sp__stage { display: flex; flex-direction: column; gap: 8px; }
.sg-sp__side { display: flex; flex-direction: column; gap: 10px; }
.sg-sp__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-sp__open { flex: 1 1 260px; justify-content: flex-start; text-align: left; padding: 10px 16px; }
.sg-sp__open > span { display: flex; flex-direction: column; line-height: 1.25; }
.sg-sp__open small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.sg-sp__actions .nb-btn--ghost { flex: 0 0 auto; }
.sg-sp__about { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sg-sp__about p { margin: 0; font-size: 15px; line-height: 1.55; }
.sg-sp__about h3 { font-size: 17px; margin-top: 4px; }
.sg-sp__facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sg-sp__facts div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sg-sp__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sg-sp__facts dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; }
.sg-sp__tips { margin: 0; padding-left: 1.15em; font-size: 14.5px; line-height: 1.5; }
.sg-sp__tips li { margin-bottom: 6px; }
.sg-sp__more { display: flex; flex-direction: column; gap: 12px; }
.sg-sp__all { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sg-sp__fine { padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.sg-az__jump { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sg-az__jump a { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 700; text-decoration: none; }
.sg-az__jump a:hover { background: rgba(255,255,255,.14); }
.sg-az__group { display: flex; flex-direction: column; gap: 4px; }
.sg-az__list { list-style: none; margin: 0; padding: 0; }
.sg-az__list li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.4; }
.sg-az__list a { font-weight: 600; }
.sg-az__meta { display: block; font-size: 13px; color: var(--muted); }
@media (min-width: 1000px) {
  /* wide screens: the video, with the buttons beside it; the notes and more songs under both */
  main.sg.sg-sp { max-width: 1040px; }
  .sg-sp .sg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-sp__song { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; row-gap: 14px; align-items: start; }
  .sg-sp__song > * { grid-column: 1 / -1; }
  .sg-sp__song > .sg-sp__stage { grid-column: 1; grid-row: 2; }
  .sg-sp__song > .sg-sp__side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 12px; }
  .sg-sp__actions { flex-direction: column; }
  .sg-sp__actions .nb-btn { flex: 0 0 auto; width: 100%; justify-content: flex-start; }
  .sg-sp .sg-player { max-height: none; }
}

/* v2.47.0: the video always sits above the heart's glow, halo and shadow, so nothing of the heart is ever drawn over
   YouTube's player, whatever the layout; the heart's own controls stay centred under it while it is live */
.sg-song__stage { position: relative; z-index: 2; }
.sg-heartcard.is-live .sg-linkbtn { align-self: center; }

/* ---- v2.48.0: when a song ends, the heart celebrates the singing it heard (never the watching) ---- */
.sg-heart__yay { position: absolute; left: 50%; top: -18px; z-index: 3; transform: translate(-50%, 6px) scale(.3); opacity: 0; pointer-events: none; white-space: nowrap;
  background: #FFE08A; color: #2A1520; font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.sg-heartcard.is-finale .sg-heart__yay { animation: sgYay 5.2s ease forwards; }
.sg-heartcard.is-finale .sg-heart__wow { display: none; }
.sg-heartcard.is-finale .sg-heart__eyes { display: none; }
.sg-heartcard.is-finale .sg-heart__happy { display: inline; }
.sg-heartcard.is-finale .sg-heart__cheek { opacity: 1; }
.sg-heartcard.is-finale .sg-heart__hop { animation: sgJoy 1.3s cubic-bezier(.3, 1.5, .5, 1) 3; }
.sg-heartcard.is-finale .sg-heart__spark { animation: sgSpark 1.1s ease-out var(--d) 3; }
.sg-heartcard.is-finale .sg-heart__mini { animation: sgFloat 1.8s ease-out var(--d) 2; }
.sg-heartcard.is-finale .sg-heart__halo { opacity: 1; transform: scale(1.6); transition: opacity .3s, transform .5s; }
.sg-heartcard.is-finale .sg-heart__body { filter: drop-shadow(0 0 22px rgba(255, 150, 190, .95)) saturate(1.15) brightness(1.08); }
.sg-heartcard.is-finale { border-color: rgba(255, 205, 120, .85); box-shadow: 0 0 0 1px rgba(255, 205, 120, .3), 0 12px 60px rgba(255, 170, 90, .35); }
.sg-heartcard.is-finale .sg-heart__label { color: #FFE9B0; }
html.sg-finale .sg-aura { opacity: 1; }
html.sg-finale .sg-aura__rose, html.sg-finale .sg-aura__gold, html.sg-finale .sg-song.is-fs::before, html.sg-finale .sg-song.is-fs::after { opacity: 1; transition: opacity .4s ease; }
@keyframes sgJoy { 0%, 100% { transform: none; } 16% { transform: translateY(-20px) rotate(-10deg) scale(1.2); } 32% { transform: translateY(-4px) rotate(8deg) scale(1.08); }
  50% { transform: translateY(-16px) rotate(-6deg) scale(1.16); } 68% { transform: translateY(-2px) rotate(4deg) scale(1.04); } }
@keyframes sgYay { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.3); } 6% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 12% { transform: translate(-50%, -6px) scale(1); }
  88% { opacity: 1; transform: translate(-50%, -6px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -14px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  /* still: the heart smiles and glows, the words show, the page warms — nothing moves */
  .sg-heartcard.is-finale .sg-heart__hop, .sg-heartcard.is-finale .sg-heart__spark, .sg-heartcard.is-finale .sg-heart__mini, .sg-heartcard.is-finale .sg-heart__yay { animation: none; }
  .sg-heartcard.is-finale .sg-heart__yay { opacity: 1; transform: translate(-50%, -6px); }
  .sg-heartcard.is-finale .sg-heart__halo, html.sg-finale .sg-aura__rose, html.sg-finale .sg-aura__gold { transition: none; }
}

/* ---- v2.48.1: full screen on a phone held sideways (a short screen): everything stays on the screen ----
   The song's name and Exit sit above the video; the heart has the whole height beside them, and its card scrolls inside
   itself only if a very short screen can't fit it (the switch's explanation, on the smallest phones). */
@media (orientation: landscape) and (max-height: 500px) {
  .sg-song.is-fs { grid-template-columns: minmax(0, 1fr) minmax(200px, 36%); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
    grid-template-areas: ". side" "bar side" "stage side" ". side"; align-items: stretch; align-content: stretch; column-gap: 14px; row-gap: 0;
    padding: max(6px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .sg-song.is-fs > .sg-fsbar { grid-area: bar; min-height: 40px; gap: 8px; margin-bottom: 6px; }
  .sg-song.is-fs > .sg-song__stage { grid-area: stage; align-self: start; }
  .sg-song.is-fs > .sg-song__side { grid-area: side; align-self: stretch; min-height: 0; max-height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .sg-song.is-fs .sg-player { max-width: calc((100vh - 64px) * 16 / 9); max-width: calc((100dvh - 64px) * 16 / 9); }
  .sg-song.is-fs .sg-fsbar__t { white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
  .sg-song.is-fs .sg-fsbar__t b { font-size: 15px; }
  .sg-song.is-fs .sg-fsbar__x { min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .sg-song.is-fs .sg-heartcard { flex: 0 1 auto; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px; gap: 6px; }
  .sg-song.is-fs .sg-heartcard .sg-heart { width: 64px; height: 64px; }
  .sg-song.is-fs .sg-heartcard.is-live { padding: 16px 10px 10px; gap: 4px; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 84px; height: 84px; margin: 2px auto 6px; }
  .sg-song.is-fs .sg-heart__h { font-size: 13.5px; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart__label { font-size: 18px; }
  .sg-song.is-fs .sg-heart__cheer { font-size: 13.5px; min-height: 0; }
  .sg-song.is-fs .sg-heartcard .sg-small, .sg-song.is-fs .sg-heart__why { font-size: 12px; }
  .sg-song.is-fs .sg-heartbtn { padding: 6px 12px 6px 10px; }
  .sg-song.is-fs .sg-linkbtn { min-height: 30px; padding: 2px 0; }
  .sg-song.is-fs .sg-heart__wow, .sg-song.is-fs .sg-heart__ask, .sg-song.is-fs .sg-heart__yay { top: -6px; font-size: 12px; }
  /* the heart's switch, with what it does with the microphone: the picture of the heart steps aside for the words */
  .sg-song.is-fs .sg-heartcard.is-ask { text-align: left; }
  .sg-song.is-fs .sg-heartcard.is-ask .sg-heart { display: none; }
  .sg-song.is-fs .sg-heartcard.is-ask .sg-heartcard__txt { align-items: stretch; }
  .sg-song.is-fs .sg-consent p { font-size: 13px; }
  .sg-song.is-fs .sg-consent ul { font-size: 12px; margin: 4px 0 6px; }
  .sg-song.is-fs .sg-consent .sg-btns { gap: 6px; }
  .sg-song.is-fs .sg-consent .nb-btn--sm { min-height: 40px; padding: 6px 10px; }
}
@media (orientation: landscape) and (max-height: 330px) {
  /* the very shortest screens: while the heart listens, its heading makes way */
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart__h { display: none; }
  .sg-song.is-fs .sg-heartcard.is-live .sg-heart { width: 72px; height: 72px; }
  .sg-song.is-fs .sg-heartcard .sg-heart { width: 56px; height: 56px; }
}

/* ---- v2.49.0: tapping along, where the browser blocks the microphone (iPhone's Lockdown Mode) ----
   A big, easy button (and the heart itself) to tap on the beat; a tap counts the moment the finger lands. */
.sg-tapbtn { background: #FF8FB0; border-color: #FF8FB0; color: #2A1520; min-height: 48px; min-width: 168px; padding: 8px 20px; gap: 10px; font-size: 16px; font-weight: 800;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.sg-tapbtn:hover { background: #FFB0C6; border-color: #FFB0C6; color: #2A1520; }
.sg-tapbtn svg { width: 20px; height: 20px; fill: rgba(42, 21, 32, .25); }
.sg-tapbtn.is-tapped { animation: sgTap .22s ease-out 1; }
@keyframes sgTap { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
.sg-heart.is-beat { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sg-player__err { margin: 8px 0 0; color: #F2C4A4; }
.sg-player__err a { color: #FFD3DF; }
@media (prefers-reduced-motion: reduce) { .sg-tapbtn.is-tapped { animation: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .sg-song.is-fs .sg-tapnote, .sg-song.is-fs .sg-michelp { display: none; }
  .sg-song.is-fs .sg-tapbtn { min-height: 44px; font-size: 15px; padding: 6px 16px; }
}

/* v2.48.1: a message that would cover the video is read out by screen readers but not shown (sing.js toast) */
.sg-toast.is-quiet { opacity: 0 !important; clip-path: inset(50%); }
