/* SuaraThic */
.sth {
	--sth-bg: #111114;
	--sth-surface: #1b1b20;
	--sth-surface-2: #26262d;
	--sth-line: rgba(255,255,255,.08);
	--sth-text: #f5f5f7;
	--sth-muted: #a1a1aa;
	--sth-free: #34d399;
	--sth-radius: 14px;
	color: var(--sth-text);
	font-family: inherit;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.sth--light {
	--sth-bg: #ffffff;
	--sth-surface: #f4f4f6;
	--sth-surface-2: #e9e9ee;
	--sth-line: rgba(0,0,0,.08);
	--sth-text: #16161a;
	--sth-muted: #6b6b76;
	--sth-free: #059669;
}
.sth:not(.sth-player) {
	background: var(--sth-bg);
	border-radius: 20px;
	padding: 24px;
	margin: 0 0 24px;
}
.sth *, .sth *::before, .sth *::after { box-sizing: border-box; }
.sth a { color: inherit; text-decoration: none; }
.sth button { font: inherit; color: inherit; cursor: pointer; }
.sth [hidden] { display: none !important; }
.sth-i { width: 1em; height: 1em; flex: none; }

/* Cover */
.sth-cover { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--sth-surface-2); aspect-ratio: 1/1; }
.sth-cover img, .sth-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sth-cover__ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: clamp(18px, 4vw, 42px); letter-spacing: .02em; color: #fff;
	background: linear-gradient(135deg, hsl(var(--h,20) 75% 52%), hsl(calc(var(--h,20) + 50) 70% 30%));
}

.sth-show__cover .sth-cover__ph { font-size: clamp(40px, 12vw, 72px); }
.sth-full__cover .sth-cover__ph { font-size: 80px; }
.sth-card__cover .sth-cover__ph { font-size: clamp(28px, 7vw, 44px); }

/* Hero & sections */
.sth-hero { margin-bottom: 20px; }
.sth-hero__title { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--sth-text); line-height: 1.15; }
.sth-hero__intro { margin: 0; color: var(--sth-muted); max-width: 60ch; }
.sth-section { margin-bottom: 24px; }
.sth-section__title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--sth-text); }
.sth-empty { padding: 32px; text-align: center; color: var(--sth-muted); background: var(--sth-surface); border-radius: var(--sth-radius); }

/* Rail lanjutkan */
.sth-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.sth-resume {
	flex: 0 0 min(280px, 80%); display: flex; gap: 12px; align-items: center; text-align: left;
	background: var(--sth-surface); border: 1px solid var(--sth-line); border-radius: var(--sth-radius);
	padding: 10px; scroll-snap-align: start; transition: background .15s;
}
.sth-resume:hover { background: var(--sth-surface-2); }
.sth-resume__cover { width: 56px; flex: none; }
.sth-resume__icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; }
.sth-resume__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.sth-resume__show { font-size: 12px; color: var(--sth-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sth-resume__ep { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress bar */
.sth-bar { display: block; height: 3px; border-radius: 3px; background: var(--sth-surface-2); overflow: hidden; margin-top: 6px; }
.sth-bar span { display: block; height: 100%; background: var(--sth-brand); border-radius: 3px; }

/* Filters */
.sth-filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; scrollbar-width: none; }
.sth-filters::-webkit-scrollbar { display: none; }
.sth-chip {
	flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sth-line);
	background: var(--sth-surface); font-size: 13px; font-weight: 600; transition: all .15s;
}
.sth-chip:hover { background: var(--sth-surface-2); }
.sth-chip.is-active { background: var(--sth-text); color: var(--sth-bg); border-color: var(--sth-text); }

/* Grid */
.sth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.sth-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sth-card__cover { margin-bottom: 8px; transition: transform .2s; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.sth-card:hover .sth-card__cover { transform: translateY(-3px); }
.sth-card__cover .sth-badge { position: absolute; top: 8px; left: 8px; }
.sth-card__type { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sth-brand); }
.sth-card__title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sth-card__author, .sth-card__meta { font-size: 12.5px; color: var(--sth-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sth-owned { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--sth-free); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* Badge */
.sth-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
	font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; white-space: nowrap;
}
.sth-badge--free { background: rgba(52,211,153,.15); color: var(--sth-free); }
.sth-card__cover .sth-badge--free { background: rgba(6,95,70,.9); color: #d1fae5; }
.sth-badge--premium, .sth-badge--lock { background: linear-gradient(135deg, #f7c948, #f59e0b); color: #3b2300; }
.sth-badge--lock .sth-i { font-size: 11px; }

/* Show page */
.sth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sth-muted); margin-bottom: 16px; }
.sth-back:hover { color: var(--sth-text); }
.sth-show { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: end; margin-bottom: 20px; }
.sth-show__cover { box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.sth-show__type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sth-brand); }
.sth-show__title { margin: 4px 0; font-size: clamp(22px, 4vw, 36px); line-height: 1.15; font-weight: 800; color: var(--sth-text); }
.sth-show__author { color: var(--sth-muted); margin-bottom: 8px; }
.sth-show__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--sth-muted); margin-bottom: 16px; }
.sth-show__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.sth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0;
	transition: transform .1s, filter .15s, background .15s; text-decoration: none; line-height: 1.2;
}
.sth-btn:active { transform: scale(.97); }
.sth-btn--primary { background: var(--sth-brand); color: #fff !important; }
.sth-btn--primary:hover { filter: brightness(1.08); }
.sth-btn--ghost { background: transparent; border: 1px solid var(--sth-line); color: var(--sth-text) !important; }
.sth-btn--ghost:hover { background: var(--sth-surface); }
.sth-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sth-free); }

