:root{
  --bg:#fbfbfd;
  --surface:#fff;
  --surface2:#f2f3f7;
  --text:#1b1f2a;
  --muted:#5b6475;
  --border:rgba(20,20,30,.12);
  
   --fundo-claro: #DCD8D2; /* cinza creme elegante */
   
  --fundo-claro-padrao: #F1EEEA; /* cinza claro padrão */


  --brand:#6b0f13;
  --brand2:#8b1a20;

  --radius:16px;
  --shadow:0 12px 30px rgba(0,0,0,.10);
  --shadow-sm:0 6px 14px rgba(0,0,0,.08);

  --tap:44px;

  --fs-1:clamp(14px,1.1vw,16px);
  --fs-2:clamp(16px,1.25vw,18px);
  --fs-3:clamp(20px,1.9vw,24px);

  --s1:8px; --s2:12px; --s3:16px; --s4:20px; --s5:28px;
  
  
  --tabs-gap: -30px;       /* respiro abaixo do header */
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:var(--fs-1);
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input{font:inherit}
:focus-visible{outline:3px solid rgba(107,15,19,.35); outline-offset:2px; border-radius:12px}
@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important; scroll-behavior:auto!important}
}

/* TOPBAR */
.topbar{
  position:sticky; top:0; z-index:60;
  height:66px;
  display:flex; align-items:center; gap:var(--s3);
  padding:0 var(--s4);
  background:var(--brand);
  color:#fff;
  box-shadow:
    0 4px 10px rgba(0,0,0,.25),
    inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px}
.brand-mark{opacity:.95; font-size:var(--fs-3)}
.brand-text{font-size:var(--fs-3)}
.topbar-actions{margin-left:auto; display:flex; gap:10px; align-items:center}

.icon-btn{
  width:var(--tap);
  height:var(--tap);
  border-radius:50%;
  border:2px solid #ffffff;
  background:transparent;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  transition:all .25s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

/* efeito hover elegante */
.icon-btn:hover{
  transform:scale(1.08);
  box-shadow:0 0 0 4px rgba(255,255,255,.15);
}

.pill{
  height:var(--tap);
  display:inline-flex; align-items:center; gap:8px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.10);
  font-weight:700;
}


.icon-admin{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:8px 10px;
  font-size:22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  transition:all .25s ease;
}

.admin-svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  color:#ffffff; /* cor padrão */
}

/* hover elegante */
.icon-admin:hover{
  background:rgba(255,255,255,.08);
  transform:scale(1.08);
}

/* se quiser versão vinho */
.icon-admin.vinho .admin-svg{
  color:#7a0f14;
}

/* se quiser ativo */
.icon-admin.active{
  background:#7a0f14;
}
.icon-admin.active .admin-svg{
  color:#fff;
}

.icon-btn{
  box-shadow:
    0 4px 10px rgba(0,0,0,.25),
    inset 0 0 0 2px rgba(255,255,255,.15);
}

/* LAYOUT (DESKTOP) */
.app{
  display:grid;
  grid-template-columns:420px 1fr;
  min-height:calc(100dvh - 66px);
}

/* SIDEBAR (DESKTOP lateral, sticky) */
.sidebar{
  position:sticky;
  top:66px; /* abaixo da topbar */
  height:calc(100dvh - 66px);
  background:var(--fundo-claro-padrao);
  border-right:1px solid var(--border);
  padding:var(--s4);
  overflow:auto;
  z-index:20;
}
.sidebar-head{display:grid; gap:var(--s2); margin-bottom:var(--s3)}
.section-title{font-size:var(--fs-2); font-weight:900; color:var(--brand)}
.search input{
  width:100%;
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface2);
  padding:0 14px;
  box-shadow:
    0 4px 10px rgba(0,0,0,.25),
    inset 0 0 0 2px rgba(255,255,255,.15);
}

/* NAV (DESKTOP lista vertical) */
.nav{display:grid; gap:10px}
.nav-item{
  width:100%;
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--surface);
  min-height:var(--tap);
  cursor:pointer;
  text-align:left;
}
.nav-item:hover{box-shadow:var(--shadow-sm); transform:translateY(-1px); transition:.12s ease}
.nav-item.is-active{
  border-color:rgba(107,15,19,.35);
  box-shadow:0 0 0 3px rgba(107,15,19,.08);
}

