/*
Theme Name: Rei Midas
Theme URI: https://oreimidas.blog
Author: Midas.Tech
Description: Tema do portal Rei Midas: notícias, Dicas do Midas, MIDASCAST e Midas Stream. Requer o plugin "Rei Midas – Núcleo do Portal".
Version: 1.0.0
Requires PHP: 8.0
Text Domain: reimidas
*/

:root {
	--rm-royal: #2B1258;
	--rm-royal-claro: #3B1A78;
	--rm-ouro: #F5B800;
	--rm-ouro-texto: #7A5600;
	--rm-tinta: #17131F;
	--rm-texto: #24202C;
	--rm-suave: #3D3748;
	--rm-mudo: #5B5568;
	--rm-linha: #E4E0EA;
	--rm-lilas: #F3F1F7;
	--rm-placeholder: #E7E3EE;
	--rm-branco: #FFFFFF;
	--rm-sobre-royal: #E6E0F2;
	--rm-youtube: #C4161C;
	--rm-display: "Unbounded", system-ui, sans-serif;
	--rm-ui: "Manrope", system-ui, sans-serif;
	--rm-leitura: "Source Serif 4", Georgia, serif;
	--rm-raio: 16px;
	--rm-largura: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--rm-branco); color: var(--rm-tinta); font-family: var(--rm-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rm-tinta); text-decoration: none; }
a:hover { color: var(--rm-royal); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--rm-ouro); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rm-pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--rm-ouro); color: var(--rm-tinta); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.rm-pular:focus { left: 8px; }

.rm-container { max-width: var(--rm-largura); margin: 0 auto; padding: 0 24px; }
.rm-display { font-family: var(--rm-display); font-weight: 800; }

/* ---------- Topo ---------- */
.rm-topo { background: var(--rm-royal); position: relative; z-index: 20; }
.rm-topo__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 10px; padding-bottom: 10px; }
.rm-logo img { height: 78px; width: auto; }
.rm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rm-nav a { display: block; padding: 12px 14px; color: var(--rm-branco); font-weight: 800; font-size: 15px; border-radius: 10px; }
.rm-nav a:hover, .rm-nav .current-menu-item > a, .rm-nav .current-menu-ancestor > a { color: var(--rm-ouro); }
.rm-topo__acoes { display: flex; gap: 12px; align-items: center; }
.rm-icone-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: var(--rm-branco); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; border: none; cursor: pointer; font-family: var(--rm-ui); }
.rm-btn--ouro { background: var(--rm-ouro); color: var(--rm-tinta); }
.rm-btn--ouro:hover { background: #FFC94D; color: var(--rm-tinta); }
.rm-btn--royal { background: var(--rm-royal); color: var(--rm-branco); }
.rm-btn--royal:hover { background: var(--rm-royal-claro); color: var(--rm-branco); }
.rm-btn--youtube { background: var(--rm-youtube); color: var(--rm-branco); }
.rm-btn--youtube:hover { color: var(--rm-branco); filter: brightness(1.08); }
.rm-btn--contorno { border: 1px solid rgba(255,255,255,0.4); color: var(--rm-branco); background: transparent; font-size: 13px; }
.rm-btn--contorno:hover { color: var(--rm-ouro); }

.rm-busca { background: var(--rm-royal-claro); padding: 14px 0; }
.rm-busca[hidden] { display: none; }
.rm-busca form, .rm-form-busca { display: flex; gap: 10px; }
.rm-busca input[type="search"], .rm-form-busca input[type="search"] { flex: 1; height: 48px; border-radius: 12px; border: 2px solid transparent; padding: 0 16px; font-size: 16px; font-family: var(--rm-ui); }
.rm-form-busca input[type="search"] { border-color: var(--rm-linha); }

.rm-plantao { background: var(--rm-ouro); }
.rm-plantao__inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.rm-plantao__selo { background: var(--rm-tinta); color: var(--rm-branco); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 4px; }
.rm-plantao a, .rm-plantao span.rm-plantao__texto { font-weight: 700; font-size: 14px; color: var(--rm-tinta); }

/* ---------- Peças comuns ---------- */
.rm-tag { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-ouro-texto); }
.rm-tag--selo { background: var(--rm-ouro); color: var(--rm-tinta); padding: 6px 10px; border-radius: 4px; }
.rm-midia { position: relative; background: var(--rm-placeholder); overflow: hidden; }
.rm-midia img { width: 100%; height: 100%; object-fit: cover; }
.rm-midia--vazia { display: flex; align-items: center; justify-content: center; }
.rm-midia--vazia img { width: auto; height: 46%; object-fit: contain; opacity: 0.5; }
.rm-duracao { position: absolute; right: 10px; bottom: 10px; background: var(--rm-tinta); color: var(--rm-branco); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }

.rm-card { display: flex; flex-direction: column; background: var(--rm-branco); border: 1px solid var(--rm-linha); border-radius: var(--rm-raio); overflow: hidden; height: 100%; }
.rm-card:hover { border-color: var(--rm-royal); }
.rm-card .rm-midia { aspect-ratio: 16 / 9; }
.rm-card__corpo { padding: 16px 18px 18px; }
.rm-card__titulo { margin-top: 8px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.rm-card__meta { margin-top: 8px; font-size: 13px; color: var(--rm-mudo); }

.rm-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.rm-grade--videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.rm-secao { margin-top: 56px; }
.rm-secao__topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rm-secao__titulo { font-family: var(--rm-display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.rm-secao__titulo svg { display: inline-block; vertical-align: -4px; margin-right: 10px; }
.rm-secao__titulo span { color: var(--rm-royal); }
.rm-ver-todas { font-weight: 800; font-size: 14px; color: var(--rm-royal); padding: 12px 0; }

.rm-anuncio { margin: 32px auto; text-align: center; max-width: 100%; }
.rm-anuncio__rotulo { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-mudo); margin-bottom: 6px; }
.rm-anuncio--topo { max-width: 728px; }
.rm-anuncio--vazio { border: 1px dashed #B9B3C6; border-radius: 8px; padding: 28px 16px; color: var(--rm-mudo); font-size: 13px; font-family: var(--rm-ui); }
.rm-anuncio--lateral.rm-anuncio--vazio { min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* ---------- Home ---------- */
.rm-home { padding-top: 32px; }
.rm-destaques { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.rm-destaque { position: relative; display: block; min-height: 460px; border-radius: var(--rm-raio); overflow: hidden; background: var(--rm-placeholder); }
.rm-destaque .rm-midia { position: absolute; inset: 0; }
.rm-destaque .rm-midia--vazia { align-items: flex-start; padding-top: 36px; }
.rm-destaque .rm-midia--vazia img { height: 34%; }
.rm-destaque__painel { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; background: rgba(43, 18, 88, 0.94); color: var(--rm-branco); }
.rm-destaque__painel .rm-tag { color: var(--rm-ouro); }
.rm-destaque__titulo { margin: 10px 0; font-family: var(--rm-display); font-weight: 800; font-size: 34px; line-height: 1.15; color: var(--rm-branco); }
.rm-destaque:hover .rm-destaque__titulo { color: var(--rm-ouro); }
.rm-destaque__meta { color: var(--rm-sobre-royal); font-size: 15px; }
.rm-destaques__lado { display: flex; flex-direction: column; gap: 20px; }
.rm-destaques__lado .rm-card { flex: 1; }
.rm-destaques__lado .rm-midia { aspect-ratio: auto; height: 130px; }

.rm-cast { margin-top: 8px; background: var(--rm-royal); color: var(--rm-branco); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.rm-cast a { color: var(--rm-branco); }
.rm-cast__principal { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rm-cast__marca { font-family: var(--rm-display); font-weight: 800; font-size: 24px; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.rm-cast__marca span, .rm-ouro { color: var(--rm-ouro); }
.rm-cast__ep { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rm-cast__capa { width: 200px; height: 200px; border-radius: var(--rm-raio); flex-shrink: 0; background: rgba(255,255,255,0.12); }
.rm-cast__info { flex: 1 1 280px; min-width: 0; }
.rm-cast__rotulo { color: var(--rm-sobre-royal); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.rm-cast__titulo { margin: 8px 0 16px; font-family: var(--rm-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.rm-cast__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.rm-play { width: 56px; height: 56px; border-radius: 28px; background: var(--rm-ouro); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rm-cast__ouvir { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.rm-cast__lista { flex: 1 1 300px; min-width: 0; }
.rm-cast__lista h3 { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--rm-sobre-royal); margin-bottom: 8px; }
.rm-cast__item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.rm-cast__num { font-family: var(--rm-display); font-weight: 800; color: var(--rm-ouro); font-size: 15px; min-width: 44px; }
.rm-cast__item-titulo { flex: 1; font-weight: 700; font-size: 15px; }
.rm-cast__item-dur { color: var(--rm-sobre-royal); font-size: 12px; }
.rm-cast__vazio { color: var(--rm-sobre-royal); }

.rm-dupla { display: flex; flex-wrap: wrap; gap: 40px; }
.rm-dupla__principal { flex: 999 1 560px; min-width: 0; }
.rm-dupla__lado { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.rm-mais-lidas { background: var(--rm-lilas); border-radius: var(--rm-raio); padding: 22px; }
.rm-mais-lidas h2 { font-family: var(--rm-display); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.rm-mais-lidas ol { list-style: none; margin: 0; padding: 0; counter-reset: rm; }
.rm-mais-lidas li { counter-increment: rm; border-top: 1px solid var(--rm-linha); }
.rm-mais-lidas li a { display: flex; gap: 16px; padding: 14px 0; font-weight: 700; font-size: 15px; line-height: 1.35; }
.rm-mais-lidas li a::before { content: counter(rm); font-family: var(--rm-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--rm-royal); min-width: 36px; }

.rm-faixa-stream { margin-top: 64px; background: var(--rm-lilas); padding: 48px 0; }
.rm-video__capa { position: relative; }
.rm-video .rm-midia { aspect-ratio: 16 / 9; border-radius: 14px; }
.rm-video__titulo { margin-top: 12px; font-size: 16px; line-height: 1.35; font-weight: 800; }

.rm-news { margin-top: 64px; background: var(--rm-ouro); color: var(--rm-tinta); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.rm-news__texto { flex: 1 1 380px; min-width: 0; }
.rm-news h2 { font-family: var(--rm-display); font-weight: 800; font-size: 30px; line-height: 1.15; margin-bottom: 10px; }
.rm-news p { margin: 0; font-size: 17px; font-weight: 600; }
.rm-news form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rm-news__campo { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.rm-news label { font-size: 13px; font-weight: 800; }
.rm-news input { height: 52px; border-radius: 12px; border: 2px solid var(--rm-tinta); padding: 0 16px; font-size: 16px; font-family: var(--rm-ui); background: var(--rm-branco); color: var(--rm-tinta); }
.rm-news .rm-btn { height: 52px; border-radius: 12px; font-size: 15px; padding: 0 22px; }

/* ---------- Rodapé ---------- */
.rm-rodape { margin-top: 72px; background: var(--rm-royal); color: var(--rm-branco); }
.rm-rodape__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 24px; }
.rm-rodape__marca { flex: 1 1 280px; display: flex; align-items: center; gap: 20px; }
.rm-rodape__marca img { height: 96px; width: auto; }
.rm-rodape__marca p { margin: 0; color: var(--rm-sobre-royal); font-size: 14px; line-height: 1.6; }
.rm-rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rm-rodape a { color: var(--rm-branco); display: inline-block; padding: 12px 0; font-size: 14px; }
.rm-rodape a:hover { color: var(--rm-ouro); }
.rm-rodape__redes { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-rodape__redes a { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; font-weight: 700; font-size: 13px; }
.rm-rodape__base { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--rm-sobre-royal); }

/* ---------- Matéria ---------- */
.rm-progresso { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: transparent; z-index: 50; }
.rm-progresso div { height: 4px; width: 0; background: var(--rm-ouro); }
.rm-trilha { font-size: 13px; color: var(--rm-mudo); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; }
.rm-trilha a { color: var(--rm-mudo); }
.rm-materia-topo { max-width: 860px; margin-top: 20px; }
.rm-titulo { margin: 16px 0 14px; font-family: var(--rm-display); font-weight: 800; font-size: 44px; line-height: 1.12; }
.rm-linha-fina { margin: 0; font-size: 20px; line-height: 1.5; color: var(--rm-suave); }
.rm-autor-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--rm-linha); border-bottom: 1px solid var(--rm-linha); }
.rm-autor-linha__quem { display: flex; align-items: center; gap: 12px; }
.rm-autor-linha img { width: 48px; height: 48px; border-radius: 24px; }
.rm-autor-linha strong { font-size: 15px; }
.rm-autor-linha small { display: block; font-size: 13px; color: var(--rm-mudo); }
.rm-compartilhar { display: flex; gap: 8px; }
.rm-compartilhar a, .rm-compartilhar button { width: 44px; height: 44px; border-radius: 22px; background: var(--rm-lilas); display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--rm-tinta); }
.rm-compartilhar a:hover, .rm-compartilhar button:hover { background: var(--rm-ouro); }
.rm-capa { margin: 28px 0 0; }
.rm-capa img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; }
.rm-capa figcaption { margin-top: 8px; font-size: 12px; color: var(--rm-mudo); }

.rm-corpo { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 36px; }
.rm-artigo { flex: 999 1 620px; min-width: 0; max-width: 760px; }
.rm-texto { font-family: var(--rm-leitura); font-size: 19px; line-height: 1.75; color: var(--rm-texto); }
.rm-texto > * { margin-top: 0; margin-bottom: 22px; }
.rm-texto h2 { font-family: var(--rm-display); font-weight: 800; font-size: 26px; line-height: 1.25; margin: 40px 0 14px; color: var(--rm-tinta); scroll-margin-top: 24px; }
.rm-texto h3 { font-family: var(--rm-ui); font-weight: 800; font-size: 21px; margin: 28px 0 10px; color: var(--rm-tinta); }
.rm-texto a { color: var(--rm-royal); text-decoration: underline; text-decoration-color: var(--rm-ouro); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rm-texto ul, .rm-texto ol { padding-left: 24px; }
.rm-texto li { margin-bottom: 8px; }
.rm-texto blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--rm-ouro); font-style: italic; }
.rm-texto figure img { border-radius: 14px; }
.rm-texto figcaption { font-family: var(--rm-ui); font-size: 13px; color: var(--rm-mudo); margin-top: 8px; }
.rm-texto table { width: 100%; border-collapse: collapse; font-family: var(--rm-ui); font-size: 15px; }
.rm-texto .wp-block-table { overflow-x: auto; border: 1px solid var(--rm-linha); border-radius: 12px; }
.rm-texto th, .rm-texto td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--rm-linha); }
.rm-texto thead th { background: var(--rm-lilas); border-top: none; }
.rm-texto .wp-block-table thead { border-bottom: 1px solid var(--rm-linha); }
.rm-texto .wp-block-table td, .rm-texto .wp-block-table th { border-left: none; border-right: none; border-bottom: none; }
.rm-texto .wp-block-table table { margin: 0; }
.rm-texto .rm-print { font-family: var(--rm-ui); background: #FFF6D6; border: 2px dashed var(--rm-ouro); border-radius: 12px; padding: 16px; font-size: 15px; font-weight: 700; }

.rm-indice { font-family: var(--rm-ui); background: var(--rm-lilas); border-radius: 14px; padding: 20px 22px; margin-bottom: 28px; }
.rm-indice__rotulo { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--rm-royal); margin-bottom: 8px; }
.rm-indice ol { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.9; }
.rm-indice a { font-weight: 700; }

.rm-fala { font-family: var(--rm-ui); display: flex; gap: 16px; align-items: flex-start; background: var(--rm-royal); color: var(--rm-branco); border-radius: var(--rm-raio); padding: 20px 22px; margin: 28px 0; }
.rm-fala__logo { width: 72px; height: auto; flex-shrink: 0; }
.rm-fala__rotulo { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-ouro); }
.rm-fala p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; font-weight: 600; }

.rm-faq { margin-top: 40px; }
.rm-faq h2 { font-family: var(--rm-display); font-weight: 800; font-size: 26px; margin-bottom: 14px; }
.rm-faq details { border-top: 1px solid var(--rm-linha); padding: 16px 0; }
.rm-faq summary { font-weight: 800; font-size: 17px; cursor: pointer; }
.rm-faq details p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--rm-suave); }

.rm-fontes { margin-top: 32px; font-size: 14px; color: var(--rm-suave); }
.rm-fontes h2 { font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--rm-tinta); }
.rm-fontes ul { margin: 0; padding-left: 20px; }
.rm-fontes a { color: var(--rm-royal); text-decoration: underline; }

.rm-autor-box { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border: 1px solid var(--rm-linha); border-radius: 18px; padding: 24px; }
.rm-autor-box img { width: 88px; height: 88px; border-radius: 44px; }
.rm-autor-box__texto { flex: 1 1 300px; }
.rm-autor-box__nome { font-weight: 800; font-size: 19px; margin-top: 4px; }
.rm-autor-box p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--rm-suave); }

.rm-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-tags a { background: var(--rm-lilas); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }

.rm-box-cast { background: var(--rm-royal); color: var(--rm-branco); border-radius: var(--rm-raio); padding: 22px; }
.rm-box-cast .rm-tag { color: var(--rm-ouro); }
.rm-box-cast__titulo { font-family: var(--rm-display); font-weight: 800; font-size: 18px; margin: 8px 0 14px; line-height: 1.3; }
.rm-box-cast a.rm-btn { color: var(--rm-tinta); }

/* Comentários */
.rm-comentarios { margin-top: 48px; font-family: var(--rm-ui); }
.rm-comentarios h2, .rm-comentarios .comment-reply-title { font-family: var(--rm-display); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.rm-comentarios ol { list-style: none; padding: 0; }
.rm-comentarios .comment-body { border-top: 1px solid var(--rm-linha); padding: 16px 0; }
.rm-comentarios .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.rm-comentarios textarea, .rm-comentarios input[type="text"], .rm-comentarios input[type="email"], .rm-comentarios input[type="url"] { width: 100%; border: 1px solid var(--rm-linha); border-radius: 12px; padding: 12px; font-size: 16px; font-family: var(--rm-ui); }
.rm-comentarios .submit { background: var(--rm-royal); color: var(--rm-branco); border: none; border-radius: 12px; padding: 14px 22px; font-weight: 800; cursor: pointer; }

/* Episódio e vídeo */
.rm-player { margin-top: 24px; border-radius: 18px; overflow: hidden; background: var(--rm-tinta); aspect-ratio: 16 / 9; position: relative; }
.rm-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.rm-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--rm-tinta); }
.rm-yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.rm-yt .rm-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 40px; }
.rm-spotify { margin-top: 20px; }
.rm-spotify iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; }

