/* =========================================================
   Rock Notícias – tema 2026 (gerado a partir de /mockups/style.css)
   Fonte: DM Sans (SIL OFL 1.1) servida pelo próprio site – assets/fonts/dm-sans/OFL.txt
   Ícones: Bootstrap Icons 1.11.3 (MIT) – assets/vendor/bootstrap-icons
   Tokens de cor em :root (claro) e :root[data-theme="dark"] (escuro, padrão do site)
   ========================================================= */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --body-bg: #fafafa;
  --body-color: #222;
  --muted: #6c757d;
  --card-bg: #fff;
  --navbar-bg: #fff;
  --border-color: #e3e3e3;
  --footer-bg: #fff;
  --accent: #fe3560;
  --accent-hover: #e50132;
  --tag-bg: #f1f3f5;
  --placeholder: #e9ecef;
  --placeholder-2: #dee2e6;
  --shadow: 0 .125rem .5rem rgba(0, 0, 0, .08);
  --shadow-hover: 0 .25rem 1rem rgba(0, 0, 0, .12);
  --radius: .5rem;
  --container: 1320px;
}

:root[data-theme="dark"] {
  --body-bg: #000;
  --body-color: #e0e0e0;
  --muted: #a0a0a0;
  --card-bg: #333;
  --navbar-bg: #333;
  --border-color: #444;
  --footer-bg: #333;
  --tag-bg: #2a2a2a;
  --placeholder: #444;
  --placeholder-2: #555;
  --shadow: 0 .125rem .5rem rgba(0, 0, 0, .5);
  --shadow-hover: 0 .25rem 1rem rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background: var(--body-bg);
  color: var(--body-color);
  transition: background .2s, color .2s;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.header-menu a.active { color: var(--accent); }
.header-menu { align-items: center; }
.header-menu .user-greeting { color: var(--muted); margin-right: 4px; }
.header-menu .user-greeting strong { color: var(--body-color); font-weight: 700; }
.header-menu .header-menu-sep { color: var(--border-color); }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* O PNG é branco com fundo transparente: no tema claro vira preto,
   no tema escuro aparece na cor original (branco). */
.site-logo {
  height: 56px;
  width: auto;
  padding: 4px 0;
  filter: brightness(0);
  transition: filter .2s, opacity .15s;
}
:root[data-theme="dark"] .site-logo { filter: none; }
.logo:hover .site-logo { opacity: .8; }

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.menu-toggle { display: none; }

/* ---------- Offcanvas (mobile) ---------- */
.offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  background: var(--card-bg);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .25s ease;
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.offcanvas.open { transform: none; }
.offcanvas-close { position: absolute; top: 12px; right: 12px; }
.offcanvas h4 {
  margin: 24px 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.offcanvas .btn-destaque a { color: var(--accent); font-weight: 700; }
.offcanvas .offcanvas-greeting { margin: 0 0 4px; color: var(--muted); }
.offcanvas .offcanvas-greeting strong { color: var(--body-color); font-weight: 700; }
.offcanvas li a.active { color: var(--accent); font-weight: 600; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Layout em 3 colunas ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr); /* minmax(0) impede o conteúdo de alargar a coluna */
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.layout > * { min-width: 0; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Padrao dos boxes do site (igual aos cards do loop): sombra --shadow e, no hover, --shadow-hover.
   Formularios e paginas de texto (.page-card, .post-detail, area da conta) ficam sem hover. */
.post,
.sidebar-block,
.side-cta,
.related .card,
.card.prev,
.card.next { transition: box-shadow .15s; }
.post:hover,
.sidebar-block:hover,
.side-cta:hover,
.related .card:hover,
.card.prev:hover,
.card.next:hover { box-shadow: var(--shadow-hover); }

/* Sidebar esquerda */
.sidebar-left { position: sticky; top: 92px; align-self: start; }
.partners-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.partners-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.partners-tags a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
}
.partners-tags a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* sidebar esquerda e menu mobile: pílulas compactas (mesmo tamanho de texto).
   No menu é preciso desfazer o estilo de link de lista (.offcanvas li a). */
.sidebar-left .partners-tags,
.offcanvas .partners-tags { gap: 7px 6px; }
.sidebar-left .partners-tags a,
.offcanvas .partners-tags a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
}
.offcanvas .partners-tags a:hover { border-color: var(--accent); }
.partners-tags li[hidden] { display: none; }
/* "Ver mais" dos parceiros (sidebar esquerda) */
.partners-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -10px 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.partners-more:hover { text-decoration: underline; }
.partners-more[hidden] { display: none; }

/* Bloco de anúncio */
.ad-block {
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--placeholder-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: repeating-linear-gradient(45deg, transparent 0 10px, var(--tag-bg) 10px 20px);
}
.ad-block small { display: block; text-transform: none; letter-spacing: 0; }
.ad-sky { min-height: 600px; }
.ad-rect { min-height: 250px; margin-bottom: 20px; }
.ad-banner { min-height: 100px; margin: 20px 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0 4px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .active { color: var(--body-color); }

/* Card principal */
.post-single { padding: 28px 0; margin-bottom: 20px; }
.post-single > * { padding-left: 28px; padding-right: 28px; }

.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.post-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin: 15px 0;
}
.post-meta i { margin-right: 4px; }

/* Área substituível — onde entra o novo conteúdo */
.slot {
  position: relative;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 28px 20px;
}
.post-single > .slot { padding-left: 20px; padding-right: 20px; }
.slot-label {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--card-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 6px;
}

.ph-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--placeholder);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 40px;
  margin-bottom: 18px;
}
.ph-line {
  height: 12px;
  border-radius: 6px;
  background: var(--placeholder);
  margin-bottom: 10px;
}
.ph-line.w90 { width: 90%; }
.ph-line.w75 { width: 75%; }
.ph-line.w60 { width: 60%; }
.ph-line.w40 { width: 40%; }
.ph-gap { height: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.cta { text-align: center; margin: 4px 0 20px; }

/* Compartilhar */
.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}
.share-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.share a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: transform .15s, opacity .15s;
}
.share a:hover { color: #fff; transform: translateY(-2px); opacity: .9; }
.share .whatsapp { background: #25d366; }
.share .facebook { background: #1877f2; }
.share .x { background: #000; }
.share .telegram { background: #229ed9; }
:root[data-theme="dark"] .share .x { background: #555; }

/* Navegação anterior / próxima */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.post-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}
.post-nav a.next { justify-content: flex-end; text-align: right; }
.post-nav small {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}
.post-nav span.t { display: block; font-weight: 600; font-size: 14px; }

/* Grade de relacionados */
.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-heading i { color: var(--accent); }
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related .card { overflow: hidden; display: block; }
.related .ph-image { border-radius: 0; margin: 0; font-size: 28px; }
.related .body { padding: 12px; }
.related .body .ph-line { height: 10px; }

/* Sidebar direita */
.sidebar-right { align-self: start; }
/* margin-bottom: a .sidebar-fixed tem overflow-y:auto, que cortava a sombra de baixo do bloco */
.sidebar-block { padding: 16px; margin-bottom: 5px; }
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-heading i { color: var(--accent); }

.trend-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.trend-item:last-child { border-bottom: 0; }
.trend-thumb {
  flex: 0 0 72px;
  height: 56px;
  border-radius: 6px;
  background: var(--placeholder);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.trend-num {
  font-weight: 800;
  color: var(--accent);
  font-size: 18px;
  width: 22px;
  flex: 0 0 22px;
}
.trend-text { flex: 1; min-width: 0; }
.trend-text .ph-line { height: 9px; margin-bottom: 7px; }
.trend-item:hover .trend-thumb { outline: 2px solid var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  font-size: 13px;
}
.footer-top {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff !important; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.footer-bottom .site-logo { height: 44px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.disclaimer { color: var(--muted); text-align: center; margin: 18px 0 0; font-size: 12px; }

/* Topo e rodapé sempre escuros, também no tema claro:
   redefine os tokens só dentro deles. */
.site-header,
.site-footer {
  --navbar-bg: #333;
  --footer-bg: #333;
  --body-color: #e0e0e0;
  --muted: #a0a0a0;
  --border-color: #444;
  color: var(--body-color);
}
.site-header .site-logo,
.site-footer .site-logo { filter: none; }

/* Voltar ao topo */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }


/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .sidebar-left { display: none; }
}

@media (max-width: 860px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .header-menu { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-right .social { display: none; }
  .site-logo { height: 46px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .post-single > * { padding-left: 16px; padding-right: 16px; }
  .slot { margin: 0 16px 20px; }
  .post-title { font-size: 1.5rem; }
  .related { grid-template-columns: 1fr; }
  .post-nav span.t { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Login / Cadastro ---------- */
.auth-wrap {
  max-width: 480px;
  margin-top: 32px;
  margin-bottom: 56px;
}
.auth-card {
  padding: 36px 32px 28px;
  text-align: center;
}
.auth-logo { height: 48px; margin: 0 auto 18px; }
.auth-title { font-size: 1.5rem; line-height: 1.25; font-weight: 700; margin: 0 0 8px; }
.auth-sub { color: var(--muted); margin: 0 0 26px; }
.auth-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-social:hover { transform: translateY(-1px); }
.btn-social i { font-size: 20px; }
.g-logo { width: 20px; height: 20px; flex: 0 0 20px; }
.btn-google {
  background: #fff;
  color: #1f1f1f !important;
  border: 1px solid #dadce0;
}
.btn-google:hover { background: #f5f7f9; border-color: #c4c7c5; }
.btn-facebook {
  background: #1877f2;
  color: #fff !important;
  border: 1px solid #1877f2;
}
.btn-facebook:hover { background: #0f66d8; border-color: #0f66d8; }
.auth-switch {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a { color: var(--accent); font-weight: 700; }

@media (max-width: 560px) {
  .auth-card { padding: 28px 18px 22px; }
}

/* ---------- Perfil do usuário ---------- */
.icon-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.profile-wrap { margin-top: 20px; margin-bottom: 40px; } /* mesma largura e espaçamento da index (.container + .layout) */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
.profile-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.profile-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.profile-card { padding: 24px; text-align: center; }
.avatar-wrap { position: relative; width: 112px; margin: 0 auto 14px; }
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--placeholder);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 52px;
  overflow: hidden;
  border: 3px solid var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.profile-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 2px; line-height: 1.25; word-break: break-word; }
.profile-email { color: var(--muted); font-size: 13px; margin: 0 0 12px; word-break: break-all; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
}
.profile-badge i { color: var(--accent); }
.profile-since { color: var(--muted); font-size: 12px; margin: 10px 0 18px; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.profile-connected { text-align: left; }
.connected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.connected-row:last-child { border-bottom: 0; padding-bottom: 0; }
.connected-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.connected-row .g-logo { width: 16px; height: 16px; flex-basis: 16px; }
.status { font-size: 12px; font-weight: 700; }
.status.ok { color: #198754; }
.status.link { color: var(--accent); }

.profile-logout { text-align: center; font-size: 14px; color: var(--muted); }

.profile-form { padding: 28px; }
.profile-h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
/* first-of-type: em formularios o 1o filho e o input hidden do CSRF, entao :first-child nao pegava o titulo */
.profile-h2:first-child,
.profile-h2:first-of-type { margin-top: 0; }
.profile-card .profile-h2 { font-size: 14px; margin-bottom: 4px; }
.profile-h2.with-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field label i { color: var(--muted); margin-right: 2px; }
.field small { color: var(--muted); font-size: 12px; }
.field .counter { text-align: right; }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--body-color);
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(254, 53, 96, .18);
}
.field input[readonly] { color: var(--muted); cursor: not-allowed; background: var(--tag-bg); }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.alert-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(25, 135, 84, .12);
  color: #198754;
  font-weight: 700;
  font-size: 14px;
}
.alert-ok[hidden] { display: none; }

.empty-state { text-align: center; padding: 18px 10px 6px; color: var(--muted); }
.empty-state i { font-size: 40px; color: var(--placeholder-2); }
.empty-state p { margin: 8px 0 4px; font-weight: 700; color: var(--body-color); }

.danger-zone { text-align: right; margin: 0; font-size: 13px; }
.danger-zone a { color: var(--muted); text-decoration: underline; }
.danger-zone a:hover { color: #dc3545; }

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
}
@media (max-width: 560px) {
  .profile-form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Menu da conta ---------- */
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}
.profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.profile-menu a:hover { background: var(--tag-bg); }
.profile-menu a.active { background: var(--accent); color: #fff; font-weight: 700; }
.profile-menu a i { font-size: 16px; }
.menu-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--body-color);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.profile-menu a.active .menu-count { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Meus releases ---------- */
.release-list { list-style: none; margin: 0; padding: 0; }
.release-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.release-item:first-child { padding-top: 4px; }
.release-item:last-child { border-bottom: 0; padding-bottom: 0; }
.release-thumb {
  flex: 0 0 120px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--placeholder);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.release-info { flex: 1; min-width: 0; }
.release-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
.release-meta i { margin-right: 3px; }
.release-note { margin: 8px 0 0; font-size: 12px; color: #dc3545; }
.release-actions { display: flex; gap: 6px; flex-shrink: 0; }
.release-actions .icon-btn { width: 34px; height: 34px; font-size: 14px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.status-badge i { margin: 0; }
.status-badge.published { background: rgba(25, 135, 84, .14); color: #198754; }
.status-badge.pending { background: rgba(255, 153, 0, .16); color: #b86e00; }
.status-badge.rejected { background: rgba(220, 53, 69, .14); color: #dc3545; }
:root[data-theme="dark"] .status-badge.published { color: #4cc38a; }
:root[data-theme="dark"] .status-badge.pending { color: #ffb84d; }
:root[data-theme="dark"] .status-badge.rejected,
:root[data-theme="dark"] .release-note { color: #ff6b7a; }

/* ---------- Enviar release ---------- */
.form-intro { color: var(--muted); margin: -4px 0 20px; font-size: 14px; }
.field-label { font-size: 13px; font-weight: 700; }

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 2px dashed var(--placeholder-2);
  border-radius: var(--radius);
  background: var(--body-bg);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.dropzone:hover,
.dropzone.drag { border-color: var(--accent); }
.dropzone.drag { background: var(--tag-bg); }
/* input fica invisível, mas cobre a área: clique e "arrastar e soltar" funcionam e a validação nativa consegue focar */
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; color: var(--muted); }
.dropzone-empty i { font-size: 36px; color: var(--accent); }
.dropzone-empty strong { color: var(--body-color); }
.dropzone-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dropzone.has-image { border-style: solid; border-color: var(--border-color); }
.dropzone.has-image .dropzone-empty { display: none; }
.link-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.link-btn:hover { color: #dc3545; }
.link-btn[hidden] { display: none; }

.tags-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: text;
}
.tags-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(254, 53, 96, .18); }
.field .tags-input input {
  flex: 1;
  min-width: 140px;
  width: auto;
  border: 0;
  padding: 4px;
  background: transparent;
  box-shadow: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.chip button:hover { background: rgba(0, 0, 0, .25); }

.check-terms {
  align-items: flex-start;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--tag-bg);
}
.check-terms input { margin-top: 2px; flex-shrink: 0; }
.check-terms small { color: var(--muted); }

@media (max-width: 560px) {
  .release-item { flex-wrap: wrap; }
  .release-thumb { flex-basis: 96px; }
  .release-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Carrinho / Pagamento ---------- */
.checkout-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.checkout-steps li { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.checkout-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border-color); margin-left: 4px; }
.checkout-steps span,
.checkout-steps i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-style: normal;
}
.checkout-steps .done { color: #198754; }
.checkout-steps .done i { background: #198754; border-color: #198754; color: #fff; }
.checkout-steps .done::after { background: #198754 !important; }
.checkout-steps .current { color: var(--body-color); }
.checkout-steps .current span { background: var(--accent); border-color: var(--accent); color: #fff; }

.cart-options { display: flex; flex-direction: column; gap: 10px; }
.cart-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--body-bg);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cart-option:hover { border-color: var(--accent); }
.cart-option input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.cart-option:has(input:checked) { border-color: var(--accent); background: rgba(254, 53, 96, .06); }
.cart-option.is-fixed { cursor: default; background: var(--tag-bg); }
.cart-option.is-fixed:hover { border-color: var(--border-color); }
.cart-ico { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.cart-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.cart-text small { color: var(--muted); font-size: 13px; }
.cart-price { font-weight: 800; white-space: nowrap; }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--border-color);
  font-size: 16px;
  font-weight: 700;
}
.cart-total strong { font-size: 1.6rem; font-weight: 800; color: var(--accent); }

.pay-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pix-box { text-align: center; }
.pix-amount { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pix-amount strong { display: block; font-size: 2rem; font-weight: 800; color: var(--body-color); line-height: 1.2; }
.pix-qr {
  display: inline-block;
  padding: 14px;
  background: #fff; /* QR sempre escuro sobre branco, inclusive no tema escuro */
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  line-height: 0;
}
.pix-qr img, .pix-qr canvas { width: 220px; height: 220px; }
.pix-timer { margin: 10px 0 18px; font-size: 13px; color: var(--muted); }
.pix-timer strong { color: var(--body-color); font-variant-numeric: tabular-nums; }
.pix-copy { text-align: left; }
.pix-copy textarea { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; resize: none; min-height: 0; }
.pix-steps { text-align: left; margin: 18px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.pix-steps li { margin-bottom: 4px; }

.order-box {
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--tag-bg);
}
.order-title { font-size: 15px; margin: 0 0 6px; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.order-list li span:first-child { display: flex; flex-direction: column; line-height: 1.35; }
.order-list small { color: var(--muted); font-size: 12px; }
.order-box .cart-total { margin-top: 0; border-top: 0; }
.order-box .cart-total strong { font-size: 1.35rem; }
.order-edit { display: inline-flex; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); }

@media (max-width: 860px) {
  .pay-layout { grid-template-columns: 1fr; }
  .order-box { order: -1; }
}
@media (max-width: 560px) {
  .checkout-steps { font-size: 12px; }
  .checkout-steps li:not(.current) { flex: 0 0 auto; }
  .checkout-steps li:not(.current) { font-size: 0; gap: 0; }
  .checkout-steps li:not(.current) span, .checkout-steps li:not(.current) i { font-size: 12px; }
  .checkout-steps li::after { display: none; }
  .cart-option { padding: 12px; gap: 10px; }
  .cart-price { font-size: 14px; }
}

/* ---------- Home: feed estilo timeline ---------- */
/* barras laterais fixas: acompanham a rolagem e rolam por dentro se forem mais altas que a tela */
.layout-home { align-items: start; }
.sidebar-fixed {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--placeholder-2) transparent;
  padding-right: 2px;
}
.sidebar-fixed > * + * { margin-top: 20px; }
.sidebar-fixed .ad-rect { margin-bottom: 0; }
.layout-home .sidebar-left .partners-tags { margin: 0; }

.feed { min-width: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.feed-head h2 { font-size: 18px; margin: 0; }
.feed-tabs { display: flex; gap: 4px; background: var(--card-bg); padding: 4px; border-radius: 999px; box-shadow: var(--shadow); }
.feed-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.feed-tabs button:hover { color: var(--body-color); }
.feed-tabs button.active { background: var(--accent); color: #fff; }
.feed-more { display: flex; margin: 20px auto 0; }

/* imagem de exemplo (gradiente + ícone) */
.media-bg {
  background:
    radial-gradient(circle at 25% 20%, hsla(var(--h), 90%, 70%, .55), transparent 55%),
    linear-gradient(135deg, hsl(var(--h), 55%, 22%), hsl(calc(var(--h) + 40), 60%, 12%));
  color: hsla(var(--h), 100%, 90%, .75) !important;
}

/* card de post (estilo tweet) */
.post {
  display: flex;
  gap: 12px;
  padding: 16px 18px 10px;
  margin-bottom: 12px;
}
.post[hidden] { display: none; }
.post-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.post-avatar.band { background: #222; border: 2px solid var(--accent); }
:root[data-theme="dark"] .post-avatar.band { background: #111; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.post-who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; line-height: 1.3; }
.post-name { font-weight: 800; font-size: 15px; }
.verified { color: var(--accent); font-size: 13px; }
.post-handle { color: var(--muted); font-size: 14px; }
.post-type { color: var(--accent); font-weight: 700; }
.post-more { margin: -6px -8px 0 0; }
.post-link { display: block; color: inherit !important; }
.post-title-sm { font-size: 17px; line-height: 1.3; margin: 4px 0; }
.post-link:hover .post-title-sm { color: var(--accent); }
.post-text { margin: 0 0 10px; }
.post-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  font-size: 56px;
  overflow: hidden;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 10px 0 2px; padding: 0; font-size: 14px; color: var(--accent); }

/* barra de ações */
.post-actions { display: flex; align-items: center; gap: 4px; margin: 4px 0 0 -8px; }
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted) !important;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.act i { font-size: 17px; }
.act:hover { color: var(--accent) !important; background: rgba(254, 53, 96, .1); }
.act-comment:hover { color: #1d9bf0 !important; background: rgba(29, 155, 240, .1); }
.act-share:hover { color: #00ba7c !important; background: rgba(0, 186, 124, .1); }
.act-save { margin-left: auto; }
.act-save[aria-pressed="true"] { color: var(--accent) !important; }

/* curtir = mão do rock */
.ico-rock { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.act-like[aria-pressed="true"] { color: var(--accent) !important; font-weight: 700; }
.act-like[aria-pressed="true"] .ico-rock { fill: rgba(254, 53, 96, .22); }
.act-like.pop .ico-rock { animation: rock-pop .45s ease; }
@keyframes rock-pop {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.35) rotate(-14deg); }
  65% { transform: scale(.95) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .act-like.pop .ico-rock { animation: none; } }

/* release em destaque: título sobre a imagem */
.featured { overflow: hidden; }
.featured-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 70% 30%, rgba(254, 53, 96, .45), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255, 170, 0, .25), transparent 45%),
    linear-gradient(135deg, #2b0a16, #0d0d0d);
}
.featured-cover:hover { color: #fff; }
.featured-art { font-size: 110px; color: rgba(255, 255, 255, .7); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); transition: transform .3s; }
.featured-cover:hover .featured-art { transform: scale(1.04); }
.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 22px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 60%, transparent);
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.featured-badge .bi { color: var(--accent); }
.featured-title { font-size: 1.5rem; line-height: 1.2; margin: 6px 0 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.featured-cover:hover .featured-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* boxes da lateral */
.side-cta { padding: 20px; text-align: center; }
.side-cta h2 { font-size: 17px; line-height: 1.25; margin: 6px 0 8px; }
.side-cta p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.side-cta-ico { width: 40px; height: 40px; font-size: 34px; color: var(--accent); }
svg.side-cta-ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.side-cta-foot { margin: 12px 0 0 !important; font-size: 13px !important; }
.side-cta-foot a { color: var(--accent); font-weight: 700; }
.side-release {
  background:
    radial-gradient(circle at 100% 0, rgba(254, 53, 96, .45), transparent 60%),
    linear-gradient(160deg, #1d1d1d, #000);
  color: #fff;
}
.side-release .side-cta-ico { color: #fff; }
.side-reach { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.side-reach li { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.side-reach li:last-child { border-bottom: 0; }
.side-reach strong { color: #fff; font-size: 15px; }

/* "em alta" com títulos */
.layout-home .trend-text { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.layout-home .trend-thumb { font-size: 22px; }

/* aviso rápido */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.show.has-link { pointer-events: auto; }
.toast-link { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.toast-link:hover, .toast-link:focus-visible { color: var(--accent) !important; }

/* modal "entre para curtir/salvar" (visitante; montado pelo rn-curtidas.js) */
.rn-auth-modal {
  width: min(400px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) * 2);
  background: var(--card-bg);
  color: var(--body-color);
  box-shadow: var(--shadow-hover);
  text-align: center;
}
.rn-auth-modal::backdrop { background: rgba(0, 0, 0, .55); }
.rn-auth-modal[open] { animation: rn-modal-in .18s ease-out; }
@keyframes rn-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rn-auth-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}
.rn-auth-modal-close:hover, .rn-auth-modal-close:focus-visible { background: var(--tag-bg); color: var(--body-color); }
.rn-auth-modal-ico { font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.rn-auth-modal-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.rn-auth-modal-text { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.rn-auth-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.rn-auth-modal-actions .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .rn-auth-modal[open] { animation: none; } }

@media (max-width: 860px) {
  /* no celular a lateral vai para baixo do feed: deixa de ser fixa */
  .sidebar-fixed { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 560px) {
  .post { padding: 14px 14px 8px; gap: 10px; }
  .post-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 12px; }
  .post-title-sm { font-size: 16px; }
  .act { padding: 0 8px; }
  .featured-overlay { padding: 36px 16px 14px; }
  .featured-title { font-size: 1.15rem; }
  .featured-art { font-size: 72px; }
  .feed-head { flex-wrap: wrap; }
}

/* ---------- Notícia: post e comentários estilo Twitter ---------- */
.post-detail { padding-top: 20px; }
.post-detail > .post-head { align-items: center; margin-bottom: 16px; }
.post-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.post-author .post-who { flex-direction: column; }
.btn-outline.btn-sm { padding: 5px 16px; }
.btn.is-following { background: var(--accent); color: #fff !important; }
.post-detail .post-tags { margin: 0 0 14px; }
.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  margin: 0 28px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--muted);
}
.post-single > .post-stats { padding-left: 0; padding-right: 0; }
.post-stats strong { color: var(--body-color); }
.post-stats a:hover { text-decoration: underline; }
/* linha so em cima e de ponta a ponta do box (o .share abaixo ja tem a linha que divide) */
.post-single > .post-actions {
  justify-content: space-around;
  margin: 0 0 4px;
  padding: 4px 28px;
  border-top: 1px solid var(--border-color);
}
.post-detail .act-save { margin-left: 0; }
.post-detail .act i { font-size: 19px; }
.post-detail .ico-rock { width: 22px; height: 22px; }

/* (i) com aviso de direitos da fonte: tooltip acima da barra, alinhado à direita */
.post-single > .post-actions { position: relative; }
.act-info-wrap { display: inline-flex; }
.act-info:hover, .act-info:focus-visible { color: var(--accent) !important; }
.act-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(360px, 100%);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #222;
  color: #f1f1f1;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 30;
  pointer-events: none;
}
:root[data-theme="dark"] .act-tooltip { background: #555; }
.act-info-wrap:hover .act-tooltip,
.act-info:focus + .act-tooltip { opacity: 1; visibility: visible; transform: none; }

/* "em alta" com títulos */
.trend-title { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-thumb.media-bg { font-size: 22px; }

/* comentários */
.comments { padding: 20px 0 6px; margin-bottom: 20px; scroll-margin-top: 92px; }
.comments-title { font-size: 18px; margin: 0 20px 14px; display: flex; align-items: center; gap: 8px; }
.comments-title span {
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
}
.comment-form {
  display: flex;
  gap: 12px;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border-color);
}
.comment-field { flex: 1; min-width: 0; }
.comment-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--body-color);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  resize: vertical;
  min-height: 48px;
}
.comment-field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.comment-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.comment-bar small { color: var(--muted); font-size: 12px; }
.comment-bar small a { color: var(--accent); font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--accent); }

.comment { display: flex; gap: 12px; padding: 14px 20px 6px; border-bottom: 1px solid var(--border-color); }
.comment .post-text { margin: 2px 0 0; }
.comment .post-actions { margin-top: 2px; }
.comment.is-reply { padding: 12px 0 0; border-bottom: 0; position: relative; }
.comment.is-reply .post-avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 11px; }
.comments-more {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.comments-more:hover { background: var(--tag-bg); }
.comments-more[hidden] { display: none; }

/* comentários – plugin rn-comentarios (Fase 6) */
.comment-text { white-space: pre-line; overflow-wrap: anywhere; }
.comment-replies:empty { display: none; }
.comment.is-pending > .post-main > .comment-text { opacity: .72; }
.comment.is-gone > .post-main > .comment-text { color: var(--muted); font-style: italic; }
.comment.is-gone > .post-avatar { background: var(--tag-bg); color: var(--muted); }
.comment-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--border-color);
  border-radius: 999px;
  padding: 0 8px;
}
.comment-actions .act { font-size: 13px; }
.comment-actions .act span { font-size: 13px; }
.act-del:hover, .act-report:hover { color: #dc3545 !important; background: rgba(220, 53, 69, .1); }
.act-report[aria-pressed="true"] { color: #dc3545 !important; }
.comment-actions .act[data-armed="1"] { color: #dc3545 !important; font-weight: 700; }
.comment-replying {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.comment-replying[hidden] { display: none; }
.comment-replying strong { color: var(--body-color); }
.comment-replying-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 999px;
}
.comment-replying-x:hover { background: var(--tag-bg); color: var(--body-color); }
.comment-left { margin-left: auto; font-size: 12px; color: var(--muted); }
.comment-left:empty { display: none; }
.comment-note { align-items: center; }
.comment-note p { margin: 0; color: var(--muted); font-size: 14px; }
.comment-note p a { color: var(--accent); font-weight: 700; }
/* visitante: "campo" que abre o modal de login (rn-comentarios/views/secao.php) */
.comment-fake {
  display: block;
  font-size: 16px;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  min-height: 48px;
  cursor: text;
}
.comment-fake:hover, .comment-fake:focus-visible { border-bottom-color: var(--accent); }
.comments-empty { margin: 0; padding: 18px 20px; color: var(--muted); font-size: 14px; text-align: center; }
.comments-empty[hidden] { display: none; }
.comments[aria-busy="true"] .comment-list:empty { min-height: 60px; }

@media (max-width: 560px) {
  .post-stats { margin-left: 16px; margin-right: 16px; }
  .post-single > .post-actions { padding-left: 16px; padding-right: 16px; }
  .post-stats { gap: 2px 12px; font-size: 13px; }
  .comments-title { margin: 0 16px 12px; }
  .comment-form { padding: 0 16px 14px; gap: 10px; }
  .comment-form > .post-avatar { display: none; }
  .comment-bar { flex-wrap: wrap; }
  .comment { padding: 12px 16px 4px; gap: 10px; }
  .comment .post-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 12px; }
}

/* corpo da notícia (sem moldura) */
.post-body { margin-bottom: 20px; }
.post-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.post-photo { margin: 0 0 18px; }
.post-photo-img {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  font-size: 56px;
}
.post-photo figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
/* botão de ação no fim do texto */
.post-body .post-cta { margin: 18px 0 0; }
/* "Continuar lendo" (noticia importada): pilula igual as dos parceiros da sidebar esquerda */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}
.cta-pill:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* hashtags com o mesmo recuo do card da noticia */
.post-single > .post-tags { padding-left: 28px; padding-right: 28px; }
@media (max-width: 560px) { .post-single > .post-tags { padding-left: 16px; padding-right: 16px; } }

/* tags da notícia em formato de botão (mesmo estilo do "Seguir", menor) */
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; }
.post-single > .tag-pills { padding-left: 28px; padding-right: 28px; }
.btn-xs { padding: 3px 12px; font-size: 12px; gap: 4px; border-width: 1.5px; }
.post-single > .post-actions { border-top: 1px solid var(--border-color); }
@media (max-width: 560px) { .post-single > .tag-pills { padding-left: 16px; padding-right: 16px; } }

/* ---------- Meus anúncios ---------- */
.ad-stats {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ad-stats li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag-bg);
  font-size: 12px;
  color: var(--muted);
}
.ad-stats strong { color: var(--body-color); font-weight: 700; }
.status-badge.ended { background: var(--tag-bg); color: var(--muted); }
.ad-progress { margin-top: 10px; max-width: 360px; }
.ad-progress-bar { height: 6px; border-radius: 999px; background: var(--tag-bg); overflow: hidden; }
.ad-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.ad-progress small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.release-item.is-new { background: rgba(254, 53, 96, .06); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 6px; }

/* ---------- Criar anúncio ---------- */
.step-panel[hidden], .ad-fieldset[hidden], .ad-compose[hidden], .ad-type-hint[hidden], .form-actions [hidden], [data-budget-custom][hidden], [data-start-date][hidden] { display: none; }
.ad-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.ad-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 0; }
.ad-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ad-type:hover { border-color: var(--accent); }
.ad-type input { position: absolute; opacity: 0; pointer-events: none; }
.ad-type i { font-size: 28px; color: var(--accent); }
.ad-type small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.ad-type:has(input:checked) { border-color: var(--accent); background: rgba(254, 53, 96, .06); }
.ad-type:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(254, 53, 96, .25); }
.ad-type-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ad-type-hint.is-error { color: #dc3545; font-weight: 700; }
.dropzone.is-error { border-color: #dc3545; }

.ad-compose { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.ad-preview-wrap { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 6px; }
.ad-preview-note { color: var(--muted); font-size: 12px; }

.ad-preview { border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--card-bg); overflow: hidden; box-shadow: var(--shadow); }
.ad-sponsored { display: flex; align-items: center; gap: 5px; padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ad-media { aspect-ratio: 16 / 9; background: var(--placeholder); color: var(--muted); display: grid; place-items: center; font-size: 34px; position: relative; overflow: hidden; }
.ad-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-video { background: #111; }
.ad-play { position: relative; width: 56px; height: 40px; border-radius: 10px; background: #f00; color: #fff; display: grid; place-items: center; font-size: 26px; }
.ad-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.ad-title { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ad-text { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ad-cta { align-self: flex-start; pointer-events: none; }
.ad-domain { font-size: 11px; color: var(--muted); }
.ad-spotify { display: block; width: calc(100% - 24px); margin: 0 12px 12px; border: 0; border-radius: 12px; }
.ad-spotify-empty { margin: 0 12px 12px; padding: 22px 12px; border-radius: 12px; background: var(--tag-bg); color: var(--muted); font-size: 13px; text-align: center; }
.ad-spotify-empty i { color: #1db954; font-size: 18px; margin-right: 4px; }
.ad-preview-sm { margin: 4px 0 14px; box-shadow: none; }

.ad-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 20px; }
.ad-modes .cart-option { align-items: flex-start; height: 100%; }
.budget-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.budget-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--border-color);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.budget-chip:hover { border-color: var(--accent); }
.budget-chip input { position: absolute; opacity: 0; pointer-events: none; }
.budget-chip:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }
.budget-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(254, 53, 96, .25); }
.budget-custom { max-width: 260px; margin-bottom: 12px; }
.budget-start { margin: 8px 0 20px; }

.ad-estimate { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: rgba(254, 53, 96, .07); border: 1px solid rgba(254, 53, 96, .3); }
.ad-estimate-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.ad-estimate strong { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.ad-estimate small { font-size: 12px; color: var(--muted); }
.ad-estimate.is-empty { flex-direction: row; align-items: center; gap: 8px; background: var(--tag-bg); border-color: var(--border-color); color: var(--muted); font-size: 14px; }
.order-box .order-edit { display: flex; margin-top: 8px; color: var(--accent); }

@media (max-width: 860px) {
  .ad-compose { grid-template-columns: 1fr; }
  .ad-preview-wrap { position: static; max-width: 360px; }
}
@media (max-width: 560px) {
  .ad-types { grid-template-columns: 1fr; }
  .ad-type { flex-direction: row; text-align: left; padding: 12px 14px; gap: 12px; }
  .ad-type i { font-size: 24px; }
  .ad-type small { display: none; }
  .ad-modes { grid-template-columns: 1fr; }
}
.order-box .order-edit:hover { color: var(--accent); text-decoration: underline; }

/* listagem no formato do site principal (home e "Veja também") */
.post-row { padding: 0; gap: 0; overflow: hidden; align-items: stretch; }
.post-row .post-thumb {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  min-height: 150px;
  margin: 10px 0 10px 10px;
  display: grid;
  place-items: center;
  font-size: 44px;
}
.post-row .post-main { display: flex; flex-direction: column; padding: 14px 18px 8px; }
.post-row .post-title-sm { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.post-row .post-title-sm a { color: inherit; }
.post-row .post-title-sm a:hover { color: var(--accent); }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; color: var(--muted); }
.post-byline a { font-weight: 700; }
.post-byline .post-type { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.post-time i { color: #28a745; margin-right: 2px; }
.post-row .post-actions { margin-top: auto; padding-top: 6px; }
@media (max-width: 560px) {
  .post-row { flex-direction: column; padding: 0; }
  .post-row .post-thumb { max-width: none; min-height: 0; aspect-ratio: 16 / 9; margin: 10px 10px 0; }
  .post-row .post-main { padding: 12px 14px 6px; }
  .post-row .post-title-sm { font-size: 17px; }
}

/* "Envie seu Release" / "Escreva no RN" na sidebar esquerda, abaixo dos parceiros */
.side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.side-actions .btn { justify-content: center; text-align: center; }

/* Rodapé no desktop (igual em todas as páginas): sem a linha divisória
   e sem os botões, que só aparecem no rodapé até 1100px */
@media (min-width: 1101px) {
  .footer-bottom { border-top: 0; padding-top: 0; }
  .footer-top-mobile { display: none; }
}

/* =========================================================
   TEMA – acréscimos ao CSS do mockup (Fase 1)
   ========================================================= */

/* acessibilidade: texto só para leitor de tela / "pular para o conteúdo" */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* conteúdo ocupa a tela mesmo em página curta (rodapé no fim) */
#content { min-height: 60vh; }

/* topo: ícone do painel (só admin) */
.header-right .icon-btn.dash { color: var(--accent); }

/* "Sair" é um formulário POST com aparência de link */
.logout-form { display: inline; margin: 0; }
.logout-form button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.logout-form button:hover { color: var(--accent); }
.offcanvas .logout-form { display: block; }
.offcanvas .logout-form button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

/* menu do celular: redes sociais lado a lado */
.offcanvas .offcanvas-social { display: flex; gap: 6px; }
.offcanvas li a i { margin-right: 4px; }

/* bloco de cadastro compacto (vinha de um <style> do mockup index.html) */
.side-signup { padding: 14px 16px; text-align: left; }
.side-signup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.side-signup .side-cta-ico { flex: 0 0 auto; width: auto; height: auto; font-size: 26px; line-height: 1; }
.side-signup h2 { font-size: 15px; margin: 0; }
.side-signup p { font-size: 13px; margin: 0 0 10px; }
.side-signup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.side-signup .side-cta-foot { margin: 0 !important; font-size: 12px !important; color: var(--muted); }

/* rolagem infinita: marcador invisível */
.feed-sentinel { height: 1px; }

/* espaços de anúncio (pago ou bloco do painel) */
.ad-slot { margin: 0 0 16px; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot iframe, .ad-slot img { max-width: 100%; }

/* rodapé: texto institucional pode ter vários parágrafos */
.disclaimer + .disclaimer { margin-top: 6px; }

/* sem animações para quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* sprite de ícones SVG (partials/sprites.svg): presente na página, mas sem ocupar espaço */
#svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* nenhuma página cria rolagem lateral (conteúdo de terceiros largo demais não empurra o topo).
   clip (e não hidden) não cria área de rolagem: o topo fixo (sticky) continua funcionando */
body { overflow-x: clip; }

/* compatibilidade: variáveis do tema antigo que o CSS dos plugins (rn-contas, rn-releases) ainda lê.
   Sai na Fase 4, quando as telas da conta forem refeitas no visual novo. */
:root { --card-color: var(--body-color); --link-color: var(--accent); }

/* =========================================================
   Fase 2 – listagens, páginas internas, erro e busca
   ========================================================= */

/* miniatura com foto de verdade (o mockup usava gradiente + ícone) */
.post-row .post-thumb { position: relative; overflow: hidden; border-radius: 6px; background: var(--placeholder); }
.post-row .post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-row .post-thumb:hover img { transform: scale(1.04); }
.post-row.no-thumb .post-main { padding-top: 16px; }
.post { margin-bottom: 12px; }
.act-admin { color: var(--muted); }
.act-admin:hover { color: var(--accent); }

/* "Em alta…" */
.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-thumb { overflow: hidden; }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* rolagem infinita / paginação */
.feed-loading { text-align: center; color: var(--muted); margin: 12px 0; }
.feed-loading i { display: inline-block; animation: rn-spin 1s linear infinite; }
@keyframes rn-spin { to { transform: rotate(360deg); } }
.pagination-wrap { margin: 20px 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination .page-link {
  display: inline-block; min-width: 38px; padding: 7px 12px; text-align: center;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.pagination .page-link:hover { border-color: var(--accent); }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .disabled .page-link { opacity: .45; pointer-events: none; }

/* lista vazia */
.empty-box { padding: 30px 16px; }
.empty-box small { display: block; margin-bottom: 14px; }

/* títulos de listagem (h1 nas páginas de arquivo/categoria) */
.feed-head h1 { font-size: 22px; margin: 0; }
.feed-head h1 em { font-style: normal; color: var(--accent); }
.feed .breadcrumb { margin-top: 20px; }

/* página interna (mockup blank.html) */
.page-main { min-width: 0; }
.page-card { padding: 24px 28px; margin-top: 12px; }
.page-title { font-size: 1.75rem; line-height: 1.2; margin: 0 0 16px; }
.page-content { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.page-content img, .page-content iframe { max-width: 100%; height: auto; }
.page-content a { color: var(--accent); }
.contact-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.contact-form .form-actions { border-top: 0; padding-top: 0; margin-top: 16px; }
.contact-captcha { margin-top: 16px; }
/* armadilha para robos: fora da tela, mas nao display:none (alguns robos pulam campos escondidos) */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .page-card { padding: 18px 16px; } .page-title { font-size: 1.4rem; } }

/* páginas de erro (404 / 410) */
.error-wrap { display: grid; place-items: center; padding: 48px 16px 64px; }
.error-card { max-width: 560px; width: 100%; padding: 32px 28px; text-align: center; }
.error-ico { font-size: 56px; color: var(--accent); }
.error-title { font-size: 1.5rem; margin: 10px 0 12px; }
.error-card .muted { color: var(--muted); }


/* =========================================================
   Fase 3 – página da notícia
   ========================================================= */
.post-main-col { min-width: 0; }
.post-narrow { max-width: 860px; margin-top: 20px; margin-bottom: 40px; }
.layout-post .breadcrumb { margin-top: 0; }
.breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* avatar com o logo da fonte */
.post-avatar { overflow: hidden; }
.post-avatar { position: relative; }
.post-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.post-who .post-type {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent);
}

.post-admin-link { color: var(--muted); }
.post-admin-link:hover { color: var(--accent); }

/* foto principal */
.post-photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }
.post-photo a { display: block; }

/* texto da matéria (conteúdo de terceiros já filtrado por rn_safe_html) */
.post-content { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.post-content > :first-child { margin-top: 0; }
.post-content h2 { font-size: 1.35rem; margin: 26px 0 10px; line-height: 1.3; }
.post-content h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.post-content h4 { font-size: 1rem; margin: 18px 0 6px; }
.post-content ul, .post-content ol { margin: 0 0 14px; padding-left: 1.4em; }
.post-content li { margin-bottom: 4px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  margin: 0 0 16px; padding: 4px 0 4px 16px;
  border-left: 4px solid var(--accent); color: var(--muted); font-style: italic;
}
.post-content img { max-width: 100%; height: auto; border-radius: 6px; }
.post-content figure { margin: 0 0 16px; }
.post-content figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.post-content iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 8px; margin: 0 0 16px; }
.post-content iframe[src*="youtube"], .post-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--border-color); padding: 6px 8px; text-align: left; }
.post-content pre { overflow-x: auto; background: var(--tag-bg); padding: 12px; border-radius: 6px; }
.post-content hr { border: 0; border-top: 1px solid var(--border-color); margin: 22px 0; }

/* anúncio dentro do card */
.post-single > .ad-noticia { margin: 16px 28px; padding: 0; }

/* compartilhar */
.post-single > .share { margin-top: 8px; }

/* push (só admin) */
.push-box { margin: 16px 28px 0; padding: 12px 16px !important; border: 1px dashed var(--border-color); border-radius: var(--radius); font-size: 14px; }
.push-box summary { cursor: pointer; font-weight: 700; }
.push-form { display: grid; gap: 8px; margin-top: 10px; }
.push-form textarea, .push-form input {
  width: 100%; font: inherit; color: var(--body-color); background: var(--body-bg);
  border: 1px solid var(--border-color); border-radius: 6px; padding: 8px 10px;
}
.push-when { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.push-when label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.push-when input { width: auto; }

/* "Veja também" */
.related-section { margin-top: 8px; }

@media (max-width: 560px) {
  .post-single > .ad-noticia, .push-box { margin-left: 16px; margin-right: 16px; }
  .post-title { font-size: 1.5rem; }
  .breadcrumb li:last-child { max-width: 28ch; }
}

/* =========================================================
   Fase 4 – área da conta e envio de release
   ========================================================= */

/* variáveis que o rn-releases.css (modal, recorte, editor, avisos da imagem) usa */
:root {
  --rn-accent: var(--accent);
  --rn-border: var(--border-color);
  --rn-card-bg: var(--card-bg);
  --rn-card-color: var(--body-color);
  --rn-muted: var(--muted);
  --input-bg: var(--body-bg);
}

/* alertas do núcleo (sp_alert_flashes / sp_bootstrap_alert) */
.alert {
  position: relative; padding: 12px 40px 12px 16px; margin: 0 0 16px;
  border-radius: var(--radius); border: 1px solid transparent; font-size: 14px;
}
.alert-success { background: rgba(25, 135, 84, .12); border-color: rgba(25, 135, 84, .35); }
.alert-danger, .alert-error { background: rgba(220, 53, 69, .12); border-color: rgba(220, 53, 69, .4); }
.alert-warning { background: rgba(255, 153, 0, .12); border-color: rgba(255, 153, 0, .4); }
.alert-info { background: rgba(13, 110, 253, .1); border-color: rgba(13, 110, 253, .3); }
.alert .close {
  position: absolute; top: 6px; right: 8px; background: none; border: 0;
  color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6;
}
.alert .close:hover { opacity: 1; }
.alert-icon svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* erros de campo */
.field-error { color: #dc3545 !important; font-weight: 700; }
:root[data-theme="dark"] .field-error { color: #ff6b7a !important; }
.field [aria-invalid="true"], .field .is-invalid { border-color: #dc3545 !important; }
.check-terms + .field-error { display: block; margin-top: 6px; font-size: 12px; }

/* input de arquivo */
.file-input {
  padding: 10px !important; border: 1px dashed var(--border-color) !important;
  background: var(--tag-bg) !important; cursor: pointer;
}
.file-input::file-selector-button {
  margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}

/* login: aviso legal e teste local */
.auth-legal { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.auth-legal a { color: var(--accent); }
.rn-fake-login { margin-top: 8px; padding: 12px; border: 1px dashed var(--border-color); border-radius: var(--radius); text-align: left; }
.rn-fake-login .span-2 { grid-column: 1 / -1; }

/* lateral da conta: Sair é um form POST */
.profile-logout { display: block; }
.profile-logout button { color: var(--muted); font-size: 14px; }
.profile-logout button:hover { color: var(--accent); }
.avatar { font-size: 32px; font-weight: 800; color: var(--accent); }

/* foto de perfil (rn-contas 0.4.0): cartao no Meu perfil, icone do topo e comentarios */
.profile-photo .photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-photo .photo-preview { flex: 0 0 112px; font-size: 52px; color: var(--muted); }
.profile-photo .photo-actions { flex: 1 1 240px; min-width: 0; display: grid; gap: 10px; }
.profile-photo .photo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.profile-photo .photo-upload label { flex-basis: 100%; font-weight: 600; font-size: 14px; }
.profile-photo .photo-upload input[type="file"] { flex: 1 1 200px; min-width: 0; max-width: 100%; font-size: 14px; }
.profile-photo small { color: var(--muted); font-size: 13px; }
.icon-btn .icon-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.post-avatar.has-photo { background: var(--placeholder); }

/* "Meus comentarios" e aviso de resposta (rn-comentarios 1.1.0) */
.my-comments { list-style: none; margin: 16px 0 0; padding: 0; }
.my-comment { padding: 16px 20px; border-top: 1px solid var(--border-color); display: grid; gap: 8px; }
.my-comment:first-child { border-top: 0; }
.my-comment.has-new { box-shadow: inset 3px 0 0 var(--accent); }
.my-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.my-comment-kind { font-weight: 600; }
.my-comment-text { margin: 0; white-space: pre-line; word-break: break-word; }
.my-comment-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; font-size: 14px; }
.my-comment-post { min-width: 0; font-weight: 600; word-break: break-word; }
.my-comment-replies { color: var(--muted); white-space: nowrap; }
.my-comments-new { margin: 0 0 8px; font-weight: 600; color: var(--accent); }
.avisos-sair { max-width: 560px; margin: 32px auto; }
.avisos-sair form { margin: 16px 0 12px; }
.comment.is-target > .post-main { background: var(--tag-bg); border-radius: 10px; box-shadow: 0 0 0 6px var(--tag-bg); }

/* perfil: contas conectadas e excluir conta */
.profile-main > * + * { margin-top: 16px; }
.danger-zone { text-align: left; }
.danger-zone summary { cursor: pointer; color: #dc3545; font-weight: 700; font-size: 14px; }
.danger-zone p { font-size: 14px; color: var(--muted); }
.btn-danger { background: #dc3545; border-color: #dc3545; }
.btn-danger:hover { background: #b02a37; }

/* release: imagem atual, galeria antiga, sugestões de tag, simular pagamento */
.rn-current-img { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rn-current-img img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; }
.rn-releases .rn-tag-sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.release-thumb { overflow: hidden; }
.release-thumb img { width: 100%; height: 100%; object-fit: cover; }
.release-actions form { margin: 0; }
.release-note .btn { margin-top: 4px; }
.rn-simulate { margin-top: 14px; padding: 10px 12px; border: 1px dashed #ff9900; border-radius: var(--radius); font-size: 13px; }
.rn-simulate p { margin: 0 0 8px; }
.pix-box .btn-block + .btn-block, .rn-pay-status + .btn { margin-top: 10px; }
.rn-pay-status { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--tag-bg); font-size: 14px; text-align: center; }
.rn-pay-status.ok { background: rgba(25, 135, 84, .14); color: #198754; font-weight: 700; }
.rn-legal h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.rn-legal p, .rn-legal li { font-size: 15px; line-height: 1.7; }

/* ---------- Anúncios (rn-anuncios, Fase 7a) ---------- */
/* player do YouTube/Spotify só carrega ao clicar: a área da mídia é um botão */
button.ad-media { width: 100%; padding: 0; border: 0; font: inherit; cursor: pointer; }
button.ad-media:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ad-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ad-music { background: #121212; color: #1db954; }
.ad-music img { object-fit: contain; }
.ad-play-sp { background: #1db954; border-radius: 999px; width: 48px; height: 48px; }
.release-thumb.rn-ad-thumb-video { background: #111; color: #f00; }
.release-thumb.rn-ad-thumb-musica { background: #1db954; color: #fff; }
.rn-ad-rules { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.rn-ad-rules summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.rn-ad-rules ul { margin: 4px 0 8px; padding-left: 20px; }
.rn-ad-rules p { margin: 8px 0 0; }
.rn-ad-warn { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #b86e00; }
:root[data-theme="dark"] .rn-ad-warn { color: #ffb84d; }
.rn-ad-warn[hidden], .field-error[hidden] { display: none; }
.rn-ad-admin-note { margin: 14px 0 0; }
.rn-inline-form { display: inline; margin: 0; }
.icon-btn.is-armed { color: #fff; background: #dc3545; border-color: #dc3545; }
.rn-anuncios .ad-compose .check-terms { margin-top: 16px; }
.rn-anuncios .budget-start .field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------- Anúncios no site (rn-anuncios, Fase 7b) ---------- */
/* o selo "Patrocinado" fica sempre visível no topo do card (identificação de publicidade) */
.ad-slot .ad-entrega { text-align: left; }
a.ad-preview { display: block; color: inherit; text-decoration: none; }
a.ad-preview:hover .ad-title { color: var(--accent); }
a.ad-preview:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ad-entrega .ad-title { font-size: 17px; }
/* feed e notícia: mídia à esquerda e texto à direita, como os posts da lista; no play (vídeo/música) vira um bloco só */
@media (min-width: 561px) {
  .ad-entrega-feed:not(.is-playing), .ad-entrega-noticia:not(.is-playing) {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    align-items: start;
  }
  .ad-entrega-feed:not(.is-playing) > .ad-sponsored, .ad-entrega-noticia:not(.is-playing) > .ad-sponsored { grid-column: 1 / -1; grid-row: 1; }
  .ad-entrega-feed:not(.is-playing) > .ad-media, .ad-entrega-noticia:not(.is-playing) > .ad-media { grid-column: 1; grid-row: 2; width: calc(100% - 12px); margin: 0 0 12px 12px; border-radius: calc(var(--radius) - 2px); }
  .ad-entrega-feed:not(.is-playing) > .ad-body, .ad-entrega-noticia:not(.is-playing) > .ad-body { grid-column: 2; grid-row: 2; padding: 0 18px 12px; }
}

/* ---------- Meus anúncios: números por dia (rn-anuncios, Fase 7c) ---------- */
.rn-ad-days { margin-top: 10px; max-width: 420px; font-size: 13px; }
.rn-ad-days summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 12px; }
.rn-ad-days table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.rn-ad-days th, .rn-ad-days td { padding: 4px 8px; border-bottom: 1px solid var(--border-color); text-align: right; font-variant-numeric: tabular-nums; }
.rn-ad-days th:first-child, .rn-ad-days td:first-child { text-align: left; }
.rn-ad-days th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.release-actions .rn-inline-form .icon-btn { cursor: pointer; }
@media (max-width: 560px) {
  .rn-ad-days { font-size: 12px; }
  .rn-ad-days th, .rn-ad-days td { padding: 4px 4px; }
  .rn-ad-days th { font-size: 10px; letter-spacing: 0; }
}