#topoindex{
  width:auto;
   background:var(--brand);
  display:flex; align-items:center; gap:12px;
  padding:6px 7px;
  border-radius:16px;
  border:1px solid var(--border);
  min-height:var(--tap);
  cursor:pointer;
  text-align:left;
  color:#fff;
  }

.brand-text{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

#agendatopo{
    width:auto;
    height:25px;
  cursor:pointer;
  text-align:left;
  color:#000;
}

@media (max-width: 980px){
 .brand-text{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
}  

#agendatopo{
    width:auto;
    height:25px;
  cursor:pointer;
  text-align:left;
  color:#000;
}

}

/* bolinha do ícone */
.nav-ico{
  width:64px;
  height:64px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff; /* ajuda muito em imagens com fundo transparente */
  border:2px solid rgba(107,15,19,.25);
}

/* imagem dentro da bolinha (sem distorcer) */
.nav-ico img{
  width:100%;
  height:100%;
  object-fit:contain;     /* NÃO distorce e NÃO corta */
  object-position:center;
  padding:2px;            /* respiro para logos/ícones */
  display:block;
}

.nav-item.is-active .nav-ico{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107,15,19,.10);
}


.nav-label{font-weight:800; color:var(--brand)}
.sidebar-foot{margin-top:var(--s4); padding-top:var(--s3); border-top:1px solid var(--border)}
.muted{color:var(--muted)}

/* CONTENT */
.content{padding:var(--s5); overflow:hidden}
.content-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:var(--s4);
  margin-bottom:var(--s4);
}
.page-title{margin:0; font-size:var(--fs-3); font-weight:950}
.page-subtitle{margin:6px 0 0; color:var(--muted)}
.content-actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  height:var(--tap);
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface);
  cursor:pointer;
  font-weight:800;
}
.btn:hover{box-shadow:var(--shadow-sm)}
.btn-primary{
  background:var(--brand);
  color:#fff;
  border-color:rgba(255,255,255,.18);
}
.btn-primary:hover{background:var(--brand2)}

/* FEED */
.feed{
  display:grid;
  gap:14px;
  max-width:820px;
}

/* ===== FORÇA FEED IG no DESKTOP também (evita conflito com .card/.feed antigo) ===== */

/* centraliza a coluna do feed sem quebrar o header */
.content{
  display: block; /* mantém seu layout normal */
}
.content > .content-head,
.content > .feed,
.content > .feed-footer{
  margin-left: auto;
  margin-right: auto;
}

/* largura do feed */
#feed.feed{
  width: 100%;
  max-width: 520px;
}

/* em telas grandes, um pouco maior */
@media (min-width: 1200px){
  #feed.feed{ max-width: 520px; }
}

/* garante que o card IG manda */
#feed .ig-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 18px 0 rgba(0, 0, 0.2, 0.2);
}

/* garante layout do cabeçalho */
#feed .ig-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
}

#feed .ig-user{display:flex;align-items:center;gap:10px;min-width:0}
#feed .ig-user .ava{width:40px;height:40px;border-radius:999px;overflow:hidden;background:var(--surface2);border:2px solid rgba(107,15,19,.25)}
#feed .ig-user .ava img{width:100%;height:100%;object-fit:cover}
#feed .ig-user .who{font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:38ch}
#feed .ig-meta{color:var(--muted);font-size:12.5px}

/* mídia */
#feed .ig-media{background:#111}
#feed .ig-media img{width:100%;height:auto;display:block}

/* ações */
#feed .ig-actions{
  display:flex;
  gap:1px;
  align-items:center;
  padding:1px 14px;
  border-top:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,1));
}
#feed .ig-action{
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  cursor:pointer;
  font-weight:900;
  border:none;
}
#feed .ig-action:hover{box-shadow:var(--shadow-sm)}
#feed .ig-action:active{transform:translateY(1px)}

/* texto */
#feed .ig-caption{padding:12px 14px 14px}
#feed .ig-title{margin:-14px 0 6px;font-size:var(--fs-2);font-weight:950}
#feed .ig-text{
  line-height:1.45;margin:-10px 0 6px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