.sth-desc { position: relative; color: var(--sth-muted); margin-bottom: 20px; max-width: 72ch; }
.sth-desc p { margin: 0 0 10px; }
.sth-desc.is-clamped:not(.is-open) { max-height: 110px; overflow: hidden; }
.sth-desc.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--sth-bg)); }
.sth-desc__more { position: absolute; bottom: 0; left: 0; z-index: 1; background: none; border: 0; padding: 0; font-weight: 700; color: var(--sth-text); }
.sth-desc.is-open .sth-desc__more { position: static; margin-top: 4px; }

/* Episodes */
.sth-eps { margin-top: 8px; }
.sth-ep { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--sth-line); }
.sth-ep:first-of-type { border-top: 0; }
.sth-ep.is-current .sth-ep__title { color: var(--sth-brand); }
.sth-ep.is-done .sth-ep__title { color: var(--sth-muted); }
.sth-ep__body { flex: 1; min-width: 0; }
.sth-ep__top { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--sth-muted); margin-bottom: 2px; }
.sth-ep__num { font-weight: 600; }
.sth-ep__title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.sth-ep__desc { font-size: 13.5px; color: var(--sth-muted); margin-top: 4px; }
.sth-ep__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--sth-muted); margin-top: 6px; }
.sth-done { display: inline-flex; align-items: center; gap: 4px; color: var(--sth-free); }
.sth-ep .sth-bar { max-width: 240px; }

/* Play button */
.sth-play {
	flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
	display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
	background: var(--sth-brand); color: #fff !important; transition: transform .1s, filter .15s;
}
.sth-play:hover { filter: brightness(1.1); }
.sth-play:active { transform: scale(.94); }
.sth-play .sth-i--pause { display: none; }
.sth-play.is-playing .sth-i--play { display: none; }
.sth-play.is-playing .sth-i--pause { display: block; }
.sth-play.is-loading { animation: sth-pulse 1s infinite; }
.sth-play.is-locked { background: var(--sth-surface-2); color: var(--sth-muted) !important; font-size: 17px; }
@keyframes sth-pulse { 50% { opacity: .5; } }
.sth-btn .sth-i--pause { display: none; }

/* CTA */
.sth-cta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 18px;
	border-radius: var(--sth-radius); border: 1px solid var(--sth-line);
	background: linear-gradient(135deg, color-mix(in srgb, var(--sth-brand) 18%, var(--sth-surface)), var(--sth-surface));
}
.sth-cta__txt { flex: 1 1 240px; display: flex; flex-direction: column; }
.sth-cta__txt span { color: var(--sth-muted); font-size: 14px; }

