/*!
 * Sangriha features: hero caption below, author stories, audio player,
 * highlights & quote cards, live weather, box office. Mobile first.
 */

/* =========================================================================
 * Hero: caption BELOW the image (desktop). Mobile is already below.
 * ========================================================================= */
@media (min-width: 1024px) {
	.sg-cine--below .sg-cine__slide { gap: 0; }
	.sg-cine--below .sg-cine__media { aspect-ratio: 16 / 8.2; border-radius: 28px 28px 0 0; box-shadow: none; }
	.sg-cine--below .sg-cine__shade { background: linear-gradient(180deg, transparent 70%, rgba(8, 3, 5, .28)); }
	.sg-cine--below .sg-cine__num { top: auto; bottom: 14px; right: 24px; }
	.sg-cine--below .sg-cine__body {
		position: relative; left: auto; right: auto; bottom: auto; max-width: none; z-index: 2;
		color: var(--sg-text); padding: 22px 30px 24px; gap: 10px;
		background: var(--sg-surface); border: 1px solid var(--sg-line); border-top: 0;
		border-radius: 0 0 28px 28px; box-shadow: var(--sg-shadow-lg);
		display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: end;
	}
	.sg-cine--below .sg-cine__body::before {
		content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
		background: var(--sg-grad); transform-origin: 0 50%; transform: scaleX(0);
	}
	.sg-cine--below .sg-cine__slide.is-on .sg-cine__body::before { animation: sg-cine-line 1.1s .1s var(--sg-ease) forwards; }
	.sg-cine--below .sg-cine__body > .sg-chip, .sg-cine--below .sg-cine__title, .sg-cine--below .sg-cine__dek { grid-column: 1; }
	.sg-cine--below .sg-cine__foot { grid-column: 1 / -1; padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--sg-line); }
	.sg-cine--below .sg-cine__title { font-size: clamp(1.6rem, 2.3vw, 2.35rem); }
	.sg-cine--below .sg-cine__body .sg-chip { background: color-mix(in srgb, var(--sg-brand) 10%, transparent); color: var(--sg-brand); -webkit-backdrop-filter: none; backdrop-filter: none; justify-self: start; }
	.sg-cine--below .sg-cine__dek { color: var(--sg-muted); font-size: 1rem; }
	.sg-cine--below .sg-cine__body .sg-meta, .sg-cine--below .sg-cine__body .sg-meta * { color: var(--sg-muted) !important; }
	.sg-cine--below .sg-cine__body .sg-meta .sg-verified, .sg-cine--below .sg-cine__body .sg-meta .sg-verified * { color: #1d9bf0 !important; }
	.sg-cine--below .sg-cine__body .sg-verified .sg-i { filter: none; }
	.sg-cine--below .sg-cine__cta { background: var(--sg-text); color: var(--sg-bg); }
	.sg-cine--below .sg-cine__cta:hover { color: var(--sg-bg); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--sg-brand) 70%, transparent); }
}
@media (min-width: 1280px) { .sg-cine--below .sg-cine__title { font-size: 2.4rem; } }
@keyframes sg-cine-line { to { transform: scaleX(1); } }

/* =========================================================================
 * Stories: author rings + verified tick
 * ========================================================================= */
.sg-story--author .sg-story__ring { position: relative; background: conic-gradient(from 200deg, #1d9bf0, #7c3aed, var(--sg-brand), #ffb347, #1d9bf0); animation: sg-ring-spin 6s linear infinite paused; }
.sg-story--author:hover .sg-story__ring { animation-play-state: running; }
.sg-story--author .sg-story__av img { object-position: 50% 22%; }
.sg-story__tick { position: absolute; right: -1px; bottom: 1px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sg-bg); color: #1d9bf0; animation: sg-tick-pop .5s .3s var(--sg-spring) both; }
.sg-story__tick .sg-i { width: 18px; height: 18px; }
.sg-story--author.is-seen .sg-story__ring { background: var(--sg-line); animation: none; }
@keyframes sg-ring-spin { to { filter: hue-rotate(360deg); } }
@keyframes sg-tick-pop { from { transform: scale(0); } }

/* =========================================================================
 * Audiobook & Audio Overview player
 * ========================================================================= */
.sg-au {
	--au-a: var(--sg-brand); --au-b: #7c3aed; --au-c: #2563eb;
	position: relative; isolation: isolate; overflow: hidden;
	margin: 0 0 1.8em; padding: 14px; border-radius: 22px;
	background: var(--sg-surface); color: var(--sg-text);
	border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow);
	font-family: var(--sg-font); line-height: 1.4;
	transition: box-shadow .4s var(--sg-ease), transform .3s var(--sg-ease);
}
.sg-au * { box-sizing: border-box; }
.sg-au button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sg-au__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sg-au__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.sg-au__play {
	position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%;
	background: linear-gradient(135deg, var(--au-a), var(--au-b) 60%, var(--au-c)); color: #fff !important;
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--au-b) 70%, transparent);
	transition: transform .25s var(--sg-spring);
}
.sg-au__play:hover { transform: scale(1.06); }
.sg-au__play:active { transform: scale(.92); }
.sg-au__play svg { width: 24px; height: 24px; fill: currentColor; grid-area: 1 / 1; transition: transform .3s var(--sg-spring), opacity .2s; }
.sg-au__play .i-pause, .sg-au.is-playing .sg-au__play .i-play { opacity: 0; transform: scale(.4) rotate(-90deg); }
.sg-au.is-playing .sg-au__play .i-pause { opacity: 1; transform: none; }
.sg-au__ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--au-b) 55%, transparent); opacity: 0; pointer-events: none; }
.sg-au:not(.is-open) .sg-au__ring { animation: sg-au-ping 2.4s var(--sg-ease) infinite; }
.sg-au.is-playing .sg-au__ring { animation: sg-au-ping 1.4s var(--sg-ease) infinite; }
@keyframes sg-au-ping { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.45); } }
.sg-au__txt { display: grid; gap: 1px; min-width: 0; }
.sg-au__kick { color: var(--sg-muted); font: 600 .74rem var(--sg-font); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-au__cta { font: 750 1.04rem/1.25 var(--sg-display); background: linear-gradient(90deg, var(--sg-text), var(--sg-text) 40%, var(--au-b) 50%, var(--sg-text) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sg-au-shine 5s linear infinite; }
@keyframes sg-au-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.sg-au__idle { display: flex; align-items: center; gap: 3px; height: 30px; }
.sg-au__idle i { width: 3px; border-radius: 3px; background: linear-gradient(var(--au-a), var(--au-b)); height: 30%; opacity: .75; animation: sg-au-idle 1.4s calc(var(--i) * -.09s) ease-in-out infinite alternate; }
.sg-au__idle i:nth-child(n+11) { display: none; }
@keyframes sg-au-idle { to { height: 95%; } }
.sg-au.is-open .sg-au__idle { opacity: 0; width: 0; overflow: hidden; transition: opacity .3s, width .4s; }
.sg-au__tabs { display: flex; gap: 6px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--sg-surface-2); overflow-x: auto; scrollbar-width: none; }
.sg-au__tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; font: 650 .84rem var(--sg-font) !important; color: var(--sg-muted) !important; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.sg-au__tabs button small { opacity: .7; font-weight: 500; }
.sg-au__tabs button.is-on { background: var(--sg-surface); color: var(--sg-text) !important; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3); }
.sg-au__body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--sg-ease), opacity .4s .1s, margin .5s var(--sg-ease); }
.sg-au__body > * { min-height: 0; overflow: hidden; }
.sg-au.is-open .sg-au__body { grid-template-rows: auto auto auto; opacity: 1; margin-top: 12px; }
.sg-au:not(.is-open) .sg-au__body > * { max-height: 0; }
.sg-au__viz { position: relative; height: 96px; border-radius: 16px; overflow: hidden; }
.sg-au__viz canvas { display: block; width: 100%; height: 100%; }
.sg-au__seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 2px 4px; font: 600 .76rem var(--sg-font); font-variant-numeric: tabular-nums; color: var(--sg-muted); }
.sg-au__track { position: relative; height: 20px; cursor: pointer; touch-action: none; outline: none; }
.sg-au__track::before, .sg-au__buf, .sg-au__fill { content: ""; position: absolute; left: 0; top: 8px; height: 4px; border-radius: 4px; }
.sg-au__track::before { right: 0; background: var(--sg-line); }
.sg-au__buf { background: color-mix(in srgb, var(--sg-text) 14%, transparent); width: 0; }
.sg-au__fill { width: 0; background: linear-gradient(90deg, var(--au-a), var(--au-b), var(--au-c)); }
.sg-au__knob { position: absolute; top: 3px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--au-b), 0 4px 10px rgba(0, 0, 0, .3); transform: scale(.7); transition: transform .2s var(--sg-spring); }
.sg-au__track:hover .sg-au__knob, .sg-au.is-seeking .sg-au__knob, .sg-au__track:focus-visible .sg-au__knob { transform: scale(1.1); }
.sg-au__ctl { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.sg-au__ctl button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--sg-line); border-radius: 999px; background: var(--sg-surface-2); transition: transform .2s var(--sg-spring), background .2s; }
.sg-au__ctl button:active { transform: scale(.9); }
.sg-au__ctl svg { width: 22px; height: 22px; fill: currentColor; }
.sg-au__ctl svg text { font: 800 6.2px var(--sg-font); fill: currentColor; }
.sg-au__speed span { font: 750 .82rem var(--sg-font); font-variant-numeric: tabular-nums; }
.sg-au__voice { flex-basis: 100%; text-align: center; color: var(--sg-muted); font-size: .76rem; }
.sg-au__voice:empty { display: none; }
.sg-au.is-playing { box-shadow: 0 24px 50px -26px color-mix(in srgb, var(--au-b) 65%, transparent); }

/* Layout: card (default) — soft gradient edge */
.sg-au--card { background: linear-gradient(var(--sg-surface), var(--sg-surface)) padding-box, linear-gradient(135deg, color-mix(in srgb, var(--au-a) 40%, var(--sg-line)), var(--sg-line) 40%, color-mix(in srgb, var(--au-c) 40%, var(--sg-line))) border-box; border: 1.5px solid transparent; }
.sg-au--card .sg-au__bg { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--au-a) 8%, transparent), transparent 55%), radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--au-c) 8%, transparent), transparent 55%); }
.sg-au--card .sg-au__viz { background: color-mix(in srgb, var(--sg-surface-2) 60%, transparent); }