#feed .ig-more{display:inline-block;margin-top:8px;font-weight:950;color:var(--brand2);cursor:pointer}

/* FUNDO do conteúdo (feed + páginas) */
main {
   content:"";
    background-image: url(../imagens/icones/background.png);
    background-repeat: repeat;
    margin-left:0;
    margin-top:0px;
    width: calc(100%); /* Alterado para ocupar toda a largura */
    padding: 0px; /* Adiciona algum espaçamento interno */
    background-size: 900px;
     background-position: center top;
    
}

main {
   content:"";
  opacity: 1.32;  
}

/* garante que o conteúdo fique acima do fundo */
#viewContainer > *{
  position: relative;
  z-index: 1;
}

#feed .card{
  background: rgba(255,255,255,.92);
}

/* footer alinhado com feed */
.feed-footer{
  width:100%;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
@media (min-width: 1200px){
  .feed-footer{ max-width:820px; }
}




/* botão só ícone */
.ig-action.icon{
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
}

/* cor vinho do topo */
.ig-action.icon .ico-share{
  width: 30px;
  height: 30px;
  color: var(--brand);   /* mesma cor do topo */
  transition: .15s ease;
}

/* hover elegante */
.ig-action.icon:hover .ico-share{
  transform: scale(1.1);
  color: var(--brand2);
}




.card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.card-head{
  padding:14px 16px;
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
   box-shadow:
    0 0 0 4px rgba(109,15,20,.14),
    inset 0 1px 0 rgba(255,255,255,.70),
    0 16px 34px rgba(0,0,0,.14);
}
.card-title{margin:0; font-size:var(--fs-2); font-weight:950}
.card-meta{color:var(--muted); font-size:var(--fs-1)}
.card-body{padding:0}
.card-media{background:#111; aspect-ratio:4/3; display:grid; place-items:center}
.card-media img{width:100%; height:100%; object-fit:cover}
.card-text{padding:14px 16px; color:var(--text)}
.card-actions{
  padding:12px 16px;
  border-top:1px solid var(--border);
  display:flex; gap:10px; flex-wrap:wrap;
}
.feed-footer{max-width:820px; margin-top:16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap}

/* ============ MOBILE: MENU VIRA TOPO (estilo Instagram) ============ */
@media (max-width: 980px){
  /* layout vira 1 coluna */
  .app{ grid-template-columns: 1fr; }

  /* no mobile, sidebar vira barra no topo */
  .sidebar{
    position:sticky;
    top:66px;
    height:auto;
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--border);
    padding:12px 12px 10px;
    box-shadow:none;
    z-index:55;
  }

  /* botão ☰ não é necessário no mobile (menu já está visível no topo) */
  #btnMenu{ display:none; }

  /* opcional: reduzir/ocultar a busca no topo */
  .sidebar-head{ margin-bottom:10px; }
  /* .search{ display:none; } */

  /* nav vira scroll horizo*/
}

/* ===== MOBILE: MENU NO TOPO, LADO A LADO (Instagram) ===== */
@media (max-width: 980px){

  /* sidebar vira barra no topo */
  .sidebar{
    position: sticky !important;
    top: 66px !important;
    height: auto !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 10px 8px !important;
    background: var(--surface) !important;
    z-index: 55 !important;
  }

  /* opcional: esconder "Menu" + busca (fica bem instagram) */
  /* .sidebar-head{ display:none !important; } */
  /* ou só esconder a busca */
  /* .search{ display:none !important; } */

  /* IMPORTANTÍSSIMO: nav vira faixa horizontal */
  .sidebar .nav{
    display: flex !important;              /* força horizontal */
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 2px 8px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                 /* firefox */
  }
  .sidebar .nav::-webkit-scrollbar{ display:none; }

  /* itens viram "bolinha + texto" */
  .sidebar .nav-item{
    flex: 0 0 auto !important;             /* não encolhe, fica lado a lado */
    width: 86px !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* some com os emojis do desktop */
  .sidebar .nav-ico{ display:none !important; }

  /* bolinha (sem precisar mudar HTML) */
  .sidebar .nav-item::before{
    content:"";
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--surface2);
    border: 2px solid rgba(107,15,19,.25);
    display:block;
  }

  /* ativo com aro */
  .sidebar .nav-item.is-active::before{
    border-color: rgba(107,15,19,.85);
    box-shadow: 0 0 0 3px rgba(107,15,19,.10);
  }

  /* label */
  .sidebar .nav-label{
    width: 86px !important;
    font-weight: 900 !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    color: var(--brand) !important;
  }

  /* botão do menu não precisa no mobile */
  #btnMenu{ display:none !important; }
  
  .sidebar-foot{display:none;}
}


/* ============ MOBILE AJUSTES ============ */
@media (max-width: 980px){

  /* layout 1 coluna */
  .app{ grid-template-columns: 1fr; }

  /* ✅ MENU ROLA JUNTO COM A PÁGINA (não fica grudado) */
  .sidebar{
    position: static !important;  /* ou relative */
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 10px 8px !important;
    background: var(--surface) !important;
    z-index: auto !important;
  }

  /* ✅ some o rodapé do sidebar no mobile */
  .sidebar-foot{
    display: none !important;
  }

  /* botão menu não precisa no mobile */
  #btnMenu{ display:none !important; }

  /* nav vira faixa horizontal */
  .sidebar .nav{
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 2px 8px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar .nav::-webkit-scrollbar{ display:none; }

  /* itens em “bolinha + texto” */
  .sidebar .nav-item{
    flex: 0 0 auto !important;
    width: 86px !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* some com emoji do desktop */
  .sidebar .nav-ico{ display:none !important; }

  /* bolinha */
  .sidebar .nav-item::before{
    content:"";
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--surface2);
    border: 2px solid rgba(107,15,19,.25);
    display:block;
  }

  .sidebar .nav-item.is-active::before{
    border-color: rgba(107,15,19,.85);
    box-shadow: 0 0 0 3px rgba(107,15,19,.10);
  }

  .sidebar .nav-label{
    width: 86px !important;
    font-weight: 900 !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    color: var(--brand) !important;
  }
}


/* Centraliza o conteúdo quando o feed fica dentro do #viewContainer */
#viewContainer{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza o feed e o footer */
}

/* garante que o feed continue com largura correta */
#viewContainer #feed.feed{
  width: 100%;
  max-width: 520px;   /* use o mesmo valor que você já estava usando */
  margin-left: auto;
  margin-right: auto;
}

