/* ==========================================================================
   Sangriha — main stylesheet (mobile first)
   1. Fonts & tokens   2. Base   3. App chrome   4. Components
   5. Home sections    6. Reading   7. Media pages   8. Overlays
   9. Desktop          10. Motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face { font-family: "Anek Devanagari Variable"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(../fonts/anek-devanagari-devanagari-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Anek Devanagari Variable"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(../fonts/anek-devanagari-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/mukta-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/mukta-devanagari-500-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/mukta-devanagari-600-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/mukta-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/mukta-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/mukta-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/mukta-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Mukta"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/mukta-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/noto-serif-devanagari-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/noto-serif-devanagari-devanagari-600-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/noto-serif-devanagari-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
	--sg-brand: #e11d34;
	--sg-brand-2: #a10f22;
	--sg-brand-3: #6d0616;
	--sg-grad: linear-gradient(135deg, var(--sg-brand) 0%, var(--sg-brand-2) 55%, var(--sg-brand-3) 100%);
	--sg-bg: #f8f5f4;
	--sg-surface: #fff;
	--sg-surface-2: #f2edeb;
	--sg-text: #1a1113;
	--sg-muted: #6c6164;
	--sg-line: rgba(26, 17, 19, .085);
	--sg-glass: rgba(255, 255, 255, .74);
	--sg-shadow: 0 1px 2px rgba(30, 8, 12, .05), 0 14px 34px -18px rgba(30, 8, 12, .28);
	--sg-shadow-lg: 0 30px 60px -30px rgba(30, 8, 12, .45);
	--sg-ok: #0f9d6b;
	--sg-wait: #c27c0e;
	--sg-err: #d92d3a;
	--sg-ease: cubic-bezier(.2, .8, .2, 1);
	--sg-spring: cubic-bezier(.34, 1.56, .64, 1);
	--sg-display: "Anek Devanagari Variable", "Mukta", system-ui, sans-serif;
	--sg-font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sg-serif: "Noto Serif Devanagari", "Mukta", Georgia, serif;
	--sg-radius: 22px;
	--sg-header-h: 60px;
	--sg-tabbar-h: 76px;
	--sg-wrap: 1240px;
	--sg-narrow: 720px;
	--sg-pad: 16px;
	--sg-read-size: 18.5px;
	--sg-read-lh: 1.95;
	--sg-chip-l: 40%;
	color-scheme: light;
}
[data-theme="dark"] {
	--sg-bg: #0d0809;
	--sg-surface: #171012;
	--sg-surface-2: #22191b;
	--sg-text: #f5eded;
	--sg-muted: #a8999c;
	--sg-line: rgba(255, 255, 255, .085);
	--sg-glass: rgba(20, 13, 15, .72);
	--sg-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -18px rgba(0, 0, 0, .7);
	--sg-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
	--sg-chip-l: 70%;
	color-scheme: dark;
}
/* Always-dark bands */
.sg-docs, .sg-catsec--dark, .sg-doc-page, .sg-reels-page {
	--sg-bg: #0b0708; --sg-surface: #1a1214; --sg-surface-2: #251b1d; --sg-text: #f5eded; --sg-muted: #b3a5a8; --sg-line: rgba(255, 255, 255, .1); --sg-chip-l: 72%; --sg-glass: rgba(20, 13, 15, .7);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sg-header-h) + 16px); }
body { margin: 0; background: var(--sg-bg); color: var(--sg-text); font: 400 16px/1.6 var(--sg-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; padding-bottom: calc(var(--sg-tabbar-h) + env(safe-area-inset-bottom)); transition: background .35s var(--sg-ease), color .35s var(--sg-ease); }
img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .2em; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--sg-display); line-height: 1.25; letter-spacing: -.005em; }
::selection { background: color-mix(in srgb, var(--sg-brand) 22%, transparent); }
:focus-visible { outline: 2px solid var(--sg-brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sg-skip { position: absolute; left: -999px; top: 8px; z-index: 999; padding: 10px 16px; background: var(--sg-text); color: var(--sg-bg); border-radius: 10px; }
.sg-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.sg-wrap { max-width: var(--sg-wrap); margin-inline: auto; padding-inline: var(--sg-pad); }
.sg-narrow { max-width: calc(var(--sg-narrow) + var(--sg-pad) * 2); margin-inline: auto; padding-inline: var(--sg-pad); }
.sg-wrap-pad { padding-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); scroll-padding-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); }
.sg-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.sg-main { min-height: 60vh; }

/* 3. App chrome ----------------------------------------------------------- */
.sg-top { position: sticky; top: 0; z-index: 60; background: var(--sg-glass); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid transparent; transition: transform .35s var(--sg-ease), border-color .3s, background .3s; view-transition-name: sg-top; padding-top: env(safe-area-inset-top); }
.sg-top.is-scrolled { border-color: var(--sg-line); }
.sg-top.is-hidden { transform: translateY(-100%); }
.sg-top__in { max-width: var(--sg-wrap); margin: 0 auto; height: var(--sg-header-h); padding: 0 var(--sg-pad); display: flex; align-items: center; gap: 12px; }
.sg-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.sg-logo__img { height: 34px; width: auto; display: block; }
.sg-logo__dark { display: none; }
[data-theme="dark"] .sg-logo__light { display: none; }
[data-theme="dark"] .sg-logo__dark { display: block; }
.sg-logo__dark.is-invert { filter: brightness(0) invert(1); }
.sg-docs .sg-logo__light, .sg-doc-page .sg-logo__light { display: none; }
.sg-doc-page .sg-logo__dark { display: block; }
.sg-logo__mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sg-grad); color: #fff; font: 700 21px/1 var(--sg-display); box-shadow: 0 8px 20px -10px var(--sg-brand); }
.sg-logo__text { font: 800 1.35rem/1 var(--sg-display); letter-spacing: -.01em; }
.sg-nav { display: none; }
.sg-top__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.sg-iconbtn { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--sg-text); transition: background .2s, transform .2s var(--sg-ease); text-decoration: none; }
.sg-iconbtn:hover { background: var(--sg-surface-2); }
.sg-iconbtn:active { transform: scale(.9); }
.sg-iconbtn .sg-i { width: 22px; height: 22px; }
.sg-top__kbd { display: none; }
.sg-show-dark { display: none; }
[data-theme="dark"] .sg-show-dark { display: block; }
[data-theme="dark"] .sg-show-light { display: none; }
.sg-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--sg-brand); color: #fff; font: 700 10px/17px var(--sg-font); text-align: center; box-shadow: 0 0 0 2px var(--sg-bg); animation: sg-pop .4s var(--sg-spring); }
.sg-write-btn { display: none; }
.sg-avatar-btn { margin-left: 4px; display: inline-flex; border-radius: 50%; padding: 2px; background: var(--sg-grad); }
.sg-avatar-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--sg-bg); }
.sg-signin { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; margin-left: 4px; border-radius: 999px; background: var(--sg-text); color: var(--sg-bg); font-weight: 600; font-size: .9rem; text-decoration: none; }
.sg-signin .sg-i { width: 16px; height: 16px; }
.sg-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.sg-progress i { display: block; height: 100%; background: var(--sg-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Tab bar & dock */
.sg-tabbar, .sg-dock {
	position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
	height: 64px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
	border-radius: 24px; background: var(--sg-glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
	border: 1px solid var(--sg-line); box-shadow: 0 18px 40px -18px rgba(20, 6, 10, .45);
	transition: transform .4s var(--sg-ease); view-transition-name: sg-bottom;
}
.sg-tabbar.is-hidden, .sg-dock.is-hidden { transform: translateY(140%); }
.sg-tabbar a, .sg-tabbar button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 0; border: 0; background: none; color: var(--sg-muted); text-decoration: none; font: 600 .68rem/1.2 var(--sg-font); cursor: pointer; transition: color .2s; }
.sg-tabbar .sg-i { width: 23px; height: 23px; transition: transform .3s var(--sg-spring); }
.sg-tabbar .is-on { color: var(--sg-brand); }
.sg-tabbar .is-on .sg-i { transform: translateY(-1px) scale(1.08); }
.sg-tabbar .is-on::after { content: ""; position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--sg-brand); }
.sg-tabbar a:active .sg-i, .sg-tabbar button:active .sg-i { transform: scale(.85); }
.sg-tabbar__fab { width: 54px; height: 54px; margin: -26px auto 0; border-radius: 19px !important; background: var(--sg-grad) !important; color: #fff !important; display: grid !important; place-items: center; box-shadow: 0 14px 28px -10px var(--sg-brand), inset 0 1px 0 rgba(255, 255, 255, .35); transform: rotate(0); transition: transform .35s var(--sg-spring) !important; }
.sg-tabbar__fab .sg-i { width: 26px; height: 26px; stroke-width: 2.4; }
.sg-tabbar__fab.is-open { transform: rotate(45deg); }
.sg-dock { left: 50%; right: auto; width: min(calc(100% - 24px), 440px); transform: translateX(-50%); }
.sg-dock.is-hidden { transform: translate(-50%, 140%); }
.sg-dock > * { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 100%; border: 0; background: none; color: var(--sg-text); cursor: pointer; text-decoration: none; font: 600 .82rem var(--sg-font); }
.sg-dock .sg-i { width: 22px; height: 22px; }
.sg-dock__back { color: var(--sg-muted) !important; }

/* 4. Components ----------------------------------------------------------- */
.sg-btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--h); padding: 0 1.25em; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--sg-font); text-decoration: none; cursor: pointer; transition: transform .2s var(--sg-ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.sg-btn:active { transform: scale(.96); }
.sg-btn--primary { color: #fff; background: var(--sg-grad); box-shadow: 0 10px 24px -10px var(--sg-brand); }
.sg-btn--primary:hover { color: #fff; box-shadow: 0 14px 30px -10px var(--sg-brand); }
.sg-btn--ghost { color: var(--sg-text); background: var(--sg-surface); border-color: var(--sg-line); }
.sg-btn--ghost:hover { border-color: color-mix(in srgb, var(--sg-brand) 40%, transparent); color: var(--sg-brand); }
.sg-btn--light { color: #1a1113; background: #fff; }
.sg-btn--glass { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-btn--block { width: 100%; }
.sg-pill, .sg-pillbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); font-size: .88rem; color: var(--sg-text); }
.sg-pillbtn { cursor: pointer; font-weight: 600; }
.sg-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sg-chip { display: inline-flex; align-items: center; gap: 4px; font: 600 .78rem/1.3 var(--sg-font); color: hsl(var(--h, 352) 70% var(--sg-chip-l)); letter-spacing: .01em; }
.sg-label { display: inline-block; padding: 1px 8px; border-radius: 6px; font: 600 .7rem/1.6 var(--sg-font); border: 1px solid currentColor; color: var(--sg-muted); }
.sg-label--opinion { color: #b45309; }
.sg-label--investigation { color: var(--sg-brand); }
.sg-label--analysis { color: #2563eb; }
.sg-label--news { color: var(--sg-ok); }
.sg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: var(--sg-muted); }
.sg-meta__av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sg-meta__by { display: inline-flex; align-items: center; font-weight: 600; color: var(--sg-text); }
.sg-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.sg-verified { display: inline-flex; color: var(--sg-brand); margin-inline-start: .28em; }
.sg-verified .sg-i { width: .95em; height: .95em; }
.sg-kicker { display: inline-block; font: 600 .78rem/1.3 var(--sg-font); color: var(--sg-brand); letter-spacing: .02em; margin-bottom: 2px; }
.sg-ph { display: grid !important; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 85% 62%), transparent 60%), linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 25) 65% 22%)); }
.sg-ph span { font: 800 3.2rem/1 var(--sg-display); color: rgba(255, 255, 255, .55); }
.sg-play-dot { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.sg-play-dot .sg-i { width: 14px; height: 14px; margin-left: 2px; }

.sg-save, .sg-like { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; background: none; color: inherit; transition: transform .2s var(--sg-ease), color .2s; }
.sg-save.is-on { color: var(--sg-brand); }
.sg-save.is-on .sg-i, .sg-like.is-on .sg-i { fill: currentColor; }
.sg-like.is-on { color: var(--sg-brand); }
.sg-like.is-burst .sg-i { animation: sg-heart .55s var(--sg-spring); }
.sg-card > .sg-save, .sg-feature > .sg-save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.sg-card > .sg-save.is-on, .sg-feature > .sg-save.is-on { color: #fff; background: var(--sg-brand); }
.sg-card > .sg-save .sg-i, .sg-feature > .sg-save .sg-i { width: 18px; height: 18px; }

.sg-follow { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--sg-text); color: var(--sg-bg); font: 600 .88rem var(--sg-font); cursor: pointer; transition: all .25s var(--sg-ease); }
.sg-follow .sg-i { width: 15px; height: 15px; transition: transform .3s; }
.sg-follow.is-on { background: transparent; color: var(--sg-text); box-shadow: inset 0 0 0 1.5px var(--sg-line); }
.sg-follow.is-on .sg-i { transform: rotate(45deg); }
.sg-follow--lg { height: 46px; padding: 0 22px; font-size: 1rem; }

/* Cards */
.sg-card { position: relative; min-width: 0; }
.sg-card > a { display: block; text-decoration: none; color: inherit; }
.sg-card__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--sg-surface-2); }
.sg-card__img img, .sg-card__img .sg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sg-ease); }
.sg-card__img img { display: block; }
.sg-card:hover .sg-card__img img { transform: scale(1.04); }
.sg-card__body { display: grid; gap: 5px; padding: 11px 2px 0; }
.sg-card__title { margin: 0; font: 650 1.08rem/1.38 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-card__dek { margin: 0; color: var(--sg-muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sg-feature { position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; box-shadow: var(--sg-shadow-lg); background: #1a1113; }
.sg-feature__link { display: block; position: relative; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; }
.sg-feature__img { position: absolute; inset: 0; }
.sg-feature__img img, .sg-feature__img .sg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sg-ease); }
.sg-feature:hover .sg-feature__img img { transform: scale(1.04); }
.sg-feature__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(10, 4, 6, .55) 62%, rgba(10, 4, 6, .92) 100%); }
.sg-feature__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 22px; display: grid; gap: 8px; }
.sg-feature .sg-chip { color: #fff; padding: 4px 10px 3px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-feature .sg-label { color: #fff; border-color: rgba(255, 255, 255, .5); }
.sg-feature__title { margin: 0; font: 750 clamp(1.45rem, 6vw, 2.4rem)/1.22 var(--sg-display); text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.sg-feature .sg-meta, .sg-feature .sg-meta__by { color: rgba(255, 255, 255, .85); }

.sg-lead > a { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.sg-lead__img { display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--sg-surface-2); margin-bottom: 4px; }
.sg-lead__img img, .sg-lead__img .sg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sg-ease); }
.sg-lead:hover .sg-lead__img img { transform: scale(1.03); }
.sg-lead__title { margin: 0; font: 750 1.45rem/1.3 var(--sg-display); text-wrap: balance; }
.sg-lead__dek { margin: 0; color: var(--sg-muted); line-height: 1.6; }

.sg-row > a { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 12px 0; }
.sg-row + .sg-row > a { border-top: 1px solid var(--sg-line); }
.sg-row__body { display: grid; gap: 5px; min-width: 0; }
.sg-row__title { margin: 0; font: 650 1.02rem/1.4 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-row__img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--sg-surface-2); }
.sg-row__img img, .sg-row__img .sg-ph { width: 100%; height: 100%; object-fit: cover; }
.sg-row__img .sg-ph span { font-size: 1.6rem; }
.sg-row__img .sg-play-dot { width: 28px; height: 28px; right: 6px; bottom: 6px; }

.sg-rank > a { display: grid; grid-template-columns: auto 1fr 72px; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 12px 0; }
.sg-rank__n { font: 800 2.3rem/1 var(--sg-display); background: var(--sg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1.5em; letter-spacing: -.03em; }
.sg-rank__body { display: grid; gap: 4px; min-width: 0; }
.sg-rank__title { margin: 0; font: 650 1rem/1.4 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-rank__img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sg-surface-2); }
.sg-rank__img img, .sg-rank__img .sg-ph { width: 100%; height: 100%; object-fit: cover; }
.sg-rank__img .sg-ph span { font-size: 1.4rem; }