/* Listagens */
.rm-cabecalho-lista { padding-top: 36px; }
.rm-cabecalho-lista h1 { font-family: var(--rm-display); font-weight: 800; font-size: 38px; line-height: 1.15; }
.rm-cabecalho-lista p { margin: 10px 0 0; color: var(--rm-suave); font-size: 18px; max-width: 720px; }
.rm-paginacao { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rm-paginacao .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--rm-linha); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.rm-paginacao .current { background: var(--rm-royal); color: var(--rm-branco); border-color: var(--rm-royal); }
.rm-vazio { padding: 48px 0; font-size: 18px; color: var(--rm-suave); }

.rm-pagina { max-width: 820px; padding-top: 36px; }
.rm-pagina h1 { font-family: var(--rm-display); font-weight: 800; font-size: 38px; margin-bottom: 24px; }

/* ---------- Telas menores ---------- */
@media (max-width: 960px) {
	.rm-destaques { grid-template-columns: 1fr; }
	.rm-destaque { min-height: 380px; }
	.rm-destaque__titulo { font-size: 26px; }
	.rm-titulo { font-size: 32px; }
}
@media (max-width: 720px) {
	.rm-container { padding: 0 16px; }
	.rm-logo img { height: 58px; }
	.rm-topo__inner { gap: 8px 12px; }
	.rm-nav { order: 3; width: 100%; overflow-x: auto; }
	.rm-nav ul { flex-wrap: nowrap; }
	.rm-nav a { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
	.rm-topo__acoes .rm-btn { display: none; }
	.rm-destaque__painel { padding: 20px; }
	.rm-destaque__titulo { font-size: 22px; }
	.rm-cast, .rm-news { padding: 24px; }
	.rm-cast__capa { width: 120px; height: 120px; }
	.rm-titulo { font-size: 28px; }
	.rm-linha-fina { font-size: 18px; }
	.rm-texto { font-size: 18px; }
	.rm-secao__titulo { font-size: 23px; }
	.rm-rodape__marca { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   TOQUE DE OURO — assinatura visual do portal (animações e detalhes)
   ========================================================================== */
html { overflow-x: clip; }
:root { --rm-ouro-claro: #FFD95A; --rm-ouro-escuro: #C98F00; --rm-brilho: linear-gradient(110deg, transparent 20%, rgba(255,236,170,0.55) 45%, rgba(255,255,255,0.85) 50%, rgba(255,236,170,0.55) 55%, transparent 80%); }

/* Topo grudado, com vidro roxo ao rolar */
.rm-topo { position: sticky; top: 0; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.admin-bar .rm-topo { top: 32px; }
@media (max-width: 782px) { .admin-bar .rm-topo { top: 0; } }
.rm-topo--rolou { background: rgba(43, 18, 88, 0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -12px rgba(23, 10, 50, 0.6); }
.rm-topo--rolou .rm-logo img { height: 58px; }
.rm-logo img { transition: height .35s, transform .5s cubic-bezier(.34,1.56,.64,1), filter .4s; transform-origin: 50% 20%; }
.rm-logo:hover img { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 14px rgba(245, 184, 0, 0.65)); }
.rm-topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rm-ouro), var(--rm-ouro-claro), var(--rm-ouro), transparent); background-size: 200% 100%; animation: rm-correr 6s linear infinite; opacity: .9; }

/* Menu: sublinhado de ouro que nasce do centro */
.rm-nav a { position: relative; transition: color .25s; }
.rm-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--rm-ouro-escuro), var(--rm-ouro-claro)); transition: left .3s ease, right .3s ease; box-shadow: 0 0 10px rgba(245,184,0,.7); }
.rm-nav a:hover::after, .rm-nav .current-menu-item > a::after { left: 14px; right: 14px; }