/* centraliza o footer/botões também */
#viewContainer .feed-footer{
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}



/* categorias e pags */
/* ================================
   PÁGINAS DE CATEGORIA (TABS)
   ================================ */

.page-categoria{
  width: min(580px, 100%);
  margin: 0 auto;
  padding: 10px 12px 22px;
}

.page-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 2px 0 10px;
}

.page-top .voltarIcone{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--card);
  text-decoration:none;
}

.titulo_pag_top{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  line-height:1.15;
}

.img_top_pag{
  width:34px;height:34px;
  object-fit:contain;
  border-radius:10px;
}

/* Barra de tabs “bonita” e rolável */
.tabs{
  position: sticky;
  z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  margin: 0px 0 14px;

  display:flex;
  gap:0px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}




/* garante um contexto estável na página de categoria */
.page-categoria{
  position: relative;
}

/* tabs sempre acima dos cards/iframes */
.page-categoria .tabs{
  position: sticky;
  top: calc(var(--topbar-h) + var(--tabs-gap));
  z-index: 999;                 /* bem alto */
  isolation: isolate;           /* ajuda MUITO contra iframe “furando” */
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
   overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* conteúdo abaixo das tabs fica em camada normal */
.page-categoria .tab-panels{
  position: relative;
  z-index: 1;
}


/* “fade” nas laterais (dá cara premium) */
.tabs::before,
.tabs::after{
  content:"";
  position: sticky;
  top:0;
  width: 18px;
  flex: 0 0 18px;
}
.tabs::before{
  left:0;
  background: linear-gradient(to right, rgba(255,255,255,.96), rgba(255,255,255,0));
}
.tabs::after{
  right:0;
  background: linear-gradient(to left, rgba(255,255,255,.96), rgba(255,255,255,0));
}

.tablinks{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(128,0,0,.18);
  background: #fff;
  color: #3b0a0a;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}




.tablinks{
  flex: 0 0 auto;     /* não deixar encolher/esticar estranho */
  white-space: nowrap;
}
.tablinks:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border-color: rgba(128,0,0,.35);
}
.tablinks.active{
  background: #7a0b0b;
  color:#fff;
  border-color: rgba(0,0,0,.08);
}

.tabcontentP{
  padding: 6px 0 14px;
}

/* Cards do conteúdo da tab (vídeo/pdf/link) */
.card_publicado{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 14px 18px 0 rgba(0, 0, 0.2, 0.2);
}

.pdf-title{
  font-weight:800;
  margin: 2px 0 10px;
  color: #2c0a0a;
}

.desc{ margin-top: 10px; opacity:.88; }

.videoMP-incorporadoMP iframe{
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
  border-radius: 14px;
  overflow:hidden;
  display:block;
  background:#111;
}

.pdf-card .miniatura-container{
  display:block;
  text-decoration:none;
}

.miniatura{
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display:block;
}

.loading, .erro, .vazio{
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.15);
  background: rgba(255,255,255,.6);
  margin: 12px 0;
}