.sg-reelcard > a { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: #1a1113; }
.sg-reelcard img, .sg-reelcard .sg-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sg-ease); }
.sg-reelcard:hover img { transform: scale(1.05); }
.sg-reelcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .8)); }
.sg-reelcard__play { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-reelcard__play .sg-i { width: 13px; height: 13px; margin-left: 2px; }
.sg-reelcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; display: grid; gap: 4px; }
.sg-reelcard__body b { font: 650 .95rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-reelcard__body small { font-size: .75rem; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }

.sg-poemcard > a { position: relative; display: grid; align-content: space-between; gap: 14px; height: 100%; min-height: 300px; padding: 26px 24px 22px; border-radius: 26px; text-decoration: none; color: var(--sg-text); background: radial-gradient(90% 70% at 100% 0%, hsl(var(--h) 80% 90% / .7), transparent 70%), linear-gradient(160deg, hsl(var(--h) 45% 98%), hsl(calc(var(--h) + 20) 40% 94%)); border: 1px solid hsl(var(--h) 40% 88%); box-shadow: var(--sg-shadow); overflow: hidden; }
[data-theme="dark"] .sg-poemcard > a { background: radial-gradient(90% 70% at 100% 0%, hsl(var(--h) 60% 30% / .45), transparent 70%), linear-gradient(160deg, hsl(var(--h) 20% 14%), hsl(calc(var(--h) + 20) 18% 10%)); border-color: hsl(var(--h) 25% 22%); }
.sg-poemcard__q { position: absolute; top: -14px; right: 14px; font: 700 7rem/1 var(--sg-serif); color: hsl(var(--h) 60% 50% / .14); }
.sg-poemcard__lines { display: grid; gap: 2px; font: 400 1.12rem/1.85 var(--sg-serif); }
.sg-deck .sg-poemcard__lines { font-size: 1.22rem; line-height: 2; padding-top: 10px; }
.sg-poemcard__foot { display: grid; gap: 2px; border-top: 1px dashed hsl(var(--h) 30% 70% / .6); padding-top: 12px; }
.sg-poemcard__foot b { font: 700 1.08rem var(--sg-display); }
.sg-poemcard__foot small { color: var(--sg-muted); }

.sg-doccard > a { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.sg-doccard__img { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.sg-doccard__img img, .sg-doccard__img .sg-ph { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .7s var(--sg-ease), opacity .3s; }
.sg-doccard:hover .sg-doccard__img img { transform: scale(1.05); opacity: 1; }
.sg-doccard__play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.sg-doccard__play .sg-i { width: 18px; height: 18px; margin-left: 3px; }
.sg-doccard__img em { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 .75rem var(--sg-font); font-style: normal; }
.sg-doccard b { font: 650 1.02rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-doccard small { color: var(--sg-muted); font-size: .8rem; }

.sg-tile > a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: #1a1113; }
.sg-tile__img { position: absolute; inset: 0; }
.sg-tile__img img, .sg-tile__img .sg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sg-ease); }
.sg-tile:hover .sg-tile__img img { transform: scale(1.05); }
.sg-tile__body { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; display: grid; gap: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.sg-tile .sg-chip { color: #fff; opacity: .9; }
.sg-tile__title { margin: 0; font: 650 1rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sg-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--sg-surface-2); cursor: zoom-in; break-inside: avoid; }
.sg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sg-ease); }
.sg-photo:hover img { transform: scale(1.03); }
.sg-photo figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 30px 12px 10px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.sg-photo figcaption span { display: grid; min-width: 0; }
.sg-photo figcaption b { font: 600 .92rem/1.3 var(--sg-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-photo figcaption small { font-size: .75rem; opacity: .85; }
.sg-photo .sg-like { color: #fff; font-size: .82rem; font-weight: 600; flex: none; }
.sg-photo .sg-like.is-on { color: #ff5a6e; }
.sg-photo__award { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe08a, #e0a630); color: #5a3700; }
.sg-photo__award .sg-i { width: 16px; height: 16px; }
.sg-photo.is-burst::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: #fff; text-shadow: 0 6px 30px rgba(225, 29, 52, .8); animation: sg-burst .8s var(--sg-ease) forwards; pointer-events: none; }

/* Sections */
.sg-sec { margin-block: 30px; }
.sg-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sg-sec__title { margin: 0; display: flex; align-items: center; gap: 8px; font: 750 1.4rem/1.2 var(--sg-display); }
.sg-sec__title .sg-i { color: var(--sg-brand); width: 22px; height: 22px; }
.sg-sec__tools { display: flex; align-items: center; gap: 8px; }
.sg-more { display: inline-flex; align-items: center; gap: 2px; padding: 6px 4px 6px 12px; border-radius: 999px; font: 600 .85rem var(--sg-font); color: var(--sg-muted); text-decoration: none; transition: color .2s, background .2s; white-space: nowrap; }
.sg-more:hover { color: var(--sg-brand); background: var(--sg-surface-2); }
.sg-more .sg-i { width: 16px; height: 16px; }
.sg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 4px; background: hsl(var(--h) 75% 50%); box-shadow: 0 0 0 4px hsl(var(--h) 75% 50% / .15); }
.sg-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.sg-rail::-webkit-scrollbar { display: none; }
.sg-rail > * { scroll-snap-align: start; }
.sg-rail--reels { grid-auto-columns: min(42%, 200px); gap: 10px; }
.sg-rail--docs { grid-auto-columns: min(72%, 300px); margin-top: 18px; }
.sg-list { display: grid; }
.sg-loadmore { display: flex; margin: 18px auto 0; min-width: 200px; }
.sg-loadmore.is-busy { opacity: .6; pointer-events: none; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-tags a { padding: 7px 14px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); text-decoration: none; font-size: .88rem; font-weight: 500; transition: all .2s; }
.sg-tags a:hover { border-color: hsl(var(--h, 352) 70% 50%); color: hsl(var(--h, 352) 70% var(--sg-chip-l)); }
.sg-skel { border-radius: 18px; background: linear-gradient(90deg, var(--sg-surface-2) 25%, var(--sg-surface) 50%, var(--sg-surface-2) 75%); background-size: 200% 100%; animation: sg-shimmer 1.2s infinite; min-height: 220px; }

/* 5. Home ------------------------------------------------------------------ */
.sg-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 4px; }
.sg-hello__date { font-size: .82rem; color: var(--sg-muted); font-weight: 500; }
.sg-hello__title { margin: 0; font: 800 1.65rem/1.2 var(--sg-display); }
.sg-hello__sub { margin: 2px 0 0; color: var(--sg-muted); font-size: .92rem; }
.sg-wave { display: inline-block; transform-origin: 70% 70%; animation: sg-wave 2.4s ease-in-out 1s 2; }
.sg-coinchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); text-decoration: none; font: 700 1rem var(--sg-display); flex: none; }
.sg-coinchip__coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe08a, #e0a630); color: #6b4300; animation: sg-spin-y 4s ease-in-out infinite; }
.sg-coinchip__coin .sg-i { width: 17px; height: 17px; }

.sg-stories { margin-top: 14px; }
.sg-stories__rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-block: 4px 6px; }
.sg-stories__rail::-webkit-scrollbar { display: none; }
.sg-story { flex: none; width: 72px; display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; text-decoration: none; color: var(--sg-text); }
.sg-story__ring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, hsl(var(--h, 352) 85% 55%), hsl(calc(var(--h, 352) + 40) 90% 58%), #ffb347, hsl(var(--h, 352) 85% 55%)); transition: transform .3s var(--sg-spring); }
.sg-story:active .sg-story__ring { transform: scale(.92); }
.sg-story.is-seen .sg-story__ring { background: var(--sg-line); }
.sg-story__av { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--sg-bg); background: hsl(var(--h, 352) 60% 92%); color: var(--sg-brand); }
.sg-story__av img { width: 100%; height: 100%; object-fit: cover; }
.sg-story__av em { position: absolute; font-style: normal; font-size: 1.6rem; }
.sg-story__av img + em { right: -2px; bottom: -2px; font-size: 1rem; width: 24px; height: 24px; display: grid; place-items: center; background: var(--sg-bg); border-radius: 50%; position: absolute; }
.sg-story b { font: 500 .74rem/1.25 var(--sg-font); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 76px; }
.sg-story--add .sg-story__ring { background: var(--sg-line); }
.sg-story--add .sg-story__av { background: var(--sg-surface); }
.sg-story--add .sg-i { width: 26px; height: 26px; }

.sg-hero { position: relative; margin-top: 16px; }
.sg-hero__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--sg-pad); scroll-padding-inline: var(--sg-pad); overscroll-behavior-x: contain; }
.sg-hero__track::-webkit-scrollbar { display: none; }
.sg-hero__slide { scroll-snap-align: center; scroll-snap-stop: always; }
.sg-hero__slide:only-child { grid-column: 1 / -1; }
.sg-hero__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.sg-hero__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--sg-line); cursor: pointer; overflow: hidden; transition: width .35s var(--sg-ease), background .3s; }
[data-theme="dark"] .sg-hero__dots button { background: rgba(255, 255, 255, .2); }
.sg-hero__dots button.is-on { width: 28px; background: color-mix(in srgb, var(--sg-brand) 25%, transparent); }
.sg-hero__dots button i { display: block; height: 100%; width: 0; background: var(--sg-grad); }
.sg-hero__dots button.is-on i { animation: sg-fill 6s linear forwards; }
.sg-hero.is-paused .sg-hero__dots button.is-on i { animation-play-state: paused; }

.sg-topics { position: sticky; top: var(--sg-header-h); z-index: 20; margin-top: 18px; padding-block: 8px; background: color-mix(in srgb, var(--sg-bg) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: top .35s var(--sg-ease); }
.sg-top.is-hidden ~ .sg-main .sg-topics { top: 0; }
.sg-topics__rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sg-topics__rail::-webkit-scrollbar { display: none; }
.sg-topics a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 12px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); text-decoration: none; font: 600 .9rem var(--sg-font); transition: all .25s var(--sg-ease); }
.sg-topics a i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 75% 52%); }
.sg-topics a em { font-style: normal; }
.sg-topics a:hover { border-color: hsl(var(--h) 70% 55%); transform: translateY(-1px); }

.sg-moods, .sg-timeseg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.sg-moods::-webkit-scrollbar, .sg-timeseg::-webkit-scrollbar { display: none; }
.sg-moods button { flex: none; height: 40px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--sg-line); background: var(--sg-surface); font: 600 .92rem var(--sg-font); cursor: pointer; transition: all .25s var(--sg-ease); }
.sg-moods button.is-on { border-color: hsl(var(--h, 352) 75% 52%); background: hsl(var(--h, 352) 75% 52%); color: #fff; box-shadow: 0 8px 20px -10px hsl(var(--h, 352) 75% 45%); }
.sg-timeseg { padding: 4px; border-radius: 999px; background: var(--sg-surface-2); width: max-content; max-width: 100%; }
.sg-timeseg button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--sg-muted); font: 600 .85rem var(--sg-font); cursor: pointer; transition: all .25s; }
.sg-timeseg button.is-on { background: var(--sg-surface); color: var(--sg-text); box-shadow: var(--sg-shadow); }
.sg-discover__out { transition: opacity .3s; }
.sg-discover__out.is-loading { opacity: .35; }
.sg-discover__empty { padding: 30px; text-align: center; color: var(--sg-muted); border: 1px dashed var(--sg-line); border-radius: 20px; grid-column: 1 / -1; width: calc(100vw - 32px); }

.sg-trending__grid { display: grid; }
.sg-trending .sg-rank + .sg-rank > a { border-top: 1px solid var(--sg-line); }

.sg-mag { display: grid; gap: 14px; }
.sg-mag__list { display: grid; }
.sg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-catsec--dark { background: radial-gradient(80% 60% at 90% 0%, hsl(var(--h) 70% 30% / .45), transparent 70%), #0e0809; color: var(--sg-text); padding-block: 30px; margin-block: 36px; }
.sg-catsec--dark .sg-feature__link { aspect-ratio: 16 / 11; }

.sg-poems { overflow: hidden; }
.sg-deck { position: relative; height: 350px; max-width: 360px; margin: 6px auto 0; padding-inline: var(--sg-pad); touch-action: pan-y; }
.sg-deck .sg-poemcard { position: absolute; inset: 0 var(--sg-pad); transition: transform .5s var(--sg-ease), opacity .4s; will-change: transform; }
.sg-deck .sg-poemcard.is-drag { transition: none; }
.sg-deck:not(.is-deck) { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 12px; overflow-x: auto; height: auto; max-width: none; }
.sg-deck:not(.is-deck) .sg-poemcard { position: relative; inset: auto; }
.sg-deck__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--sg-muted); font-size: .82rem; }
.sg-deck__hint .sg-i { width: 14px; height: 14px; }