/* Embed satu episode */
.sth-embed { display: flex; gap: 14px; align-items: center; }
.sth-embed__cover { width: 76px; flex: none; }
.sth-embed__body { flex: 1; min-width: 0; }
.sth-embed__show { font-size: 12px; color: var(--sth-muted); }
.sth-embed__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.sth-embed__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sth-muted); margin-top: 4px; }
.sth-embed__play { width: 52px; height: 52px; font-size: 24px; }
.sth:has(.sth-embed) { padding: 16px; }

/* Member Area Digithic */
.sth:has(.sth-member) { padding: 12px; margin: 12px 0 0; border-radius: 14px; }
.sth-member__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sth-brand); margin-bottom: 8px; }
.sth-member__item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.sth-member__item:hover { background: var(--sth-surface); }
.sth-member__cover { width: 44px; flex: none; border-radius: 8px; }
.sth-member__txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.sth-member__txt span { font-size: 12.5px; color: var(--sth-muted); }

/* ============ Player ============ */
body.sth-has-player { padding-bottom: 76px; }
.sth-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; }
.sth-mini {
	position: relative; display: flex; align-items: center; gap: 6px;
	margin: 0 auto 10px; max-width: 760px; width: calc(100% - 20px);
	padding: 8px 8px 8px 8px; border-radius: 16px;
	background: color-mix(in srgb, var(--sth-surface) 92%, transparent);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--sth-line); box-shadow: 0 10px 40px rgba(0,0,0,.35); overflow: hidden;
}
.sth-player.is-toast-only .sth-mini { display: none; }
.sth-mini__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.sth-mini__bar span { display: block; height: 100%; width: 0; background: var(--sth-brand); }
.sth-mini__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; }
.sth-mini__cover { width: 44px; flex: none; border-radius: 8px; }
.sth-mini__cover .sth-cover__ph { font-size: 15px; }
.sth-mini__txt { min-width: 0; display: flex; flex-direction: column; }
.sth-mini__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sth-mini__show { font-size: 12px; color: var(--sth-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sth-mini__btn { flex: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.sth-mini__btn svg { width: 24px; height: 24px; }
.sth-mini__btn:hover { background: var(--sth-surface-2); }
.sth-mini__pp { background: var(--sth-text); color: var(--sth-bg) !important; }
.sth-mini__pp:hover { background: var(--sth-text); filter: brightness(.9); }
.sth-mini__close svg { width: 18px; height: 18px; opacity: .6; }
.sth-player .sth-mini__pp svg + svg, .sth-player .sth-full__pp svg + svg { display: none; }
.sth-player.is-playing .sth-mini__pp svg:first-child, .sth-player.is-playing .sth-full__pp svg:first-child { display: none; }
.sth-player.is-playing .sth-mini__pp svg + svg, .sth-player.is-playing .sth-full__pp svg + svg { display: block; }

/* Susunan mini player (tampilan tertanam dan HP) */
.sth-mini__ctrl, .sth-mini__right { display: contents; }
.sth-o1 { order: 1; } .sth-o2 { order: 2; } .sth-o3 { order: 3; } .sth-o4 { order: 4; } .sth-o5 { order: 5; }
.sth-player .sth-app-only { display: none; }

/* Full player */
.sth-full {
	position: fixed; inset: 0; z-index: 99995; background: var(--sth-bg); color: var(--sth-text);
	transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); visibility: hidden;
	overflow-y: auto;
}
.sth-player.is-full .sth-full { transform: none; visibility: visible; }
.sth-full::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 55%;
	background: linear-gradient(180deg, color-mix(in srgb, var(--sth-brand) 35%, transparent), transparent);
	pointer-events: none;
}
.sth-full__inner { position: relative; max-width: 440px; margin: 0 auto; padding: 16px 20px 32px; display: flex; flex-direction: column; min-height: 100%; }
.sth-full__down { align-self: flex-start; width: 40px; height: 40px; border: 0; background: rgba(0,0,0,.15); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.sth-full__down svg { width: 26px; height: 26px; }
.sth-full__cover { width: min(100%, 340px); margin: 20px auto 24px; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.sth-full__show { font-size: 13px; color: var(--sth-muted); font-weight: 600; }
.sth-full__title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 2px 0 14px; }
.sth-full__preview { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(245,158,11,.14); color: #f7c948; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.sth-full__preview a { color: #3b2300; background: #f7c948; padding: 4px 10px; border-radius: 999px; }

.sth-seek {
	-webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; margin: 6px 0;
	background: linear-gradient(to right, var(--sth-brand) var(--p, 0%), var(--sth-surface-2) var(--p, 0%));
	outline: none;
}
.sth-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--sth-text); border: 0; }
.sth-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sth-text); border: 0; }
.sth-full__time { display: flex; justify-content: space-between; font-size: 12px; color: var(--sth-muted); font-variant-numeric: tabular-nums; }
.sth-full__ctrl { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 20px; }
.sth-full__btn { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.sth-full__btn svg { width: 30px; height: 30px; }
.sth-full__btn:disabled { opacity: .3; cursor: default; }
.sth-full__pp { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--sth-text); color: var(--sth-bg) !important; display: inline-flex; align-items: center; justify-content: center; }
.sth-full__pp svg { width: 34px; height: 34px; }
.sth-full__speed { min-width: 48px; height: 32px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--sth-line); background: var(--sth-surface); font-weight: 700; font-size: 13px; }
.sth-full__extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.sth-full__sleep { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sth-line); background: var(--sth-surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.sth-full__sleep svg { width: 16px; height: 16px; }
.sth-full__link { font-size: 13px; font-weight: 600; color: var(--sth-muted) !important; text-decoration: underline !important; }
html.sth-lock, html.sth-lock body { overflow: hidden; }

/* Toast */
.sth-toast {
	position: absolute; bottom: calc(100% + 0px); left: 50%; transform: translateX(-50%);
	width: min(520px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px;
	padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--sth-text); color: var(--sth-bg);
	font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); margin-bottom: 8px;
}
.sth-player.is-toast-only .sth-toast { bottom: 10px; position: absolute; }
.sth-toast span { flex: 1; }
.sth-toast a { flex: none; background: var(--sth-brand); color: #fff !important; font-weight: 700; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.sth-toast button { flex: none; background: none; border: 0; font-size: 20px; line-height: 1; opacity: .6; color: inherit; }

@media (max-width: 640px) {
	.sth:not(.sth-player) { padding: 16px; border-radius: 16px; }
	.sth-show { grid-template-columns: 1fr; gap: 16px; align-items: start; }
	.sth-show__cover { width: 64%; max-width: 260px; margin: 0 auto; }
	.sth-show__info { text-align: center; }
	.sth-show__meta, .sth-show__actions { justify-content: center; }
	.sth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.sth-hide-sm { display: none !important; }
	.sth-ep { gap: 12px; }
	.sth-play { width: 40px; height: 40px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.sth-full, .sth-card__cover { transition: none; }
}

/* Pendengar live + jumlah putar */
.sth-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--sth-muted); margin: -6px 0 16px; min-height: 20px; }
.sth-live:empty { display: none; }
.sth-live__now { display: inline-flex; align-items: center; gap: 8px; color: var(--sth-text); font-weight: 600; }
.sth-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: sth-live 1.6s infinite; flex: none; }
@keyframes sth-live { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.sth-live__faces { display: inline-flex; }
.sth-live__faces img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--sth-bg); margin-left: -8px; object-fit: cover; background: var(--sth-surface-2); }
.sth-live__faces img:first-child { margin-left: 0; }
.sth-live__plays::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; margin-right: 10px; vertical-align: middle; }
.sth-live__plays:first-child::before { display: none; }
.sth-plays { display: inline-flex; align-items: center; gap: 3px; }
.sth-plays .sth-i { width: 11px; height: 11px; }
.sth-full__live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--sth-muted); margin: -6px 0 14px; }
.sth-full__live .sth-live__faces img { border-color: var(--sth-bg); }
@media (max-width: 640px) { .sth-show__info .sth-live { justify-content: center; } }
