/* Base structure (shared) */
.vmpb { color: #202124; background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.vmpb-tabs { display: flex; flex-wrap: wrap; margin: 0; }
.vmpb-tab { appearance: none; background: transparent; border: none; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 8px; }
.vmpb-tab-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; flex: 0 0 20px; }
.vmpb-tab-icon svg { width: 20px; height: 20px; display: block; }
.vmpb-tab-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }
.vmpb-tab-label { line-height: 1.25; }
.vmpb-panel[hidden] { display: none; }
.vmpb-tab[hidden] { display: none !important; }
/* v0.11: пока браузер проверяет доступность площадок */
.vmpb-checking .vmpb-tab { opacity: .45; pointer-events: none; }
.vmpb-checking .vmpb-embed .vmpb-poster, .vmpb-checking .vmpb-embed .vmpb-play { visibility: hidden; }
.vmpb-checking .vmpb-embed::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.25); border-top-color: rgba(255,255,255,.85); border-radius: 50%; animation: vmpb-spin .8s linear infinite; }
@keyframes vmpb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vmpb-checking .vmpb-embed::after { animation: none; } }
.vmpb-player-wrap { display: block; }
.vmpb-embed { position: relative; aspect-ratio: var(--vmpb-aspect, 16 / 9); width: 100%; background: #000; }
.vmpb-embed[data-ratio="9/16"] { max-width: 420px; margin: 0 auto; }
.vmpb-embed[data-ratio="1/1"] { max-width: 560px; margin: 0 auto; }
.vmpb-embed[data-ratio="4/3"] { max-width: 800px; margin: 0 auto; }
.vmpb-embed iframe, .vmpb-embed object, .vmpb-embed embed, .vmpb-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmpb-embed video { object-fit: contain; }
.vmpb-meta { padding: 16px 20px 20px; }
.vmpb-meta-title { font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.vmpb-meta-date { font-size: .85rem; margin-bottom: 8px; opacity: .8; }
.vmpb-meta-desc { font-size: .95rem; line-height: 1.55; }

/* 1. Material Design (Google) */
.vmpb.vmpb-style-material { --c:#1a73e8; --t:#202124; --m:#5f6368; --b:#dadce0; --s:#fff; border-radius:12px; box-shadow:0 1px 2px rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15); overflow:hidden; font-family:"Roboto","Google Sans",system-ui,sans-serif; }
.vmpb-style-material .vmpb-tabs { padding:0 8px; border-bottom:1px solid var(--b); background:var(--s); }
.vmpb-style-material .vmpb-tab { position:relative; padding:14px 16px 12px; color:var(--m); font-size:.875rem; font-weight:500; border-radius:8px 8px 0 0; transition:color .2s,background .2s; }
.vmpb-style-material .vmpb-tab::after { content:""; position:absolute; left:8px; right:8px; bottom:0; height:3px; border-radius:3px 3px 0 0; background:transparent; transition:background .2s; }
.vmpb-style-material .vmpb-tab:hover { color:var(--t); background:rgba(26,115,232,.04); }
.vmpb-style-material .vmpb-tab[aria-selected="true"] { color:var(--c); background:rgba(26,115,232,.08); }
.vmpb-style-material .vmpb-tab[aria-selected="true"]::after { background:var(--c); }
.vmpb-style-material .vmpb-meta { border-top:1px solid var(--b); }
.vmpb-style-material .vmpb-meta-title { font-weight:500; }

/* 2. Neomorphism (Soft UI) */
.vmpb.vmpb-style-neomorphism { --bg:#e0e5ec; --t:#31344b; --m:#6b7280; --c:#6d5dfc; background:var(--bg); border-radius:20px; box-shadow:9px 9px 16px #a3b1c6,-9px -9px 16px #ffffff; padding:14px; font-family:"Nunito","Segoe UI",system-ui,sans-serif; }
.vmpb-style-neomorphism .vmpb-tabs { gap:10px; padding:6px; border-bottom:none; background:transparent; }
.vmpb-style-neomorphism .vmpb-tab { padding:10px 16px; color:var(--m); border-radius:12px; background:var(--bg); box-shadow:5px 5px 10px #a3b1c6,-5px -5px 10px #ffffff; font-weight:600; transition:all .2s; }
.vmpb-style-neomorphism .vmpb-tab:hover { color:var(--t); }
.vmpb-style-neomorphism .vmpb-tab[aria-selected="true"] { color:var(--c); box-shadow:inset 4px 4px 8px #a3b1c6,inset -4px -4px 8px #ffffff; }
.vmpb-style-neomorphism .vmpb-panels { border-radius:16px; overflow:hidden; margin-top:12px; box-shadow:inset 4px 4px 8px #a3b1c6,inset -4px -4px 8px #ffffff; background:var(--bg); }
.vmpb-style-neomorphism .vmpb-meta { border-top:none; color:var(--t); }
.vmpb-style-neomorphism .vmpb-meta-desc { color:#4b5563; }

/* 3. Glassmorphism */
.vmpb.vmpb-style-glassmorphism { --c:#2563eb; --t:#0f172a; color:var(--t); border-radius:16px; overflow:hidden; background:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,.25)); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border:1px solid rgba(255,255,255,.5); box-shadow:0 8px 32px rgba(31,38,135,.18); }
.vmpb-style-glassmorphism .vmpb-tabs { padding:8px; gap:6px; background:rgba(255,255,255,.25); border-bottom:1px solid rgba(255,255,255,.35); }
.vmpb-style-glassmorphism .vmpb-tab { padding:10px 14px; border-radius:999px; color:#334155; font-weight:500; transition:all .2s; }
.vmpb-style-glassmorphism .vmpb-tab:hover { background:rgba(255,255,255,.45); }
.vmpb-style-glassmorphism .vmpb-tab[aria-selected="true"] { color:#fff; background:rgba(37,99,235,.75); box-shadow:0 4px 14px rgba(37,99,235,.35); }
.vmpb-style-glassmorphism .vmpb-meta { background:rgba(255,255,255,.35); border-top:1px solid rgba(255,255,255,.35); }

/* 4. Fluent (Microsoft) */
.vmpb.vmpb-style-fluent { --c:#0078d4; --t:#242424; --m:#616161; --b:#e0e0e0; background:#fff; border-radius:8px; border:1px solid var(--b); box-shadow:0 2px 4px rgba(0,0,0,.14),0 0 2px rgba(0,0,0,.12); overflow:hidden; font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif; }
.vmpb-style-fluent .vmpb-tabs { padding:0 4px; border-bottom:1px solid var(--b); background:#fafafa; }
.vmpb-style-fluent .vmpb-tab { margin:4px 2px 0; padding:10px 14px; color:var(--t); border-radius:4px 4px 0 0; font-weight:400; border-bottom:2px solid transparent; }
.vmpb-style-fluent .vmpb-tab:hover { background:#f0f0f0; }
.vmpb-style-fluent .vmpb-tab[aria-selected="true"] { color:var(--c); font-weight:600; border-bottom-color:var(--c); background:#fff; }
.vmpb-style-fluent .vmpb-meta { border-top:1px solid var(--b); }

/* 5. Cupertino (Apple) */
.vmpb.vmpb-style-cupertino { --c:#007aff; --t:#1c1c1e; --m:#8e8e93; --bg:#f2f2f7; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 0 0 0.5px rgba(0,0,0,.1),0 8px 24px rgba(0,0,0,.08); font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif; }
.vmpb-style-cupertino .vmpb-tabs { padding:6px; gap:4px; background:var(--bg); border-bottom:none; }
.vmpb-style-cupertino .vmpb-tab { flex:1 1 auto; justify-content:center; padding:8px 12px; border-radius:9px; color:var(--t); font-size:.85rem; font-weight:500; }
.vmpb-style-cupertino .vmpb-tab:hover { background:rgba(0,0,0,.04); }
.vmpb-style-cupertino .vmpb-tab[aria-selected="true"] { background:#fff; color:var(--t); box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04); }
.vmpb-style-cupertino .vmpb-meta { border-top:1px solid #e5e5ea; }
.vmpb-style-cupertino .vmpb-meta-title { font-weight:600; letter-spacing:-.01em; }

/* 6. Flat / Минимализм */
.vmpb.vmpb-style-flat { --c:#111827; --t:#111827; --m:#6b7280; --b:#e5e7eb; background:#fff; border:1px solid var(--b); border-radius:4px; box-shadow:none; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.vmpb-style-flat .vmpb-tabs { border-bottom:1px solid var(--b); }
.vmpb-style-flat .vmpb-tab { padding:12px 16px; color:var(--m); font-weight:500; border-bottom:2px solid transparent; margin-bottom:-1px; }
.vmpb-style-flat .vmpb-tab:hover { color:var(--t); background:#f9fafb; }
.vmpb-style-flat .vmpb-tab[aria-selected="true"] { color:var(--c); border-bottom-color:var(--c); background:transparent; }
.vmpb-style-flat .vmpb-panels { border-top:none; }
.vmpb-style-flat .vmpb-meta { border-top:1px solid var(--b); }

/* 7. Neubrutalism */
.vmpb.vmpb-style-neubrutalism { --c:#000; --acc:#ffde59; background:#fff; border:3px solid #000; border-radius:0; box-shadow:6px 6px 0 #000; font-family:"Inter","Arial Black",system-ui,sans-serif; }
.vmpb-style-neubrutalism .vmpb-tabs { gap:0; border-bottom:3px solid #000; background:#fff; }
.vmpb-style-neubrutalism .vmpb-tab { padding:12px 16px; color:#000; font-weight:700; border-right:3px solid #000; margin:0; text-transform:uppercase; font-size:.8rem; letter-spacing:.02em; }
.vmpb-style-neubrutalism .vmpb-tab:last-child { border-right:none; }
.vmpb-style-neubrutalism .vmpb-tab:hover { background:#f3f3f3; }
.vmpb-style-neubrutalism .vmpb-tab[aria-selected="true"] { background:var(--acc); }
.vmpb-style-neubrutalism .vmpb-panels { border-top:none; }
.vmpb-style-neubrutalism .vmpb-meta { border-top:3px solid #000; }
.vmpb-style-neubrutalism .vmpb-meta-title { font-weight:800; text-transform:uppercase; }

/* LazyLoad placeholder */
.vmpb-lazy { cursor: pointer; }
.vmpb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vmpb-poster-fallback { background: radial-gradient(ellipse at center, #374151 0%, #111827 100%); }
.vmpb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; padding: 0; border: none; border-radius: 14px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .18s ease, background-color .18s ease; z-index: 2; }
.vmpb-lazy:hover .vmpb-play, .vmpb-play:focus-visible { background: #e11d48; transform: translate(-50%, -50%) scale(1.05); }
.vmpb-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vmpb-play-icon { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 16px solid #fff; margin-left: 4px; display: block; }
.vmpb-lazy:hover .vmpb-poster { filter: brightness(.92); transition: filter .18s ease; }

/* CTA / partner action */
.vmpb-actions { padding: 14px 20px 18px; border-top: 1px solid rgba(0,0,0,.08); }
.vmpb-meta + .vmpb-actions { border-top: none; padding-top: 0; margin-top: -2px; }
.vmpb-cta { appearance: none; font: inherit; font-weight: 600; cursor: pointer; border: none; }
.vmpb-style-material .vmpb-actions { border-top-color: #dadce0; }
.vmpb-style-material .vmpb-cta { background: #1a73e8; color: #fff; padding: 10px 20px; border-radius: 999px; font-size: .875rem; font-weight: 500; box-shadow: 0 1px 2px rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15); transition: background .2s, box-shadow .2s; }
.vmpb-style-material .vmpb-cta:hover { background: #1557b0; box-shadow: 0 1px 3px rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15); }
.vmpb-style-neomorphism .vmpb-actions { border-top: none; }
.vmpb-style-neomorphism .vmpb-cta { background: #e0e5ec; color: #6d5dfc; padding: 10px 18px; border-radius: 12px; box-shadow: 5px 5px 10px #a3b1c6,-5px -5px 10px #fff; }
.vmpb-style-neomorphism .vmpb-cta:hover { box-shadow: inset 3px 3px 6px #a3b1c6,inset -3px -3px 6px #fff; }
.vmpb-style-glassmorphism .vmpb-actions { border-top-color: rgba(255,255,255,.35); }
.vmpb-style-glassmorphism .vmpb-cta { background: rgba(37,99,235,.8); color: #fff; padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(6px); }
.vmpb-style-fluent .vmpb-actions { border-top-color: #e0e0e0; }
.vmpb-style-fluent .vmpb-cta { background: #0078d4; color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 600; }
.vmpb-style-fluent .vmpb-cta:hover { background: #106ebe; }
.vmpb-style-cupertino .vmpb-actions { border-top-color: #e5e5ea; }
.vmpb-style-cupertino .vmpb-cta { background: #007aff; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.vmpb-style-flat .vmpb-actions { border-top-color: #e5e7eb; }
.vmpb-style-flat .vmpb-cta { background: #111827; color: #fff; padding: 10px 16px; border-radius: 4px; }
.vmpb-style-neubrutalism .vmpb-actions { border-top: 3px solid #000; }
.vmpb-style-neubrutalism .vmpb-cta { background: #ffde59; color: #000; padding: 10px 16px; border: 3px solid #000; box-shadow: 4px 4px 0 #000; font-weight: 800; text-transform: uppercase; }
.vmpb-style-neubrutalism .vmpb-cta:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }

/* Ad / announcement block */
.vmpb-ad { margin: 0 20px 18px; padding: 14px 16px; border-radius: 8px; font-size: .95rem; line-height: 1.5; }
.vmpb-ad-text { margin-bottom: 10px; }
.vmpb-ad-text:last-child { margin-bottom: 0; }
.vmpb-ad-btn { appearance: none; font: inherit; font-weight: 600; cursor: pointer; border: none; padding: 8px 14px; border-radius: 6px; }
.vmpb-style-material .vmpb-ad { background: #e8f0fe; color: #174ea6; border: 1px solid #d2e3fc; }
.vmpb-style-material .vmpb-ad-btn { background: #1a73e8; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.vmpb-style-neomorphism .vmpb-ad { margin: 12px 16px 16px; background: #e0e5ec; color: #31344b; border: none; box-shadow: inset 3px 3px 6px #a3b1c6,inset -3px -3px 6px #fff; border-radius: 12px; }
.vmpb-style-neomorphism .vmpb-ad-btn { background: #e0e5ec; color: #6d5dfc; border-radius: 10px; box-shadow: 4px 4px 8px #a3b1c6,-4px -4px 8px #fff; }
.vmpb-style-glassmorphism .vmpb-ad { background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); border-radius: 12px; }
.vmpb-style-glassmorphism .vmpb-ad-btn { background: rgba(37,99,235,.8); color: #fff; border-radius: 999px; }
.vmpb-style-fluent .vmpb-ad { background: #f5f5f5; border: 1px solid #e0e0e0; border-left: 4px solid #0078d4; border-radius: 4px; }
.vmpb-style-fluent .vmpb-ad-btn { background: #0078d4; color: #fff; border-radius: 4px; }
.vmpb-style-cupertino .vmpb-ad { background: #f2f2f7; border: none; border-radius: 12px; }
.vmpb-style-cupertino .vmpb-ad-btn { background: #007aff; color: #fff; border-radius: 999px; }
.vmpb-style-flat .vmpb-ad { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 4px; }
.vmpb-style-flat .vmpb-ad-btn { background: #111827; color: #fff; border-radius: 4px; }
.vmpb-style-neubrutalism .vmpb-ad { margin: 0 16px 16px; background: #a7f3d0; color: #000; border: 3px solid #000; border-radius: 0; box-shadow: 4px 4px 0 #000; font-weight: 600; }
.vmpb-style-neubrutalism .vmpb-ad-btn { background: #fff; color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; border-radius: 0; text-transform: uppercase; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .vmpb .vmpb-tab, .vmpb .vmpb-tab::after { transition: none !important; }
}