.sg-docs { position: relative; isolation: isolate; overflow: hidden; margin-block: 36px; padding-block: 30px 34px; background: #0b0708; color: var(--sg-text); }
.sg-docs__bg { position: absolute; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(50px) saturate(1.4); opacity: .35; transform: scale(1.1); }
.sg-docs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 7, 8, .4), #0b0708 90%); }
.sg-docs__lead { display: grid; gap: 16px; color: #fff; text-decoration: none; }
.sg-docs__media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px #000; background: #000; }
.sg-docs__media img, .sg-docs__media .sg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sg-ease); }
.sg-docs__lead:hover .sg-docs__media img { transform: scale(1.04); }
.sg-docs__play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .4); animation: sg-pulse 2.4s ease-out infinite; }
.sg-docs__play .sg-i { width: 26px; height: 26px; margin-left: 4px; }
.sg-docs__info { display: grid; gap: 10px; justify-items: start; }
.sg-docs .sg-chip { color: #fff; padding: 4px 10px 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.sg-docs__title { font: 800 clamp(1.5rem, 6vw, 2.4rem)/1.2 var(--sg-display); text-wrap: balance; }
.sg-docs__dek { color: rgba(255, 255, 255, .75); line-height: 1.6; }

.sg-gal__grid { display: grid; gap: 10px; }
.sg-potw { position: relative; }
.sg-potw .sg-photo { aspect-ratio: 4 / 5; border-radius: 24px; }
.sg-potw__badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 6px; border-radius: 999px; background: linear-gradient(135deg, #ffe7a3, #e9b44c); color: #4e3000; font: 700 .82rem var(--sg-font); box-shadow: 0 10px 24px -10px #b07a10; }
.sg-potw .sg-photo__award { display: none; }
.sg-gal__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sg-gal__strip .sg-photo { aspect-ratio: 1; border-radius: 14px; }
.sg-gal__strip .sg-photo figcaption { padding: 20px 8px 6px; }
.sg-gal__strip .sg-photo figcaption span { display: none; }
.sg-gal__cta { display: flex; width: 100%; margin-top: 14px; }
.sg-masonry { columns: 2 160px; column-gap: 10px; }
.sg-masonry .sg-photo { margin-bottom: 10px; }

.sg-writer { margin-block: 36px; }
.sg-writer__card { position: relative; overflow: hidden; isolation: isolate; padding: 30px 22px 24px; border-radius: 30px; color: #fff; background: radial-gradient(70% 60% at 100% 0%, #ff7a59 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #3a0410 0%, transparent 70%), var(--sg-grad); box-shadow: 0 30px 60px -28px var(--sg-brand-2); }
.sg-writer__card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(120deg, #000 10%, transparent 60%); -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 60%); }
.sg-writer .sg-kicker { color: #ffd9cf; }
.sg-writer h2 { margin: 6px 0 10px; font: 800 clamp(1.8rem, 7vw, 2.8rem)/1.15 var(--sg-display); }
.sg-writer p { margin: 0 0 18px; opacity: .9; line-height: 1.65; max-width: 560px; }
.sg-writer__coin { position: absolute; z-index: -1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe7a3, #d99a2b); color: #7a4c00; box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .6); animation: sg-float 6s ease-in-out infinite; }
.sg-writer__coin .sg-i { width: 34px; height: 34px; }
.sg-writer__coin.c1 { right: 18px; top: 18px; }
.sg-writer__coin.c2 { right: 86px; top: 64px; width: 40px; height: 40px; animation-delay: -2s; opacity: .85; }
.sg-writer__coin.c2 .sg-i { width: 22px; height: 22px; }
.sg-writer__coin.c3 { right: 34px; top: 112px; width: 30px; height: 30px; animation-delay: -4s; opacity: .7; }
.sg-writer__coin.c3 .sg-i { width: 16px; height: 16px; }
.sg-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sg-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: .9rem; }
.sg-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sg-brand-2); font-size: .8rem; flex: none; }
.sg-rates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sg-rates span { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: .82rem; }
.sg-rates b { color: #ffe7a3; }
.sg-writer__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.sg-pushcta { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-block: 30px; margin-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); padding: 18px; border-radius: 24px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-pushcta__bell { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--sg-grad); color: #fff; }
.sg-pushcta__bell .sg-i { width: 24px; height: 24px; animation: sg-ring 3s ease-in-out infinite; transform-origin: 50% 10%; }
.sg-pushcta b { font: 700 1.1rem var(--sg-display); }
.sg-pushcta p { margin: 2px 0 0; color: var(--sg-muted); font-size: .9rem; line-height: 1.5; }
.sg-pushcta .sg-btn { grid-column: 1 / -1; }
.sg-pushcta.is-unsupported { display: none; }
.sg-on { display: none; }
.sg-push-on .sg-on { display: inline-flex; align-items: center; gap: 6px; }
.sg-push-on .sg-off { display: none; }
.sg-push-on [data-sg-push].sg-btn--primary { background: var(--sg-ok); box-shadow: none; }

/* 6. Reading ----------------------------------------------------------------- */
.sg-article__head { padding-top: 22px; display: grid; gap: 12px; }
.sg-article__title { margin: 0; font: 800 clamp(1.8rem, 7vw, 2.9rem)/1.24 var(--sg-display); text-wrap: balance; view-transition-name: sg-title; }
.sg-article__dek { margin: 0; font-size: 1.14rem; line-height: 1.65; color: var(--sg-muted); }
.sg-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; border-block: 1px solid var(--sg-line); }
.sg-article__meta .sg-meta { font-size: .86rem; }
.sg-article__meta .sg-meta__av { width: 32px; height: 32px; }
.sg-article__views { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--sg-muted); }
.sg-article__hero { margin: 18px 0 6px; }
.sg-article__hero img { display: block; width: 100%; max-height: 78vh; object-fit: cover; view-transition-name: sg-media; }
.sg-article__hero figcaption { max-width: var(--sg-narrow); margin: 8px auto 0; padding-inline: var(--sg-pad); font-size: .82rem; color: var(--sg-muted); }
.sg-article__body { padding-top: 18px; }
.sg-listen-slot:empty { display: none; }
.sg-prose { font-size: var(--sg-read-size); line-height: var(--sg-read-lh); font-family: var(--sg-font); word-wrap: break-word; }
[data-read-font="serif"] .sg-prose { font-family: var(--sg-serif); }
.sg-prose > * { margin: 0 0 1.15em; }
.sg-prose h2 { font: 750 1.45em/1.3 var(--sg-display); margin: 1.7em 0 .55em; }
.sg-prose h3 { font: 700 1.2em/1.35 var(--sg-display); margin: 1.5em 0 .5em; }
.sg-prose a { color: var(--sg-brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sg-brand) 35%, transparent); }
.sg-prose a:hover { text-decoration-color: currentColor; }
.sg-prose blockquote, .sg-prose .wp-block-quote { position: relative; margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--sg-brand); font-size: 1.12em; line-height: 1.75; color: var(--sg-text); }
.sg-prose blockquote p:last-child { margin-bottom: 0; }
.sg-prose .wp-block-pullquote { margin: 2em 0; padding: 1.4em 0; border-block: 2px solid var(--sg-text); text-align: center; }
.sg-prose .wp-block-pullquote blockquote { border: 0; padding: 0; font: 700 1.35em/1.45 var(--sg-display); }
.sg-prose img, .sg-prose figure img { border-radius: 16px; display: block; }
.sg-prose figure { margin-inline: 0; }
.sg-prose figcaption, .sg-prose .wp-element-caption { font-size: .78em; color: var(--sg-muted); text-align: center; margin-top: .6em; line-height: 1.5; }
.sg-prose .alignwide, .sg-prose .alignfull { margin-inline: calc(var(--sg-pad) * -1); }
.sg-prose .alignfull img, .sg-prose .alignwide img { border-radius: 0; }
.sg-prose ul, .sg-prose ol { padding-left: 1.3em; }
.sg-prose li { margin-bottom: .4em; }
.sg-prose li::marker { color: var(--sg-brand); }
.sg-prose hr { border: 0; text-align: center; margin: 2em 0; }
.sg-prose hr::before { content: "✦ ✦ ✦"; color: var(--sg-brand); letter-spacing: .6em; }
.sg-prose table { width: 100%; border-collapse: collapse; font-size: .88em; display: block; overflow-x: auto; }
.sg-prose th, .sg-prose td { padding: .6em .8em; border-bottom: 1px solid var(--sg-line); text-align: left; }
.sg-prose iframe, .sg-prose .wp-block-embed { max-width: 100%; border-radius: 16px; }
.sg-prose mark { background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }
.sg-endmark { display: block; text-align: center; color: var(--sg-brand); margin: 6px 0 22px; font-size: 1.1rem; }
.sg-article__tags { margin-bottom: 22px; }
html[data-paper="sepia"] body.sg-reading { --sg-bg: #f5ecdc; --sg-surface: #fbf4e7; --sg-surface-2: #efe3cd; --sg-text: #3a2e20; --sg-muted: #7a6a55; --sg-line: rgba(58, 46, 32, .12); --sg-glass: rgba(245, 236, 220, .82); }
html[data-paper="night"] body.sg-reading { --sg-bg: #12100d; --sg-surface: #1b1814; --sg-surface-2: #25211c; --sg-text: #e9dcc6; --sg-muted: #a59880; --sg-line: rgba(233, 220, 198, .1); --sg-glass: rgba(18, 16, 13, .8); --sg-chip-l: 70%; }
html.sg-focus .sg-top, html.sg-focus .sg-foot, html.sg-focus .sg-upnext, html.sg-focus .sg-related, html.sg-focus .sg-comments, html.sg-focus .sg-authorcard, html.sg-focus .sg-trust { display: none; }
html.sg-focus .sg-article__hero { display: none; }
html.sg-focus .sg-prose { font-size: calc(var(--sg-read-size) + 1px); }
.sg-focus-exit { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 80; display: none; }
html.sg-focus .sg-focus-exit { display: inline-flex; }

.sg-trust { margin: 28px 0; padding: 18px; border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); display: grid; gap: 14px; font-size: .92rem; }
.sg-trust__head { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.sg-trust__head h2 { margin: 0; font: 750 1.15rem var(--sg-display); display: flex; align-items: center; gap: 6px; }
.sg-trust__head h2 .sg-i { color: var(--sg-ok); }
.sg-trust__head p { margin: 2px 0 0; color: var(--sg-muted); font-size: .85rem; }
.sg-trust__ring { position: relative; width: 58px; height: 58px; }
.sg-trust__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sg-trust__ring circle { fill: none; stroke-width: 3.2; }
.sg-trust__ring .bg { stroke: var(--sg-surface-2); }
.sg-trust__ring .fg { stroke: var(--sg-ok); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 1) 100; transition: stroke-dasharray 1.2s var(--sg-ease); }
.sg-trust__ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .9rem var(--sg-display); }
.sg-trust__checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sg-trust__checks li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--sg-surface-2); color: var(--sg-muted); font-size: .84rem; }
.sg-trust__checks li .sg-i { width: 15px; height: 15px; }
.sg-trust__checks li.is-ok { color: var(--sg-ok); background: color-mix(in srgb, var(--sg-ok) 10%, transparent); font-weight: 600; }
.sg-trust__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.sg-trust__facts dt { font-size: .76rem; color: var(--sg-muted); }
.sg-trust__facts dd { margin: 0; font-weight: 600; }
.sg-trust__more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.sg-sources { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.sg-sources a { color: var(--sg-text); text-decoration-color: var(--sg-line); }
.sg-sources .sg-i { width: 13px; height: 13px; color: var(--sg-muted); }
.sg-corrections { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.sg-corrections li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.sg-corrections time { color: var(--sg-muted); font-size: .82rem; }
.sg-trust__report { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--sg-brand); font: 600 .88rem var(--sg-font); cursor: pointer; }

.sg-authorcard { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin: 24px 0; padding: 16px; border-radius: 22px; background: var(--sg-surface-2); }
.sg-authorcard__av img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.sg-authorcard__body { display: grid; gap: 2px; min-width: 0; }
.sg-authorcard__body small { color: var(--sg-muted); font-size: .76rem; }
.sg-authorcard__name { font: 750 1.1rem var(--sg-display); text-decoration: none; display: inline-flex; align-items: center; }
.sg-authorcard__body p { margin: 2px 0 0; font-size: .88rem; color: var(--sg-muted); line-height: 1.5; }
.sg-authorcard .sg-follow { grid-column: 1 / -1; justify-self: start; }
.sg-upnext { margin: 36px 0 10px; }
.sg-upnext .sg-feature__link { aspect-ratio: 16 / 10; }
.sg-upnext .sg-feature__title { font-size: clamp(1.3rem, 5vw, 2rem); }

.sg-comments { margin: 34px 0; scroll-margin-top: calc(var(--sg-header-h) + 16px); }
.sg-comments__top { margin-bottom: 14px; }
.sg-comments__title { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 1.3rem var(--sg-display); }
.sg-comments__title svg { width: 22px; height: 22px; color: var(--sg-brand); }
.sg-comments__title span { padding: 2px 10px; border-radius: 999px; background: var(--sg-surface-2); font-size: .85rem; }
.sg-comments__sub { margin: 4px 0 0; color: var(--sg-muted); font-size: .86rem; }
.sg-comments__closed, .sg-comments__empty { text-align: center; color: var(--sg-muted); padding: 22px; border: 1.5px dashed var(--sg-line); border-radius: 20px; }
.sg-comments__empty span { font-size: 28px; display: block; }
.sg-comments__empty p { margin: 4px 0 0; }
.sg-hp, .sgc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* Composer */
.sg-cbox { position: relative; margin: 0 0 22px; padding: 14px; border-radius: 24px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); transition: box-shadow .25s var(--sg-ease), border-color .25s; }
.sg-cbox:focus-within { border-color: color-mix(in srgb, var(--sg-brand) 45%, var(--sg-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sg-brand) 12%, transparent), var(--sg-shadow); }
.sg-cbox__title { display: none; margin: 0 0 10px; padding: 6px 12px; border-radius: 12px; background: var(--sg-surface-2); font: 700 .9rem var(--sg-display); gap: 8px; align-items: center; }
.sg-cbox__title:has(#cancel-comment-reply-link:not([style*="none"])) { display: flex; }
.sg-cbox__cancel a { margin-left: auto; font-size: .8rem; color: var(--sg-brand); font-weight: 700; text-decoration: none; }
.sg-cbox__title small { display: flex; margin-left: auto; }
.sg-cform { display: grid; gap: 10px; margin: 0; }
.sg-cform__me { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--sg-muted); }
.sg-cform__me img { width: 30px; height: 30px; border-radius: 50%; }
.sg-cform__me b { color: var(--sg-text); }
.sg-cform__field { position: relative; }
.sg-cform textarea { display: block; width: 100%; min-height: 52px; max-height: 360px; resize: none; padding: 12px 14px 22px; border: 0; border-radius: 16px; background: var(--sg-surface-2); color: var(--sg-text); font: inherit; font-size: 1rem; line-height: 1.65; transition: min-height .3s var(--sg-ease), background .2s; }
.sg-cform textarea:focus { outline: 0; background: color-mix(in srgb, var(--sg-surface-2) 60%, var(--sg-surface)); }
.sg-cform.is-open textarea { min-height: 110px; }
.sg-cform__count { position: absolute; right: 12px; bottom: 6px; font-size: .7rem; color: var(--sg-muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; pointer-events: none; }
.sg-cform.is-open .sg-cform__count { opacity: 1; }
.sg-cform__count.is-warn { color: var(--sg-err); }
.sg-cform__row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sg-cform__row input { width: 100%; height: 52px; padding: 20px 14px 6px; border: 1.5px solid var(--sg-line); border-radius: 14px; background: var(--sg-surface); color: var(--sg-text); font: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s; }
.sg-cform__row input:focus { outline: 0; border-color: var(--sg-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-brand) 14%, transparent); }
.sg-cform__row label { position: absolute; left: 15px; top: 16px; font-size: .95rem; color: var(--sg-muted); pointer-events: none; transition: .18s var(--sg-ease); }
.sg-cform__row input:focus + label, .sg-cform__row input:not(:placeholder-shown) + label { top: 6px; font-size: .7rem; font-weight: 600; color: var(--sg-brand); }
.sg-cform__row input:user-invalid { border-color: var(--sg-err); }
.sg-cform__check { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--sg-muted); cursor: pointer; }
.sg-cform__check input { position: absolute; opacity: 0; }
.sg-cform__check span { flex: none; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--sg-line); background: var(--sg-surface); display: grid; place-items: center; transition: .15s; }
.sg-cform__check input:checked + span { background: var(--sg-brand); border-color: var(--sg-brand); }
.sg-cform__check input:checked + span::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.sg-cform__check input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-brand) 25%, transparent); }
.sg-cform:not(.is-open):not(.is-me) .sg-cform__row, .sg-cform:not(.is-open):not(.is-me) .sg-cform__check { display: none; }
.sg-cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.sg-cform__safe { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--sg-ok); font-weight: 600; }
.sg-cform__safe svg { width: 14px; height: 14px; }
.sg-cform__send { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; color: #fff; background: var(--sg-grad); font: 700 .95rem var(--sg-font); cursor: pointer; box-shadow: 0 10px 22px -12px var(--sg-brand); transition: transform .15s var(--sg-ease), opacity .2s, box-shadow .2s; }
.sg-cform__send svg { width: 17px; height: 17px; transition: transform .3s var(--sg-spring); }
.sg-cform__send:hover svg { transform: translate(2px, -2px); }
.sg-cform__send:active { transform: scale(.97); }
.sg-cform__send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sg-cform__send.is-busy span::after { content: "…"; }
.sg-cform__send.is-busy svg { animation: sgCmFly .9s ease-in-out infinite; }
@keyframes sgCmFly { 50% { transform: translate(4px, -4px); opacity: .5; } }
@media (min-width: 640px) { .sg-cform__row { grid-template-columns: 1fr 1fr; } .sg-cbox { padding: 18px; } }
/* Discussion */
.sg-comments__list, .sg-comments__list .children { list-style: none; margin: 0; padding: 0; }
.sg-comments__list { display: grid; gap: 4px; }
.sg-comments__list .children { position: relative; margin: 2px 0 0 22px; padding-left: 16px; }
.sg-comments__list .children::before { content: ""; position: absolute; left: 0; top: 0; bottom: 18px; width: 2px; border-radius: 2px; background: var(--sg-line); }
.sg-cm__card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-radius: 18px; transition: background .25s; }
.sg-cm:target > .sg-cm__card, .sg-cm.is-flash > .sg-cm__card { background: color-mix(in srgb, var(--sg-brand) 7%, transparent); animation: sgCmIn .6s var(--sg-ease); }
@keyframes sgCmIn { from { transform: translateY(6px); opacity: .4; } }
.sg-cm__av { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; }
.children .sg-cm__card { grid-template-columns: 32px minmax(0, 1fr); }
.children .sg-cm__av { width: 32px !important; height: 32px !important; }
.sg-cm__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; line-height: 1.3; }
.sg-cm__name { font-weight: 700; font-size: .95rem; }
.sg-cm__badge { padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--sg-surface-2); color: var(--sg-muted); text-transform: uppercase; letter-spacing: .03em; }
.sg-cm__badge--author { background: var(--sg-grad); color: #fff; }
.sg-cm__time { font-size: .76rem; color: var(--sg-muted); text-decoration: none; }
.sg-cm__time:hover { color: var(--sg-brand); }
.sg-cm__held { margin: 6px 0 0; display: inline-block; padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, var(--sg-wait) 14%, transparent); color: var(--sg-wait); font-size: .78rem; font-weight: 600; }
.sg-cm__body { margin-top: 4px; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.sg-cm__body p { margin: 0 0 .5em; }
.sg-cm__body p:last-child { margin-bottom: 0; }
.sg-cm__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 0 -8px; }
.sg-cm__acts a, .sg-cm__acts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--sg-muted); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.sg-cm__acts a:hover, .sg-cm__acts button:hover { background: var(--sg-surface-2); color: var(--sg-brand); }
.sg-cm__acts svg { width: 15px; height: 15px; }
.sg-cm.is-held > .sg-cm__card { opacity: .8; }
.sg-comments .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.sg-comments .nav-links .page-numbers { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--sg-surface-2); text-decoration: none; color: var(--sg-text); }
.sg-comments .nav-links .current { background: var(--sg-brand); color: #fff; }
.sg-comments .nav-links svg { width: 16px; height: 16px; }

/* Poem */
.sg-poem { padding-top: 18px; }
.sg-poem__paper { position: relative; max-width: 660px; margin: 0 auto; padding: 38px 24px 30px; border-radius: 0; background: radial-gradient(80% 50% at 50% 0%, hsl(var(--h) 80% 92% / .55), transparent 70%), linear-gradient(180deg, hsl(var(--h) 40% 98.5%), var(--sg-bg)); text-align: center; }
[data-theme="dark"] .sg-poem__paper { background: radial-gradient(80% 50% at 50% 0%, hsl(var(--h) 50% 25% / .4), transparent 70%), var(--sg-bg); }
.sg-poem__head { display: grid; justify-items: center; gap: 12px; margin-bottom: 26px; }
.sg-poem__title { margin: 0; font: 800 clamp(1.9rem, 8vw, 2.8rem)/1.25 var(--sg-display); view-transition-name: sg-title; }
.sg-poem__poet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); text-decoration: none; font-weight: 600; }
.sg-poem__poet img { border-radius: 50%; }
.sg-poem__art { margin: 0 auto 26px; max-width: 420px; }
.sg-poem__art img { border-radius: 22px; display: block; width: 100%; view-transition-name: sg-media; }
.sg-poem__verse { font-family: var(--sg-serif); font-size: calc(var(--sg-read-size) + 1.5px); line-height: 2.15; }
.sg-poem__verse p { margin: 0 0 1.8em; }
.sg-poem__foot { display: grid; justify-items: center; gap: 4px; color: var(--sg-muted); font-size: .85rem; }
.sg-poem__foot span { color: hsl(var(--h) 70% 50%); font-size: 1.2rem; }