/* Layout: glass — cover art blurred behind frosted glass */
.sg-au--glass { color: #fff; border-color: rgba(255, 255, 255, .18); background: #1b1220; }
.sg-au--glass .sg-au__bg { background: var(--art, linear-gradient(135deg, var(--au-a), var(--au-c))) center / cover; filter: blur(28px) saturate(1.5) brightness(.7); transform: scale(1.3); }
.sg-au--glass .sg-au__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20, 8, 24, .45), rgba(10, 12, 30, .55)); }
.sg-au--glass.is-playing .sg-au__bg { animation: sg-au-drift 18s ease-in-out infinite alternate; }
@keyframes sg-au-drift { to { transform: scale(1.5) translate(4%, -3%); } }
.sg-au--glass .sg-au__kick, .sg-au--glass .sg-au__seek, .sg-au--glass .sg-au__voice { color: rgba(255, 255, 255, .72); }
.sg-au--glass .sg-au__cta { background: linear-gradient(90deg, #fff, #fff 40%, #fde68a 50%, #fff 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; }
.sg-au--glass .sg-au__tabs { background: rgba(255, 255, 255, .1); }
.sg-au--glass .sg-au__tabs button { color: rgba(255, 255, 255, .7) !important; }
.sg-au--glass .sg-au__tabs button.is-on { background: rgba(255, 255, 255, .2); color: #fff !important; }
.sg-au--glass .sg-au__ctl button { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
.sg-au--glass .sg-au__track::before { background: rgba(255, 255, 255, .2); }
.sg-au--glass .sg-au__viz { background: rgba(255, 255, 255, .06); }
.sg-au--glass .sg-au__play { background: #fff; color: #1b1220 !important; }

/* Layout: wave — always-visible waveform, tap to seek */
.sg-au--wave .sg-au__body { grid-template-rows: auto auto auto; opacity: 1; margin-top: 12px; }
.sg-au--wave .sg-au__body > * { max-height: none !important; }
.sg-au--wave .sg-au__viz { height: 64px; cursor: pointer; }
.sg-au--wave .sg-au__seek .sg-au__track { display: none; }
.sg-au--wave .sg-au__seek { grid-template-columns: auto 1fr auto; padding-top: 6px; }
.sg-au--wave .sg-au__seek::after { content: ""; grid-column: 2; grid-row: 1; }
.sg-au--wave .sg-au__idle { display: none; }

/* Layout: stage — cinematic, dark, centred */
.sg-au--stage { color: #fff; border: 0; padding: 22px 16px 18px; text-align: center; background: #0c0710; }
.sg-au--stage .sg-au__bg { background: radial-gradient(80% 70% at 50% 110%, color-mix(in srgb, var(--au-b) 55%, transparent), transparent 70%), radial-gradient(60% 50% at 10% 0%, color-mix(in srgb, var(--au-a) 45%, transparent), transparent 70%), radial-gradient(60% 50% at 100% 10%, color-mix(in srgb, var(--au-c) 45%, transparent), transparent 70%); }
.sg-au--stage .sg-au__bg::before { content: ""; position: absolute; inset: 0; background: var(--art, none) center / cover; opacity: .16; filter: blur(4px) grayscale(.3); mix-blend-mode: screen; }
.sg-au--stage.is-playing .sg-au__bg { animation: sg-au-breathe 4s ease-in-out infinite; }
@keyframes sg-au-breathe { 50% { filter: saturate(1.5) brightness(1.15); } }
.sg-au--stage .sg-au__head { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
.sg-au--stage .sg-au__play { width: 72px; height: 72px; background: #fff; color: #120a14 !important; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 50px color-mix(in srgb, var(--au-b) 80%, transparent); }
.sg-au--stage .sg-au__play svg { width: 30px; height: 30px; }
.sg-au--stage .sg-au__ring { border-color: rgba(255, 255, 255, .5); }
.sg-au--stage .sg-au__kick, .sg-au--stage .sg-au__seek, .sg-au--stage .sg-au__voice { color: rgba(255, 255, 255, .7); }
.sg-au--stage .sg-au__cta { font-size: 1.2rem; background: linear-gradient(90deg, #fff, #fff 40%, #f0abfc 50%, #fff 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; }
.sg-au--stage .sg-au__idle { justify-content: center; height: 26px; }
.sg-au--stage .sg-au__idle i:nth-child(n+11) { display: block; }
.sg-au--stage .sg-au__viz { height: 150px; }
.sg-au--stage .sg-au__tabs { background: rgba(255, 255, 255, .08); justify-content: center; }
.sg-au--stage .sg-au__tabs button { color: rgba(255, 255, 255, .65) !important; flex: 0 0 auto; }
.sg-au--stage .sg-au__tabs button.is-on { background: rgba(255, 255, 255, .16); color: #fff !important; }
.sg-au--stage .sg-au__ctl button { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); }
.sg-au--stage .sg-au__track::before { background: rgba(255, 255, 255, .18); }

@media (min-width: 640px) {
	.sg-au { padding: 18px 20px; border-radius: 26px; }
	.sg-au__idle i:nth-child(n+11) { display: block; }
	.sg-au__viz { height: 110px; }
	.sg-au--stage { padding: 30px 28px 24px; }
	.sg-au--stage .sg-au__viz { height: 180px; }
	.sg-au__ctl { flex-wrap: nowrap; }
	.sg-au__voice { flex-basis: auto; margin-left: auto; text-align: right; }
	.sg-au--stage .sg-au__voice { flex-basis: 100%; margin: 0; text-align: center; }
	.sg-au--stage .sg-au__ctl { flex-wrap: wrap; }
}
.sg-poem .sg-au, .sg-poem__verse .sg-au { text-align: left; }
.sg-poem__verse .sg-au--stage { text-align: center; }

/* Mini player */
.sg-aumini {
	position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(var(--sg-tabbar-h, 76px) + 10px + env(safe-area-inset-bottom));
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
	padding: 8px 10px 8px 8px; border-radius: 18px; overflow: hidden;
	background: var(--sg-glass); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
	border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow-lg); color: var(--sg-text); cursor: pointer;
	transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .5s var(--sg-spring), opacity .3s;
}
.sg-aumini.is-on { transform: none; opacity: 1; pointer-events: auto; }
.sg-aumini button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.sg-aumini__play { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sg-grad) !important; color: #fff !important; }
.sg-aumini__play svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; }
.sg-aumini .i-pause, .sg-aumini.is-playing .i-play { display: none; }
.sg-aumini.is-playing .i-pause { display: block; }
.sg-aumini__txt { display: grid; min-width: 0; }
.sg-aumini__txt small { color: var(--sg-brand); font: 700 .68rem var(--sg-font); text-transform: uppercase; letter-spacing: .06em; }
.sg-aumini__txt b { font: 650 .86rem/1.3 var(--sg-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-aumini__eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.sg-aumini__eq i { width: 3px; height: 25%; border-radius: 2px; background: var(--sg-brand); }
.sg-aumini.is-playing .sg-aumini__eq i { animation: sg-au-idle .7s ease-in-out infinite alternate; }
.sg-aumini.is-playing .sg-aumini__eq i:nth-child(2) { animation-delay: -.3s; }
.sg-aumini.is-playing .sg-aumini__eq i:nth-child(3) { animation-delay: -.5s; }
.sg-aumini.is-playing .sg-aumini__eq i:nth-child(4) { animation-delay: -.15s; }
.sg-aumini__x { width: 32px; height: 32px; font-size: 1.4rem !important; line-height: 1; color: var(--sg-muted) !important; }
.sg-aumini__p { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sg-grad); }
@media (min-width: 1024px) { .sg-aumini { left: auto; right: 24px; bottom: 24px; width: 380px; } }

.sg-aubadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sg-grad); color: #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); vertical-align: middle; }
.sg-aubadge svg { width: 14px; height: 14px; fill: currentColor; }

/* =========================================================================
 * Highlights
 * ========================================================================= */
mark.sg-hl { color: inherit; padding: .05em 0; border-radius: .2em; background: linear-gradient(transparent 8%, color-mix(in srgb, var(--hl) 75%, transparent) 8%, color-mix(in srgb, var(--hl) 75%, transparent) 92%, transparent 92%); background-size: 100% 100%; background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; transition: background-size .5s var(--sg-ease), filter .2s; }
mark.sg-hl:hover { filter: saturate(1.4); }
mark.sg-hl.is-new { animation: sg-hl-in .7s var(--sg-ease) both; }
mark.sg-hl.is-pulse { animation: sg-hl-pulse 1.4s ease-in-out 2; }
@keyframes sg-hl-in { from { background-size: 0% 100%; } }
@keyframes sg-hl-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--hl) 45%, transparent); } }
.sg-hl--sun { --hl: #fde047; } .sg-hl--rose { --hl: #fda4af; } .sg-hl--mint { --hl: #86efac; } .sg-hl--sky { --hl: #93c5fd; } .sg-hl--violet { --hl: #c4b5fd; }
[data-theme="dark"] mark.sg-hl, html[data-paper="night"] mark.sg-hl { background: linear-gradient(transparent 8%, color-mix(in srgb, var(--hl) 32%, transparent) 8%, color-mix(in srgb, var(--hl) 32%, transparent) 92%, transparent 92%); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--hl) 80%, transparent); }

.sg-hlbar {
	position: fixed; z-index: 120; left: 0; top: 0; display: flex; align-items: center; gap: 2px;
	padding: 6px; border-radius: 16px; background: #17101a; color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
	transform: translate(-50%, 8px) scale(.9); opacity: 0; pointer-events: none; transition: transform .28s var(--sg-spring), opacity .18s; font-family: var(--sg-font);
	user-select: none; -webkit-user-select: none;
}
.sg-hlbar.is-on { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.sg-hlbar::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.sg-hlbar.is-below::after { bottom: auto; top: -6px; }
.sg-hlbar__sw { display: flex; gap: 6px; padding: 0 6px; }
.sg-hlbar__sw button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: var(--c); cursor: pointer; padding: 0; transition: transform .2s var(--sg-spring); }
.sg-hlbar__sw button:hover { transform: scale(1.2); }
.sg-hlbar__sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .15); margin: 0 4px; }
.sg-hlbar > button { display: grid; justify-items: center; gap: 1px; min-width: 46px; padding: 4px 6px; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; font: 600 .66rem var(--sg-font); transition: background .2s; }
.sg-hlbar > button:hover { background: rgba(255, 255, 255, .1); }
.sg-hlbar > button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-hlbar__del { color: #fda4af !important; min-width: 36px !important; }
@media (max-width: 420px) { .sg-hlbar > button span { display: none; } .sg-hlbar > button { min-width: 36px; } }

.sg-hlfab {
	position: fixed; z-index: 85; right: 14px; bottom: calc(var(--sg-tabbar-h, 76px) + 76px + env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 999px;
	background: var(--sg-text); color: var(--sg-bg); box-shadow: var(--sg-shadow-lg); cursor: pointer; font: 750 .86rem var(--sg-font);
	transform: scale(0); transition: transform .4s var(--sg-spring);
}
.sg-hlfab.is-on { transform: none; }
.sg-hlfab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (min-width: 1024px) { .sg-hlfab { right: 24px; bottom: 96px; } }

/* Bottom sheet / modal shared by highlights, quote card, weather city, box office */
.sg-fsheet { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; justify-items: center; pointer-events: none; font-family: var(--sg-font); }
.sg-fsheet__bg { position: absolute; inset: 0; background: rgba(10, 4, 8, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.sg-fsheet__box { position: relative; width: 100%; max-height: 92vh; overflow: auto; overscroll-behavior: contain; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--sg-surface); color: var(--sg-text); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); transform: translateY(100%); transition: transform .5s var(--sg-spring); }
.sg-fsheet__box::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--sg-line); }
.sg-fsheet.is-on { pointer-events: auto; }
.sg-fsheet.is-on .sg-fsheet__bg { opacity: 1; }
.sg-fsheet.is-on .sg-fsheet__box { transform: none; }
.sg-fsheet__x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sg-surface-2); color: var(--sg-text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sg-fsheet h3 { margin: 0 0 14px; font: 800 1.2rem var(--sg-display); }
html.sg-fsheet-open { overflow: hidden; }
@media (min-width: 768px) {
	.sg-fsheet { align-items: center; }
	.sg-fsheet__box { width: min(560px, 94vw); border-radius: 26px; padding: 28px; transform: translateY(30px) scale(.96); opacity: 0; transition: transform .45s var(--sg-spring), opacity .25s; }
	.sg-fsheet.is-on .sg-fsheet__box { opacity: 1; }
	.sg-fsheet__box::before { display: none; }
	.sg-fsheet--qc .sg-fsheet__box { width: min(940px, 94vw); }
	.sg-fsheet--bo .sg-fsheet__box { width: min(720px, 94vw); }
}

.sg-hlsheet__tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--sg-surface-2); }
.sg-hlsheet__tabs button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--sg-muted); font: 650 .84rem var(--sg-font); cursor: pointer; }
.sg-hlsheet__tabs button.is-on { background: var(--sg-surface); color: var(--sg-text); box-shadow: 0 3px 10px -5px rgba(0, 0, 0, .3); }
.sg-hlsheet__list { display: grid; gap: 10px; }
.sg-hlsheet__list h4 { margin: 10px 0 0; font: 700 .9rem var(--sg-display); }
.sg-hlsheet__list h4 a { color: var(--sg-text); }
.sg-hlitem { position: relative; padding: 12px 14px 10px 18px; border-radius: 14px; background: var(--sg-surface-2); animation: sg-fade-up .4s var(--sg-ease) both; }
.sg-hlitem::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.sg-hlitem p { margin: 0 0 8px; font: 500 .98rem/1.65 var(--sg-serif); white-space: pre-line; }
.sg-hlitem div { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-hlitem button, .sg-hlitem a { padding: 5px 10px; border: 1px solid var(--sg-line); border-radius: 999px; background: var(--sg-surface); color: var(--sg-text); font: 600 .76rem var(--sg-font); text-decoration: none; cursor: pointer; }
.sg-hlitem .is-del { margin-left: auto; color: var(--sg-err); }
.sg-hlempty, .sg-hlnote { color: var(--sg-muted); font-size: .9rem; }
.sg-hlnote { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sg-brand) 8%, transparent); }
@keyframes sg-fade-up { from { opacity: 0; transform: translateY(10px); } }