/* Cards: sobem, ganham borda de ouro e um reflexo passa pela imagem */
.rm-card { position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; isolation: isolate; }
.rm-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, var(--rm-ouro-claro), var(--rm-ouro-escuro) 40%, var(--rm-royal) 70%, var(--rm-ouro)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
.rm-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(43, 18, 88, 0.55), 0 0 0 1px rgba(245,184,0,.15); border-color: transparent; }
.rm-card:hover::before { opacity: 1; }
.rm-midia img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.rm-card:hover .rm-midia img, .rm-destaque:hover .rm-midia img { transform: scale(1.06); }
.rm-midia::after { content: ""; position: absolute; inset: 0; background: var(--rm-brilho); transform: translateX(-120%); pointer-events: none; }
.rm-card:hover .rm-midia::after, .rm-destaque:hover .rm-midia::after { animation: rm-reflexo .9s ease forwards; }
.rm-card:hover .rm-card__titulo { color: var(--rm-royal); }

/* Destaque principal: a capa aparece inteira (o texto da thumb não é cortado) */
.rm-destaque { display: flex; flex-direction: column; min-height: 0; background: var(--rm-royal); box-shadow: 0 24px 60px -30px rgba(43,18,88,.8); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.rm-destaque .rm-midia { position: relative; inset: auto; aspect-ratio: 16 / 9; }
.rm-destaque__painel { position: relative; background: linear-gradient(160deg, var(--rm-royal) 0%, #1E0B40 100%); overflow: hidden; }
.rm-destaque__painel::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(245,184,0,.35), transparent 65%); animation: rm-aurora 9s ease-in-out infinite alternate; pointer-events: none; }
.rm-destaque:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(43,18,88,.95), 0 0 0 2px rgba(245,184,0,.5); }
.rm-destaque__titulo { position: relative; }
.rm-destaque:hover .rm-destaque__titulo { color: transparent; background: linear-gradient(90deg, var(--rm-ouro-claro), #fff 40%, var(--rm-ouro) 60%, var(--rm-ouro-claro)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation: rm-correr 2.5s linear infinite; }

/* Títulos de seção: traço de ouro que se desenha ao aparecer na tela */
.rm-secao__titulo { position: relative; padding-bottom: 10px; }
.rm-secao__titulo::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--rm-ouro), var(--rm-ouro-claro)); transition: width 1s cubic-bezier(.2,.8,.2,1) .2s; }
.rm-visto .rm-secao__titulo::after, .rm-secao__titulo.rm-visto::after { width: 72px; }