/* 7. Media pages ------------------------------------------------------------ */
.sg-doc-page { background: #0b0708; }
.sg-doc__stage { position: relative; isolation: isolate; overflow: hidden; padding-top: 0; }
.sg-doc__ambient { position: absolute; inset: -20%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5); opacity: .45; }
.sg-doc__player { position: relative; max-width: 1180px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.sg-doc__player video, .sg-doc__player iframe, .sg-doc__player > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sg-doc__player > img { view-transition-name: sg-media; }
.sg-doc__poster { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; }
.sg-doc__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; view-transition-name: sg-media; }
.sg-doc__bigplay { position: absolute; inset: 0; margin: auto; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sg-grad); box-shadow: 0 0 0 12px rgba(225, 29, 52, .22), 0 20px 50px -10px #000; animation: sg-pulse 2.4s ease-out infinite; }
.sg-doc__bigplay .sg-i { width: 30px; height: 30px; margin-left: 5px; }
.sg-doc__head { display: grid; gap: 12px; padding-top: 22px; }
.sg-doc .sg-chip { color: #fff; padding: 4px 10px 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.sg-chapters { margin: 22px 0; padding: 14px; border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); }
.sg-chapters h2 { margin: 2px 4px 10px; font: 700 1.05rem var(--sg-display); display: flex; align-items: center; gap: 8px; }
.sg-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sg-chapters button { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 14px; background: none; color: var(--sg-text); text-align: left; cursor: pointer; font: 500 .95rem var(--sg-font); transition: background .2s; }
.sg-chapters button:hover, .sg-chapters button.is-on { background: var(--sg-surface-2); }
.sg-chapters time { font: 600 .82rem var(--sg-font); color: var(--sg-brand); }
.sg-chapters .sg-i { width: 14px; height: 14px; color: var(--sg-muted); }

.sg-reels-page { background: #000; padding-bottom: 0; }
.sg-reels-page .sg-top, .sg-reels-page .sg-foot { display: none; }
.sg-reels { position: fixed; inset: 0; z-index: 40; background: #000; color: #fff; }
.sg-reels__top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 10px 30px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.sg-reels__top > * { pointer-events: auto; }
.sg-reels__top b { font: 700 1.15rem var(--sg-display); }
.sg-reels .sg-iconbtn { color: #fff; }
.sg-reels .sg-iconbtn:hover { background: rgba(255, 255, 255, .12); }
.sg-when-sound { display: none; }
.sg-reels.has-sound .sg-when-sound { display: block; }
.sg-reels.has-sound .sg-when-muted { display: none; }
.sg-reels__track { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.sg-reels__track::-webkit-scrollbar { display: none; }
.sg-reel { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; margin: 0 auto; max-width: min(100vw, calc(100dvh * 9 / 16)); background: #0a0a0a; }
.sg-reel__media { position: absolute; inset: 0; }
.sg-reel__media img, .sg-reel__media video, .sg-reel__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.sg-reel__media iframe { pointer-events: none; }
.sg-reel__poster { transition: opacity .4s; }
.sg-reel.is-playing .sg-reel__poster { opacity: 0; }
.sg-reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75)); pointer-events: none; }
.sg-reel__info { position: absolute; left: 14px; right: 76px; bottom: calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 8px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.sg-reel__by { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.sg-reel__by img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; }
.sg-reel__by .sg-verified { color: #ff4d64; }
.sg-reel__title { margin: 0; font: 700 1.2rem/1.35 var(--sg-display); }
.sg-reel__cap { margin: 0; font-size: .92rem; line-height: 1.5; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.sg-reel__cap.is-open { -webkit-line-clamp: unset; }
.sg-reel__acts { position: absolute; right: 10px; bottom: calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sg-reel__acts button { display: grid; justify-items: center; gap: 3px; width: 50px; border: 0; background: none; color: #fff; cursor: pointer; font: 600 .76rem var(--sg-font); }
.sg-reel__acts .sg-i { width: 30px; height: 30px; padding: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.sg-reel__acts .sg-like.is-on { color: #ff3b55; }
.sg-reel__heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; color: #ff3b55; }
.sg-reel__heart .sg-i { width: 110px; height: 110px; fill: currentColor; filter: drop-shadow(0 10px 30px rgba(255, 59, 85, .6)); }
.sg-reel__heart.is-on { animation: sg-burst .9s var(--sg-ease); }
.sg-reel__pause { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .25s; pointer-events: none; }
.sg-reel.is-paused .sg-reel__pause { opacity: 1; }
.sg-reel--empty { display: grid; place-items: center; }
.sg-reel--empty .sg-reel__info { position: static; }

/* Pages */
.sg-pagehead { position: relative; isolation: isolate; padding-block: 28px 18px; display: grid; gap: 8px; justify-items: start; }
.sg-pagehead h1 { margin: 0; font: 800 clamp(1.9rem, 8vw, 3rem)/1.15 var(--sg-display); }
.sg-pagehead p, .sg-pagehead__desc { margin: 0; color: var(--sg-muted); max-width: 640px; line-height: 1.6; }
.sg-pagehead__desc p { margin: 0; }
.sg-pagehead__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.sg-pagehead__orb { position: absolute; z-index: -1; top: -40px; right: -20px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--h) 85% 60% / .35), transparent 65%); filter: blur(20px); }
.sg-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; }
.sg-filter::-webkit-scrollbar { display: none; }
.sg-filter a { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 600 .88rem var(--sg-font); color: var(--sg-muted); background: var(--sg-surface); border: 1px solid var(--sg-line); }
.sg-filter a.is-on { background: var(--sg-text); color: var(--sg-bg); border-color: transparent; }
.sg-filter__sp { flex: 1 0 12px; }
.sg-grid { display: grid; gap: 22px 16px; }
.sg-grid--poem { gap: 14px; }
.sg-pages { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.sg-pages a, .sg-pages span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; background: var(--sg-surface); border: 1px solid var(--sg-line); text-decoration: none; font-weight: 600; }
.sg-pages .current { background: var(--sg-text); color: var(--sg-bg); }
.sg-searchform { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--sg-surface); border: 1.5px solid var(--sg-line); }
.sg-searchform input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--sg-text); font: 400 1rem var(--sg-font); padding: 8px 0; }
.sg-searchform .sg-i { color: var(--sg-muted); }
.sg-404 { text-align: center; padding-block: 60px; display: grid; justify-items: center; gap: 12px; }
.sg-404__n { font: 800 7rem/1 var(--sg-display); background: var(--sg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-404 h1 { margin: 0; }
.sg-404 p { margin: 0; color: var(--sg-muted); }
.sg-profile__head { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 16px; padding-bottom: 22px; }
.sg-profile__cover { position: absolute; z-index: -1; top: 16px; left: var(--sg-pad); right: var(--sg-pad); height: 130px; border-radius: 28px; background: radial-gradient(60% 80% at 80% 0%, #ff7a59, transparent 60%), var(--sg-grad); }
.sg-profile__av { margin-top: 66px; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--sg-bg); box-shadow: var(--sg-shadow); }
.sg-profile h1 { margin: 0; font: 800 1.7rem var(--sg-display); display: inline-flex; align-items: center; }
.sg-profile__bio { margin: 0; max-width: 520px; color: var(--sg-muted); line-height: 1.6; }
.sg-profile .sgc-level { background: var(--sg-surface-2); color: var(--sg-text); }
.sg-profile__stats { display: flex; gap: 28px; margin: 4px 0; }
.sg-profile__stats dt { font-size: .78rem; color: var(--sg-muted); }
.sg-profile__stats dd { margin: 0; font: 800 1.4rem var(--sg-display); }
.sg-apppage { padding-top: 16px; padding-bottom: 20px; }
.sg-page { padding-bottom: 30px; }
.sg-photopage { display: grid; gap: 18px; padding-top: 16px; padding-bottom: 30px; }
.sg-photopage__img { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #000; }
.sg-photopage__img img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.sg-photopage__info { display: grid; gap: 12px; align-content: start; }
.sg-photopage__info h1 { margin: 0; font: 800 1.8rem var(--sg-display); }
.sg-photopage .sg-reel__by { color: var(--sg-text); }
.sg-photopage .sg-reel__by img { border-color: var(--sg-surface); }
.sg-photopage__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--sg-muted); }
.sg-photopage__acts { display: flex; gap: 8px; }
.sg-elementor .sg-main, .sg-fullwidth { max-width: none; }

/* Footer */
.sg-foot { margin-top: 40px; padding: 34px 0 18px; border-top: 1px solid var(--sg-line); background: var(--sg-surface); }
.sg-foot__in { display: grid; gap: 26px; }
.sg-foot__brand p { color: var(--sg-muted); line-height: 1.65; max-width: 420px; margin: 12px 0; font-size: .92rem; }
.sg-social { display: flex; gap: 8px; }
.sg-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sg-surface-2); color: var(--sg-text); transition: all .2s; }
.sg-social a:hover { background: var(--sg-brand); color: #fff; }
.sg-foot__cta { padding: 18px; border-radius: 22px; background: var(--sg-surface-2); display: grid; gap: 6px; justify-items: start; }
.sg-foot__cta b { font: 750 1.15rem var(--sg-display); }
.sg-foot__cta p { margin: 0 0 8px; color: var(--sg-muted); font-size: .9rem; }
.sg-foot__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sg-foot__nav a { text-decoration: none; color: var(--sg-muted); font-weight: 500; }
.sg-foot__nav a:hover { color: var(--sg-brand); }
.sg-foot__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; grid-column: 1 / -1; }
.sg-foot__widgets h2, .sg-foot__widgets h3, .sg-widget__title { font: 700 1rem var(--sg-display); margin: 0 0 8px; }
.sg-foot__widgets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sg-foot__widgets a { color: var(--sg-muted); text-decoration: none; font-size: .92rem; }
.sg-foot__widgets a:hover { color: var(--sg-brand); }
.sg-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sg-line); color: var(--sg-muted); font-size: .82rem; }

/* 8. Overlays ---------------------------------------------------------------- */
.sg-search { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: var(--sg-bg); animation: sg-fadeup .28s var(--sg-ease); }
.sg-search__bar { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) var(--sg-pad) 10px; border-bottom: 1px solid var(--sg-line); max-width: 860px; width: 100%; margin: 0 auto; }
.sg-search__field { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 16px; background: var(--sg-surface-2); }
.sg-search__field .sg-i { color: var(--sg-muted); }
.sg-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--sg-text); font: 500 1.05rem var(--sg-font); -webkit-appearance: none; }
.sg-search__close { border: 0; background: none; color: var(--sg-brand); font: 600 .95rem var(--sg-font); cursor: pointer; padding: 8px 4px; }
.sg-search__body { flex: 1; overflow-y: auto; padding: 16px var(--sg-pad) 40px; max-width: 860px; width: 100%; margin: 0 auto; }
.sg-search__body section { margin-bottom: 22px; }
.sg-search__body h4 { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 10px; font: 700 .95rem var(--sg-display); color: var(--sg-muted); }
.sg-search__body h4 .sg-i { color: var(--sg-brand); }
.sg-search__people { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.sg-search__people a { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; text-decoration: none; font-size: .8rem; text-align: center; font-weight: 600; }
.sg-search__people img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sg-search mark { background: color-mix(in srgb, var(--sg-brand) 18%, transparent); color: inherit; border-radius: 3px; }

.sg-sheet { position: fixed; inset: 0; z-index: 160; display: flex; align-items: flex-end; justify-content: center; }
.sg-sheet__scrim { position: absolute; inset: 0; background: rgba(10, 4, 6, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: sg-fade .25s; }
.sg-sheet__panel { position: relative; width: 100%; max-width: 560px; max-height: 88dvh; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: var(--sg-surface); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4); padding-bottom: env(safe-area-inset-bottom); animation: sg-sheetup .38s var(--sg-ease); transition: transform .3s var(--sg-ease); }
.sg-sheet.is-closing .sg-sheet__panel { transform: translateY(105%); }
.sg-sheet.is-closing .sg-sheet__scrim { opacity: 0; transition: opacity .3s; }
.sg-sheet__grab { display: grid; place-items: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
.sg-sheet__grab i { width: 40px; height: 5px; border-radius: 5px; background: var(--sg-line); }
.sg-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px 20px; }
.sg-sheet__head h3 { margin: 0; font: 750 1.15rem var(--sg-display); }
.sg-sheet__body { overflow-y: auto; padding: 6px 20px 22px; }
.sg-create { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-create__item { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: var(--sg-surface-2); text-decoration: none; transition: transform .2s var(--sg-ease); }
.sg-create__item:active { transform: scale(.96); }
.sg-create__item span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 25) 70% 40%)); }
.sg-create__item b { font: 700 1rem var(--sg-display); }
.sg-create__item small { color: var(--sg-muted); font-size: .8rem; line-height: 1.35; }
.sg-create__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--sg-muted); font-size: .85rem; }
.sg-create__note .sg-i { color: #d99a2b; }
.sg-reader { display: grid; gap: 14px; }
.sg-reader__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.sg-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--sg-surface-2); padding: 3px; }
.sg-stepper button { width: 44px; height: 36px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 700 .95rem var(--sg-display); }
.sg-stepper button:active { background: var(--sg-surface); }
.sg-stepper output { min-width: 36px; text-align: center; font-weight: 700; }
.sg-seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sg-surface-2); }
.sg-seg-mini button { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 .85rem var(--sg-font); color: var(--sg-muted); }
.sg-seg-mini button.is-on { background: var(--sg-surface); color: var(--sg-text); box-shadow: var(--sg-shadow); }
.sg-swatches { display: inline-flex; gap: 10px; }
.sg-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sg-line); cursor: pointer; }
.sg-swatches button.is-on { border-color: var(--sg-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-brand) 25%, transparent); }
.sw-default { background: linear-gradient(135deg, #fff 50%, #1a1113 50%); }
.sw-sepia { background: #f1e5cf; }
.sw-night { background: #1b1814; }
.sg-report p { margin: 0 0 6px; color: var(--sg-muted); font-size: .92rem; line-height: 1.55; }
.sg-qcard { display: grid; gap: 12px; }
.sg-qcard img { width: 100%; border-radius: 18px; box-shadow: var(--sg-shadow); }
.sg-qcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-qcard__styles { display: flex; gap: 8px; justify-content: center; }
.sg-qcard__styles button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sg-line); cursor: pointer; }
.sg-qcard__styles button.is-on { border-color: var(--sg-text); }

.sg-quotebar { position: absolute; z-index: 90; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: #1a1113; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transform: translate(-50%, -100%); animation: sg-pop .25s var(--sg-spring); }
.sg-quotebar::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #1a1113; transform: translateX(-50%) rotate(45deg); }
.sg-quotebar button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: 600 .85rem var(--sg-font); cursor: pointer; }
.sg-quotebar button:hover { background: rgba(255, 255, 255, .1); }

.sg-toasts { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--sg-tabbar-h) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.sg-toast { padding: 11px 18px; border-radius: 999px; background: #1a1113; color: #fff; font: 500 .92rem var(--sg-font); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: sg-toast .35s var(--sg-spring); text-align: center; }
[data-theme="dark"] .sg-toast { background: #f5eded; color: #1a1113; }
.sg-toast.is-error { background: var(--sg-err); color: #fff; }
.sg-toast.is-out { opacity: 0; transform: translateY(10px); transition: all .3s; }

.sg-sv { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; display: grid; place-items: center; animation: sg-zoomin .3s var(--sg-ease); touch-action: none; }
.sg-sv__backdrop { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); transform: scale(1.2); }
.sg-sv__frame { position: relative; width: 100%; height: 100dvh; max-width: calc(100dvh * 9 / 16); overflow: hidden; background: #111; }
.sg-sv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: sg-kenburns 7s ease-out forwards; }
.sg-sv__ph { position: absolute; inset: 0; background: radial-gradient(100% 70% at 30% 10%, hsl(var(--h) 85% 55%), transparent 60%), linear-gradient(160deg, hsl(var(--h) 70% 30%), #0a0506); }
.sg-sv__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 22%, transparent 45%, rgba(0, 0, 0, .9) 100%); }
.sg-sv__bars { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; }
.sg-sv__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sg-sv__bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sg-sv__bars i.is-done b { width: 100%; }
.sg-sv__bars i.is-on b { animation: sg-fill var(--dur, 6s) linear forwards; }
.sg-sv.is-paused .sg-sv__bars i.is-on b { animation-play-state: paused; }
.sg-sv__head { position: absolute; z-index: 3; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 6px; display: flex; align-items: center; gap: 10px; }
.sg-sv__head .sg-story__ring { width: 38px; height: 38px; padding: 2px; }
.sg-sv__head .sg-story__av { border-width: 2px; border-color: #000; font-size: .9rem; }
.sg-sv__head b { font: 700 .95rem var(--sg-display); }
.sg-sv__head small { opacity: .75; font-size: .78rem; margin-left: 6px; }
.sg-sv__head button { margin-left: auto; color: #fff; }
.sg-sv__body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 20px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: start; animation: sg-fadeup .5s var(--sg-ease); }
.sg-sv__body .sg-chip { color: #fff; padding: 4px 10px 3px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-sv__title { margin: 0; font: 800 1.65rem/1.25 var(--sg-display); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.sg-sv__dek { margin: 0; opacity: .88; line-height: 1.55; font-size: .95rem; }
.sg-sv__cta { margin-top: 6px; }
.sg-sv__tap { position: absolute; z-index: 2; top: 0; bottom: 0; width: 34%; border: 0; background: none; cursor: pointer; }
.sg-sv__tap--prev { left: 0; }
.sg-sv__tap--next { right: 0; width: 66%; }
.sg-sv__nav { display: none; }

.sg-lb { position: fixed; inset: 0; z-index: 180; background: rgba(5, 2, 3, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: sg-fade .25s; touch-action: pan-y; }
.sg-lb__top { display: flex; justify-content: flex-end; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 0; }
.sg-lb .sg-iconbtn { color: #fff; }
.sg-lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 8px; }
.sg-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; animation: sg-zoomin .3s var(--sg-ease); }
.sg-lb__info { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin: 0 auto; }
.sg-lb__info h3 { margin: 0; font: 700 1.15rem var(--sg-display); }
.sg-lb__info p { grid-column: 1 / -1; margin: 0; opacity: .8; font-size: .9rem; line-height: 1.5; }
.sg-lb__by { display: flex; align-items: center; gap: 8px; font-size: .88rem; opacity: .9; }
.sg-lb__by img { width: 26px; height: 26px; border-radius: 50%; }
.sg-lb__facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; opacity: .7; }
.sg-lb .sg-like { color: #fff; font-weight: 600; }
.sg-lb .sg-like.is-on { color: #ff5a6e; }
.sg-lb__nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.sg-lb__nav--prev { left: 16px; }
.sg-lb__nav--next { right: 16px; }

.sg-install { position: fixed; z-index: 75; left: 12px; right: 12px; bottom: calc(var(--sg-tabbar-h) + 12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow-lg); animation: sg-fadeup .45s var(--sg-spring); max-width: 520px; margin: 0 auto; }
.sg-install__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 24px var(--sg-display); background: var(--sg-grad); }
.sg-install b { display: block; font: 700 1rem var(--sg-display); }
.sg-install small { display: block; color: var(--sg-muted); font-size: .8rem; line-height: 1.35; }
.sg-install__btns { display: flex; align-items: center; gap: 4px; }
.sg-install .sg-btn { --h: 38px; padding: 0 14px; font-size: .88rem; }

/* 9. Larger screens --------------------------------------------------------- */
@media (min-width: 600px) {
	.sg-grid { grid-template-columns: repeat(2, 1fr); }
	.sg-feature__link { aspect-ratio: 16 / 10; }
	.sg-hero__track { grid-auto-columns: 80%; }
	.sg-tiles { grid-template-columns: repeat(3, 1fr); }
	.sg-trust__checks { grid-template-columns: repeat(4, 1fr); }
	.sg-masonry { columns: 3 200px; }
	.sg-poem__paper { border-radius: 32px; margin-top: 10px; padding: 50px 40px 36px; border: 1px solid var(--sg-line); }
	.sg-steps { grid-template-columns: repeat(4, 1fr); }
	.sg-pushcta { grid-template-columns: auto 1fr auto; }
	.sg-pushcta .sg-btn { grid-column: auto; }
	.sg-article__hero { max-width: 1100px; margin-inline: auto; padding-inline: var(--sg-pad); }
	.sg-article__hero img { border-radius: 26px; }
	.sg-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.sg-list .sg-row:nth-child(2) > a { border-top: 0; }
	.sg-list--search { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
	:root { --sg-pad: 28px; --sg-header-h: 68px; }
	body { padding-bottom: 0; }
	.sg-tabbar { display: none; }
	.sg-toasts { bottom: 28px; }
	.sg-install { bottom: 24px; left: auto; right: 24px; }
	.sg-top__search { width: auto; padding: 0 8px 0 14px; border-radius: 999px; gap: 10px; background: var(--sg-surface-2); height: 40px; display: inline-flex; color: var(--sg-muted); }
	.sg-top__search::before { content: "खोज्नुहोस्..."; font-size: .9rem; order: 2; min-width: 140px; text-align: left; }
	.sg-top__search .sg-i { order: 1; width: 18px; height: 18px; }
	.sg-top__kbd { display: inline-block; order: 3; padding: 2px 7px; border-radius: 6px; background: var(--sg-surface); border: 1px solid var(--sg-line); font: 600 .7rem var(--sg-font); }
	.sg-write-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; margin-left: 6px; border-radius: 999px; background: var(--sg-grad); color: #fff; font: 600 .92rem var(--sg-font); text-decoration: none; box-shadow: 0 8px 18px -10px var(--sg-brand); }
	.sg-write-btn .sg-i { width: 17px; height: 17px; }
	.sg-nav { display: block; margin-left: 18px; }
	.sg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
	.sg-nav a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font: 600 .95rem var(--sg-font); color: var(--sg-muted); transition: all .2s; }
	.sg-nav a:hover, .sg-nav .current-menu-item > a { color: var(--sg-text); background: var(--sg-surface-2); }
	.sg-hello { padding-top: 26px; }
	.sg-hello__title { font-size: 2.2rem; }
	.sg-hero__track { grid-auto-columns: calc(min(100%, var(--sg-wrap)) - var(--sg-pad) * 2); gap: 18px; padding-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); scroll-padding-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); }
	.sg-hero__slide { scroll-snap-align: start; }
	.sg-hero .sg-feature__link { aspect-ratio: 21 / 9; }
	.sg-hero .sg-feature__body { max-width: 760px; padding: 40px; }
	.sg-hero .sg-feature__shade { background: linear-gradient(90deg, rgba(10, 4, 6, .85) 0%, rgba(10, 4, 6, .4) 50%, transparent 75%), linear-gradient(180deg, transparent 50%, rgba(10, 4, 6, .5)); }
	.sg-rail { grid-auto-columns: 300px; gap: 18px; }
	.sg-rail--reels { grid-auto-columns: 210px; }
	.sg-rail--docs { grid-auto-columns: 320px; }
	.sg-sec { margin-block: 44px; }
	.sg-sec__title { font-size: 1.75rem; }
	.sg-trending__grid { grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
	.sg-trending .sg-rank > a { border-top: 1px solid var(--sg-line) !important; }
	.sg-mag { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
	.sg-tiles { grid-template-columns: repeat(6, 1fr); }
	.sg-catsec--grid .sg-tiles { grid-template-columns: repeat(3, 1fr); }
	.sg-docs { padding-block: 50px; }
	.sg-docs__lead { grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
	.sg-gal__grid { grid-template-columns: 1.1fr 1fr; gap: 14px; }
	.sg-potw .sg-photo { aspect-ratio: auto; height: 100%; min-height: 420px; }
	.sg-gal__strip { grid-template-columns: repeat(3, 1fr); align-content: start; }
	.sg-gal__cta { width: auto; display: inline-flex; }
	.sg-writer__card { padding: 50px; }
	.sg-writer__coin.c1 { right: 70px; top: 50px; width: 110px; height: 110px; }
	.sg-writer__coin.c1 .sg-i { width: 58px; height: 58px; }
	.sg-writer__coin.c2 { right: 200px; top: 140px; width: 60px; height: 60px; }
	.sg-writer__coin.c3 { right: 90px; top: 200px; width: 44px; height: 44px; }
	.sg-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
	.sg-masonry { columns: 4 220px; column-gap: 14px; }
	.sg-masonry .sg-photo { margin-bottom: 14px; }
	.sg-foot__in { grid-template-columns: 1.4fr 1fr; align-items: start; }
	.sg-foot__nav { grid-column: 1 / -1; }
	.sg-poems .sg-deck { height: 420px; max-width: 420px; }
	.sg-dock { bottom: 22px; }
	.sg-sheet { align-items: center; }
	.sg-sheet__panel { border-radius: 28px; animation: sg-zoomin .3s var(--sg-ease); }
	.sg-sheet__grab { display: none; }
	.sg-sheet__head { padding-top: 16px; }
	.sg-sv__frame { height: min(92dvh, 860px); border-radius: 22px; }
	.sg-sv__nav { display: grid; position: absolute; z-index: 4; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
	.sg-sv__nav--prev { left: calc(50% - min(92dvh, 860px) * 9 / 32 - 70px); }
	.sg-sv__nav--next { right: calc(50% - min(92dvh, 860px) * 9 / 32 - 70px); }
	.sg-lb__nav { display: grid; }
	.sg-photopage { grid-template-columns: 1.6fr 1fr; align-items: start; }
	.sg-doc__player { margin-top: 24px; border-radius: 24px; box-shadow: 0 40px 80px -40px #000; }
	.sg-reel__acts { right: 14px; }
	.sg-reel { border-radius: 0; }
}
@media (min-width: 1200px) {
	.sg-article__hero { max-width: 1180px; }
	.sg-hero .sg-feature__title { font-size: 2.8rem; }
}

/* 10. Motion ------------------------------------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--sg-ease); }
::view-transition-group(sg-media), ::view-transition-group(sg-title) { animation-duration: .45s; animation-timing-function: var(--sg-ease); }
.sg-vt-media { view-transition-name: sg-media; }
.sg-vt-title-on { view-transition-name: sg-title; }

@keyframes sg-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes sg-fade { from { opacity: 0; } }
@keyframes sg-fadeup { from { opacity: 0; transform: translateY(16px); } }
@keyframes sg-sheetup { from { transform: translateY(100%); } }
@keyframes sg-zoomin { from { opacity: 0; transform: scale(.96); } }
@keyframes sg-toast { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes sg-fill { from { width: 0; } to { width: 100%; } }
@keyframes sg-shimmer { to { background-position: -200% 0; } }
@keyframes sg-heart { 0% { transform: scale(1); } 30% { transform: scale(1.4); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes sg-burst { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.15); } 45% { transform: scale(.95); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1) translateY(-20px); } }
@keyframes sg-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@keyframes sg-spin-y { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
@keyframes sg-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes sg-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@keyframes sg-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
@keyframes sg-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.sg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--sg-ease), transform .7s var(--sg-ease); }
.sg-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.sg-reveal { opacity: 1; transform: none; }
}

/* ===== Layout variations (Elementor widgets) ===== */
.sg-hello--center { flex-direction: column; text-align: center; }
.sg-hello--card { margin-top: 14px; padding: 18px 20px; border-radius: 24px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); max-width: calc(var(--sg-wrap) - var(--sg-pad) * 2); margin-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); }
.sg-hero--split, .sg-hero--single { display: grid; gap: 12px; }
.sg-hero--split .sg-hero__side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sg-hero--split .sg-tile > a { aspect-ratio: 4 / 3; }
.sg-topics.is-static { position: relative; top: auto; }
.sg-topics--cards a { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 18px; min-width: 130px; background: linear-gradient(135deg, hsl(var(--h) 80% 96%), var(--sg-surface)); }
[data-theme="dark"] .sg-topics--cards a { background: linear-gradient(135deg, hsl(var(--h) 40% 16%), var(--sg-surface)); }
.sg-topics--cards a em { font-size: 1.4rem; }
.sg-topics--cards a small { color: var(--sg-muted); font-weight: 500; font-size: .75rem; }
.sg-trending--cards .sg-trending__grid, .sg-trending--compact .sg-trending__grid { display: grid; gap: 16px; }
.sg-trend-card { position: relative; }
.sg-trend-card__n { position: absolute; z-index: 2; left: 10px; top: 8px; font: 900 3rem/1 var(--sg-display); color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.sg-trending--compact .sg-rank__img { display: none; }
.sg-trending--compact .sg-rank > a { grid-template-columns: auto 1fr; }
.sg-reelgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sg-rail--photos { grid-auto-columns: min(70%, 260px); }
.sg-rail--photos .sg-photo { aspect-ratio: 4 / 5; }
.sg-gal--masonry .sg-gal__cta, .sg-gal--rail .sg-gal__cta { margin-top: 14px; }
.sg-writer--dark .sg-writer__card { background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--sg-brand) 55%, transparent), transparent 60%), #120a0c; }
.sg-writer--light .sg-writer__card { color: var(--sg-text); background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--sg-brand) 18%, transparent), transparent 60%), var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-writer--light .sg-kicker { color: var(--sg-brand); }
.sg-writer--light .sg-steps li { background: var(--sg-surface-2); }
.sg-writer--light .sg-steps b { background: var(--sg-grad); color: #fff; }
.sg-writer--light .sg-rates span { background: var(--sg-surface-2); }
.sg-writer--light .sg-rates b { color: var(--sg-brand); }
.sg-writer--light .sg-btn--light { background: var(--sg-grad); color: #fff; }
.sg-writer--light .sg-btn--glass { color: var(--sg-text); background: var(--sg-surface-2); border-color: var(--sg-line); }
.sg-writer--minimal .sg-writer__card { text-align: center; }
.sg-writer--minimal .sg-writer__main p { margin-inline: auto; }
.sg-writer--minimal .sg-writer__btns, .sg-writer--minimal .sg-rates { justify-content: center; }
.sg-writer--minimal .sg-writer__coin { display: none; }
.sg-stories--brand .sg-story__ring { background: var(--sg-grad); }
.sg-stories--mono .sg-story__ring { background: var(--sg-text); }
@media (min-width: 900px) {
	.sg-hero--split { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
	.sg-hero--split .sg-hero__side { grid-template-columns: 1fr; }
	.sg-hero--split .sg-feature__link { aspect-ratio: auto; height: 100%; min-height: 460px; }
	.sg-hero--split .sg-tile > a { aspect-ratio: auto; height: 100%; }
	.sg-hero--single .sg-feature__link { aspect-ratio: 21 / 9; }
	.sg-trending--cards .sg-trending__grid { grid-template-columns: repeat(3, 1fr); }
	.sg-reelgrid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
	.sg-writer--split .sg-writer__card { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 40px; align-items: center; }
	.sg-writer--split .sg-writer__main { grid-row: span 3; }
	.sg-writer--split .sg-writer__coin { display: none; }
	.sg-writer--split .sg-steps { grid-template-columns: 1fr 1fr; }
}
/* Elementor: our sections manage their own width */
.elementor-widget[class*="elementor-widget-sg-"] > .elementor-widget-container { margin: 0; padding: 0; }
.e-con .sg-hero, .elementor-section .sg-hero { width: 100%; }
@media (min-width: 900px) {
	.sg-grid.sg-cols-1 { grid-template-columns: 1fr; }
	.sg-grid.sg-cols-2 { grid-template-columns: repeat(2, 1fr); }
	.sg-grid.sg-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Language toggle ===== */
.sg-langtog { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; height: 34px; padding: 3px; border-radius: 999px; background: var(--sg-surface-2); box-shadow: inset 0 0 0 1px var(--sg-line); flex: none; isolation: isolate; }
.sg-langtog button { position: relative; z-index: 1; min-width: 34px; height: 28px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--sg-muted); font: 700 .78rem/1 var(--sg-display); letter-spacing: .02em; cursor: pointer; transition: color .3s; }
.sg-langtog button.is-on { color: #fff; }
.sg-langtog__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--sg-grad); box-shadow: 0 6px 14px -6px var(--sg-brand); transition: transform .45s var(--sg-spring); }
.sg-langtog.is-en .sg-langtog__thumb { transform: translateX(100%); }
.sg-langtog--npl.is-en .sg-langtog__thumb { transform: none; }
.sg-langtog--npl:not(.is-en) .sg-langtog__thumb { transform: translateX(100%); }
.sg-langtog--npl { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.sg-langtog--npl button { color: rgba(255, 255, 255, .7); }
.sg-langtog--npl .sg-langtog__thumb { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 6px 16px -6px #f59e0b; }
.sg-langtog--npl button.is-on { color: #1a1206; }
html.sg-lang-switching body { opacity: .5; transition: opacity .3s; }
.sg-top__actions .sg-langtog { margin-right: 2px; }
.sg-signin { white-space: nowrap; }
@media (max-width: 520px) { .sg-signin span { display: none; } .sg-signin { width: 36px; padding: 0; justify-content: center; } .sg-logo__text { font-size: 1.2rem; } }

/* ==========================================================================
   v1.3 — Layout hardening (immune to Elementor / page-builder global CSS)
   Elementor ships `.elementor img { height:auto; border-radius:0 }` which broke
   every fixed-ratio thumbnail; percentage rail columns could also resolve
   cyclically inside builder containers and make sections overlap.
   ========================================================================== */
:where(.sg-card__img, .sg-lead__img, .sg-row__img, .sg-rank__img, .sg-reelcard > a, .sg-doccard__img, .sg-docs__media, .sg-doc__poster, .sg-potw .sg-photo, .sg-gal__strip .sg-photo, .sg-rail--photos .sg-photo, .sg-reel__media) { position: relative; overflow: hidden; }
.sg-feature .sg-feature__img, .sg-tile .sg-tile__img { position: absolute; inset: 0; display: block; overflow: hidden; }
.sg-card__img, .sg-lead__img, .sg-row__img, .sg-rank__img, .sg-doccard__img { display: block; }
:is(.sg-card__img, .sg-feature__img, .sg-lead__img, .sg-row__img, .sg-rank__img, .sg-reelcard > a, .sg-doccard__img, .sg-tile__img, .sg-docs__media, .sg-doc__poster, .sg-potw .sg-photo, .sg-gal__strip .sg-photo, .sg-rail--photos .sg-photo) > img,
:is(.sg-card__img, .sg-lead__img, .sg-row__img, .sg-rank__img, .sg-doccard__img, .sg-docs__media, .sg-reelcard > a) > :is(picture, span:not([class])) img,
.sg-reel__media > :is(img, video) {
	position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important;
}
.sg-masonry .sg-photo img, .sg-photopage__img img, .sg-poem__art img, .sg-prose img { height: auto !important; max-width: 100% !important; }
.sg-masonry .sg-photo img { width: 100% !important; }
.sg-avatar-btn img { width: 32px !important; height: 32px !important; border-radius: 50% !important; }
:is(.sg-reel__by, .sg-review__by, .sg-authorcard__av, .sg-poem__poet, .sg-lb__by, .sg-card__by, .sg-feature__by, .sg-row__by) img { border-radius: 50% !important; height: auto; }
.sg-poem__art img, .sg-prose img, .sg-article__hero img { border-radius: 16px !important; }
.sg-row__img { flex: none; align-self: start; width: 100%; }
.sg-row__img::before, .sg-rank__img::before { content: ""; display: block; padding-top: 100%; }

/* Builder containers: Sangriha widgets always full-width, never shrink */
.elementor-widget[class*="elementor-widget-sg-"] { width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; align-self: stretch !important; min-width: 0; }
.elementor-widget[class*="elementor-widget-sg-"] > .elementor-widget-container { height: auto !important; width: 100%; }
.sg-main > section, .sg-sec, .npl-home, .sg-hero { flex-shrink: 0; min-width: 0; }

/* Rails: viewport-based widths on phones (no cyclic % resolution) */
@media (max-width: 767px) {
	.sg-hero__track { grid-auto-columns: calc(100vw - var(--sg-pad) * 2 - 26px); }
	.sg-rail { grid-auto-columns: min(78vw, 300px); }
	.sg-rail--reels { grid-auto-columns: min(40vw, 190px); }
	.sg-rail--docs { grid-auto-columns: min(72vw, 300px); }
	.sg-rail--photos { grid-auto-columns: min(70vw, 260px); }
	.sg-deck:not(.is-deck) { grid-auto-columns: 82vw; }
	.sg-row > a { grid-template-columns: minmax(0, 1fr) 92px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.sg-hero__track { grid-auto-columns: 80vw; }
}
.sg-rail > *, .sg-hero__slide { min-width: 0; }
.sg-reelcard > a, .sg-feature__link, .sg-tile > a { height: auto; }
.sg-story__av > img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 50% !important; }

/* v1.3 — reels player (shared video, overlay, sound hint, progress) */
.sg-reels .sg-when-sound, .sg-reels .sg-when-muted { display: contents; }
.sg-reels:not(.has-sound) .sg-when-sound, .sg-reels.has-sound .sg-when-muted { display: none; }
.sg-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.sg-reel.is-playing .sg-reel__video { opacity: 1; }
video.sg-reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-reel__spin { position: absolute; z-index: 3; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; pointer-events: none; animation: sg-spin .8s linear infinite; transition: opacity .2s; }
.sg-reel.is-loading .sg-reel__spin { opacity: 1; transition-delay: .3s; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-reel__bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); pointer-events: none; }
.sg-reel__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a6e, #fff); transform-origin: 0 50%; transform: scaleX(0); }
.sg-reel.is-paused::after { content: ""; position: absolute; z-index: 3; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; border-radius: 50%; background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sg-zoomin .25s var(--sg-ease); pointer-events: none; }
.sg-reels__hint { position: absolute; z-index: 6; left: 50%; top: calc(64px + env(safe-area-inset-top)); display: none; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #111; font: 650 .88rem var(--sg-font); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transform: translateX(-50%); cursor: pointer; animation: sg-hint 1.6s var(--sg-ease) infinite alternate; }
.sg-reels__hint .sg-i { width: 18px; height: 18px; }
.sg-reels.needs-tap .sg-reels__hint { display: inline-flex; }
@keyframes sg-hint { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.05); } }
.sg-reels--overlay { z-index: 300; opacity: 0; transform: scale(1.04); transition: opacity .25s var(--sg-ease), transform .3s var(--sg-ease); }
.sg-reels--overlay.is-in { opacity: 1; transform: none; }
html.sg-reels-open, html.sg-reels-open body { overflow: hidden; }
html.sg-reels-open .sg-tabbar, html.sg-reels-open .sg-top { visibility: hidden; }
@media (min-width: 768px) { .sg-reels--overlay { background: rgba(0, 0, 0, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); } .sg-reels--overlay .sg-reel { border-radius: 18px; height: calc(100dvh - 32px); margin-block: 16px; } .sg-reels--overlay .sg-reels__track { scroll-padding-top: 16px; } }
.sg-reelcard video.sg-vthumb, :is(.sg-card__img, .sg-row__img, .sg-feature__img, .sg-tile__img, .sg-doccard__img, .sg-lead__img, .sg-rank__img) > video.sg-vthumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sg-reels.needs-tap .sg-when-sound { display: none; }
.sg-reels.needs-tap .sg-when-muted { display: contents; }
.sg-reels__hint { white-space: nowrap; }

/* v1.3 — header: logo, menus, drawer ------------------------------------- */
.sg-top .sg-logo__img, .sg-drawer .sg-logo__img { height: var(--sg-logo-h-m, 38px) !important; width: auto !important; max-width: 190px; object-fit: contain; border-radius: 0 !important; }
.sg-top .sg-logo__mark { width: calc(var(--sg-logo-h-m, 38px) + 2px); height: calc(var(--sg-logo-h-m, 38px) + 2px); font-size: calc(var(--sg-logo-h-m, 38px) * .58); border-radius: 13px; }
.sg-top .sg-logo__text { font-size: calc(var(--sg-logo-h-m, 38px) * .6); }
.sg-top__menu { display: inline-grid; margin-left: -8px; flex: none; }
.sg-top__search { display: none; }
.sg-top__actions { gap: 2px; }
.sg-top__actions [data-sg-theme] { display: inline-grid; }
@media (max-width: 380px) {
	.sg-top__in { gap: 6px; }
	.sg-top .sg-logo__text { font-size: calc(var(--sg-logo-h-m, 38px) * .52); }
	.sg-top .sg-langtog { transform: scale(.9); margin-inline: -3px; }
	.sg-top .sg-iconbtn { width: 36px; height: 36px; }
}
@media (max-width: 340px) { .sg-top .sg-logo__text { display: none; } }
@media (min-width: 900px) {
	.sg-top .sg-logo__img { height: var(--sg-logo-h, 44px) !important; max-width: 260px; }
	.sg-top .sg-logo__mark { width: calc(var(--sg-logo-h, 44px) + 0px); height: var(--sg-logo-h, 44px); font-size: calc(var(--sg-logo-h, 44px) * .56); border-radius: 14px; }
	.sg-top .sg-logo__text { font-size: calc(var(--sg-logo-h, 44px) * .56); }
	.sg-top__menu { display: none; }
	.sg-top__search { display: inline-flex; }
	.sg-top--nav-center .sg-nav { margin-inline: auto; }
	.sg-top--nav-center .sg-top__actions { margin-left: 0; }
	.sg-nav { min-width: 0; }
	.sg-nav > ul { flex-wrap: nowrap; }
	.sg-nav li { position: relative; }
	.sg-nav > ul > li > a { white-space: nowrap; }
	.sg-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 5px; }
	.sg-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
	.sg-nav .sub-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; min-width: 230px; display: grid; gap: 2px; padding: 8px; list-style: none; border-radius: 18px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--sg-ease), visibility .2s; }
	.sg-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.sg-nav li:hover > .sub-menu, .sg-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.sg-nav .sub-menu a { border-radius: 12px; padding: 10px 12px; white-space: normal; }
	.sg-nav .sub-menu .sub-menu { top: -8px; left: calc(100% + 6px); }
	.sg-top--nav-underline .sg-nav > ul > li > a { position: relative; border-radius: 0; background: none !important; padding-inline: 10px; }
	.sg-top--nav-underline .sg-nav > ul > li > a::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sg-grad); transform: scaleX(0); transition: transform .3s var(--sg-ease); }
	.sg-top--nav-underline .sg-nav > ul > li > a:hover::before, .sg-top--nav-underline .sg-nav > ul > .current-menu-item > a::before, .sg-top--nav-underline .sg-nav > ul > .current-menu-ancestor > a::before { transform: scaleX(1); }
}
@media (min-width: 900px) and (max-width: 1279px) {
	.sg-top__search { width: 40px; padding: 0; justify-content: center; background: transparent; color: var(--sg-text); }
	.sg-top__search::before, .sg-top__search .sg-top__kbd { display: none; }
	.sg-top__search .sg-i { width: 22px; height: 22px; }
	.sg-write-btn span { display: none; }
	.sg-write-btn { width: 40px; padding: 0; justify-content: center; }
}

.sg-drawer { position: fixed; inset: 0; z-index: 260; }
.sg-drawer[hidden] { display: none; }
.sg-drawer__scrim { position: absolute; inset: 0; background: rgba(8, 3, 5, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.sg-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); display: flex; flex-direction: column; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--sg-bg); border-right: 1px solid var(--sg-line); box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .6); transform: translateX(-102%); transition: transform .38s var(--sg-ease); }
.sg-drawer.is-open .sg-drawer__scrim { opacity: 1; }
.sg-drawer.is-open .sg-drawer__panel { transform: none; }
.sg-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.sg-drawer__me { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; text-decoration: none; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .18), transparent 50%), var(--sg-grad); box-shadow: 0 16px 30px -18px var(--sg-brand); }
.sg-drawer__me img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); object-fit: cover; }
.sg-drawer__me span { display: grid; min-width: 0; }
.sg-drawer__me b { font: 700 1rem/1.3 var(--sg-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-drawer__me small { opacity: .8; font-size: .78rem; }
.sg-drawer__me > .sg-i { width: 18px; height: 18px; }
.sg-drawer__guest { width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; background: rgba(255, 255, 255, .2); }
.sg-drawer__guest .sg-i { width: 22px; height: 22px; }
.sg-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.sg-drawer__nav > ul { display: grid; gap: 2px; padding: 6px; border-radius: 20px; background: var(--sg-surface); border: 1px solid var(--sg-line); }
.sg-drawer__nav li { position: relative; }
.sg-drawer__nav a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 14px; color: var(--sg-text); text-decoration: none; font: 600 1rem var(--sg-font); transition: background .2s; }
.sg-drawer__nav a:hover, .sg-drawer__nav .current-menu-item > a { background: var(--sg-surface-2); }
.sg-drawer__nav .current-menu-item > a { color: var(--sg-brand); }
.sg-drawer__nav .menu-item-has-children > a { padding-right: 52px; }
.sg-drawer__sub { position: absolute; top: 3px; right: 3px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--sg-surface-2); color: var(--sg-text); display: grid; place-items: center; cursor: pointer; }
.sg-drawer__sub::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.sg-drawer__nav li.is-open > .sg-drawer__sub::before { transform: translateY(2px) rotate(-135deg); }
.sg-drawer__nav .sub-menu { display: block; overflow: hidden; max-height: 0; padding-left: 12px; transition: max-height .35s var(--sg-ease); }
.sg-drawer__nav li.is-open > .sub-menu { max-height: 1200px; }
.sg-drawer__nav .sub-menu a { font-weight: 500; font-size: .94rem; min-height: 42px; color: var(--sg-muted); }
.sg-drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-drawer__tile { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px solid var(--sg-line); border-radius: 18px; background: var(--sg-surface); color: var(--sg-text); text-decoration: none; font: 600 .88rem var(--sg-font); cursor: pointer; text-align: left; transition: transform .2s var(--sg-spring), border-color .2s; }
.sg-drawer__tile:active { transform: scale(.97); }
.sg-drawer__tile .sg-i { width: 22px; height: 22px; color: var(--sg-brand); }
.sg-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--sg-surface); border: 1px solid var(--sg-line); font-weight: 600; }
.sg-switch { position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--sg-surface-2); box-shadow: inset 0 0 0 1px var(--sg-line); cursor: pointer; transition: background .25s; }
.sg-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .3s var(--sg-spring); }
[data-theme="dark"] .sg-switch { background: var(--sg-grad); box-shadow: none; }
[data-theme="dark"] .sg-switch i { transform: translateX(22px); }
.sg-drawer__logout { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: auto; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--sg-brand) 40%, transparent); color: var(--sg-brand); text-decoration: none; font-weight: 700; }
.sg-drawer__logout .sg-i { width: 19px; height: 19px; }
html.sg-drawer-open, html.sg-drawer-open body { overflow: hidden; }