.ig-media img,
.ig-media video{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 14px;
}

#feed .ig-media{
  max-height: 520px;
  overflow: hidden;
  border-radius: 18px;
}

#feed .ig-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-media{
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.ig-media .yt-wrap{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.ig-media .yt-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  border-radius: 14px;
}

.ig-media .embed iframe{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.ig-media video{
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* quadro do MP4: impede ficar “muito alto” */
.ig-media .vbox{
  width: 100%;
  max-height: 320px;
  background:#000;
  border-radius: 14px;
  overflow: hidden;
}

/* vídeo volta a ter altura natural (com controles) */
.ig-media .vbox video{
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display:block;
}
@media (max-width:640px){
  .ig-media .vbox{ max-height: 240px; }
  .ig-media .vbox video{ max-height: 240px; }
}


/* mobile */
@media (max-width: 640px){
  .page-categoria{ width: 100%; padding: 10px 10px 18px; }
  .tabs{ top: 52px; padding: 8px; border-radius: 14px; }
  .tablinks{ padding: 9px 12px; }
  .card_publicado{ border-radius: 16px; }
}

@media (max-width: 980px){

  /* mostra a bolinha com a imagem */
  .sidebar .nav-ico{
    display: flex !important;            /* <-- volta a aparecer */
    width: 82px !important;
    height: 82px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    background: var(--surface2) !important;
    border: 2px solid rgba(107,15,19,.25) !important;
  }

 
  /* bolinha do ícone */
.sidebar .nav-ico{
  width:76px;
  height:76px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff; /* ajuda muito em imagens com fundo transparente */
  border:2px solid rgba(107,15,19,.25);
}

/* imagem dentro da bolinha (sem distorcer) */
.sidebar .nav-ico img{
  width:100%;
  height:100%;
  object-fit:contain;     /* NÃO distorce e NÃO corta */
  object-position:center;
  padding:4px;            /* respiro para logos/ícones */
  display:block;
}


  /* desliga a bolinha fake */
  .sidebar .nav-item::before{
    content: none !important;
  }

  /* ativo com aro */
  .sidebar .nav-item.is-active .nav-ico{
    border-color: rgba(107,15,19,.85) !important;
    box-shadow: 0 0 0 3px rgba(107,15,19,.10) !important;
  }
}

/* ==============================
   REFINO MOBILE – CONTEÚDO MAIS LARGO
   ============================== */
@media (max-width: 640px){

  /* reduz margem lateral geral */
  .content{
    padding: 14px 8px !important;   /* antes era muito maior */
  }

  /* feed ocupa quase tudo */
  #viewContainer #feed.feed{
    max-width: 100% !important;
  }

  #viewContainer .feed-footer{
    max-width: 100% !important;
  }

  /* página de categoria mais aberta */
  .page-categoria{
    padding: 10px 8px 18px !important;
  }

  /* cards ficam mais elegantes nas bordas */
  #feed .ig-card,
  .card_publicado{
    border-radius: 16px;
  }

}