/* The front page of samljod.fo: what is being streamed, and the way in.
   Signed out: the streams and the sign-in. Signed in: the streams and the
   member's own ensembles, each entered by its emblem. */
body.sf { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(160deg, #fdf6ec, #f3e3cd) fixed; color: #1f1b16; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.sf a { color: inherit; text-decoration: none; }
.sf h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a6a58; display: flex; align-items: center; gap: 8px; }
.sf section + section { margin-top: 26px; }

.sf-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px; }
.sf-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.sf-brand img { border-radius: 9px; }
.sf-brand strong { font-size: 20px; letter-spacing: -.01em; }
.sf-user { font-size: 14px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sf-quiet { white-space: nowrap; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border: 1px solid rgba(138, 65, 6, .3); border-radius: 10px; background: rgba(255, 255, 255, .6); color: #8a4106; cursor: pointer; }
.sf-quiet:hover { background: #fff; }

.sf-main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 12px 16px 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
/* On a phone the way in comes first, unless something is on right now. */
.sf-streams { order: 2; min-width: 0; }
.sf-main.has-live .sf-streams { order: 0; }
.sf-side { order: 1; min-width: 0; }
@media (min-width: 900px) {
    .sf-main.has-streams { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 400px); gap: 40px; align-items: start; align-content: start; padding-top: 28px; }
    .sf-main.has-streams .sf-streams { order: 0; }
    .sf-main.has-streams .sf-side { position: sticky; top: 24px; }
}

/* Live: one large card in the ensemble's own colours. */
.sf-dot { width: 9px; height: 9px; border-radius: 50%; background: #c62828; box-shadow: 0 0 0 0 rgba(198, 40, 40, .5); animation: sf-pulse 1.8s infinite; }
@keyframes sf-pulse { 70% { box-shadow: 0 0 0 9px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .sf-dot { animation: none; } }
.sf a.sf-live { --sj-rail: #1f1b16; --sj-highlight: #fcd34d; position: relative; display: grid; gap: 8px; align-content: end; min-height: clamp(220px, 34vw, 380px); padding: clamp(18px, 3vw, 32px); margin-bottom: 12px; border-radius: 22px; overflow: hidden; color: #fff; background: var(--sj-rail); box-shadow: 0 18px 50px rgba(40, 25, 5, .22); isolation: isolate; }
.sf-live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--sj-rail) 30%, transparent) 0%, color-mix(in srgb, var(--sj-rail) 82%, transparent) 48%, var(--sj-rail) 82%), var(--sf-photo, none) center / cover; }
.sf-live-band { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; opacity: .95; }
.sf-live-band img, .sf-live-band .sf-mark { width: 54px; height: 38px; }
.sf-live strong { font-size: clamp(26px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.sf-live-where { font-size: 15px; opacity: .85; }
.sf-live-go { justify-self: start; margin-top: 8px; padding: 12px 20px; border-radius: 12px; background: var(--sj-highlight); color: #1b1505; font-weight: 700; font-size: 16px; }
.sf-live:hover .sf-live-go, .sf-live:focus-visible .sf-live-go { filter: brightness(1.08); }
.sf-live:focus-visible, .sf-row:focus-visible, .sf-band:focus-visible { outline: 3px solid rgba(180, 83, 9, .5); outline-offset: 3px; }

.sf img { object-fit: contain; background: #fff; border-radius: 8px; padding: 3px 4px; box-sizing: border-box; }
.sf-brand img { padding: 0; background: none; }
.sf-mark { --sj-accent: #b45309; display: inline-grid; place-items: center; border-radius: 8px; background: var(--sj-accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }

.sf-rows { display: grid; gap: 8px; }
.sf-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(60, 40, 10, .07); border: 1px solid transparent; }
.sf-row:hover { border-color: var(--sj-accent, #b45309); }
.sf-row img, .sf-row .sf-mark { flex: none; width: 58px; height: 40px; }
.sf-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sf-row-text strong { font-size: 16px; line-height: 1.2; }
.sf-row-text span { font-size: 13px; opacity: .7; }
.sf-row-when { flex: none; font-size: 13px; font-weight: 600; color: #7a6a58; white-space: nowrap; }

/* The member's ensembles: enter by the emblem. */
.sf-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-bands.is-single { grid-template-columns: 1fr; }
.sf-band { --sj-accent: #b45309; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px 16px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(60, 40, 10, .07); border-top: 4px solid var(--sj-accent); transition: transform .12s ease, box-shadow .12s ease; }
.sf-band:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(60, 40, 10, .14); }
.sf-band-logo { display: grid; place-items: center; height: 84px; margin-bottom: 6px; }
.sf-band-logo img { width: 120px; height: 84px; padding: 0; }
.sf-band-logo .sf-mark { width: 84px; height: 84px; border-radius: 50%; font-size: 26px; }
.sf-band strong { font-size: 16px; line-height: 1.2; text-wrap: balance; }
.sf-band > span:last-child { font-size: 13px; opacity: .7; }
.sf-empty { margin: 0; padding: 18px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.45; }

.sf-login { background: #fff; border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 18px 50px rgba(90, 50, 10, .14); }
.sf-login h1 { margin: 0 0 4px; font-size: 26px; }
.sf-lead { margin: 0 0 18px; opacity: .7; font-size: 15px; }
.sf-lead:has(+ .sf-what) { margin-bottom: 10px; }
.sf-what { margin: 0 0 18px; }
.sf-login .sf-what-open { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid #e3d6c6; border-radius: 999px; background: #fbf6ee; color: #5b3a12; font-size: 14px; font-weight: 700; }
.sf-login .sf-what-open:hover, .sf-login .sf-what-open:focus-visible { background: #f4e9d8; border-color: #b45309; }
.sf-login .sf-what-open:focus-visible { outline: 3px solid rgba(180, 83, 9, .35); }
.sf-what-open span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #b45309; color: #fff; font: italic 700 13px/1 Georgia, 'Times New Roman', serif; }
.sf-login form { display: grid; gap: 14px; }
.sf-login label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.sf-login input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9cfc2; }
.sf-login input:focus-visible { outline: 3px solid rgba(180, 83, 9, .35); border-color: #b45309; }
.sf-login button { font: inherit; font-weight: 700; padding: 13px 16px; border: 0; border-radius: 12px; background: #b45309; color: #fff; cursor: pointer; }
.sf-login button:hover { background: #8a4106; }
.sf-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.sf-under { margin: 14px 0 0; font-size: 14px; text-align: center; }
.sf-under a { color: #8a4106; }
.sf-top form { margin: 0; flex: none; }
.sf-live strong, .sf-live-band, .sf-live-where { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }

/* The language switch under the page. */
.samljod-language { display: flex; width: max-content; gap: 2px; margin: 22px auto 0; padding: 2px; border-radius: 999px; background: rgba(60, 40, 10, .1); }
.samljod-language button { border: 0; border-radius: 999px; padding: 6px 14px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .7; }
.samljod-language button.is-active { background: #fff; color: #1f1b16; opacity: 1; box-shadow: 0 1px 3px rgba(60, 40, 10, .18); }

.sf-language { padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); }
.sf-language .samljod-language { margin-top: 0; }