/* v1.3 — gallery albums */
.sg-photo__count { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 .75rem var(--sg-font); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-photo__count .sg-i { width: 14px; height: 14px; }
.sg-photo.is-album::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.sg-gal__strip .sg-photo__count { top: 6px; right: 6px; padding: 3px 7px 3px 5px; font-size: .68rem; }
.sg-lb__top { justify-content: space-between; align-items: center; padding-left: 16px; }
.sg-lb__top > span:last-child { display: flex; gap: 4px; }
.sg-lb__count { display: inline-flex; align-items: center; gap: 6px; font: 600 .88rem var(--sg-font); opacity: .9; }
.sg-lb__count .sg-i { width: 17px; height: 17px; }
.sg-lb__stage { padding: 0; place-items: stretch; }
.sg-lb__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sg-lb__track::-webkit-scrollbar { display: none; }
.sg-lb__slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; padding: 8px; scroll-snap-align: center; scroll-snap-stop: always; position: relative; min-height: 0; }
.sg-lb__slide img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; border-radius: 8px !important; animation: sg-zoomin .3s var(--sg-ease); }
.sg-lb__slide figcaption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 90%; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .55); font-size: .82rem; }
.sg-lb { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.sg-lb__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.sg-lb__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .3s var(--sg-ease), background .3s; }
.sg-lb__dots i.is-on { width: 18px; background: #fff; }
.sg-lb__thumbs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.sg-lb__thumbs::-webkit-scrollbar { display: none; }
.sg-lb__thumbs button { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #222; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s, transform .2s; }
.sg-lb__thumbs button.is-on { opacity: 1; border-color: #fff; transform: translateY(-2px); }
.sg-lb__thumbs img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 0 !important; }
.sg-photopage__media { display: grid; gap: 10px; min-width: 0; }
.sg-photopage__img { position: relative; cursor: zoom-in; }
.sg-photopage__img .sg-photo__count { top: 14px; right: 14px; padding: 6px 12px 6px 9px; font-size: .85rem; }
.sg-photopage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.sg-photopage__grid button { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sg-surface-2); cursor: zoom-in; outline-offset: 2px; transition: transform .2s var(--sg-spring); }
.sg-photopage__grid button:active { transform: scale(.96); }
.sg-photopage__grid button.is-on { outline: 2px solid var(--sg-brand); }
.sg-photopage__grid img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.sg-lb { background: rgba(5, 2, 3, .985); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* v1.3 — responsive sweep fixes */
html { overflow-x: clip; }
.sg-pagehead { overflow: clip; overflow-clip-margin: 40px; }
.sg-pagehead__orb { right: 0; max-width: 70vw; }
.sg-searchform { max-width: 100%; min-width: 0; }
.sg-searchform .sg-btn { flex: none; padding-inline: 14px; }
@media (max-width: 380px) { .sg-searchform .sg-btn span { display: none; } .sg-searchform { padding-left: 12px; } }
.sg-filter { max-width: 100%; min-width: 0; }
.sg-filter__sp { display: none; }
.sg-main, .sg-wrap, .sg-pagehead, .sg-sec { min-width: 0; }
.sg-prose { overflow-wrap: anywhere; }
.sg-prose table { display: block; max-width: 100%; overflow-x: auto; }
.sg-prose iframe, .sg-prose video, .sg-prose embed { max-width: 100%; }
.sg-prose pre { max-width: 100%; overflow-x: auto; }
.sg-pagehead { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) and (max-width: 899px) { .sg-potw .sg-photo { aspect-ratio: 16 / 10; } }

/* v1.3.3 — live clock in the greeting */
.sg-hello__clock { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--sg-surface); border: 1px solid var(--sg-line); color: var(--sg-text); font: 600 .9rem/1 var(--sg-font); font-variant-numeric: tabular-nums; box-shadow: var(--sg-shadow); }
.sg-hello__clock time { letter-spacing: .01em; }
.sg-hello__clock time i { font-style: normal; color: var(--sg-muted); font-weight: 500; }
.sg-hello__live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: sg-live-pulse 2s infinite; flex: none; }
@keyframes sg-live-pulse { 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.sg-hello__zone { color: var(--sg-muted); font-weight: 500; font-size: .76rem; padding-left: 8px; border-left: 1px solid var(--sg-line); }
.sg-hello__zone:empty { display: none; }
.sg-hello--center .sg-hello__clock { margin-inline: auto; }
.sg-hello__title [data-sg-greet] { transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { .sg-hello__live { animation: none; } }

/* ==========================================================================
   v1.4 — Hero layouts (16:9 artwork, never cropped to portrait)
   ========================================================================== */
.sg-cine, .sg-spot, .sg-mosaic, .sg-hero--carousel { margin-top: 18px; }
.sg-cine a, .sg-spot a, .sg-mosaic a, .sg-hs a { -webkit-tap-highlight-color: transparent; }

/* Cinema */
.sg-cine { display: grid; gap: 14px; }
.sg-cine__stage { position: relative; display: grid; min-width: 0; }
.sg-cine__slide { grid-area: 1 / 1; position: relative; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transition: opacity .55s var(--sg-ease), visibility .55s; }
.sg-cine__slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.sg-cine__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--sg-surface-2); box-shadow: var(--sg-shadow-lg); isolation: isolate; }
.sg-cine__media > img, .sg-cine__media > .sg-ph, .sg-cine__media > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transform: scale(1.06); transition: transform 8s linear; }
.sg-cine__slide.is-on .sg-cine__media > img { transform: scale(1); }
.sg-cine__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 62%, rgba(8, 3, 5, .45)); pointer-events: none; }
.sg-cine__num { position: absolute; z-index: 2; right: 14px; bottom: 6px; font: 800 2.6rem/1 var(--sg-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75); letter-spacing: -.02em; pointer-events: none; }
.sg-cine__body { display: grid; gap: 8px; min-width: 0; padding-inline: 2px; }
.sg-cine__title { margin: 0; font: 800 clamp(1.35rem, 5.6vw, 2.75rem)/1.17 var(--sg-display); letter-spacing: -.01em; }
.sg-cine__title a, .sg-spot__title a, .sg-hs__title a, .sg-mag__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--sg-ease); }
.sg-cine__title a:hover, .sg-spot__title a:hover, .sg-hs__title a:hover, .sg-mag__title a:hover { background-size: 100% 2px; }
.sg-cine__dek { margin: 0; color: var(--sg-muted); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-cine__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.sg-cine__cta { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--sg-text); color: var(--sg-bg); font: 700 .9rem var(--sg-font); text-decoration: none; transition: transform .2s var(--sg-spring), box-shadow .2s; }
.sg-cine__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); color: var(--sg-bg); }
.sg-cine__cta .sg-i { width: 16px; height: 16px; }
.sg-cine__slide.is-on .sg-cine__body > * { animation: sg-cine-in .6s var(--sg-ease) both; }
.sg-cine__slide.is-on .sg-cine__body > :nth-child(2) { animation-delay: .06s; }
.sg-cine__slide.is-on .sg-cine__body > :nth-child(3) { animation-delay: .12s; }
.sg-cine__slide.is-on .sg-cine__body > :nth-child(4) { animation-delay: .18s; }
@keyframes sg-cine-in { from { opacity: 0; transform: translateY(14px); } }
.sg-cine__side { min-width: 0; }
.sg-cine__label { display: none; }
.sg-cine__queue { list-style: none; margin: 0; padding: 2px 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 270px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sg-cine__queue::-webkit-scrollbar { display: none; }
.sg-cine__queue li { scroll-snap-align: start; min-width: 0; }
.sg-cine__q { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; height: 100%; padding: 8px; border: 1px solid var(--sg-line); border-radius: 16px; background: var(--sg-surface); color: var(--sg-text); text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: background .25s, border-color .25s, transform .2s var(--sg-spring); }
.sg-cine__q:active { transform: scale(.98); }
.sg-cine__q.is-on { border-color: color-mix(in srgb, var(--sg-brand) 45%, transparent); background: var(--sg-surface-2); }
.sg-cine__qimg { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sg-surface-2); }
.sg-cine__qimg > img, .sg-cine__qimg > .sg-ph, .sg-cine__qimg > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; }
.sg-cine__qtxt { display: grid; gap: 2px; min-width: 0; }
.sg-cine__qtxt small { color: var(--sg-brand); font: 600 .7rem var(--sg-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-cine__qtxt b { font: 650 .84rem/1.32 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-cine__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.sg-cine__bar i { display: block; height: 100%; background: var(--sg-grad); transform-origin: 0 50%; transform: scaleX(0); }
.sg-cine__q.is-run .sg-cine__bar i { animation: sg-cine-bar var(--cine-dur, 7s) linear forwards; }
.sg-cine.is-paused .sg-cine__bar i { animation-play-state: paused; }
@keyframes sg-cine-bar { to { transform: scaleX(1); } }
@media (min-width: 1024px) {
	.sg-cine { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: stretch; margin-top: 22px; }
	.sg-cine__slide { gap: 0; }
	.sg-cine__media { border-radius: 28px; }
	.sg-cine__shade { background: linear-gradient(0deg, rgba(8, 3, 5, .94) 0%, rgba(8, 3, 5, .62) 30%, rgba(8, 3, 5, .1) 58%, transparent 70%); }
	.sg-cine__num { top: 18px; right: 22px; bottom: auto; font-size: 3.4rem; }
	.sg-cine__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 40px 34px; color: #fff; max-width: 880px; gap: 10px; }
	.sg-cine__body .sg-chip { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
	.sg-cine__dek { color: rgba(255, 255, 255, .82); font-size: 1rem; }
	.sg-cine__body .sg-meta { color: rgba(255, 255, 255, .85); }
	.sg-cine__cta { background: #fff; color: #120a0c; }
	.sg-cine__cta:hover { color: #120a0c; }
	.sg-cine__side { position: relative; }
	.sg-cine__label { display: block; margin: 2px 0 10px; color: var(--sg-muted); font: 700 .74rem var(--sg-font); letter-spacing: .14em; text-transform: uppercase; }
	.sg-cine__queue { position: absolute; inset: 30px 0 0; grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: minmax(0, 1fr); overflow-y: auto; overflow-x: hidden; scroll-snap-type: none; padding: 0 2px 0 0; gap: 10px; }
	.sg-cine__q { grid-template-columns: 124px minmax(0, 1fr); padding: 10px; border-radius: 18px; }
	.sg-cine__q:hover { background: var(--sg-surface-2); }
	.sg-cine__qtxt b { font-size: .92rem; -webkit-line-clamp: 3; }
}
@media (min-width: 1280px) { .sg-cine { grid-template-columns: minmax(0, 1fr) 370px; } .sg-cine__title { font-size: 2.9rem; } }

/* Spotlight */
.sg-spot { display: grid; gap: 18px; }
.sg-spot__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--sg-surface-2); box-shadow: var(--sg-shadow-lg); }
.sg-spot__media > img, .sg-spot__media > .sg-ph, .sg-spot__media > video, .sg-spot__thumb > img, .sg-spot__thumb > .sg-ph, .sg-spot__thumb > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--sg-ease); }
.sg-spot__lead:hover .sg-spot__media > img, .sg-spot__item a:hover .sg-spot__thumb > img { transform: scale(1.04); }
.sg-spot__badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 4, 6, .58); color: #fff; font: 650 .76rem var(--sg-font); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-spot__badge .sg-i { width: 14px; height: 14px; color: #fbbf24; }
.sg-spot__body { display: grid; gap: 8px; padding-top: 14px; }
.sg-spot__title { margin: 0; font: 800 clamp(1.35rem, 5.2vw, 2.35rem)/1.2 var(--sg-display); letter-spacing: -.01em; }
.sg-spot__dek { margin: 0; color: var(--sg-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-spot__list { display: grid; align-content: start; }
.sg-spot__item a { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sg-line); text-decoration: none; color: inherit; }
.sg-spot__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--sg-surface-2); }
.sg-spot__txt { display: grid; gap: 4px; min-width: 0; }
.sg-spot__txt small { color: var(--sg-brand); font: 600 .72rem var(--sg-font); }
.sg-spot__txt b { font: 700 .98rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-spot__txt .sg-meta { font-size: .74rem; }
.sg-spot__item a:hover b { color: var(--sg-brand); }
@media (min-width: 1024px) {
	.sg-spot { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; margin-top: 24px; }
	.sg-spot__media { border-radius: 28px; }
	.sg-spot__list { padding-left: 4px; }
	.sg-spot__item:first-child a { border-top: 0; padding-top: 0; }
	.sg-spot__item a { grid-template-columns: 150px minmax(0, 1fr); padding: 16px 0; }
}

/* Mosaic (bento) */
.sg-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-mo { min-width: 0; }
.sg-mo a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: #120a0c; isolation: isolate; }
.sg-mo--0 { grid-column: 1 / -1; }
.sg-mo--0 a { border-radius: 22px; box-shadow: var(--sg-shadow-lg); }
.sg-mo__img { position: absolute; inset: 0; }
.sg-mo__img > img, .sg-mo__img > .sg-ph, .sg-mo__img > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .9s var(--sg-ease); }
.sg-mo a:hover .sg-mo__img > img { transform: scale(1.05); }
.sg-mo__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 3, 5, .88) 0%, rgba(8, 3, 5, .35) 45%, transparent 70%); }
.sg-mo__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 10px 12px; }
.sg-mo__body small { font: 650 .66rem var(--sg-font); letter-spacing: .04em; text-transform: uppercase; color: #fde68a; }
.sg-mo__body b { font: 700 .82rem/1.3 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-mo--0 .sg-mo__body { padding: 16px 18px; gap: 6px; }
.sg-mo--0 .sg-mo__body b { font: 800 clamp(1.15rem, 4.6vw, 2.2rem)/1.2 var(--sg-display); -webkit-line-clamp: 3; }
.sg-mo--0 .sg-meta { color: rgba(255, 255, 255, .85); font-size: .8rem; }
@media (min-width: 900px) {
	.sg-mosaic { grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 24px; }
	.sg-mo--0 { grid-column: 1; grid-row: 1 / 3; }
	.sg-mo--0 a { aspect-ratio: auto; height: 100%; border-radius: 28px; }
	.sg-mo--0 .sg-mo__body { padding: 28px 30px; }
	.sg-mo a { border-radius: 20px; }
	.sg-mo__body { padding: 12px 14px; }
	.sg-mo__body b { font-size: .92rem; }
}

/* Carousel (contained) */
.sg-hs { display: grid; gap: 12px; }
.sg-hs__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--sg-surface-2); box-shadow: var(--sg-shadow); }
.sg-hs__media > img, .sg-hs__media > .sg-ph, .sg-hs__media > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; }
.sg-hs__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(8, 3, 5, .35)); }
.sg-hs__body { display: grid; gap: 6px; padding-inline: 2px; }
.sg-hs__title { margin: 0; font: 800 clamp(1.15rem, 4.8vw, 2.4rem)/1.22 var(--sg-display); }
.sg-hero__ctl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.sg-hero__ctl .sg-hero__dots { margin: 0; }
.sg-hero__arrow { display: none; width: 40px; height: 40px; border: 1px solid var(--sg-line); border-radius: 50%; background: var(--sg-surface); color: var(--sg-text); place-items: center; cursor: pointer; transition: background .2s, transform .2s var(--sg-spring); }
.sg-hero__arrow:hover { background: var(--sg-surface-2); }
.sg-hero__arrow:active { transform: scale(.92); }
.sg-hero__arrow .sg-i { width: 18px; height: 18px; }
@media (min-width: 900px) {
	.sg-hero--carousel .sg-hs { position: relative; }
	.sg-hero--carousel .sg-hs__media { border-radius: 28px; }
	.sg-hero--carousel .sg-hs__shade { background: linear-gradient(0deg, rgba(8, 3, 5, .92) 0%, rgba(8, 3, 5, .5) 32%, transparent 62%); }
	.sg-hero--carousel .sg-hs__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 40px 34px; color: #fff; max-width: 860px; }
	.sg-hero--carousel .sg-hs__body .sg-meta { color: rgba(255, 255, 255, .85); }
	.sg-hero--carousel .sg-hs__body .sg-chip { background: rgba(255, 255, 255, .16); color: #fff; }
	.sg-hero__arrow { display: grid; }
}

/* ==========================================================================
   v1.4 — Trending layouts
   ========================================================================== */
.sg-top10 { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sg-top10::-webkit-scrollbar { display: none; }
.sg-top10__item { scroll-snap-align: start; min-width: 0; }
.sg-top10__item a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; text-decoration: none; color: inherit; }
.sg-top10__n { position: relative; z-index: 0; margin-right: -22px; font: 900 7.4rem/.78 var(--sg-display); letter-spacing: -.07em; color: var(--sg-bg); -webkit-text-stroke: 2.5px color-mix(in srgb, var(--sg-text) 32%, transparent); paint-order: stroke fill; transition: -webkit-text-stroke-color .3s, transform .4s var(--sg-spring); }
.sg-top10__item a:hover .sg-top10__n { -webkit-text-stroke-color: var(--sg-brand); transform: translateY(-4px); }
.sg-top10__card { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 0; }
.sg-top10__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--sg-surface-2); box-shadow: var(--sg-shadow); }
.sg-top10__img > img, .sg-top10__img > .sg-ph, .sg-top10__img > video, .sg-podium__img > img, .sg-podium__img > .sg-ph, .sg-podium__thumb > img, .sg-podium__thumb > .sg-ph, .sg-podium__thumb > video, .sg-mag__media > img, .sg-mag__media > .sg-ph, .sg-mag__media > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--sg-ease); }
.sg-top10__item a:hover .sg-top10__img > img { transform: scale(1.05); }
.sg-top10__txt { display: grid; gap: 3px; min-width: 0; padding-right: 6px; }
.sg-top10__txt small { color: var(--sg-brand); font: 600 .72rem var(--sg-font); }
.sg-top10__txt b { font: 700 .98rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-top10__txt em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--sg-muted); font-size: .76rem; }
.sg-top10__txt em .sg-i { width: 13px; height: 13px; color: #f97316; }
@media (min-width: 900px) { .sg-top10 { grid-auto-columns: 370px; gap: 10px; } .sg-top10__n { font-size: 8.6rem; } }

.sg-podium { display: grid; gap: 16px; }
.sg-podium__lead a { position: relative; display: block; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #120a0c; box-shadow: var(--sg-shadow-lg); isolation: isolate; }
.sg-podium__img { position: relative; display: block; aspect-ratio: 16 / 9; }
.sg-podium__lead a:hover .sg-podium__img > img { transform: scale(1.04); }
.sg-podium__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 3, 5, .92), rgba(8, 3, 5, .3) 50%, transparent 72%); }
.sg-podium__badge { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--sg-grad); font: 700 .76rem var(--sg-font); box-shadow: 0 10px 20px -10px var(--sg-brand); }
.sg-podium__badge .sg-i { width: 14px; height: 14px; }
.sg-podium__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px 18px; }
.sg-podium__body small { font: 650 .7rem var(--sg-font); letter-spacing: .05em; text-transform: uppercase; color: #fde68a; }
.sg-podium__body b { font: 800 clamp(1.1rem, 4.6vw, 1.9rem)/1.22 var(--sg-display); }
.sg-podium__body em { font-style: normal; font-size: .8rem; opacity: .8; }
.sg-podium__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.sg-podium__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) 108px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sg-line); text-decoration: none; color: inherit; }
.sg-podium__n { min-width: 46px; font: 900 2rem/1 var(--sg-display); color: transparent; -webkit-text-stroke: 1.5px var(--sg-brand); }
.sg-podium__txt { display: grid; gap: 3px; min-width: 0; }
.sg-podium__txt small { color: var(--sg-brand); font: 600 .7rem var(--sg-font); }
.sg-podium__txt b { font: 700 .95rem/1.35 var(--sg-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-podium__txt em { font-style: normal; color: var(--sg-muted); font-size: .74rem; }
.sg-podium__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sg-surface-2); }
.sg-podium__list a:hover b { color: var(--sg-brand); }
@media (min-width: 900px) {
	.sg-podium { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; }
	.sg-podium__lead a { border-radius: 28px; }
	.sg-podium__body { padding: 26px 28px; }
	.sg-podium__list li:first-child a { border-top: 0; padding-top: 0; }
	.sg-podium__list a { grid-template-columns: auto minmax(0, 1fr) 132px; padding: 15px 0; }
}