/* Revelar ao rolar */
.rm-revelar { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rm-atraso, 0s); }
.rm-revelar.rm-visto { opacity: 1; transform: none; }

/* Plantão do Rei vira letreiro correndo */
.rm-plantao { overflow: hidden; }
.rm-plantao__selo { animation: rm-pulsar 1.6s ease-in-out infinite; }

/* Fala do Rei com ouro vivo */
.rm-fala { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--rm-royal), #1E0B40); box-shadow: inset 0 0 0 1px rgba(245,184,0,.35), 0 20px 50px -30px rgba(43,18,88,.9); }
.rm-fala::after { content: ""; position: absolute; inset: 0; background: var(--rm-brilho); transform: translateX(-120%); animation: rm-reflexo 1.4s ease 1s 1 forwards; pointer-events: none; opacity: .5; }
.rm-fala__rotulo { background: linear-gradient(90deg, var(--rm-ouro-claro), var(--rm-ouro), var(--rm-ouro-claro)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rm-correr 3s linear infinite; }
.rm-fala__logo { animation: rm-flutuar 4s ease-in-out infinite; }

/* Barra de leitura com brilho */
.rm-progresso div { background: linear-gradient(90deg, var(--rm-ouro-escuro), var(--rm-ouro-claro)); box-shadow: 0 0 12px rgba(245,184,0,.8); }

/* Rodapé com linha de ouro viva e logo flutuando */
.rm-rodape { position: relative; }
.rm-rodape::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--rm-ouro), var(--rm-ouro-claro), var(--rm-ouro), transparent); background-size: 200% 100%; animation: rm-correr 5s linear infinite; }
.rm-rodape__marca img { animation: rm-flutuar 5s ease-in-out infinite; }