/* Quote card studio */
.sg-qc { display: grid; gap: 18px; }
.sg-qc__prev { --ar: .8; position: relative; display: grid; place-items: center; padding: 14px; border-radius: 18px; background: repeating-conic-gradient(var(--sg-surface-2) 0 25%, var(--sg-surface) 0 50%) 0 0 / 18px 18px; }
.sg-qc__prev canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 52vh; aspect-ratio: var(--ar); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); transition: opacity .3s, transform .4s var(--sg-spring); }
.sg-qc__prev.is-busy canvas { opacity: .5; transform: scale(.98); }
.sg-qc__lab { margin: 10px 0 6px; color: var(--sg-muted); font: 700 .72rem var(--sg-font); text-transform: uppercase; letter-spacing: .08em; }
.sg-qc__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-qc__opts button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--sg-line); border-radius: 12px; background: var(--sg-surface); color: var(--sg-text); font: 650 .82rem var(--sg-font); cursor: pointer; transition: border-color .2s, transform .2s var(--sg-spring); }
.sg-qc__opts button:active { transform: scale(.94); }
.sg-qc__opts button.is-on { border-color: var(--sg-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-brand) 18%, transparent); }
.sg-qc__th i { width: 16px; height: 16px; border-radius: 50%; }
.sg-qc__th--aurora i { background: linear-gradient(135deg, #e11d34, #7c3aed, #0ea5e9); }
.sg-qc__th--ink i { background: #f7f0e3; box-shadow: inset 0 0 0 1.5px #a10f22; }
.sg-qc__th--night i { background: radial-gradient(circle at 70% 30%, #fde68a 18%, #1a1033 22%); }
.sg-qc__th--brand i { background: linear-gradient(135deg, #e11d34, #3d0610); }
.sg-qc__th--photo i { background: linear-gradient(135deg, #64748b, #0f172a); }
.sg-qc__hd { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 .86rem var(--sg-font); }
.sg-qc__act { display: flex; gap: 8px; margin-top: 16px; }
.sg-qc__act .sg-btn { flex: 1; justify-content: center; }
@media (min-width: 768px) { .sg-qc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } .sg-qc__prev canvas { max-height: 70vh; } }

/* =========================================================================
 * Live weather
 * ========================================================================= */
.sg-wx {
	--wx-a: #4f9cf7; --wx-b: #2563eb; --wx-fg: #fff;
	position: relative; isolation: isolate; overflow: hidden; margin: 14px 0 0;
	border-radius: 22px; color: var(--wx-fg); font-family: var(--sg-font);
	background: linear-gradient(160deg, var(--wx-a), var(--wx-b));
	box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--wx-b) 80%, transparent);
	transition: background 1s, box-shadow 1s;
}
.sg-wx--clear.sg-wx--day { --wx-a: #38bdf8; --wx-b: #2563eb; }
.sg-wx--partly.sg-wx--day { --wx-a: #60a5fa; --wx-b: #3b5bdb; }
.sg-wx--cloudy { --wx-a: #8191a8; --wx-b: #4b5a73; }
.sg-wx--fog { --wx-a: #a3adba; --wx-b: #6b7686; }
.sg-wx--drizzle, .sg-wx--rain { --wx-a: #50627d; --wx-b: #26334a; }
.sg-wx--storm { --wx-a: #3a3555; --wx-b: #151225; }
.sg-wx--snow { --wx-a: #b8cbe0; --wx-b: #6f88a8; }
.sg-wx--night { --wx-a: #1e2a5a; --wx-b: #0a0f2a; }
.sg-wx--night.sg-wx--rain, .sg-wx--night.sg-wx--storm { --wx-a: #1f2438; --wx-b: #0b0d18; }
.sg-wx__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sg-wx__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-wx__in { position: relative; display: grid; gap: 12px; padding: 16px; min-height: 92px; }
.sg-wx.is-loading .sg-wx__in { grid-template-columns: 1fr; }
.sg-wx__sk { display: block; height: 30px; width: 60%; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .35), rgba(255, 255, 255, .15)) 0 0 / 200% 100%; animation: sg-wx-sk 1.3s linear infinite; }
.sg-wx__sk--2 { height: 16px; width: 85%; }
@keyframes sg-wx-sk { to { background-position: -200% 0; } }
.sg-wx__main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; animation: sg-fade-up .6s var(--sg-ease) both; }
.sg-wx__icon .wi { width: 62px; height: 62px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.sg-wx__now { display: grid; min-width: 0; }
.sg-wx__temp { font: 800 2.6rem/1 var(--sg-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sg-wx__temp sup { font-size: .4em; font-weight: 600; vertical-align: .9em; margin-left: 2px; opacity: .85; }
.sg-wx__cond { font: 650 .92rem var(--sg-font); opacity: .92; }
.sg-wx__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 600 .76rem var(--sg-font); opacity: .95; }
.sg-wx__side .sg-wx__city { margin: 0 auto 0 0; }
.sg-wx__city { display: inline-flex; align-items: center; gap: 4px; max-width: 46vw; padding: 5px 10px; margin-bottom: 4px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 .8rem var(--sg-font); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sg-wx__city i, .sg-wx__more i { font-style: normal; font-size: .7em; opacity: .8; transition: transform .3s; }
.sg-wx__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg-wx__chips > span, .sg-wx__more { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font: 650 .76rem var(--sg-font); white-space: nowrap; }
.sg-wx__more { margin-left: auto; border: 0; color: #fff; cursor: pointer; background: rgba(255, 255, 255, .22); }
.sg-wx.is-open .sg-wx__more i { transform: rotate(180deg); }
.sg-wx__aqi::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--q); box-shadow: 0 0 0 3px color-mix(in srgb, var(--q) 35%, transparent); }
.sg-wx__aqi--good { --q: #22c55e; } .sg-wx__aqi--mod { --q: #facc15; } .sg-wx__aqi--usg { --q: #fb923c; } .sg-wx__aqi--bad { --q: #ef4444; } .sg-wx__aqi--vbad { --q: #a855f7; } .sg-wx__aqi--haz { --q: #7f1d1d; }
.sg-wx__panel { display: grid; gap: 12px; animation: sg-fade-up .45s var(--sg-ease) both; }
.sg-wx__panel[hidden] { display: none; }
.sg-wx__hours { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sg-wx__hours::-webkit-scrollbar { display: none; }
.sg-wx__hours li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(255, 255, 255, .1); scroll-snap-align: start; }
.sg-wx__hours li:first-child { background: rgba(255, 255, 255, .26); }
.sg-wx__hours small { font: 600 .68rem var(--sg-font); opacity: .85; }
.sg-wx__hours .wi { width: 30px; height: 30px; }
.sg-wx__hours b { font: 750 .9rem var(--sg-font); }
.sg-wx__hours em { min-height: 1em; font: 600 .62rem var(--sg-font); font-style: normal; color: #bfe3ff; }
.sg-wx__grid { display: grid; gap: 12px; }
.sg-wx__days { list-style: none; margin: 0; padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, .12); }
.sg-wx__days li { display: grid; grid-template-columns: 54px 28px 44px 30px minmax(40px, 1fr) 30px; align-items: center; gap: 6px; padding: 6px 0; font: 650 .82rem var(--sg-font); border-bottom: 1px solid rgba(255, 255, 255, .08); animation: sg-fade-up .45s calc(var(--d) * .05s) var(--sg-ease) both; }
.sg-wx__days li:last-child { border: 0; }
.sg-wx__days .wi { width: 26px; height: 26px; }
.sg-wx__days em { font-style: normal; font-size: .66rem; color: #bfe3ff; }
.sg-wx__days small { text-align: right; opacity: .7; }
.sg-wx__range { position: relative; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.sg-wx__range i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #7dd3fc, #fde047, #fb923c); }
.sg-wx__sun { display: grid; justify-items: center; gap: 4px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .12); font: 600 .78rem var(--sg-font); }
.sg-wx__sun svg { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.sg-wx__sun .arc, .sg-wx__sun .arc-on { fill: none; stroke-width: 3; stroke-linecap: round; }
.sg-wx__sun .arc { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 4 6; }
.sg-wx__sun .arc-on { stroke: #fde047; animation: sg-wx-arc 1.6s var(--sg-ease) both; }
.sg-wx__sun .dot { fill: #fde047; filter: drop-shadow(0 0 8px #fde047); }
.sg-wx__sun div { display: flex; justify-content: space-between; width: 100%; max-width: 240px; }
.sg-wx__sun p { margin: 0; opacity: .85; }
@keyframes sg-wx-arc { from { stroke-dasharray: 0 400; } }
.sg-wx__upd { font: 600 .64rem var(--sg-font); opacity: .7; letter-spacing: .02em; }
.sg-wx__upd::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #4ade80; vertical-align: middle; animation: sg-wx-live 1.8s ease-in-out infinite; }
@keyframes sg-wx-live { 50% { opacity: .3; } }
.sg-wx__errmsg { margin: 0; font: 600 .86rem var(--sg-font); }
.sg-wx__errmsg button { margin-left: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); color: #fff; font: inherit; cursor: pointer; }
.sg-wx.is-err { --wx-a: #6b7280; --wx-b: #374151; }
@media (min-width: 640px) {
	.sg-wx__in { padding: 18px 22px; }
	.sg-wx__main { grid-template-columns: auto minmax(0, 1fr) auto; }
	.sg-wx__side { grid-column: auto; display: grid; justify-items: end; gap: 2px; text-align: right; }
	.sg-wx__side .sg-wx__city { margin: 0 0 4px; }
	.sg-wx__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.sg-wx__temp { font-size: 3rem; }
	.sg-wx__icon .wi { width: 74px; height: 74px; }
}

/* Weather scene decorations */
.sx-sun { position: absolute; top: -60px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #fff7c2 0 22%, #fde047 30%, rgba(253, 224, 71, .25) 52%, transparent 70%); animation: sg-sx-pulse 6s ease-in-out infinite; }
.sx-sun--sm { width: 150px; height: 150px; top: -46px; right: -30px; }
.sx-glare { position: absolute; top: -40%; right: -10%; width: 70%; height: 180%; background: conic-gradient(from 200deg at 85% 15%, transparent 0 10deg, rgba(255, 255, 255, .12) 14deg, transparent 22deg, transparent 40deg, rgba(255, 255, 255, .08) 46deg, transparent 54deg); animation: sg-sx-rot 30s linear infinite; transform-origin: 85% 15%; }
.sx-moon { position: absolute; top: 14px; right: 26px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe8, #e2e8f0 60%, #cbd5e1); box-shadow: 0 0 40px 10px rgba(255, 251, 232, .25); }
.sx-moon::after { content: ""; position: absolute; top: 14px; left: 18px; width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, .35); box-shadow: 14px 12px 0 -2px rgba(148, 163, 184, .3), -4px 20px 0 -3px rgba(148, 163, 184, .3); }
.sx-moon--sm { width: 40px; height: 40px; }
.sx-cloud { position: absolute; width: 180px; height: 56px; border-radius: 56px; background: rgba(255, 255, 255, .55); filter: blur(1px); animation: sg-sx-drift 40s linear infinite; }
.sx-cloud::before, .sx-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.sx-cloud::before { width: 80px; height: 80px; left: 26px; top: -40px; }
.sx-cloud::after { width: 100px; height: 100px; left: 70px; top: -56px; }
.sx-cloud.c1 { top: 22px; left: -40px; opacity: .55; }
.sx-cloud.c2 { top: 60px; left: 40%; opacity: .4; transform: scale(.7); animation-duration: 55s; animation-delay: -20s; }
.sx-cloud.c3 { top: 10px; left: 70%; opacity: .35; transform: scale(.85); animation-duration: 65s; animation-delay: -35s; }
.sx-cloud.dk { background: rgba(30, 41, 59, .55); }
.sx-fog { position: absolute; left: -50%; width: 200%; height: 36px; border-radius: 40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); filter: blur(8px); animation: sg-sx-fog 18s ease-in-out infinite alternate; }
.sx-fog.f1 { top: 20%; } .sx-fog.f2 { top: 50%; animation-delay: -6s; opacity: .7; } .sx-fog.f3 { top: 78%; animation-delay: -12s; opacity: .5; }
.sx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: sg-sx-flash 7s infinite; }
@keyframes sg-sx-pulse { 50% { transform: scale(1.08); } }
@keyframes sg-sx-rot { to { transform: rotate(360deg); } }
@keyframes sg-sx-drift { from { translate: -30% 0; } to { translate: 130vw 0; } }
@keyframes sg-sx-fog { to { transform: translateX(25%); } }
@keyframes sg-sx-flash { 0%, 90%, 100% { opacity: 0; } 91% { opacity: .55; } 92% { opacity: .05; } 93.5% { opacity: .4; } 95% { opacity: 0; } }

/* Animated weather icons */
.wi { overflow: visible; }
.wi-sun circle { fill: #fde047; }
.wi-rays rect { fill: #fbbf24; }
.wi-rays { transform-origin: 32px 32px; animation: sg-sx-rot 14s linear infinite; }
.wi-moon { fill: #fef3c7; transform-origin: 32px 32px; animation: sg-wi-rock 6s ease-in-out infinite; }
.wi-cloud { fill: #fff; animation: sg-wi-float 4s ease-in-out infinite; }
.wi-cloud.wi-c2 { fill: #cbd5e1; animation-delay: -2s; }
.wi-cloud.wi-dark { fill: #94a3b8; }
.wi-drop { stroke: #93c5fd; stroke-width: 2.6; stroke-linecap: round; animation: sg-wi-drop 1s calc(var(--i) * .22s) linear infinite; }
.wi-snow circle { fill: #fff; animation: sg-wi-snow 2.2s calc(var(--i) * .5s) linear infinite; }
.wi-bolt { fill: #fde047; animation: sg-wi-bolt 2.4s steps(1) infinite; }
.wi-fog rect { fill: #e2e8f0; animation: sg-wi-fog 3s ease-in-out infinite alternate; }
.wi-fog rect + rect { animation-delay: -1.5s; }
@keyframes sg-wi-float { 50% { transform: translateX(2px); } }
@keyframes sg-wi-rock { 50% { transform: rotate(-10deg); } }
@keyframes sg-wi-drop { from { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(8px); opacity: 0; } }
@keyframes sg-wi-snow { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(2px, 8px); opacity: 0; } }
@keyframes sg-wi-bolt { 0%, 60%, 80% { opacity: 1; } 70%, 90% { opacity: .2; } }
@keyframes sg-wi-fog { to { transform: translateX(4px); } }

/* City picker */
.sg-wxpick__geo { width: 100%; margin-bottom: 12px; padding: 12px; border: 0; border-radius: 14px; background: var(--sg-grad); color: #fff; font: 700 .92rem var(--sg-font); cursor: pointer; }
.sg-wxpick__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sg-wxpick__list button { padding: 10px; border: 1px solid var(--sg-line); border-radius: 12px; background: var(--sg-surface-2); color: var(--sg-text); font: 650 .88rem var(--sg-font); cursor: pointer; transition: transform .2s var(--sg-spring); }
.sg-wxpick__list button:active { transform: scale(.95); }
.sg-wxpick__list button.is-on { border-color: var(--sg-brand); color: var(--sg-brand); }

/* =========================================================================
 * Box office — shared
 * ========================================================================= */
.sg-bo__src { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font: 750 .64rem var(--sg-font); font-style: normal; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.sg-bo__src--fdb { background: rgba(34, 197, 94, .16); color: #15803d; }
.sg-bo__src--producer { background: rgba(251, 146, 60, .18); color: #c2410c; }
.sg-bo__src--media { background: rgba(99, 102, 241, .16); color: #4f46e5; }
[data-theme="dark"] .sg-bo__src--fdb { color: #4ade80; } [data-theme="dark"] .sg-bo__src--producer { color: #fdba74; } [data-theme="dark"] .sg-bo__src--media { color: #a5b4fc; }
.sg-bo__ver { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 700 .7rem var(--sg-font); background: rgba(255, 255, 255, .1); }
.sg-bo__ver--record, .sg-bo__ver--blockbuster { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #3b1d00; }
.sg-bo__ver--superhit, .sg-bo__ver--hit { background: rgba(34, 197, 94, .2); color: #16a34a; }
.sg-bo__ver--flop { background: rgba(239, 68, 68, .16); color: #dc2626; }
.sg-bo__ver--average { background: rgba(148, 163, 184, .2); color: #64748b; }
@keyframes sg-bulb { 0%, 100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 10px 2px #fbbf24; } }
@keyframes sg-bo-bar { from { transform: scaleX(0); } }

/* Home section */
.sg-boh { margin-top: 34px; }
.sg-boh__card { position: relative; overflow: hidden; padding: 30px 16px 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 80% at 100% 0%, rgba(225, 29, 52, .4), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(124, 58, 237, .35), transparent 60%), linear-gradient(160deg, #1a0d12, #0b0609); box-shadow: var(--sg-shadow-lg); }
.sg-boh__lights { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.sg-boh__lights i { width: 6px; height: 6px; border-radius: 50%; background: #fde68a; animation: sg-bulb 1.6s calc(var(--i) * .09s) ease-in-out infinite; }
.sg-boh__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sg-boh__kick, .sg-bo__kick { display: inline-block; margin-bottom: 4px; color: #fbbf24; font: 750 .72rem var(--sg-font); letter-spacing: .14em; text-transform: uppercase; }
.sg-boh__head h2 { margin: 0; font: 800 clamp(1.25rem, 4.6vw, 1.9rem)/1.2 var(--sg-display); color: #fff; }
.sg-boh__more { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; background: #fbbf24; color: #2a1500 !important; font: 750 .8rem var(--sg-font); text-decoration: none; transition: transform .2s var(--sg-spring); }
.sg-boh__more:hover { transform: translateX(3px); }
.sg-boh__more .sg-i { width: 14px; height: 14px; }
.sg-boh__grid { display: grid; gap: 14px; }
.sg-boh__now, .sg-boh__top { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sg-boh h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 750 .9rem var(--sg-font); color: rgba(255, 255, 255, .85); }
.sg-boh__dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: sg-boh-live 1.6s infinite; }
@keyframes sg-boh-live { 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.sg-boh ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-boh__now li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sg-boh__poster { display: grid; place-items: center; width: 44px; height: 58px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #e11d34, #7c3aed); font: 800 1.2rem var(--sg-display); }
.sg-boh__poster img { width: 100%; height: 100%; object-fit: cover; }
.sg-boh__info, .sg-boh__top li > span { display: grid; gap: 3px; min-width: 0; }
.sg-boh__info b, .sg-boh__top b { font: 700 .92rem/1.25 var(--sg-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-boh__info small, .sg-boh__top small { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .6); font: 600 .7rem var(--sg-font); }
.sg-boh__bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sg-boh__bar i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fbbf24, #f97316, #e11d34); transform-origin: 0 50%; transform: scaleX(0); }
.sg-boh.is-in .sg-boh__bar i { animation: sg-bo-bar 1.3s calc(var(--d) * .12s + .2s) var(--sg-ease) forwards; transform: scaleX(0); animation-name: sg-bo-grow; }
@keyframes sg-bo-grow { to { transform: scaleX(1); } }
.sg-boh strong { font: 800 .88rem var(--sg-font); color: #fde68a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-boh__top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sg-boh__top em { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .08); font: 800 .82rem var(--sg-font); font-style: normal; }
.sg-boh__top li:first-child em { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b1d00; }
.sg-boh__top li:nth-child(2) em { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.sg-boh__top li:nth-child(3) em { background: linear-gradient(135deg, #fed7aa, #c2410c); color: #fff; }
.sg-boh__empty { margin: 0; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.sg-boh .sg-bo__src--fdb { color: #4ade80; } .sg-boh .sg-bo__src--producer { color: #fdba74; } .sg-boh .sg-bo__src--media { color: #a5b4fc; }
.sg-boh li { opacity: 0; transform: translateY(10px); }
.sg-boh.is-in li { animation: sg-boh-in .55s calc(var(--d) * .08s) var(--sg-ease) forwards; }
@keyframes sg-boh-in { to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .sg-boh__card { padding: 36px 26px 24px; border-radius: 28px; } .sg-boh__grid { grid-template-columns: 1.2fr 1fr; } }

/* Full page */
.sg-bo { padding-bottom: 40px; }
.sg-bo__hero { position: relative; overflow: hidden; padding: 56px 0 34px; color: #fff; background: radial-gradient(80% 90% at 50% 0%, rgba(225, 29, 52, .55), transparent 65%), radial-gradient(60% 60% at 0% 100%, rgba(124, 58, 237, .4), transparent 60%), linear-gradient(180deg, #1a0a10, #07040a); }
.sg-bo__lights { position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-around; pointer-events: none; }
.sg-bo__lights i { width: 7px; height: 7px; border-radius: 50%; background: #fde68a; animation: sg-bulb 1.8s calc(var(--i) * .08s) ease-in-out infinite; }
.sg-bo__curtain { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(120, 10, 25, .85), transparent 14%, transparent 86%, rgba(120, 10, 25, .85)), repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 6px, transparent 6px 22px); -webkit-mask-image: linear-gradient(90deg, #000 0 16%, transparent 16% 84%, #000 84%); mask-image: linear-gradient(90deg, #000 0 16%, transparent 16% 84%, #000 84%); animation: sg-bo-curtain 1.6s var(--sg-ease) both; }
@keyframes sg-bo-curtain { from { transform: scaleX(3.2); } }
.sg-bo__hin { position: relative; text-align: center; }
.sg-bo__hin h1 { margin: 6px 0 8px; font: 800 clamp(1.8rem, 7vw, 3.4rem)/1.12 var(--sg-display); background: linear-gradient(180deg, #fff 30%, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; animation: sg-fade-up .8s .3s var(--sg-ease) both; }
.sg-bo__hin > p { max-width: 560px; margin: 0 auto; color: rgba(255, 255, 255, .72); font-size: .95rem; animation: sg-fade-up .8s .45s var(--sg-ease) both; }
.sg-bo__stats { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.sg-bo__stats > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: sg-fade-up .7s calc(.55s + var(--n, 0) * .1s) var(--sg-ease) both; }
.sg-bo__stats > div:nth-child(2) { --n: 1; } .sg-bo__stats > div:nth-child(3) { --n: 2; }
.sg-bo__stats small { color: #fbbf24; font: 700 .7rem var(--sg-font); text-transform: uppercase; letter-spacing: .1em; }
.sg-bo__stats b { font: 800 1.15rem/1.25 var(--sg-display); }
.sg-bo__stats em { font-style: normal; color: rgba(255, 255, 255, .7); font: 650 .86rem var(--sg-font); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .sg-bo__hero { padding: 80px 0 48px; } .sg-bo__stats { grid-template-columns: repeat(3, 1fr); } }
.sg-bo__main { margin-top: -18px; position: relative; }
.sg-bo__tabs { position: sticky; top: calc(var(--sg-header-h) + 8px); z-index: 5; display: flex; gap: 4px; padding: 5px; margin-bottom: 16px; border-radius: 999px; background: var(--sg-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); overflow-x: auto; scrollbar-width: none; }
.sg-bo__tabs button { flex: 1 0 auto; padding: 9px 14px; border: 0; border-radius: 999px; background: none; color: var(--sg-muted); font: 700 .84rem var(--sg-font); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.sg-bo__tabs button.is-on { background: var(--sg-text); color: var(--sg-bg); }
.sg-bo__list { display: grid; gap: 10px; }
.sg-bo__row { position: relative; display: grid; grid-template-columns: 26px 52px minmax(0, 1fr); grid-template-areas: "r p i" "r p g"; align-items: center; gap: 4px 12px; width: 100%; padding: 12px; border: 1px solid var(--sg-line); border-radius: 18px; background: var(--sg-surface); color: var(--sg-text); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--sg-shadow); transition: transform .25s var(--sg-spring), box-shadow .3s, border-color .3s; }
.sg-bo__row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sg-brand) 35%, transparent); }
.sg-bo__list.is-in .sg-bo__row { animation: sg-fade-up .5s calc(var(--d) * .05s) var(--sg-ease) both; }
.sg-bo__rank { grid-area: r; font: 800 1.1rem var(--sg-display); font-style: normal; color: var(--sg-muted); text-align: center; }
.sg-bo__row:nth-child(1) .sg-bo__rank { color: #f59e0b; } .sg-bo__row:nth-child(2) .sg-bo__rank { color: #94a3b8; } .sg-bo__row:nth-child(3) .sg-bo__rank { color: #c2410c; }
.sg-bo__poster { grid-area: p; display: grid; place-items: center; width: 52px; height: 70px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--sg-brand), #7c3aed); color: #fff; font: 800 1.4rem var(--sg-display); }
.sg-bo__poster img { width: 100%; height: 100%; object-fit: cover; }
.sg-bo__info { grid-area: i; display: grid; gap: 4px; min-width: 0; }
.sg-bo__info > b { font: 750 1rem/1.25 var(--sg-display); }
.sg-bo__info > small { color: var(--sg-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-bo__tags { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font: 600 .7rem var(--sg-font); color: var(--sg-muted); }
.sg-bo__day { padding: 1px 7px; border-radius: 6px; background: rgba(239, 68, 68, .12); color: #ef4444; font-weight: 750; }
.sg-bo__bar { display: block; height: 5px; margin-top: 2px; border-radius: 5px; background: var(--sg-surface-2); overflow: hidden; }
.sg-bo__bar i { display: block; width: var(--w); height: 100%; border-radius: 5px; background: linear-gradient(90deg, #fbbf24, #f97316, var(--sg-brand)); transform-origin: 0 50%; }
.sg-bo__list.is-in .sg-bo__bar i { animation: sg-bo-bar 1.2s calc(var(--d) * .06s + .15s) var(--sg-ease) both; }
.sg-bo__row > strong { grid-area: g; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 800 1.02rem var(--sg-font); font-variant-numeric: tabular-nums; color: var(--sg-text); }
.sg-bo__row > strong small { color: var(--sg-muted); font: 600 .72rem var(--sg-font); }
.sg-bo__empty { padding: 30px; text-align: center; color: var(--sg-muted); }
.sg-bo__note { margin: 18px 0 0; color: var(--sg-muted); font-size: .8rem; line-height: 1.8; }
@media (min-width: 768px) {
	.sg-bo__row { grid-template-columns: 34px 60px minmax(0, 1fr) auto; grid-template-areas: "r p i g"; padding: 14px 20px; }
	.sg-bo__poster { width: 60px; height: 80px; }
	.sg-bo__row > strong { display: grid; justify-items: end; gap: 2px; font-size: 1.15rem; text-align: right; }
}

/* Movie detail */
.sg-bod__head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 30px; }
.sg-bod__poster { display: grid; place-items: center; width: 84px; height: 112px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--sg-brand), #7c3aed); color: #fff; font: 800 2rem var(--sg-display); box-shadow: var(--sg-shadow-lg); }
.sg-bod__poster img { width: 100%; height: 100%; object-fit: cover; }
.sg-bod__head h2 { margin: 0; font: 800 1.45rem/1.2 var(--sg-display); }
.sg-bod__head p { margin: 2px 0 6px; color: var(--sg-muted); font-size: .86rem; }
.sg-bod .sg-bo__kick { color: var(--sg-brand); }
.sg-bod__gross { display: grid; gap: 4px; justify-items: start; margin: 16px 0; padding: 16px; border-radius: 18px; color: #fff; background: radial-gradient(100% 120% at 100% 0%, rgba(225, 29, 52, .55), transparent 60%), linear-gradient(135deg, #1a0d12, #0b0609); }
.sg-bod__gross small { color: rgba(255, 255, 255, .7); font: 700 .74rem var(--sg-font); text-transform: uppercase; letter-spacing: .08em; }
.sg-bod__gross b { font: 800 2rem/1.1 var(--sg-display); color: #fde68a; font-variant-numeric: tabular-nums; }
.sg-bod__gross .sg-bo__src--fdb { color: #4ade80; } .sg-bod__gross .sg-bo__src--producer { color: #fdba74; } .sg-bod__gross .sg-bo__src--media { color: #a5b4fc; }
.sg-bo__chart { margin: 0 0 16px; padding: 14px; border-radius: 18px; background: var(--sg-surface-2); }
.sg-bo__chart svg { width: 100%; height: auto; overflow: visible; }
.sg-bo__chart .area { fill: url(#bog); animation: sg-fade-up 1s .3s both; }
.sg-bo__chart .line { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: sg-bo-draw 1.6s var(--sg-ease) forwards; }
.sg-bo__chart circle { fill: var(--sg-surface); stroke: #f59e0b; stroke-width: 3; animation: sg-tick-pop .4s 1.2s var(--sg-spring) both; }
@keyframes sg-bo-draw { to { stroke-dashoffset: 0; } }
.sg-bo__chart ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sg-bo__chart li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--sg-line); font-size: .84rem; }
.sg-bo__chart li small { color: var(--sg-muted); text-align: right; }
.sg-bod__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.sg-bod__facts div { padding: 10px 12px; border-radius: 12px; background: var(--sg-surface-2); }
.sg-bod__facts dt { color: var(--sg-muted); font: 700 .68rem var(--sg-font); text-transform: uppercase; letter-spacing: .06em; }
.sg-bod__facts dd { margin: 2px 0 0; font: 650 .9rem var(--sg-font); }
.sg-bod__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.sg-bod__links:empty { display: none; }

/* Greeting row with weather */
.sg-hello:has(.sg-wx) { flex-wrap: wrap; }
.sg-hello .sg-wx { order: 3; flex: 1 1 100%; margin-top: 4px; }
@media (min-width: 900px) {
	.sg-hello:has(.sg-wx) { align-items: flex-start; }
	.sg-hello .sg-wx { order: 0; flex: 0 1 400px; margin: 0 0 0 auto; transition: flex-basis .6s var(--sg-ease); }
	.sg-hello .sg-wx.is-open { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sg-au *, .sg-wx *, .sg-bo *, .sg-boh *, .sx-cloud, .sx-sun, .sx-glare, .sx-fog, .sx-flash { animation: none !important; }
	.sg-boh li { opacity: 1; transform: none; }
	.sg-boh__bar i { transform: none; }
}

/* =========================================================================
 * Dock: centre button icons + desktop dock
 * ========================================================================= */
.sg-tabbar__fab .sg-tabbar__dots { display: grid; grid-template-columns: repeat(2, 7px); gap: 5px; }
.sg-tabbar__fab .sg-tabbar__dots i { width: 7px; height: 7px; border-radius: 2.5px; background: #fff; transition: transform .45s var(--sg-spring), border-radius .3s; }
.sg-tabbar__fab .sg-tabbar__dots i:nth-child(2) { transition-delay: .03s; } .sg-tabbar__fab .sg-tabbar__dots i:nth-child(3) { transition-delay: .06s; } .sg-tabbar__fab .sg-tabbar__dots i:nth-child(4) { transition-delay: .09s; }
.sg-tabbar__fab:hover .sg-tabbar__dots i { border-radius: 50%; }
.sg-tabbar__fab--grid.is-open, .sg-tabbar__fab--menu.is-open, .sg-tabbar__fab--more.is-open, .sg-tabbar__fab--logo.is-open, .sg-tabbar__fab--custom.is-open, .sg-tabbar__fab--sparkle.is-open, .sg-tabbar__fab--feather.is-open { transform: rotate(0) scale(.92); }
.sg-tabbar__fab.is-open .sg-tabbar__dots i:nth-child(1) { transform: translate(6px, 6px); }
.sg-tabbar__fab.is-open .sg-tabbar__dots i:nth-child(2) { transform: translate(-6px, 6px); }
.sg-tabbar__fab.is-open .sg-tabbar__dots i:nth-child(3) { transform: translate(6px, -6px); }
.sg-tabbar__fab.is-open .sg-tabbar__dots i:nth-child(4) { transform: translate(-6px, -6px); }
.sg-tabbar__logo { font: 800 1.5rem/1 var(--sg-display); color: #fff; }
.sg-tabbar__img { width: 30px; height: 30px; object-fit: contain; }
.sg-tabbar__fab::after { content: ""; position: absolute; inset: -4px; border-radius: 23px; border: 2px solid color-mix(in srgb, var(--sg-brand) 50%, transparent); opacity: 0; animation: sg-fab-ping 3.2s 2s var(--sg-ease) infinite; pointer-events: none; }
@keyframes sg-fab-ping { 0% { opacity: .9; transform: scale(.9); } 60%, 100% { opacity: 0; transform: scale(1.25); } }
.sg-tabbar__fab.is-open::after { animation: none; }
@media (min-width: 900px) {
	body.sg-dock-desk { padding-bottom: 100px; }
	body.sg-dock-desk .sg-tabbar { display: grid; left: 50%; right: auto; width: 440px; transform: translateX(-50%); bottom: 20px; height: 66px; border-radius: 26px; }
	body.sg-dock-desk .sg-tabbar.is-hidden { transform: translate(-50%, 150%); }
	body.sg-dock-desk .sg-tabbar a:hover, body.sg-dock-desk .sg-tabbar button:not(.sg-tabbar__fab):hover { color: var(--sg-text); }
	body.sg-dock-desk .sg-tabbar a:hover .sg-i, body.sg-dock-desk .sg-tabbar button:not(.sg-tabbar__fab):hover .sg-i { transform: translateY(-2px); }
	body.sg-dock-desk .sg-tabbar__fab:hover { transform: translateY(-3px) scale(1.05); }
	body.sg-dock-desk .sg-toasts { bottom: 104px; }
	body.sg-dock-desk .sg-aumini { bottom: 100px; }
	body.sg-dock-desk .sg-hlfab { bottom: 100px; }
}

/* =========================================================================
 * Launcher sheet
 * ========================================================================= */
.sg-fsheet--ln .sg-fsheet__box { padding-top: 26px; background: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--sg-brand) 10%, transparent), transparent 60%), radial-gradient(100% 50% at 100% 0%, rgba(124, 58, 237, .1), transparent 60%), var(--sg-surface); }
@media (min-width: 768px) { .sg-fsheet--ln .sg-fsheet__box { width: min(620px, 94vw); max-height: calc(100vh - 130px); } .sg-fsheet--ln { align-items: end; padding-bottom: 100px; } }
@media (max-width: 519px) { .sg-ln__tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 96px; } }
.sg-ln__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-right: 40px; }
.sg-ln__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--sg-grad); color: #fff; font: 800 1.4rem var(--sg-display); box-shadow: 0 10px 22px -10px var(--sg-brand); animation: sg-ln-pop .6s var(--sg-spring) both; }
.sg-ln__head b { display: block; font: 800 1.2rem/1.2 var(--sg-display); }
.sg-ln__head small { color: var(--sg-muted); font-size: .86rem; }
@keyframes sg-ln-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.sg-ln__h { margin: 18px 0 8px; color: var(--sg-muted); font: 750 .7rem var(--sg-font); text-transform: uppercase; letter-spacing: .12em; }
.sg-ln__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .sg-ln__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-ln__tile {
	position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 2px; align-content: end; min-height: 112px; padding: 12px;
	border-radius: 20px; color: #fff !important; text-decoration: none !important;
	background: linear-gradient(150deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 30) 75% 35%));
	box-shadow: 0 14px 26px -16px hsl(var(--h) 70% 35%);
	animation: sg-ln-in .5s calc(var(--d) * .06s + .05s) var(--sg-spring) both; transition: transform .25s var(--sg-spring);
}
.sg-ln__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%); }
.sg-ln__tile::after { content: ""; position: absolute; top: -40%; left: -60%; z-index: -1; width: 50%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); transform: rotate(20deg); animation: sg-ln-shine 4.5s calc(var(--d) * .4s + 1s) ease-in-out infinite; }
@keyframes sg-ln-shine { 0%, 70% { left: -60%; } 100% { left: 140%; } }
@keyframes sg-ln-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.sg-ln__tile:hover { transform: translateY(-3px); }
.sg-ln__tile:active { transform: scale(.96); }
.sg-ln__ico { position: absolute; top: 10px; left: 12px; font-size: 1.7rem; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.sg-ln__ico .wi { width: 40px; height: 40px; }
.sg-ln__tile b { font: 800 1rem/1.2 var(--sg-display); }
.sg-ln__tile small { font: 600 .72rem/1.3 var(--sg-font); opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-ln__live { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: sg-boh-live 1.4s infinite; }
.sg-ln__tile--npl { background: linear-gradient(150deg, #7c3aed, #1e1b4b); }
.sg-ln__tile--bo { background: linear-gradient(150deg, #f59e0b, #7c2d12); }
.sg-ln__tile--wx { background: linear-gradient(150deg, #38bdf8, #1d4ed8); }
.sg-ln__tile--wx.sg-wxc--rain, .sg-ln__tile--wx.sg-wxc--drizzle, .sg-ln__tile--wx.sg-wxc--storm { background: linear-gradient(150deg, #64748b, #1e293b); }
.sg-ln__tile--wx.sg-wxc--cloudy, .sg-ln__tile--wx.sg-wxc--fog { background: linear-gradient(150deg, #94a3b8, #475569); }
.sg-ln__rows { display: grid; gap: 8px; }
.sg-ln__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--sg-line); border-radius: 16px; background: var(--sg-surface); color: var(--sg-text); text-align: left; font: inherit; cursor: pointer; animation: sg-ln-in .45s calc(.25s + var(--d, 0) * .05s) var(--sg-ease) both; transition: border-color .2s, transform .2s var(--sg-spring); }
.sg-ln__row:active { transform: scale(.98); }
.sg-ln__row:hover { border-color: color-mix(in srgb, var(--sg-brand) 30%, var(--sg-line)); }
.sg-ln__ri { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; background: hsl(var(--h) 85% 92%); }
[data-theme="dark"] .sg-ln__ri { background: hsl(var(--h) 40% 20%); }
.sg-ln__row b { display: block; font: 700 .92rem/1.3 var(--sg-font); }
.sg-ln__row small { color: var(--sg-muted); font-size: .76rem; }
.sg-ln__row small b { display: inline; font-weight: 800; color: var(--sg-text); }
.sg-ln__state { padding: 5px 10px; border-radius: 999px; background: var(--sg-text); color: var(--sg-bg); font: 750 .72rem var(--sg-font); font-style: normal; white-space: nowrap; }
.sg-ln__row.is-on .sg-ln__state { background: rgba(16, 185, 129, .15); color: #059669; }
.sg-ln__row.is-off .sg-ln__state { background: var(--sg-surface-2); color: var(--sg-muted); }
.sg-ln__row.is-help { border-color: var(--sg-brand); }
.sg-fsheet--ln .sg-create { margin: 0; }

/* =========================================================================
 * Box office: ticker label
 * ========================================================================= */
.sg-bot { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: 46px; margin-top: 18px; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: #fff !important; background: linear-gradient(90deg, #1a0d12, #0b0609); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7); }
.sg-bot--brand { background: var(--sg-grad); }
.sg-bot--light { background: var(--sg-surface); color: var(--sg-text) !important; border: 1px solid var(--sg-line); }
.sg-bot--glass { margin: 0 0 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); box-shadow: none; padding: 0; }
.sg-bot__lab { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px 0 12px; background: #fbbf24; color: #2a1500; font: 800 .74rem var(--sg-font); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.sg-bot--brand .sg-bot__lab { background: #fff; color: var(--sg-brand); }
.sg-bot__reel { width: 16px; height: 16px; border-radius: 50%; border: 3px dotted currentColor; animation: sg-ln-spin 3s linear infinite; }
@keyframes sg-ln-spin { to { transform: rotate(360deg); } }
.sg-bot__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.sg-bot__run { display: inline-flex; gap: 0; white-space: nowrap; animation: sg-bot-run calc(var(--n) * 7s) linear infinite; }
.sg-bot:hover .sg-bot__run { animation-play-state: paused; }
@keyframes sg-bot-run { to { transform: translateX(-50%); } }
.sg-bot__it { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font: 600 .84rem var(--sg-font); border-right: 1px solid rgba(255, 255, 255, .12); }
.sg-bot--light .sg-bot__it { border-color: var(--sg-line); }
.sg-bot__it em { font-style: normal; opacity: .55; font-weight: 800; }
.sg-bot__it strong { color: #fde68a; font-weight: 800; font-variant-numeric: tabular-nums; }
.sg-bot--light .sg-bot__it strong { color: var(--sg-brand); }
.sg-bot__it small { padding: 1px 6px; border-radius: 6px; background: rgba(239, 68, 68, .22); color: #fca5a5; font-weight: 700; font-size: .68rem; }
.sg-bot__go { display: grid; place-items: center; width: 40px; height: 100%; }
.sg-bot__go .sg-i { width: 16px; height: 16px; }
.sg-boh-tk + .sg-boh { margin-top: 12px; }
.sg-boh__tk { margin-bottom: 14px; }

/* Home: podium */
.sg-boh__sub { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; color: rgba(255, 255, 255, .7); font: 600 .84rem var(--sg-font); }
.sg-pod { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.sg-pod__i { display: grid; justify-items: center; gap: 4px; text-align: center; opacity: 0; transform: translateY(20px); }
.sg-boh.is-in .sg-pod__i { animation: sg-boh-in .7s calc(var(--d) * .15s + .1s) var(--sg-spring) forwards; }
.sg-pod__img { display: grid; place-items: center; width: min(92px, 24vw); aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e11d34, #7c3aed); font: 800 1.6rem var(--sg-display); box-shadow: 0 14px 30px -14px #000; }
.sg-pod__i--1 .sg-pod__img { width: min(118px, 30vw); box-shadow: 0 0 0 3px #fbbf24, 0 18px 40px -12px rgba(251, 191, 36, .6); }
.sg-pod__img img { width: 100%; height: 100%; object-fit: cover; }
.sg-pod__i b { font: 750 .86rem/1.25 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-pod__i strong { color: #fde68a; font: 800 .92rem var(--sg-font); font-variant-numeric: tabular-nums; }
.sg-pod__i--1 strong { font-size: 1.1rem; }
.sg-pod__i small { color: rgba(255, 255, 255, .6); font-size: .68rem; }
.sg-pod__step { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); }
.sg-pod__i--1 .sg-pod__step { height: 70px; background: linear-gradient(180deg, rgba(251, 191, 36, .5), rgba(251, 191, 36, .05)); }
.sg-pod__i--2 .sg-pod__step { height: 50px; }
.sg-pod__i--3 .sg-pod__step { height: 36px; }
.sg-pod__step em { font: 900 1.6rem var(--sg-display); font-style: normal; opacity: .9; }

/* Home: poster rail */

.sg-boh--posters .sg-boh__head h2 { color: var(--sg-text); }
.sg-boh--posters .sg-boh__kick { color: var(--sg-brand); }
.sg-bop { display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 190px); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sg-bop::-webkit-scrollbar { display: none; }
.sg-bop__c { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; scroll-snap-align: start; color: #fff !important; text-decoration: none !important; background: #111; box-shadow: var(--sg-shadow-lg); opacity: 0; transform: translateY(14px); transition: transform .3s var(--sg-spring); }
.sg-boh.is-in .sg-bop__c { animation: sg-boh-in .6s calc(var(--d) * .07s) var(--sg-ease) forwards; }
.sg-bop__c:hover { transform: translateY(-4px); }
.sg-bop__img { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, hsl(calc(var(--d) * 40 + 340) 70% 45%), #120509); font: 900 4rem var(--sg-display); color: rgba(255, 255, 255, .25); }
.sg-bop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sg-ease); }
.sg-bop__c:hover .sg-bop__img img { transform: scale(1.06); }
.sg-bop__c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .9)); }
.sg-bop__rank { position: absolute; z-index: 2; left: 10px; top: 4px; font: 900 2.6rem/1 var(--sg-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.sg-bop__live { position: absolute; z-index: 2; right: 8px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(239, 68, 68, .9); font: 750 .66rem var(--sg-font); }
.sg-bop__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: nx-blink 1.2s infinite; }
.sg-bop__body { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 3px; }
.sg-bop__body b { font: 750 .95rem/1.25 var(--sg-display); }
.sg-bop__body strong { font: 800 1rem var(--sg-font); color: #fde68a; }
.sg-bop__body .sg-bo__src { justify-self: start; background: rgba(255, 255, 255, .15); color: #fff; }
@media (min-width: 900px) { .sg-bop { grid-auto-columns: 200px; } }

/* =========================================================================
 * Box office page: hero variants
 * ========================================================================= */
.sg-bo__hero--spotlight { padding: 60px 0 40px; }
.sg-bo__spot { position: relative; display: grid; gap: 26px; align-items: center; }
.sg-bo__hero--spotlight .sg-bo__hin { text-align: left; }
.sg-bo__hero--spotlight .sg-bo__hin > p { margin: 0; }
.sg-bo__star { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px; border-radius: 26px; text-align: center; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: sg-boh-in .9s .4s var(--sg-spring) both; opacity: 0; transform: translateY(20px) rotate(-2deg); }
.sg-bo__star::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: conic-gradient(from 0deg, #fbbf24, #e11d34, #7c3aed, #fbbf24); filter: blur(18px); opacity: .45; animation: sg-ln-spin 8s linear infinite; }
.sg-bo__star-tag { padding: 4px 12px; border-radius: 999px; background: #fbbf24; color: #2a1500; font: 800 .72rem var(--sg-font); text-transform: uppercase; letter-spacing: .08em; }
.sg-bo__star-img { display: grid; place-items: center; width: 150px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #e11d34, #7c3aed); font: 900 3rem var(--sg-display); box-shadow: 0 24px 50px -20px #000; }
.sg-bo__star-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-bo__star b { font: 800 1.3rem/1.2 var(--sg-display); }
.sg-bo__star strong { font: 900 1.8rem var(--sg-display); color: #fde68a; font-variant-numeric: tabular-nums; }
.sg-bo__star small { color: rgba(255, 255, 255, .7); font-size: .78rem; }
@media (min-width: 900px) { .sg-bo__spot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 50px; } .sg-bo__hero--spotlight .sg-bo__stats { grid-template-columns: repeat(3, 1fr); } }
.sg-bo__hero--minimal { padding: 34px 0 10px; color: var(--sg-text); background: none; }
.sg-bo__hero--minimal .sg-bo__hin { text-align: left; }
.sg-bo__hero--minimal .sg-bo__kick { color: var(--sg-brand); }
.sg-bo__hero--minimal h1 { background: linear-gradient(90deg, var(--sg-text), var(--sg-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-bo__hero--minimal .sg-bo__hin > p { margin: 0; color: var(--sg-muted); }
.sg-bo__hero--minimal .sg-bo__stats > div { background: var(--sg-surface); border-color: var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-bo__hero--minimal .sg-bo__stats small { color: var(--sg-brand); }
.sg-bo__hero--minimal .sg-bo__stats em { color: var(--sg-muted); }
.sg-bo__hero--minimal + .sg-bot, .sg-bo__hero--minimal ~ .sg-bo .sg-bo__main { margin-top: 18px; }
.sg-bopage .sg-bot { margin-top: 18px; }
.sg-bo__h { margin: 0 0 12px; font: 800 1.4rem var(--sg-display); }
.sg-bo__tabs:not(.is-sticky) { position: relative; top: auto; }
.sg-bo__main { margin-top: 18px; }
.sg-bo__hero + .sg-bo .sg-bo__main { margin-top: -18px; }

/* Charts: cards */
.sg-bo__list--cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.sg-bo__card { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3.1; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #111; color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: var(--sg-shadow-lg); transition: transform .3s var(--sg-spring); }
.sg-bo__list.is-in .sg-bo__card { animation: sg-fade-up .55s calc(var(--d) * .05s) var(--sg-ease) both; }
.sg-bo__card:hover { transform: translateY(-4px); }
.sg-bo__cimg { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--sg-brand), #1a0610); font: 900 3.6rem var(--sg-display); color: rgba(255, 255, 255, .25); }
.sg-bo__cimg img { width: 100%; height: 100%; object-fit: cover; }
.sg-bo__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .92)); }
.sg-bo__crank { position: absolute; z-index: 2; left: 10px; top: 2px; font: 900 2.4rem/1 var(--sg-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.sg-bo__clive { position: absolute; z-index: 2; right: 8px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(239, 68, 68, .9); font: 750 .66rem var(--sg-font); }
.sg-bo__clive i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: nx-blink 1.2s infinite; }
.sg-bo__cbody { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.sg-bo__cbody b { font: 750 .98rem/1.25 var(--sg-display); }
.sg-bo__cbody > small { color: rgba(255, 255, 255, .6); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-bo__cbody strong { font: 800 1.05rem var(--sg-font); color: #fde68a; font-variant-numeric: tabular-nums; }
.sg-bo__cbody .sg-bo__bar { background: rgba(255, 255, 255, .15); }
.sg-bo__cbody .sg-bo__tags { color: rgba(255, 255, 255, .7); }

/* Charts: table */
.sg-bo__tw { overflow-x: auto; border-radius: 18px; border: 1px solid var(--sg-line); background: var(--sg-surface); box-shadow: var(--sg-shadow); }
.sg-bo__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .88rem; }
.sg-bo__table th { position: sticky; top: 0; padding: 12px 14px; background: var(--sg-surface-2); color: var(--sg-muted); font: 750 .7rem var(--sg-font); text-transform: uppercase; letter-spacing: .08em; text-align: left; white-space: nowrap; }
.sg-bo__table td { padding: 10px 14px; border-top: 1px solid var(--sg-line); vertical-align: middle; white-space: nowrap; }
.sg-bo__table .r { text-align: right; }
.sg-bo__table tbody tr { cursor: pointer; transition: background .2s; }
.sg-bo__list.is-in .sg-bo__table tbody tr { animation: sg-fade-up .45s calc(var(--d) * .04s) var(--sg-ease) both; }
.sg-bo__table tbody tr:hover { background: color-mix(in srgb, var(--sg-brand) 5%, transparent); }
.sg-bo__trank { font: 800 1rem var(--sg-display); color: var(--sg-muted); width: 34px; }
.sg-bo__table tr:nth-child(1) .sg-bo__trank { color: #f59e0b; } .sg-bo__table tr:nth-child(2) .sg-bo__trank { color: #94a3b8; } .sg-bo__table tr:nth-child(3) .sg-bo__trank { color: #c2410c; }
.sg-bo__tfilm { display: flex; align-items: center; gap: 10px; white-space: normal; }
.sg-bo__tp { flex: none; display: grid; place-items: center; width: 34px; height: 46px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, var(--sg-brand), #7c3aed); color: #fff; font: 800 .9rem var(--sg-display); }
.sg-bo__tp img { width: 100%; height: 100%; object-fit: cover; }
.sg-bo__tfilm b { display: block; font: 700 .92rem var(--sg-display); }
.sg-bo__tfilm small { color: var(--sg-muted); font-size: .72rem; }
.sg-bo__table strong { font: 800 .95rem var(--sg-font); font-variant-numeric: tabular-nums; }
.sg-bo__table .sg-bo__bar { margin: 4px 0 0 auto; width: 110px; }

/* Weather card: link */
.sg-wx__full { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff !important; font: 700 .76rem var(--sg-font); text-decoration: none !important; transition: background .2s; }
.sg-wx__full:hover { background: rgba(255, 255, 255, .3); }

/* =========================================================================
 * Weather forecast page
 * ========================================================================= */
.sg-wxp { --wx-a: #4f9cf7; --wx-b: #2563eb; font-family: var(--sg-font); padding-bottom: 30px; }
.sg-wxp__sky { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(170deg, var(--wx-a), var(--wx-b)); transition: background 1.2s; }
.sg-wxp__scene { z-index: -1; }
.sg-wxp__scene .sx-sun { width: 340px; height: 340px; top: -110px; right: -70px; }
.sg-wxp__scene .sx-moon { width: 80px; height: 80px; top: 40px; right: 10%; }
.sg-wxp__scene .sx-cloud { transform: scale(1.6); }
.sg-wxp__now { position: relative; display: grid; gap: 18px; padding-top: 22px; padding-bottom: 60px; min-height: 260px; }
.sg-wxp__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-wxp__top .sg-wx__city { max-width: 60vw; }
.sg-wxp__big { display: flex; align-items: center; gap: 14px; animation: sg-fade-up .7s var(--sg-ease) both; }
.sg-wxp__icon .wi { width: 110px; height: 110px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25)); }
.sg-wxp__temp { display: block; font: 800 5.6rem/.95 var(--sg-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.sg-wxp__temp sup { font-size: .4em; vertical-align: 1.2em; opacity: .8; }
.sg-wxp__cond { display: block; font: 700 1.2rem var(--sg-display); }
.sg-wxp__hl { display: block; opacity: .85; font-size: .86rem; margin-top: 2px; }
.sg-wxp__say { margin: 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 .95rem var(--sg-font); animation: sg-fade-up .7s .15s var(--sg-ease) both; }
.sg-wxp__body { position: relative; z-index: 2; display: grid; gap: 14px; margin-top: -36px; }
.sg-wxp__card, .sg-wxp__tile { border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-wxp__card { padding: 16px; animation: sg-fade-up .6s .1s var(--sg-ease) both; }
.sg-wxp__card h3 { margin: 0 0 10px; font: 800 1rem var(--sg-display); }
.sg-wxp__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-wxp__tile { position: relative; overflow: hidden; display: grid; align-content: start; gap: 4px; padding: 14px; min-height: 122px; animation: sg-fade-up .55s var(--sg-ease) both; }
.sg-wxp__tile:nth-child(2) { animation-delay: .05s; } .sg-wxp__tile:nth-child(3) { animation-delay: .1s; } .sg-wxp__tile:nth-child(4) { animation-delay: .15s; } .sg-wxp__tile:nth-child(5) { animation-delay: .2s; } .sg-wxp__tile:nth-child(6) { animation-delay: .25s; } .sg-wxp__tile:nth-child(7) { animation-delay: .3s; } .sg-wxp__tile:nth-child(8) { animation-delay: .35s; } .sg-wxp__tile:nth-child(9) { animation-delay: .4s; }
.sg-wxp__tile > small { color: var(--sg-muted); font: 700 .72rem var(--sg-font); text-transform: uppercase; letter-spacing: .06em; }
.sg-wxp__tile > b { font: 800 1.7rem/1.1 var(--sg-display); font-variant-numeric: tabular-nums; }
.sg-wxp__tile > b small { font-size: .5em; color: var(--sg-muted); }
.sg-wxp__tile p { margin: 0; color: var(--sg-muted); font-size: .8rem; line-height: 1.4; }
.sg-wxp__meter { position: relative; display: block; height: 6px; margin-top: auto; border-radius: 6px; background: linear-gradient(90deg, #22c55e, #facc15, #fb923c, #ef4444, #a855f7, #7f1d1d); }
.sg-wxp__meter--uv { background: linear-gradient(90deg, #22c55e, #facc15, #fb923c, #ef4444, #a855f7); }
.sg-wxp__meter i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--sg-text), 0 2px 6px rgba(0, 0, 0, .3); animation: sg-wxp-slide 1.2s .4s var(--sg-ease) both; }
@keyframes sg-wxp-slide { from { left: 0 !important; opacity: 0; } }
.sg-wxp__compass { position: absolute; right: 12px; top: 34px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px dashed var(--sg-line); }
.sg-wxp__compass em { position: absolute; top: -2px; font: 800 .6rem var(--sg-font); font-style: normal; color: var(--sg-muted); }
.sg-wxp__compass i { width: 4px; height: 38px; border-radius: 4px; background: linear-gradient(var(--sg-brand) 50%, var(--sg-muted) 50%); transform: rotate(var(--r)); animation: sg-wxp-needle 1.4s .3s var(--sg-spring) both; }
@keyframes sg-wxp-needle { from { transform: rotate(calc(var(--r) - 180deg)); } }
.sg-wxp__fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: linear-gradient(180deg, rgba(56, 189, 248, .14), rgba(56, 189, 248, .28)); z-index: -1; animation: sg-wxp-rise 1.4s .3s var(--sg-ease) both; }
.sg-wxp__tile { isolation: isolate; }
@keyframes sg-wxp-rise { from { height: 0; } }
.sg-wxp__tile--sun { grid-column: span 2; justify-items: center; }
.sg-wxp__tile--sun > small { justify-self: start; }
.sg-wxp__tile--sun svg { width: 100%; max-width: 240px; overflow: visible; }
.sg-wxp__tile--sun .arc, .sg-wxp__tile--sun .arc-on { fill: none; stroke-width: 3; stroke-linecap: round; }
.sg-wxp__tile--sun .arc { stroke: var(--sg-line); stroke-dasharray: 4 6; }
.sg-wxp__tile--sun .arc-on { stroke: #f59e0b; animation: sg-wx-arc 1.6s var(--sg-ease) both; }
.sg-wxp__tile--sun .dot { fill: #f59e0b; filter: drop-shadow(0 0 8px #fbbf24); }
.sg-wxp__tile--sun div { display: flex; justify-content: space-between; width: 100%; max-width: 260px; font: 700 .86rem var(--sg-font); }
.sg-wxp__hscroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: thin; }
.sg-wxp__hwrap { position: relative; height: 230px; }
.sg-wxp__hsvg { position: absolute; left: 0; top: 34px; width: 100%; height: 150px; }
.sg-wxp__hsvg .area { fill: url(#wxpg); }
.sg-wxp__hsvg .line { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: sg-bo-draw 2.2s var(--sg-ease) forwards; }
.sg-wxp__hcols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 56px; height: 100%; }
.sg-wxp__hc { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; font-size: .72rem; }
.sg-wxp__hc small { color: var(--sg-muted); font-weight: 600; }
.sg-wxp__hc .wi { width: 26px; height: 26px; margin-top: 2px; }
.sg-wxp__hc b { position: absolute; top: calc(var(--y) + 16px); font: 800 .82rem var(--sg-font); padding: 1px 5px; border-radius: 6px; background: var(--sg-surface); }
.sg-wxp__rain { grid-row: 4; position: relative; display: block; width: 18px; height: 40px; border-radius: 6px; background: var(--sg-surface-2); overflow: hidden; }
.sg-wxp__rain::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: linear-gradient(180deg, #7dd3fc, #2563eb); }
.sg-wxp__rain span { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); font: 700 .58rem var(--sg-font); color: #2563eb; white-space: nowrap; }
.sg-wxp__rain { overflow: visible; }
.sg-wxp__rain::before { border-radius: 6px; }
.sg-wxp__days { list-style: none; margin: 0; padding: 0; }
.sg-wxp__days li { display: grid; grid-template-columns: minmax(84px, 1.2fr) 34px 48px 32px minmax(60px, 2fr) 34px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--sg-line); font: 650 .86rem var(--sg-font); animation: sg-fade-up .45s calc(var(--d) * .05s) var(--sg-ease) both; }
.sg-wxp__days li:first-child { border-top: 0; }
.sg-wxp__dn b { display: block; font-weight: 750; }
.sg-wxp__dn small { color: var(--sg-muted); font-size: .7rem; }
.sg-wxp__days .wi { width: 30px; height: 30px; }
.sg-wxp__days em { font-style: normal; font-size: .7rem; color: #2563eb; }
.sg-wxp__days .lo { text-align: right; color: var(--sg-muted); }
.sg-wxp__days .sg-wx__range { background: var(--sg-surface-2); }
.sg-wxp__cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sg-wxp__city { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n n" "i t" "c c"; align-items: center; gap: 2px 6px; padding: 12px; border: 1px solid var(--sg-line); border-radius: 16px; background: linear-gradient(160deg, var(--sg-surface-2), var(--sg-surface)); color: var(--sg-text); text-align: left; font: inherit; cursor: pointer; animation: sg-fade-up .45s calc(var(--d) * .03s) var(--sg-ease) both; transition: transform .2s var(--sg-spring), border-color .2s; }
.sg-wxp__city:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sg-brand) 35%, var(--sg-line)); }
.sg-wxp__city.is-on { border-color: var(--sg-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-brand) 15%, transparent); }
.sg-wxp__city b { grid-area: n; font: 750 .88rem var(--sg-display); }
.sg-wxp__city .wi { grid-area: i; width: 34px; height: 34px; }
.sg-wxp__city strong { grid-area: t; font: 800 1.4rem var(--sg-display); }
.sg-wxp__city small { grid-area: c; color: var(--sg-muted); font-size: .7rem; }
.sg-wxp__city .wi-cloud { fill: #cbd5e1; }
.sg-wxp__src { margin: 4px 0 0; color: var(--sg-muted); font-size: .74rem; text-align: center; }
.sg-wxp.is-loading .sg-wxp__now { min-height: 300px; }
@media (min-width: 640px) {
	.sg-wxp__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sg-wxp__tile--sun { grid-column: span 2; }
	.sg-wxp__temp { font-size: 7.5rem; }
	.sg-wxp__icon .wi { width: 150px; height: 150px; }
	.sg-wxp__now { padding-top: 34px; padding-bottom: 80px; min-height: 360px; }
}
@media (min-width: 1024px) {
	.sg-wxp--immersive .sg-wxp__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sg-wxp--immersive .sg-wxp__tiles, .sg-wxp--immersive .sg-wxp__card--hourly, .sg-wxp--immersive .sg-wxp__card--cities, .sg-wxp--immersive .sg-wxp__src { grid-column: 1 / -1; }
	.sg-wxp--immersive .sg-wxp__tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.sg-wxp--immersive .sg-wxp__tile--sun { grid-column: span 2; }
	.sg-wxp--immersive [data-wxp-cities] { grid-column: 1 / -1; }
	.sg-wxp--immersive .sg-wxp__card--daily { grid-column: 1 / -1; }
	/* Dashboard: sky on the left, panels on the right */
	.sg-wxp--dashboard { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 20px; max-width: var(--sg-wrap); margin: 20px auto 0; padding-inline: var(--sg-pad); }
	.sg-wxp--dashboard .sg-wxp__sky { position: sticky; top: calc(var(--sg-header-h) + 16px); align-self: start; border-radius: 28px; min-height: 560px; }
	.sg-wxp--dashboard .sg-wxp__now { padding: 26px; max-width: none; }
	.sg-wxp--dashboard .sg-wxp__temp { font-size: 6rem; }
	.sg-wxp--dashboard .sg-wxp__big { flex-direction: column; align-items: flex-start; }
	.sg-wxp--dashboard .sg-wxp__body { margin: 0; padding: 0; max-width: none; }
	.sg-wxp--dashboard .sg-wxp__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sg-wxp--minimal .sg-wxp__sky { margin: 18px var(--sg-pad) 0; border-radius: 28px; }
@media (min-width: 1024px) { .sg-wxp--minimal .sg-wxp__sky { max-width: calc(var(--sg-wrap) - var(--sg-pad) * 2); margin-inline: auto; } }
.sg-wxp--minimal .sg-wxp__body { margin-top: 16px; }
.sg-wxp--minimal .sg-wxp__now { padding-bottom: 28px; min-height: 0; }
.sg-wxp--minimal .sg-wxp__scene canvas { opacity: .6; }
.sg-wxp.sg-wx--clear.sg-wx--day { --wx-a: #38bdf8; --wx-b: #2563eb; }
.sg-wxp.sg-wx--partly.sg-wx--day { --wx-a: #60a5fa; --wx-b: #3b5bdb; }
.sg-wxp.sg-wx--cloudy { --wx-a: #8191a8; --wx-b: #4b5a73; }
.sg-wxp.sg-wx--fog { --wx-a: #a3adba; --wx-b: #6b7686; }
.sg-wxp.sg-wx--drizzle, .sg-wxp.sg-wx--rain { --wx-a: #50627d; --wx-b: #26334a; }
.sg-wxp.sg-wx--storm { --wx-a: #3a3555; --wx-b: #151225; }
.sg-wxp.sg-wx--snow { --wx-a: #b8cbe0; --wx-b: #6f88a8; }
.sg-wxp.sg-wx--night { --wx-a: #1e2a5a; --wx-b: #0a0f2a; }

.sg-bot__s { display: none; }
@media (max-width: 599px) { .sg-bot__t { display: none; } .sg-bot__s { display: inline; } .sg-bot__lab { padding-left: 10px; gap: 6px; } .sg-bot__it { padding: 0 16px; font-size: .8rem; } }

.sg-wxp__card .wi-cloud, .sg-wxp__city .wi-cloud, .sg-wxp__card .wi-cloud.wi-c2 { fill: #a8b5c8; }
.sg-wxp__card .wi-cloud.wi-dark, .sg-wxp__city .wi-cloud.wi-dark { fill: #7c8aa0; }
.sg-wxp__card .wi-moon, .sg-wxp__city .wi-moon { fill: #f5c542; }
.sg-wxp__card .wi-fog rect, .sg-wxp__city .wi-fog rect { fill: #a8b5c8; }
.sg-wxp__card .wi-snow circle, .sg-wxp__city .wi-snow circle { fill: #93c5fd; }
[data-theme="dark"] .sg-wxp__card .wi-cloud, [data-theme="dark"] .sg-wxp__city .wi-cloud { fill: #e2e8f0; }

.sg-wxp__body { grid-template-columns: minmax(0, 1fr); }
.sg-wxp__body > *, .sg-wxp__card { min-width: 0; }
.sg-bot-w { margin-top: 18px; }
.sg-bot-w .sg-bot { margin-top: 0; }
.sg-boh__tk .sg-bot-w, .sg-boh-tk .sg-bot-w { padding: 0; margin-top: 0; }
.sg-boh-tk { margin-top: 18px; }

/* Story ring badges + author rings as links */
a.sg-story { color: var(--sg-text); text-decoration: none; }
.sg-story__ini { font: 800 1.6rem var(--sg-display); font-style: normal; color: hsl(var(--h) 60% 40%); }
.sg-story__tick--gold { color: #f59e0b; }
.sg-story__tick--brand { color: var(--sg-brand); }
.sg-story__tick--pen { color: #7c3aed; }
.sg-story__tick--gold .sg-i { filter: drop-shadow(0 0 3px rgba(245, 158, 11, .6)); }
.sg-credit a { color: inherit; font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--sg-ease), color .2s; }
.sg-credit a:hover { color: var(--sg-brand); background-size: 100% 1.5px; }