/* ==========================================================================
   v1.4 — Latest layouts + 16:9 thumbnails everywhere
   ========================================================================== */
.sg-card__img { aspect-ratio: 16 / 9; }
.sg-row > a { grid-template-columns: minmax(0, 1fr) 120px; }
.sg-row__img { aspect-ratio: 16 / 9; border-radius: 12px; }
.sg-row__img::before { padding-top: 56.25%; }
.sg-rank > a { grid-template-columns: auto minmax(0, 1fr) 104px; }
.sg-rank__img { aspect-ratio: 16 / 9; border-radius: 12px; }
.sg-rank__img::before { padding-top: 56.25%; }
@media (min-width: 900px) { .sg-row > a { grid-template-columns: minmax(0, 1fr) 168px; gap: 18px; } .sg-rank > a { grid-template-columns: auto minmax(0, 1fr) 128px; } }

.sg-mag { display: grid; gap: 18px; }
.sg-mag__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--sg-surface-2); box-shadow: var(--sg-shadow-lg); }
.sg-mag__lead:hover .sg-mag__media > img { transform: scale(1.04); }
.sg-mag__new { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 4, 6, .6); color: #fff; font: 650 .76rem var(--sg-font); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-mag__new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d64; box-shadow: 0 0 0 0 rgba(255, 77, 100, .6); animation: sg-live-pulse 1.8s infinite; }
.sg-mag__body { display: grid; gap: 8px; padding-top: 14px; }
.sg-mag__title { margin: 0; font: 800 clamp(1.3rem, 5vw, 2.1rem)/1.22 var(--sg-display); }
.sg-mag__dek { margin: 0; color: var(--sg-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-mag__list { grid-template-columns: 1fr !important; }
.sg-mag__list > .sg-row:first-child > a { padding-top: 0; }
@media (min-width: 1024px) {
	.sg-mag { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
	.sg-mag__lead { position: sticky; top: calc(var(--sg-header-h) + 18px); }
	.sg-mag__media { border-radius: 28px; }
}
.sg-latest__rows { column-gap: 32px; }
.sg-timeline { position: relative; padding-left: 26px; grid-template-columns: 1fr !important; max-width: 900px; }
.sg-timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--sg-brand), color-mix(in srgb, var(--sg-brand) 10%, transparent)); }
.sg-timeline > .sg-row { position: relative; }
.sg-timeline > .sg-row::before { content: ""; position: absolute; left: -25px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--sg-bg); border: 3px solid var(--sg-brand); box-shadow: 0 0 0 4px var(--sg-bg); }
.sg-timeline > .sg-row:first-child::before { background: var(--sg-brand); }