/* Botões de ouro com reflexo */
.rm-btn--ouro { position: relative; overflow: hidden; }
.rm-btn--ouro::after { content: ""; position: absolute; inset: 0; background: var(--rm-brilho); transform: translateX(-120%); }
.rm-btn--ouro:hover::after { animation: rm-reflexo .8s ease forwards; }

/* Toque de ouro: rastro de faíscas do cursor */
.rm-faisca { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; z-index: 9999; background: radial-gradient(circle, #fff 0%, var(--rm-ouro-claro) 35%, var(--rm-ouro) 60%, transparent 70%); animation: rm-faisca .8s ease-out forwards; }
.rm-moeda { position: fixed; top: -40px; margin-left: -20px; z-index: 9999; pointer-events: none; font-size: 28px; animation: rm-chuva linear forwards; }
.rm-ouro-total img { animation: rm-dourar 4s ease forwards; }
.rm-ouro-total::after { content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255,217,90,.22), rgba(245,184,0,.08) 60%, rgba(201,143,0,.25)); animation: rm-surgir-fundo 4s ease forwards; }
@keyframes rm-surgir-fundo { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
.rm-recado { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 10000; background: var(--rm-royal); color: var(--rm-ouro-claro); padding: 14px 22px; border-radius: 999px; font-weight: 800; font-family: var(--rm-display); font-size: 14px; box-shadow: 0 0 0 2px var(--rm-ouro), 0 20px 40px -10px rgba(0,0,0,.5); animation: rm-surgir 4s ease forwards; }

@keyframes rm-correr { to { background-position: -200% 0; } }
@keyframes rm-reflexo { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes rm-aurora { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-260px, 160px) scale(1.4); } }
@keyframes rm-pulsar { 0%, 100% { box-shadow: 0 0 0 0 rgba(23,19,31,.5); } 50% { box-shadow: 0 0 0 6px rgba(23,19,31,0); } }
@keyframes rm-flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rm-faisca { to { transform: translate(var(--dx, 0), var(--dy, 18px)) scale(0); opacity: 0; } }
@keyframes rm-chuva { to { transform: translateY(110vh) rotate(var(--giro, 360deg)); } }
@keyframes rm-dourar { 0% { filter: none; } 15%, 75% { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.05); } 100% { filter: none; } }
@keyframes rm-surgir { 0% { opacity: 0; transform: translate(-50%, 20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 900px) { .rm-destaques { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.rm-revelar { opacity: 1; transform: none; }
}

/* Instagram no rodapé */
.rm-rodape__insta { display: inline-flex !important; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(245,184,0,.18), rgba(255,255,255,.04)); border-color: var(--rm-ouro) !important; }
.rm-rodape__insta:hover { background: var(--rm-ouro); color: #17131F !important; }
.rm-rodape__insta svg { flex: none; }

/* Botões dentro do texto (páginas e matérias) */
.rm-texto .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.rm-texto .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 999px; background: linear-gradient(135deg, var(--rm-ouro-claro), var(--rm-ouro)); color: #17131F; font: 800 16px/1.2 Manrope, system-ui, sans-serif; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(245,184,0,.7), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.rm-texto .wp-block-button__link:hover { transform: translateY(-2px); background: var(--rm-royal); color: var(--rm-branco); box-shadow: 0 14px 30px -10px rgba(43,18,88,.6), 0 0 0 2px var(--rm-ouro); }
.rm-texto .wp-block-button + .wp-block-button .wp-block-button__link { background: transparent; color: var(--rm-royal); box-shadow: inset 0 0 0 2px var(--rm-royal); }
.rm-texto .wp-block-button + .wp-block-button .wp-block-button__link:hover { background: var(--rm-royal); color: var(--rm-branco); }


/* "Leia também" no meio da matéria também no computador */
@media (min-width: 761px) {
	.rm-texto .rm-m-leia { display: block; margin: 32px 0; padding: 6px 18px 10px; border-left: 4px solid var(--rm-ouro); background: var(--rm-lilas); border-radius: 0 16px 16px 0; }
	.rm-texto .rm-m-leia__rot { display: block; padding-top: 10px; font: 800 12px/1 var(--rm-ui, Manrope, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--rm-royal); }
	.rm-texto .rm-m-leia .rm-m-item { display: flex; gap: 16px; align-items: center; padding: 12px 0 4px; color: var(--rm-tinta); text-decoration: none; font-family: var(--rm-ui, Manrope, sans-serif); }
	.rm-texto .rm-m-leia .rm-m-item:hover strong { color: var(--rm-royal); }
	.rm-texto .rm-m-leia .rm-m-item__img { flex: 0 0 140px; }
	.rm-texto .rm-m-leia .rm-m-item__img img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin: 0; }
	.rm-texto .rm-m-leia .rm-m-item__corpo, .rm-texto .rm-m-leia .rm-m-item > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 17px; line-height: 1.35; font-weight: 800; }
	.rm-texto .rm-m-leia .rm-m-item__tag, .rm-texto .rm-m-leia .rm-m-item__meta { font-size: 12px; font-weight: 700; color: var(--rm-mudo, #6b6478); text-transform: none; letter-spacing: 0; }
	.rm-texto .rm-m-leia .rm-m-item__tag { color: var(--rm-royal); text-transform: uppercase; letter-spacing: .06em; }
}
