/* SoftIngenious Video Gallery — spotlight layout. No external fonts or libraries. */
.sivg {
	--sivg-primary: #0f5132;
	--sivg-accent: #e0a526;
	--sivg-ink: #1d241f;
	--sivg-muted: #4a524c;
	--sivg-ground: #f6f4ef;
	--sivg-card: #ffffff;
	--sivg-line: #e3e0d8;
	--sivg-sel: #fbf1d9;
	box-sizing: border-box;
	margin: 24px 0;
	padding: 24px;
	border-radius: 16px;
	background: var(--sivg-ground);
	color: var(--sivg-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	.sivg { --sivg-sel: color-mix(in srgb, var(--sivg-accent) 18%, #ffffff); }
}
.sivg *, .sivg *::before, .sivg *::after { box-sizing: border-box; }
.sivg img { max-width: 100%; border: 0; box-shadow: none; margin: 0; }
.sivg a { text-decoration: none; }

.sivg-head { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; }
.sivg-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b4423; }
.sivg .sivg-gtitle { margin: 0; padding: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; color: var(--sivg-primary); font-family: inherit; border: 0; }

.sivg-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sivg-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sivg-list { flex: 1 1 320px; min-width: 0; background: var(--sivg-card); border-radius: 14px; padding: 12px; }

/* stage */
.sivg-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #0b0f0c; }
@supports not (aspect-ratio: 16 / 9) { .sivg-stage { height: 0; padding-top: 56.25%; } }
.sivg-stage iframe, .sivg-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sivg-facade { display: block; cursor: pointer; }
.sivg-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sivg-facade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); transition: background .2s; }
.sivg-facade:hover::after { background: rgba(0, 0, 0, .05); }
.sivg-play {
	position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
	border-radius: 50%; background: var(--sivg-accent); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s;
}
.sivg-play svg { fill: #1d241f; margin-left: 4px; }
.sivg-facade:hover .sivg-play, .sivg-facade:focus-visible .sivg-play { transform: scale(1.08); }
.sivg-facade:focus-visible { outline: 4px solid var(--sivg-accent); outline-offset: -4px; }

/* info card */
.sivg-info { background: var(--sivg-card); border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.sivg .sivg-vtitle { margin: 0; padding: 0; font-family: inherit; font-size: 22px; line-height: 1.3; color: var(--sivg-ink); }
.sivg .sivg-meta { margin: 0; font-size: 15px; color: var(--sivg-muted); }
.sivg .sivg-desc { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: #333a35; white-space: pre-line; max-height: 9.6em; overflow: auto; }
.sivg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sivg .sivg-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sivg .sivg-btn-solid { background: var(--sivg-primary); color: #ffffff; border: 2px solid var(--sivg-primary); }
.sivg .sivg-btn-solid:hover { filter: brightness(1.12); color: #ffffff; }
.sivg .sivg-btn-line { border: 2px solid var(--sivg-primary); color: var(--sivg-primary); background: transparent; }
.sivg .sivg-btn-line:hover { background: var(--sivg-primary); color: #ffffff; }
.sivg .sivg-btn:focus-visible { outline: 3px solid var(--sivg-accent); outline-offset: 2px; }

/* playlist */
.sivg-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px 10px; border-bottom: 1px solid var(--sivg-line); margin-bottom: 6px; }
.sivg-list-label { font-weight: 700; }
.sivg-pos { font-size: 14px; color: var(--sivg-muted); }
.sivg .sivg-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 620px; overflow-y: auto; overscroll-behavior: contain; }
.sivg .sivg-items li { margin: 0; padding: 0; list-style: none; }
.sivg .sivg-items li::before { content: none; }
.sivg-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--sivg-ink); }
.sivg-item:hover { background: #f3f1ea; color: var(--sivg-ink); }
.sivg-item.is-active { background: var(--sivg-sel); }
.sivg-item:focus-visible { outline: 3px solid var(--sivg-primary); outline-offset: -3px; }
.sivg-thumb { position: relative; flex: 0 0 128px; height: 72px; border-radius: 8px; overflow: hidden; background: #24412f; }
.sivg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sivg-dur, .sivg-short { position: absolute; bottom: 4px; font-size: 11px; font-weight: 700; color: #ffffff; background: rgba(0, 0, 0, .78); padding: 1px 5px; border-radius: 3px; line-height: 1.4; }
.sivg-dur { right: 4px; }
.sivg-short { left: 4px; background: #b3261e; }
.sivg-item.is-active .sivg-thumb { box-shadow: 0 0 0 3px var(--sivg-accent); }
.sivg-itext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sivg-ititle { font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sivg-item.is-active .sivg-ititle { font-weight: 700; }
.sivg-imeta { font-size: 13px; color: var(--sivg-muted); }

/* phones */
@media (max-width: 600px) {
	.sivg { padding: 14px; border-radius: 12px; margin: 16px 0; }
	.sivg-info { padding: 16px; }
	.sivg .sivg-vtitle { font-size: 19px; }
	.sivg-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.sivg-thumb { flex-basis: 112px; height: 63px; }
	.sivg .sivg-items { max-height: 480px; }
	.sivg .sivg-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.sivg-play, .sivg-facade::after { transition: none; }
}