/* App-install banner: phones / tablets only */
@media (min-width: 900px), (hover: hover) and (pointer: fine) { .sg-install { display: none !important; } }
@media (min-width: 1024px) { .sg-cine__body .sg-meta, .sg-cine__body .sg-meta * { color: rgba(255, 255, 255, .88) !important; } .sg-cine__queue { -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); padding-bottom: 24px; } }
@media (min-width: 900px) { .sg-hero--carousel .sg-hs__body .sg-meta, .sg-hero--carousel .sg-hs__body .sg-meta * { color: rgba(255, 255, 255, .88) !important; } }
.sg-mo--0 .sg-meta, .sg-mo--0 .sg-meta * { color: rgba(255, 255, 255, .88) !important; }
/* Top 10: number beside the image, text below both */
.sg-top10__item a { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: end; row-gap: 10px; }
.sg-top10__card { display: contents; }
.sg-top10__n { grid-area: 1 / 1; align-self: end; margin-bottom: -6px; }
.sg-top10__img { grid-area: 1 / 2; }
.sg-top10__txt { grid-area: 2 / 1 / 3 / 3; padding-left: 30px; }
.sg-top10__n { font-size: 8.8rem; margin-right: -16px; padding-left: 4px; -webkit-text-stroke: 3px color-mix(in srgb, var(--sg-text) 55%, transparent); letter-spacing: -.04em; }
.sg-top10__item:first-child .sg-top10__n { -webkit-text-stroke-color: var(--sg-brand); }
.sg-top10__img { z-index: 1; }
.sg-top10__txt { padding-left: 44px; }
@media (min-width: 900px) { .sg-top10__n { font-size: 10rem; } }

