/*
 * LeanPlugins demo mockup styles.
 * Ported from .superpowers/brainstorm/21980-1779783463/content/site-mockup.html.
 * Three port-time changes vs the source mockup:
 *   1. .page { display:none } toggle rules removed (pages are real URLs).
 *   2. External picsum/unsplash images replaced with local assets/img/poster.jpg.
 *   3. Admin-bar offset rule added at the end.
 */

:root {
	--bg: #ffffff;
	--fg: #0f172a;
	--muted: #64748b;
	--line: #e2e8f0;
	--soft: #f8fafc;
	--brand: #3858e9;
	--brand-2: #2d47ba;
	--brand-soft: #eef1fd;
	--accent: var(--brand);
	--accent-2: var(--brand-2);
	--pro: #f59e0b;
	--pro-bg: #fef3c7;
	--info-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Inter", system-ui, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.5; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.site-header { border-bottom: 1px solid var(--line); padding: 18px 0; position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); z-index: 10; transition: transform .25s ease; }
.site-header.header-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: -.01em; cursor: pointer; color: var(--fg); text-decoration: none; }
.logo .dot { color: var(--accent); }
.logo-wrap { display: inline-flex; align-items: center; gap: 9px; }
.demo-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a { color: var(--muted); text-decoration: none; cursor: pointer; }
.nav a.active { color: var(--brand) !important; font-weight: 600; }
.nav a:hover { color: var(--fg) !important; }
.cta-pill, .cta-pill:hover { background: linear-gradient(135deg, #3858e9, #9a2ecb); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.logo { white-space: nowrap; }

/* Header responsive */
@media (max-width: 600px) {
	.site-header { padding: 12px 0; }
	.site-header .container { gap: 12px; }
	.logo { font-size: 15px; }
	.nav { gap: 16px; font-size: 13px; }
	.cta-pill, .cta-pill:hover { padding: 8px 14px; font-size: 12px; }
}
@media (max-width: 440px) {
	.site-header .container { flex-wrap: wrap; row-gap: 12px; }
	.logo { order: 1; }
	.cta-pill { order: 2; }
	.nav { order: 3; width: 100%; justify-content: center; gap: 24px; }
}

/* === Hero === */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; }
.btn-primary { background: var(--brand); color: #fff; padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; transition: background .15s ease; }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-2); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--fg); padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.btn-ghost:hover, .btn-ghost:focus { color: var(--fg) !important; border-color: var(--fg); background: transparent; }
.btn-pro, .btn-pro:hover, .btn-pro:focus { background: linear-gradient(135deg, #3858e9, #9a2ecb); color: #fff !important; padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; }
.hero-meta { display: flex; gap: 24px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero-meta .item { display: flex; align-items: center; gap: 6px; }
.hero-meta .check { color: var(--accent-2); }

/* Hero player. Real [lean_player] renders inside; the frame (shape + shadow) is
   applied to the player wrap so the caption below it is not clipped. */
.hero-player .lpl-player-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(15,23,42,.3); }
.hero-player-caption { display: block; margin-top: 8px; font-size: 12px; color: initial; margin-bottom: 0; text-align: center; }

/* CLS / aspect-ratio reservation now lives in the plugin (main.css reserves
   video.lpl-player--video at var(--lpl-ratio,16/9)), so the hero needs no
   wrap-level reservation here. */

/* === Showroom strip === */
.showroom { padding: 80px 0; }
.showroom .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.thumb { aspect-ratio: 16/10; border-radius: 10px; position: relative; overflow: hidden; cursor: pointer; transition: transform .2s; display: flex; align-items: center; justify-content: center; }
.thumb:hover { transform: translateY(-3px); }
.thumb .glyph { width: 46%; height: 46%; z-index: 1; pointer-events: none; }
.thumb .glyph .icn { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thumb .glyph .icn-solid { fill: #fff; }
.thumb .badge, .thumb .play-mini { z-index: 1; }
.thumb .badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 9px; padding: 3px 7px; border-radius: 999px; backdrop-filter: blur(8px); letter-spacing: .5px; text-transform: uppercase; }
.thumb .play-mini { position: absolute; bottom: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; }
.thumb .play-mini::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--fg); border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 1px; }
.t1 { background: linear-gradient(135deg, #7f1d1d, #dc2626); } /* YouTube */
.t2 { background: linear-gradient(135deg, #0e3a5f, #1aa1e0); } /* Vimeo */
.t3 { background: linear-gradient(135deg, #0e7490, #22d3ee); } /* MP4 */
.t4 { background: linear-gradient(135deg, #4c1d95, #9a2ecb); } /* Audio */
.t5 { background: linear-gradient(135deg, #1e3a8a, #3858e9); } /* Playlist */
.t6 { background: linear-gradient(135deg, #831843, #db2777); } /* Podcast */

/* === Galleries section === */
.galleries { padding: 80px 0 96px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: 18px; transition: all .2s; position: relative; overflow: hidden; cursor: pointer; }
.entry:hover { border-color: var(--fg); color: var(--fg) !important; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(15,23,42,.15); }
.entry h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.entry p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); margin-top: auto; }
.entry-count { font-size: 13px; color: var(--muted); }
.entry-count strong { color: var(--fg); font-weight: 600; }
.entry-arrow { font-size: 18px; }
.entry-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.entry-preview > div { aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; position: relative; }

/* === Mini-player tiles inside entry-preview === */
.mini { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mini-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--play-bg, rgba(255,255,255,.95)); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.mini-play::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--play-arrow, #0f172a); border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 2px; }
.mini-bar { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 14%; display: flex; align-items: center; gap: 4px; }
.mini-bar .mb-ic { width: 7px; height: 7px; border-radius: 1px; background: rgba(255,255,255,.85); flex: none; }
.mini-bar .mb-prog { flex: 1; height: 2px; background: rgba(255,255,255,.25); border-radius: 999px; position: relative; }
.mini-bar .mb-prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--mini-progress, 35%); background: var(--mini-accent, #fff); border-radius: 999px; }
.mini-bar .mb-time { font-size: 7px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; letter-spacing: .3px; }

.mini-quality { background: linear-gradient(135deg, #0f172a, #1e293b); --mini-accent: #fff; --mini-progress: 35%; }
.mini-quality .q-menu { position: absolute; right: 6%; bottom: 24%; background: rgba(15,23,42,.95); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 3px 0; font-size: 6px; color: #fff; min-width: 38%; box-shadow: 0 4px 12px rgba(0,0,0,.4); z-index: 2; }
.mini-quality .q-menu .q-row { padding: 2px 6px; display: flex; align-items: center; gap: 3px; }
.mini-quality .q-menu .q-row.active { background: rgba(255,255,255,.12); }
.mini-quality .q-menu .q-row .q-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); flex: none; opacity: 0; }
.mini-quality .q-menu .q-row.active .q-dot { opacity: 1; }
.mini-quality .q-gear { position: absolute; right: 6%; bottom: 8%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); z-index: 2; }

.mini-accent { background: linear-gradient(135deg, #1e1b4b, #312e81); --mini-accent: #3858e9; --mini-progress: 55%; --play-bg: #3858e9; --play-arrow: #fff; }
.mini-accent .ac-swatch { position: absolute; left: 6%; top: 8%; display: flex; gap: 2px; z-index: 2; }
.mini-accent .ac-swatch span { width: 6px; height: 6px; border-radius: 50%; }
.mini-accent .ac-swatch span:nth-child(1) { background: #3858e9; box-shadow: 0 0 0 1px #fff; }
.mini-accent .ac-swatch span:nth-child(2) { background: #ec4899; }
.mini-accent .ac-swatch span:nth-child(3) { background: #10b981; }

.mini-tooltip { background: linear-gradient(135deg, #0e7490, #0891b2); --mini-accent: #fff; --mini-progress: 48%; }
.mini-tooltip .tt-bubble { position: absolute; left: 48%; bottom: 26%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 6px; padding: 2px 4px; border-radius: 2px; font-variant-numeric: tabular-nums; letter-spacing: .2px; z-index: 2; }
.mini-tooltip .tt-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 3px solid #0f172a; }
.mini-tooltip .tt-cursor { position: absolute; left: 48%; bottom: 17%; width: 1.5px; height: 5px; background: #fff; opacity: .9; z-index: 2; }

.mini-fullscreen { background: linear-gradient(135deg, #0f172a, #000); --mini-accent: var(--brand); --mini-progress: 62%; }
.mini-fullscreen .fs-corners { position: absolute; inset: 8%; pointer-events: none; z-index: 2; }
.mini-fullscreen .fs-corners span { position: absolute; width: 8px; height: 8px; border: 1.5px solid rgba(255,255,255,.7); }
.mini-fullscreen .fs-corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.mini-fullscreen .fs-corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.mini-fullscreen .fs-corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.mini-fullscreen .fs-corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.mini-audio { display: flex; align-items: center; padding: 10%; }
.mini-audio .mini-play { position: static; transform: none; width: 18px; height: 18px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mini-audio .mini-play::before { border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; }
.mini-audio .a-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; margin-left: 8px; }
.mini-audio .a-title { font-size: 7px; color: #fff; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-audio .a-sub { font-size: 6px; color: rgba(255,255,255,.65); letter-spacing: .2px; }
.mini-audio .a-row { display: flex; align-items: center; gap: 6px; }
.mini-audio .a-prog { flex: 1; height: 2px; background: rgba(255,255,255,.25); border-radius: 999px; position: relative; }
.mini-audio .a-prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--mini-progress, 40%); background: var(--mini-accent, #fff); border-radius: 999px; }
.mini-audio .a-cover { width: 38%; aspect-ratio: 1; border-radius: 4px; flex: none; box-shadow: 0 4px 10px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.mini-audio .a-cover::before { content: "\266A"; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; }

.mini-art { background: linear-gradient(135deg, #7c2d12, #c2410c); --mini-accent: #fff; --mini-progress: 38%; }
.mini-art .a-cover { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.mini-default { background: linear-gradient(135deg, #064e3b, #047857); --mini-accent: #fff; --mini-progress: 55%; }
.mini-default .c-time { font-size: 6px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; flex: none; }
.mini-colorcustom { background: linear-gradient(135deg, #831843, #be185d); --mini-accent: #ec4899; --mini-progress: 48%; --play-bg: #ec4899; --play-arrow: #fff; }
.mini-colorcustom .a-cover { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.mini-bgimage { background: #0f172a; --mini-accent: #fff; --mini-progress: 62%; padding: 0; position: relative; align-items: stretch; }
.mini-bgimage::before { content: ""; position: absolute; inset: 0; background-image: url('../img/poster.jpg'); background-size: cover; background-position: center; }
.mini-bgimage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.35), rgba(15,23,42,.85)); }
.mini-bgimage .a-overlay { position: relative; z-index: 2; align-self: flex-end; width: 100%; padding: 10%; display: flex; align-items: center; gap: 8px; }
.mini-bgimage .a-overlay .a-stack { margin-left: 0; }

.mini-playlist { padding: 8%; display: flex; gap: 5%; }
.mini-playlist .pl-player { background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 3px; position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mini-playlist .pl-player .mini-play { position: static; transform: none; width: 18px; height: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mini-playlist .pl-player .mini-play::before { border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; }
.mini-playlist .pl-list { background: rgba(255,255,255,.92); border-radius: 3px; padding: 4px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mini-playlist .pl-item { display: flex; align-items: center; gap: 3px; padding: 2px 3px; border-radius: 2px; min-height: 12px; }
.mini-playlist .pl-item.active { background: var(--mini-accent, var(--brand)); }
.mini-playlist .pl-item.active .pl-title { color: #fff; }
.mini-playlist .pl-item.active .pl-thumb { box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.mini-playlist .pl-thumb { width: 10px; height: 10px; border-radius: 1px; background: linear-gradient(135deg, #64748b, #475569); flex: none; }
.mini-playlist .pl-thumb.t-a { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.mini-playlist .pl-thumb.t-b { background: linear-gradient(135deg, #ec4899, #be185d); }
.mini-playlist .pl-thumb.t-c { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.mini-playlist .pl-title { font-size: 5px; color: #0f172a; font-weight: 600; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mini-pl-right { background: linear-gradient(135deg, #0f172a, #1e293b); --mini-accent: var(--brand); }
.mini-pl-right .pl-list { width: 38%; flex: none; }
.mini-pl-left { background: linear-gradient(135deg, #064e3b, #047857); --mini-accent: #10b981; }
.mini-pl-left .pl-list { width: 38%; flex: none; order: -1; }
.mini-pl-bottom { background: linear-gradient(135deg, #1e1b4b, #312e81); --mini-accent: #a78bfa; flex-direction: column; }
.mini-pl-bottom .pl-list { flex-direction: row; height: 26%; flex: none; }
.mini-pl-bottom .pl-item { flex: 1; flex-direction: column; padding: 2px; gap: 2px; min-height: 0; }
.mini-pl-bottom .pl-thumb { width: 100%; height: 60%; }
.mini-pl-bottom .pl-title { display: none; }
.mini-pl-audio { background: linear-gradient(135deg, #7c2d12, #c2410c); --mini-accent: #f59e0b; flex-direction: column; gap: 4%; }
.mini-pl-audio .pl-now { background: rgba(255,255,255,.92); border-radius: 3px; padding: 4px; display: flex; align-items: center; gap: 4px; flex: none; }
.mini-pl-audio .pl-now .pl-thumb { width: 18px; height: 18px; }
.mini-pl-audio .pl-now .pl-now-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-pl-audio .pl-now .pl-now-title { font-size: 6px; color: #0f172a; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pl-audio .pl-now .pl-now-prog { height: 2px; background: rgba(15,23,42,.15); border-radius: 999px; position: relative; }
.mini-pl-audio .pl-now .pl-now-prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 42%; background: var(--mini-accent); border-radius: 999px; }
.mini-pl-audio .pl-now .mini-play { position: static; transform: none; width: 14px; height: 14px; box-shadow: none; }
.mini-pl-audio .pl-now .mini-play::before { border-left-width: 4px; border-top-width: 2.5px; border-bottom-width: 2.5px; }
.mini-pl-audio .pl-list { flex: 1; }

/* === Features grid === */
.features-section { padding: 96px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feature-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; background: #fff; position: relative; }
.feature-card .ficon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--brand); }
.feature-card .ficon svg { width: 22px; height: 22px; }
.feature-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.005em; color: var(--fg); }
.feature-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* === Final CTA === */
.final-cta { padding: 96px 0 120px; text-align: center; background: var(--soft); border-top: 1px solid var(--line); }
.final-cta h2 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; }
.final-cta p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

/* === Footer === */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--muted); text-align: center; }

/* === Gallery pages (page-head, sidebar, drawer, stage, player-frame) === */
.page-head { padding: 30px 0; text-align: center; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #6366f1; padding: 0; margin-bottom: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: #6366f1; text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { color: #4338ca; }
.breadcrumb .sep { color: #c7d2fe; }
.page-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 700; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 620px; }
.page-head .count-pill { display:inline-block; background:var(--soft); border:1px solid var(--line); border-radius:999px; padding:4px 12px; font-size:12px; color:var(--muted); margin-top:14px; }

.shell { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 16px 0 80px; align-items: start; }
.sidebar { position: sticky; top: 88px; }

.layout-switch { display: flex; gap: 6px; justify-content: center; padding: 16px 0 0; }
.layout-switch-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 500; transition: all .15s; }
.layout-switch-chip:hover { color: var(--fg); border-color: var(--fg); }
.layout-switch-chip.active { background: var(--fg); color: #fff; border-color: var(--fg); }

button.drawer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--fg); cursor: pointer; font-weight: 500; }
button.drawer-btn:hover,
button.drawer-btn:focus { background: #fff; color: var(--fg); border-color: var(--fg); box-shadow: none; }
button.drawer-btn .count { background: var(--fg); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 999px; }

.push-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.push-stage { min-width: 0; padding-bottom: 80px; }
.push-stage > .push-stage-body { padding-top: 16px; }

body { overflow-x: hidden; }
.app-shift { transition: margin .3s ease; }
body.drawer-no-transition .app-shift,
body.drawer-no-transition .site-header,
body.drawer-no-transition .edge-drawer { transition: none !important; }
@media (min-width: 769px) and (max-width: 1512px) {
	body.drawer-open .app-shift { margin-right: 280px; }
	body.drawer-open .site-header { margin-right: 280px; }
}

/* Mobile: drawer overlays content (no shift) like a regular off-canvas drawer. */
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; opacity: 0; transition: opacity .3s ease; }
@media (max-width: 768px) {
	body.drawer-open .app-shift,
	body.drawer-open .site-header { margin-right: 0; }
	body.drawer-open .drawer-backdrop { display: block; opacity: 1; }
}

/* The drawer is rendered only by gallery templates, so always display: block when present. */
.edge-drawer { display: block; position: fixed; top: 0; bottom: 0; width: 280px; background: #fff; padding: 24px 16px; overflow-y: auto; z-index: 60; transition: transform .3s ease; box-shadow: 0 0 40px -10px rgba(15,23,42,.15); }
@media (max-width: 768px) { .edge-drawer { width: min(86vw, 320px); } }
.edge-drawer.left { left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); }
.edge-drawer.right { right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
body.drawer-open .edge-drawer.left,
body.drawer-open .edge-drawer.right { transform: translateX(0); }
.edge-drawer-close { position: sticky; top: 0; display: flex; justify-content: flex-end; margin-bottom: 8px; }
.edge-drawer-close button[data-drawer-close] { width: 32px; height: 32px; min-width: 0; padding: 0; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted); box-shadow: none; transition: background .15s, color .15s, border-color .15s; }
.edge-drawer-close button[data-drawer-close]:hover { background: var(--soft); color: var(--fg); border-color: var(--fg); box-shadow: none; }
.edge-drawer-close button[data-drawer-close]:focus-visible { background: var(--soft); color: var(--fg); border-color: var(--fg); box-shadow: none; outline: none; }
.edge-drawer-close button[data-drawer-close]:focus:not(:focus-visible) { background: var(--soft); color: var(--muted); border-color: var(--line); box-shadow: none; outline: none; }

.side-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-group { margin-bottom: 22px; }
.side-group-title { font-size: 11px; font-weight: 600; color: var(--fg); margin-bottom: 8px; padding-left: 4px; letter-spacing: .02em; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--fg); transition: background .15s; text-decoration: none; }
.side-item:hover { background: var(--soft); color: var(--fg); }
.side-item.active { background: var(--fg); color: #fff; }
.side-item .num { font-size: 11px; color: var(--muted); min-width: 14px; font-variant-numeric: tabular-nums; }
.side-item.active .num { color: rgba(255,255,255,.55); }
.side-item .text { flex: 1; }

.side-cross-group { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-cross { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--brand); background: var(--brand-soft); text-decoration: none; transition: background .15s, color .15s; }
.side-cross:hover { background: var(--brand); color: #fff; }
.side-cross .text { flex: 1; }
.side-cross .arr { font-size: 14px; }

.stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stage-counter { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.stage-prev-next { display: flex; gap: 6px; }
.stage-nav-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg); text-decoration: none; }
.stage-nav-btn:hover { border-color: var(--fg); color: var(--fg); }

/* stage-top responsive: stack the counter above the controls on narrow screens */
@media (max-width: 560px) {
	.stage-top { flex-wrap: wrap; gap: 12px; }
	.stage-counter { width: 100%; }
	.stage-top > div:last-child { width: 100%; justify-content: space-between; }
	button.drawer-btn { flex: 1; justify-content: center; }
}

.stage-head { margin-bottom: 24px; }
.stage-head h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 10px; font-weight: 700; }
.stage-instruction { margin: 0; max-width: 640px; padding: 12px 16px 12px 42px; position: relative; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; background: var(--brand-soft); font-size: 15px; line-height: 1.55; color: #475569; }
.stage-instruction::before { content: ""; position: absolute; left: 16px; top: 14px; width: 17px; height: 17px; background-color: var(--brand); -webkit-mask: var(--info-icon) center / contain no-repeat; mask: var(--info-icon) center / contain no-repeat; }
.stage-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tag { padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.stage-tag.feat { background:#ecfdf5; border-color:#a7f3d0; color:#047857; }

.player-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 12px 32px -16px rgba(15,23,42,.12); margin-bottom: 32px; }
#page-audio .player-wrap { background: none; border: none; border-radius: 0; padding: 0; box-shadow: none; }

.stage-timestamps { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 24px; box-shadow: 0 8px 20px -14px rgba(15,23,42,.12); }
.stage-timestamps a.lpl-timestamp { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: var(--fg); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.stage-timestamps a.lpl-timestamp:last-child { border-bottom: none; }
.stage-timestamps a.lpl-timestamp:hover, .stage-timestamps a.lpl-timestamp:focus-visible { background: var(--brand-soft); }
.stage-timestamps a.lpl-timestamp:hover .ts-time, .stage-timestamps a.lpl-timestamp:focus-visible .ts-time { background: var(--brand); color: #fff; }
.stage-timestamps .ts-time { flex: none; min-width: 56px; text-align: center; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--brand); background: var(--brand-soft); padding: 4px 8px; border-radius: 6px; transition: background .15s ease, color .15s ease; }
.stage-timestamps .ts-label { flex: 1; font-weight: 500; }
.stage-timestamps a.lpl-timestamp::after { content: ""; width: 8px; height: 8px; flex: none; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); opacity: .5; }

.stage-snippet { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 32px; }
.stage-snippet-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stage-snippet pre { margin: 0; overflow-x: auto; }
.stage-snippet code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; color: var(--fg); white-space: pre; }
.lp-demo-multi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .lp-demo-multi { grid-template-columns: 1fr; } }

.lp-demo-missing { padding: 40px; text-align: center; color: var(--muted); }

/* === Showroom lightbox === */
.thumb { outline: none; }
.thumb:focus-visible { box-shadow: 0 0 0 3px var(--brand); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, .78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-shell { width: min(1000px, 100%); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.lightbox-dialog { width: 100%; background: #0f172a; border-radius: 16px; position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: -16px; right: -16px; width: 32px; height: 32px; border-radius: 50%; background: #0f172a; border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .15s, color .15s, border-color .15s; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); user-select: none; }
.lightbox-close:hover,
.lightbox-close:focus-visible { background: #0f172a; color: #fff; border-color: #fff; outline: none; }
.lightbox-stage { background-color: #0f172a; position: relative; overflow: hidden; }
.lightbox-stage[data-media="video"] { min-height: 200px; }
.lightbox-stage[data-media="video"]:empty { aspect-ratio: 16/9; background-image: url('../img/poster.jpg'); background-size: cover; background-position: center; }
.lightbox-stage:empty::after { content: ""; position: absolute; inset: 0; background: var(--stage-tint, linear-gradient(135deg, rgba(15,23,42,.6), rgba(30,41,59,.5))); mix-blend-mode: multiply; pointer-events: none; }
.lightbox-stage > .lp-demo-cache-item { width: 100%; }

/* Detached meta band. Sits below the dialog, visually distinct from the player. */
.lightbox-meta { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 12px 32px -16px rgba(0,0,0,.5); }
.lightbox-meta .lb-badge { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: #0f172a; background: #fff; padding: 4px 10px; border-radius: 999px; }
.lightbox-meta .lb-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* === Front page (hub) responsive === */
/* Tablet: stack hero, shrink showroom to 3 columns, galleries to 2 columns. */
@media (max-width: 980px) {
	.hero { padding: 56px 0 44px; }
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero p { max-width: none; }
	.hero h1 { font-size: 44px; }
	.strip { grid-template-columns: repeat(3, 1fr); }
	.entries { grid-template-columns: repeat(2, 1fr); }
	.showroom { padding: 56px 0; }
	.galleries { padding: 56px 0 64px; }
	.features-section { padding: 64px 0; }
	.final-cta { padding: 64px 0 88px; }
}

/* Phone: single-column everything, tighter type and spacing. */
@media (max-width: 560px) {
	.hero { padding: 40px 0 32px; }
	.hero h1 { font-size: 32px; }
	.hero p { font-size: 16px; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn-primary,
	.hero-actions .btn-ghost,
	.hero-actions .btn-pro { justify-content: center; text-align: center; }
	.hero-meta { flex-wrap: wrap; gap: 12px 20px; }
	.strip { grid-template-columns: repeat(2, 1fr); }
	.entries { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 28px; }
	.section-head h2 { font-size: 27px; }
	.section-head p { font-size: 15px; }
	.entry { padding: 22px; }
	.final-cta h2 { font-size: 30px; }
	.final-cta p { font-size: 15px; }
	.final-cta .hero-actions { align-items: stretch; }
}

/* === WordPress admin bar offset (port-time addition) === */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .edge-drawer { top: 32px; }
/* 600–782px: admin bar is still fixed but 46px tall. */
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .edge-drawer { top: 46px; }
}
/* ≤600px: WP switches #wpadminbar to position:absolute (it scrolls away), so a
   sticky element must NOT reserve space for it. Otherwise the sticky header is
   pushed down and its top gets clipped. */
@media (max-width: 600px) {
	body.admin-bar .site-header { top: 0; }
	body.admin-bar .edge-drawer { top: 0; }
}
