.fcm-app{max-width:1180px;margin:26px auto;padding:0 18px;font-family:Arial,Helvetica,sans-serif;color:#111827}
.fcm-gallery-view{width:100%}.fcm-frame-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;margin:0}
.fcm-frame-card{appearance:none;border:1px solid #e5e7eb;background:#fff;padding:0;border-radius:18px;cursor:pointer;overflow:hidden;text-align:left;box-shadow:0 6px 22px rgba(15,23,42,.07);transition:transform .2s,box-shadow .2s,border-color .2s}
.fcm-frame-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,23,42,.12);border-color:#d1d5db}
.fcm-frame-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f8fafc}
.fcm-frame-card span{display:block;padding:14px 16px 16px;font-size:16px;line-height:1.25;font-weight:800;color:#111827}
.fcm-campaign-view{max-width:920px;margin:0 auto}.fcm-back{border:0;background:transparent;padding:0;margin:0 0 20px;color:#4b5563;font-weight:700;cursor:pointer;font-size:14px}
.fcm-campaign-head{margin-bottom:26px}.fcm-eyebrow{font-size:13px;letter-spacing:.07em;color:#6b7280;margin-bottom:3px}.fcm-campaign-head h1{font-size:34px;line-height:1.08;margin:0 0 10px;font-weight:900;letter-spacing:-.03em;text-transform:uppercase;max-width:760px}
.fcm-campaign-head>p{font-size:17px;color:#6b7280;margin:0 0 18px;line-height:1.45}.fcm-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.fcm-action{height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;color:#111827;font-size:15px;font-weight:700;padding:0 26px;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.fcm-action-primary{background:#007a78;border-color:#007a78;color:#fff;min-width:190px;position:relative;overflow:hidden}
.fcm-action-primary input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;opacity:0!important;cursor:pointer!important;z-index:3!important;font-size:100px!important}
.fcm-action-primary span{position:relative;z-index:2;pointer-events:none}.fcm-action-ghost{border-color:transparent;box-shadow:none;padding-left:20px;padding-right:20px}
.fcm-caption-box{border:1px solid #d8dee7;border-radius:16px;padding:14px 16px;background:#fff}.fcm-caption-box strong{display:block;font-size:14px;margin-bottom:6px}.fcm-caption-box p{margin:0;color:#4b5563;font-size:15px;line-height:1.45}
.fcm-editor{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;box-shadow:0 10px 32px rgba(0,0,0,.06)}.fcm-editor-title{font-size:19px;font-weight:800;margin:0 0 14px}
.fcm-canvas-wrap{display:flex;justify-content:center;background:#eef1f4;border-radius:16px;padding:12px;overflow:hidden}#fcm-canvas{display:block;width:min(100%,720px);max-width:100%;height:auto;aspect-ratio:1/1;background:#fff;touch-action:none;border-radius:0;box-sizing:border-box}
.fcm-toolbar{display:flex;gap:14px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.fcm-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;width:100%}.fcm-controls label{display:flex;align-items:center;gap:8px;font-weight:700;margin-right:auto}.fcm-controls input[type=range]{width:180px}
.fcm-btn{border:0;border-radius:10px;padding:12px 16px;font-weight:800;cursor:pointer;background:#f1f5f9;color:#111827}.fcm-btn-primary{background:#111827;color:#fff}.fcm-help{text-align:center;color:#6b7280;font-size:14px;margin:12px 0 0}
.fcm-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#111827;color:#fff;padding:10px 16px;border-radius:10px;font-weight:700;z-index:99999;box-shadow:0 8px 24px rgba(0,0,0,.25)}
@media(max-width:700px){.fcm-app{padding:0 12px;margin-top:18px}.fcm-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fcm-frame-card span{font-size:14px;padding:11px}.fcm-campaign-head h1{font-size:28px}.fcm-actions{display:grid;grid-template-columns:1fr 1fr}.fcm-action{width:100%;padding:0 14px}.fcm-action-primary{grid-column:1/-1}.fcm-action-ghost{border:1px solid #cbd5e1;box-shadow:0 1px 2px rgba(15,23,42,.05)}.fcm-controls label{width:100%;margin:0}.fcm-controls input[type=range]{flex:1}.fcm-btn{flex:1}.fcm-editor{padding:12px}}


/* Página exclusiva FC Molduras: remove elementos editoriais do tema */
body.fcm-clean-page .widget-area,
body.fcm-clean-page #secondary,
body.fcm-clean-page .sidebar,
body.fcm-clean-page aside:not(.fcm-share-side),
body.fcm-clean-page .sidebar-container,
body.fcm-clean-page .right-sidebar,
body.fcm-clean-page .left-sidebar,
body.fcm-clean-page .site-sidebar,
body.fcm-clean-page .search-form,
body.fcm-clean-page .widget_search,
body.fcm-clean-page .widget_categories,
body.fcm-clean-page .widget_recent_entries,
body.fcm-clean-page .widget_popular_posts,
body.fcm-clean-page .popular-posts,
body.fcm-clean-page .mais-lidas,
body.fcm-clean-page .most-read,
body.fcm-clean-page .entry-title,
body.fcm-clean-page .page-title,
body.fcm-clean-page .post-title,
body.fcm-clean-page .breadcrumbs,
body.fcm-clean-page .breadcrumb,
body.fcm-clean-page .category-menu,
body.fcm-clean-page .categories-menu,
body.fcm-clean-page nav.main-navigation,
body.fcm-clean-page #site-navigation,
body.fcm-clean-page .main-navigation {display:none!important;}
body.fcm-clean-page .content-area,
body.fcm-clean-page #primary,
body.fcm-clean-page main,
body.fcm-clean-page .site-main,
body.fcm-clean-page .main-content,
body.fcm-clean-page .content {width:100%!important;max-width:100%!important;float:none!important;margin-left:auto!important;margin-right:auto!important;}
body.fcm-clean-page .fcm-app{max-width:1180px!important;margin:24px auto!important;}

/* 2.6 - página 100% exclusiva do FC Molduras, sem cabeçalho/rodapé do portal */
html,body.fcm-standalone{margin:0!important;padding:0!important;background:#fff!important;min-height:100%;}
body.fcm-standalone:before,body.fcm-standalone:after{display:none!important;content:none!important}
.fcm-standalone-main{width:100%;min-height:100vh;background:#fff;padding:0;margin:0;}
body.fcm-standalone .fcm-app{max-width:1220px!important;margin:0 auto!important;padding:28px 28px 60px!important;box-sizing:border-box;}
body.fcm-standalone .fcm-frame-grid{grid-template-columns:repeat(auto-fill,minmax(210px,260px));justify-content:start;gap:18px;}
body.fcm-standalone .fcm-campaign-view{max-width:1000px;margin:0;}
body.fcm-standalone .fcm-campaign-head{padding-top:8px;}
body.fcm-standalone .fcm-campaign-head h1{max-width:800px;font-size:36px;}
@media(max-width:700px){body.fcm-standalone .fcm-app{padding:18px 14px 40px!important}body.fcm-standalone .fcm-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.fcm-standalone .fcm-campaign-head h1{font-size:29px}}

/* 2.9 - compartilhamento social */
.fcm-action-whatsapp{background:#f8fafc;border-color:#cbd5e1}
.fcm-action-instagram{background:#f8fafc;border-color:#cbd5e1}
.fcm-share-note{font-size:13px;color:#64748b;margin:8px 0 0}
@media(max-width:700px){
  .fcm-actions{grid-template-columns:1fr 1fr}
  .fcm-actions .fcm-action-primary{grid-column:1/-1}
}

/* 3.1 - dois textos de compartilhamento ao lado da moldura */
.fcm-editor-share-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:22px;align-items:start}
.fcm-share-side{position:sticky;top:18px;border:1px solid #e5e7eb;border-radius:20px;background:#f8fafc;padding:18px;box-shadow:0 10px 32px rgba(0,0,0,.04)}
.fcm-share-side h2{font-size:20px;line-height:1.2;margin:0 0 7px;color:#111827}
.fcm-share-side-intro{font-size:14px;line-height:1.45;color:#64748b;margin:0 0 14px}
.fcm-share-copy-card{background:#fff;border:1px solid #dbe2ea;border-radius:15px;padding:14px;margin-top:12px}
.fcm-share-copy-label{font-size:11px;font-weight:900;letter-spacing:.08em;color:#64748b;margin-bottom:8px}
.fcm-share-copy-text{white-space:pre-wrap;max-height:260px;overflow:auto;font-size:13px;line-height:1.48;color:#334155;padding-right:4px}
.fcm-copy-share-btn{width:100%;margin-top:12px;border:0;border-radius:11px;background:#007a78;color:#fff;padding:12px 14px;font-size:14px;font-weight:800;cursor:pointer}
.fcm-copy-share-btn:hover{filter:brightness(.96)}
@media(max-width:900px){.fcm-editor-share-layout{grid-template-columns:1fr}.fcm-share-side{position:static}.fcm-share-copy-text{max-height:none}}


/* 3.1.1 - garante que os textos de compartilhamento apareçam ao lado da moldura */
body.fcm-standalone .fcm-campaign-view{max-width:1180px!important;width:100%;}
body.fcm-standalone .fcm-editor-share-layout{grid-template-columns:minmax(0,1.55fr) minmax(340px,.95fr);}
body.fcm-standalone .fcm-share-side{display:block!important;visibility:visible!important;opacity:1!important;}
@media(max-width:900px){body.fcm-standalone .fcm-editor-share-layout{grid-template-columns:1fr;}body.fcm-standalone .fcm-share-side{position:static;}}

/* 3.2 - banner grande + rádio MP3 no topo da galeria */
body.fcm-standalone .fcm-app{max-width:none!important;padding:0 0 60px!important;}
.fcm-gallery-view{width:100%;}
.fcm-hero-banner{width:100%;margin:0 0 20px;background:#ff5a00;overflow:hidden;box-shadow:0 8px 28px rgba(124,45,18,.18);display:flex;justify-content:center}
.fcm-hero-banner img{display:block;width:min(100%,2048px);height:auto!important;max-height:none!important;object-fit:contain;object-position:center;background:#ff5a00}
.fcm-radio-player{max-width:1220px;margin:0 auto 26px;padding:14px 18px;border:1px solid #fed7aa;background:linear-gradient(135deg,#fff7ed,#fff);border-radius:18px;display:flex;align-items:center;gap:14px;box-sizing:border-box;box-shadow:0 8px 24px rgba(234,88,12,.08)}
.fcm-radio-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f97316;color:#fff;font-size:24px;font-weight:900;flex:0 0 auto}
.fcm-radio-copy{display:flex;flex-direction:column;min-width:0;margin-right:auto}.fcm-radio-copy strong{font-size:17px;color:#9a3412}.fcm-radio-copy span{font-size:13px;color:#64748b;margin-top:2px}
.fcm-radio-toggle{width:46px;height:46px;border:0;border-radius:50%;background:#f97316;color:#fff;font-size:18px;font-weight:900;cursor:pointer;box-shadow:0 5px 14px rgba(249,115,22,.25)}
.fcm-radio-toggle.needs-interaction{animation:fcmPulse 1.5s infinite}
#fcm-radio-volume{width:150px;accent-color:#f97316}
.fcm-gallery-heading{max-width:1220px;margin:0 auto 18px;padding:0 28px;box-sizing:border-box}.fcm-gallery-heading h1{margin:0 0 6px;font-size:32px;line-height:1.1}.fcm-gallery-heading p{margin:0;color:#64748b;font-size:15px}
body.fcm-standalone .fcm-frame-grid{max-width:1220px;margin:0 auto;padding:0 28px;box-sizing:border-box;}
@keyframes fcmPulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.38)}50%{box-shadow:0 0 0 10px rgba(249,115,22,0)}}
@media(max-width:700px){
  .fcm-hero-banner img{width:100%;height:auto!important;max-height:none!important;object-fit:contain}
  .fcm-radio-player{margin:0 14px 20px;padding:12px;gap:10px}.fcm-radio-copy strong{font-size:15px}#fcm-radio-volume{display:none}
  .fcm-gallery-heading{padding:0 14px}.fcm-gallery-heading h1{font-size:27px}
  body.fcm-standalone .fcm-frame-grid{padding:0 14px}
}

/* 3.2.5 - banner integral: nunca cortar, achatar ou forçar altura */
body.fcm-standalone .fcm-hero-banner{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-items:flex-start!important;}
body.fcm-standalone .fcm-hero-banner img{width:100%!important;max-width:2048px!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center top!important;}

/* 3.2.7 - banner 728x90 inteiro, sem corte */
body.fcm-standalone .fcm-hero-banner{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 20px!important;
  padding:0!important;
  background:transparent!important;
  overflow:visible!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
body.fcm-standalone .fcm-hero-banner img{
  display:block!important;
  width:728px!important;
  height:90px!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center top!important;
  aspect-ratio:728/90!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
}
@media(max-width:728px){
  body.fcm-standalone .fcm-hero-banner img{
    width:100%!important;
    height:auto!important;
    aspect-ratio:728/90!important;
  }
}


/* 3.3.0 - layout de campanha: banner integral, rádio e galeria no estilo do modelo enviado */
body.fcm-standalone{background:#fff!important;}
body.fcm-standalone .fcm-standalone-main{width:100%;margin:0;padding:0;}
body.fcm-standalone .fcm-app{width:100%;max-width:none!important;margin:0!important;padding:0 0 56px!important;background:#fff;}
body.fcm-standalone .fcm-gallery-view{width:100%;}
body.fcm-standalone .fcm-hero-banner{
  width:100%!important;max-width:1220px!important;height:auto!important;min-height:0!important;
  margin:0 auto 18px!important;padding:0!important;overflow:visible!important;background:#fff!important;
  display:block!important;box-shadow:none!important;border-radius:0!important;
}
body.fcm-standalone .fcm-hero-banner img{
  display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;aspect-ratio:auto!important;
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;
}
body.fcm-standalone .fcm-radio-player{max-width:1164px;margin:0 auto 28px;padding:14px 18px;border:1.5px solid #fb923c;border-radius:18px;background:#fffaf5;box-shadow:0 8px 24px rgba(249,115,22,.08)}
body.fcm-standalone .fcm-gallery-heading{max-width:1164px;margin:0 auto 18px;padding:0;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
body.fcm-standalone .fcm-gallery-heading h1{font-size:34px;margin:0 0 7px;color:#111827}
body.fcm-standalone .fcm-gallery-heading p{font-size:15px;line-height:1.5;margin:0;color:#64748b;max-width:700px}
.fcm-how-btn{border:1px solid #fed7aa;background:#fff;color:#f97316;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer;white-space:nowrap}
.fcm-how-strip{max-width:1164px;margin:0 auto 28px;padding:16px 20px;border:1px solid #ffedd5;background:linear-gradient(90deg,#fff7ed,#fffdf8);border-radius:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;box-sizing:border-box;box-shadow:0 5px 18px rgba(249,115,22,.06)}
.fcm-how-strip>div{display:flex;align-items:center;gap:12px;min-width:0}
.fcm-how-strip b{font-size:27px;line-height:1;color:#f97316;font-weight:700}
.fcm-how-strip span{display:flex;flex-direction:column;line-height:1.15}.fcm-how-strip strong{font-size:14px;color:#111827}.fcm-how-strip small{font-size:13px;color:#64748b;margin-top:3px}
body.fcm-standalone .fcm-frame-grid{max-width:1164px!important;margin:0 auto!important;padding:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;box-sizing:border-box}
body.fcm-standalone .fcm-frame-card{border-radius:14px!important;border:1px solid #e5e7eb!important;box-shadow:0 6px 20px rgba(15,23,42,.07)!important;background:#fff!important}
body.fcm-standalone .fcm-frame-card img{aspect-ratio:1/1!important;object-fit:cover!important}
body.fcm-standalone .fcm-frame-card span{font-size:16px!important;padding:13px 15px 15px!important}
@media(max-width:1220px){
  body.fcm-standalone .fcm-hero-banner{max-width:100%!important}
  body.fcm-standalone .fcm-radio-player,body.fcm-standalone .fcm-gallery-heading,body.fcm-standalone .fcm-how-strip,body.fcm-standalone .fcm-frame-grid{max-width:calc(100% - 32px)!important}
}
@media(max-width:760px){
  body.fcm-standalone .fcm-hero-banner img{width:100%!important;height:auto!important;object-fit:contain!important}
  body.fcm-standalone .fcm-gallery-heading{align-items:flex-start;flex-direction:column}.fcm-how-btn{align-self:flex-start}
  .fcm-how-strip{grid-template-columns:repeat(2,1fr)!important;gap:16px 8px!important;padding:14px!important}
  body.fcm-standalone .fcm-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:420px){
  body.fcm-standalone .fcm-gallery-heading h1{font-size:28px}
  .fcm-how-strip{grid-template-columns:1fr 1fr!important}
}


/* 3.3.1 - correção mobile: nunca cortar a moldura PNG dentro do editor */
.fcm-canvas-wrap{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  align-items:center!important;
}
#fcm-canvas{
  display:block!important;
  width:100%!important;
  max-width:720px!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  border-radius:0!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
}
@media(max-width:700px){
  .fcm-editor{overflow:visible!important;padding:12px!important;box-sizing:border-box!important;}
  .fcm-canvas-wrap{padding:8px!important;overflow:visible!important;border-radius:14px!important;}
  #fcm-canvas{width:100%!important;max-width:100%!important;height:auto!important;border-radius:0!important;}
}


/* iPhone/iPad: fallback visual para salvar a arte, sem abrir link blob */
#fcm-ios-save-modal{position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.82);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.fcm-ios-save-box{position:relative;width:min(94vw,620px);max-height:94vh;overflow:auto;background:#fff;border-radius:20px;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.35);text-align:center}
.fcm-ios-save-box h3{margin:2px 36px 8px;font-size:22px;color:#111827}
.fcm-ios-save-box p{margin:0 0 14px;font-size:14px;line-height:1.45;color:#475569}
.fcm-ios-save-close{position:absolute;right:10px;top:8px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f5f9;font-size:28px;line-height:1;cursor:pointer;color:#111827}
.fcm-ios-save-image{display:block;width:100%;height:auto;max-height:68vh;object-fit:contain;border-radius:12px;background:#f8fafc;-webkit-touch-callout:default;user-select:auto}
.fcm-ios-save-download{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:12px 18px;border-radius:12px;background:#111827;color:#fff!important;text-decoration:none;font-weight:800}

/* 3.3.4 - respiro no topo: impede o banner de ficar sob a barra do WordPress/navegador */
body.fcm-standalone .fcm-gallery-view{padding-top:24px!important;box-sizing:border-box!important;}
body.admin-bar.fcm-standalone .fcm-gallery-view{padding-top:40px!important;}
@media(max-width:782px){
  body.fcm-standalone .fcm-gallery-view{padding-top:18px!important;}
  body.admin-bar.fcm-standalone .fcm-gallery-view{padding-top:54px!important;}
}