/* ==========================================================================
   v1.4 — Author profile
   ========================================================================== */
.sg-author { padding-bottom: 30px; }
.sg-author__hero { position: relative; }
.sg-author__cover { position: relative; height: 150px; margin: 12px var(--sg-pad) 0; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 85% 62%), transparent 55%), radial-gradient(120% 120% at 100% 100%, hsl(calc(var(--h) + 60) 80% 55%), transparent 55%), linear-gradient(135deg, hsl(calc(var(--h) + 20) 70% 35%), hsl(calc(var(--h) + 100) 60% 25%)); background-size: cover; background-position: center; isolation: isolate; }
.sg-author__cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .35)); }
.sg-author__cover i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); filter: blur(2px); animation: sg-float 9s ease-in-out infinite; }
.sg-author__cover i:nth-child(1) { width: 120px; height: 120px; right: 12%; top: -30px; }
.sg-author__cover i:nth-child(2) { width: 70px; height: 70px; left: 18%; bottom: -20px; animation-delay: -4s; }
.sg-author__cover.has-img i { display: none; }
.sg-author__head { position: relative; display: grid; justify-items: center; text-align: center; gap: 12px; margin-top: -58px; }
.sg-author__av { position: relative; width: 116px; height: 116px; border-radius: 50%; padding: 4px; background: var(--sg-bg); box-shadow: var(--sg-shadow-lg); }
.sg-author__av.is-verified { background: conic-gradient(from 210deg, #3b82f6, #22d3ee, #a855f7, #3b82f6); padding: 4px; }
.sg-author__av img { width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover; display: block; border: 3px solid var(--sg-bg); }
.sg-author__tick { position: absolute; right: 2px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sg-bg); color: #1d9bf0; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.sg-author__tick .sg-i { width: 26px; height: 26px; }
.sg-author__id { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.sg-author__id h1 { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 800 clamp(1.6rem, 6vw, 2.4rem)/1.15 var(--sg-display); letter-spacing: -.01em; }
.sg-verified--lg .sg-i { width: 26px !important; height: 26px !important; }
.sg-author__role { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--sg-muted); font-weight: 500; }
.sg-author__role i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.sg-author__role span { display: inline-flex; align-items: center; gap: 4px; }
.sg-author__role .sg-i { width: 15px; height: 15px; }
.sg-author__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 2px; }
.sg-author__pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--sg-surface-2); color: var(--sg-text); font: 600 .76rem var(--sg-font); }
.sg-author__pill .sg-i { width: 14px; height: 14px; }
.sg-author__pill--v { background: color-mix(in srgb, #1d9bf0 14%, var(--sg-surface)); color: #1d9bf0; }
.sg-author__acts { display: flex; align-items: center; gap: 8px; }
.sg-author__share { border: 1px solid var(--sg-line); }
.sg-author__body { display: grid; gap: 22px; margin-top: 22px; }
.sg-author__side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sg-author__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 14px 6px; border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); }
.sg-author__stats > div { display: grid; justify-items: center; gap: 2px; position: relative; }
.sg-author__stats > div + div::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--sg-line); }
.sg-author__stats dd { margin: 0; font: 800 1.3rem/1.1 var(--sg-display); font-variant-numeric: tabular-nums; }
.sg-author__stats dt { color: var(--sg-muted); font-size: .74rem; font-weight: 500; }
.sg-author__card { padding: 18px; border-radius: 22px; background: var(--sg-surface); border: 1px solid var(--sg-line); }
.sg-author__card h2 { margin: 0 0 8px; font: 700 1rem var(--sg-display); }
.sg-author__card h3 { margin: 16px 0 10px; font: 650 .82rem var(--sg-font); color: var(--sg-muted); text-transform: uppercase; letter-spacing: .08em; }
.sg-author__bio { margin: 0; line-height: 1.75; color: var(--sg-text); }
.sg-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-socials__a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--sg-surface-2); color: var(--sg-text); text-decoration: none; transition: transform .2s var(--sg-spring), background .2s, color .2s; }
.sg-socials__a:hover { transform: translateY(-2px); color: #fff; }
.sg-socials__a .sg-i { width: 19px; height: 19px; }
.sg-socials__a--facebook:hover { background: #1877f2; } .sg-socials__a--instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .sg-socials__a--youtube:hover { background: #ff0000; } .sg-socials__a--tiktok:hover { background: #111; } .sg-socials__a--x:hover { background: #000; } .sg-socials__a--linkedin:hover { background: #0a66c2; } .sg-socials__a--website:hover { background: var(--sg-brand); }
.sg-socials--list { display: grid; gap: 6px; }
.sg-socials--list .sg-socials__a { width: auto; height: 46px; display: flex; justify-content: flex-start; gap: 12px; padding: 0 14px; font: 600 .92rem var(--sg-font); }
.sg-socials--list .sg-socials__a::after { content: "↗"; margin-left: auto; opacity: .5; }
.sg-socials--sm .sg-socials__a { width: 32px; height: 32px; border-radius: 10px; }
.sg-socials--sm .sg-socials__a .sg-i { width: 16px; height: 16px; }
.sg-author__main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.sg-author__h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 750 1.15rem var(--sg-display); }
.sg-author__h .sg-i { color: #f97316; width: 20px; height: 20px; }
.sg-author__poprow { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.sg-author__poprow::-webkit-scrollbar { display: none; }
.sg-author__poprow > * { scroll-snap-align: start; }
.sg-author__tabs { position: sticky; top: calc(var(--sg-header-h) + 6px); z-index: 5; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 18px; background: var(--sg-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--sg-line); }
.sg-author__tabs::-webkit-scrollbar { display: none; }
.sg-author__tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 13px; color: var(--sg-muted); font: 650 .9rem var(--sg-font); text-decoration: none; transition: background .2s, color .2s; }
.sg-author__tabs a b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sg-surface-2); font-size: .74rem; text-align: center; }
.sg-author__tabs a:hover { color: var(--sg-text); }
.sg-author__tabs a.is-on { background: var(--sg-text); color: var(--sg-bg); }
.sg-author__tabs a.is-on b { background: rgba(255, 255, 255, .2); }
.sg-authorcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.sg-authorcard__more { display: inline-flex; align-items: center; gap: 4px; font: 650 .86rem var(--sg-font); color: var(--sg-brand); text-decoration: none; }
.sg-authorcard__more .sg-i { width: 15px; height: 15px; }
@media (min-width: 900px) {
	.sg-author__cover { height: 260px; margin-top: 18px; border-radius: 32px; margin-inline: max(var(--sg-pad), calc((100% - var(--sg-wrap)) / 2 + var(--sg-pad))); }
	.sg-author__head { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: end; gap: 22px; margin-top: -66px; padding-inline: calc(var(--sg-pad) + 26px); }
	.sg-author__av { width: 148px; height: 148px; }
	.sg-author__id { justify-items: start; padding-bottom: 6px; }
	.sg-author__role, .sg-author__pills { justify-content: flex-start; }
	.sg-author__acts { padding-bottom: 10px; }
	.sg-author__body { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; margin-top: 30px; }
	.sg-author__side { position: sticky; top: calc(var(--sg-header-h) + 16px); }
	.sg-author__poprow { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	.sg-author__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 1200px) { .sg-author__grid { grid-template-columns: repeat(3, 1fr) !important; } }
.sg-author__body { grid-template-columns: minmax(0, 1fr); }
.sg-author__main > * { min-width: 0; }
.sg-author__head { margin-top: 0; }
.sg-author__av { margin-top: -58px; }
@media (min-width: 900px) {
	.sg-author__body { grid-template-columns: 340px minmax(0, 1fr); }
	.sg-author__head { margin-top: 0; align-items: start; padding-top: 0; }
	.sg-author__av { margin-top: -74px; }
	.sg-author__id { padding-top: 14px; }
	.sg-author__acts { padding-top: 18px; }
}
.sg-author__stats dd { font-size: 1.15rem; white-space: nowrap; }
@media (min-width: 900px) { .sg-author__stats dd { font-size: 1.05rem; } }

/* v1.5 — premium verified badge (always blue rosette, white tick; readable on any background) */
.sg-verified { color: #1d9bf0 !important; display: inline-flex; align-items: center; vertical-align: middle; flex: none; }
.sg-verified .sg-i { width: 1.05em !important; height: 1.05em !important; filter: drop-shadow(0 1px 1.5px rgba(29, 155, 240, .35)); }
.sg-verified .sg-i path:last-child { stroke: #fff !important; }
:is(.sg-feature, .sg-cine__body, .sg-hs__body, .sg-mo, .sg-podium, .sg-reel, .sgc-hero, .sg-sv, .sg-lb) .sg-verified .sg-i { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.sg-meta__author { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 999px; transition: opacity .2s; }
.sg-meta__author:hover .sg-meta__by { text-decoration: underline; text-underline-offset: 3px; }
.sg-meta__author:focus-visible { outline: 2px solid var(--sg-brand); outline-offset: 2px; }

/* v1.5 — Up next (single): balanced horizontal card */
.sg-nextup { display: grid; gap: 0; margin-top: 34px; margin-bottom: 8px; padding: 0; border-radius: 26px; overflow: hidden; background: var(--sg-surface); border: 1px solid var(--sg-line); box-shadow: var(--sg-shadow); max-width: min(var(--sg-wrap), 1100px); }
.sg-nextup.sg-wrap { padding-inline: 0; margin-inline: var(--sg-pad); }
.sg-nextup__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sg-surface-2); }
.sg-nextup__media > img, .sg-nextup__media > .sg-ph, .sg-nextup__media > video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--sg-ease); }
.sg-nextup:hover .sg-nextup__media > img { transform: scale(1.04); }
.sg-nextup__body { display: grid; gap: 10px; align-content: center; padding: 18px 18px 20px; min-width: 0; }
.sg-nextup__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--sg-brand); font: 700 .74rem var(--sg-font); letter-spacing: .12em; text-transform: uppercase; }
.sg-nextup__kicker i { width: 22px; height: 2px; border-radius: 2px; background: var(--sg-grad); }
.sg-nextup__title { margin: 0; font: 800 clamp(1.2rem, 4.6vw, 1.75rem)/1.25 var(--sg-display); }
.sg-nextup__title a { color: inherit; text-decoration: none; }
.sg-nextup__title a:hover { color: var(--sg-brand); }
.sg-nextup__dek { margin: 0; color: var(--sg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-nextup__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sg-nextup__cta { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sg-grad); color: #fff; font: 700 .88rem var(--sg-font); text-decoration: none; box-shadow: 0 10px 20px -12px var(--sg-brand); transition: transform .2s var(--sg-spring); }
.sg-nextup__cta:hover { transform: translateX(3px); color: #fff; }
.sg-nextup__cta .sg-i { width: 16px; height: 16px; }
@media (min-width: 760px) {
	.sg-nextup { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.sg-nextup__media { aspect-ratio: auto; min-height: 100%; }
	.sg-nextup__body { padding: 28px 32px; }
}
@media (min-width: 1140px) { .sg-nextup.sg-wrap { margin-inline: auto; } }
@media (min-width: 760px) { .sg-nextup { align-items: center; } .sg-nextup__media { aspect-ratio: 16 / 9; min-height: 0; align-self: stretch; } }
html.sg-focus .sg-nextup { display: none; }
.sg-cine__body .sg-meta .sg-verified, .sg-hs__body .sg-meta .sg-verified, .sg-mo--0 .sg-meta .sg-verified, .sg-feature .sg-meta .sg-verified, .sg-meta .sg-verified, .sg-meta * .sg-verified { color: #1d9bf0 !important; }
.sg-cine__body .sg-meta .sg-verified, .sg-cine__body .sg-meta .sg-verified *, .sg-hs__body .sg-meta .sg-verified, .sg-hs__body .sg-meta .sg-verified *, .sg-mo--0 .sg-meta .sg-verified, .sg-mo--0 .sg-meta .sg-verified *, .sg-feature .sg-meta .sg-verified *, .sg-meta .sg-verified * { color: #1d9bf0 !important; }

/* Translation note on English articles */
.sg-trnote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 1.4em; padding: 10px 14px; border-radius: 14px; background: var(--sg-surface-2); border: 1px solid var(--sg-line); font: 500 .84rem/1.4 var(--sg-font); color: var(--sg-muted); }
.sg-trnote span::before { content: "🌐"; margin-right: 6px; }
.sg-trnote a { margin-left: auto; font-weight: 600; color: var(--sg-brand); text-decoration: none; }
.sg-trnote--wait { background: color-mix(in srgb, #fbbf24 14%, var(--sg-surface)); }
.sg-trnote--wait span::before { content: "⏳"; }
html[lang="en"] .sg-top__search::before { content: "Search..."; }
