/*
 * GERADO POR bin/sync-shared.sh - NAO EDITE ESTE ARQUIVO.
 * Fonte: shared/assets/css/fm-shorts.css
 */

/* =====================================================================
 * FM Shorts — seção de YouTube Shorts em formato Instagram Stories.
 *
 * Tradução manual do mockup Tailwind para CSS real: o protótipo usava
 * cdn.tailwindcss.com e classes arbitrárias (w-[240px], aspect-short,
 * shadow-dark-glow) que não existem sem build step. Aqui não há build:
 * nada de npm, nada de PostCSS.
 *
 * Tudo escopado em .fmsh-app (mesmo idioma de my-account-WpAtomic/assets/maw.css):
 * custom properties + mini-reset com !important para vencer o CSS do tema,
 * sem vazar para fora da seção.
 * ===================================================================== */

/* --- fonte self-hosted (SIL OFL). Variável: um arquivo cobre 100..900 --- */
@font-face {
	font-family: 'FMSH Epilogue';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/epilogue-latin.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: 'FMSH Epilogue';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/epilogue-latin-ext.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;
}

/* --- tokens e temas ---------------------------------------------------
 *
 * O tema padrão é LIGHT. Dark continua disponível por configuração
 * (data-theme="dark") e "auto" acompanha o sistema do visitante.
 *
 * Duas áreas ficam SEMPRE escuras, de propósito, e por isso não usam tokens:
 *   - a capa do card, onde o texto branco fica por cima de uma foto;
 *   - o player em tela cheia, como em qualquer visualizador de mídia.
 * -------------------------------------------------------------------- */

.fmsh-app {
	/* claro (padrão) */
	--fmsh-bg: #fbfbfd;
	--fmsh-card: #ffffff;
	--fmsh-surface: #f5f5f7;
	--fmsh-line: rgba(0, 0, 0, 0.08);
	--fmsh-line-strong: rgba(0, 0, 0, 0.14);
	--fmsh-fill: rgba(0, 0, 0, 0.04);
	--fmsh-fill-2: rgba(0, 0, 0, 0.07);
	--fmsh-fill-3: rgba(0, 0, 0, 0.12);
	--fmsh-ink: #424245;
	--fmsh-ink-strong: #1d1d1f;
	--fmsh-ink-soft: #515154;
	--fmsh-mute: #616166;
	--fmsh-faint: #79797f;
	--fmsh-accent: #ff0033;
	--fmsh-accent-hover: #db0f2d;
	/* Variante escurecida até 4.5:1 com branco, calculada em PHP a partir da
	   cor escolhida no painel. Usada onde há TEXTO envolvido; a cor da marca
	   continua nas bordas, brilhos e barras. */
	--fmsh-accent-solid: #eb002f;
	/* Mais escura ainda: usada como TEXTO, onde o fundo costuma ter um leve
	   tingimento da própria cor de destaque e come parte do contraste. */
	--fmsh-accent-strong: #cc0029;
	--fmsh-accent-ink: var(--fmsh-accent-strong);
	--fmsh-accent-soft: rgba(255, 0, 51, 0.08);
	--fmsh-accent-line: rgba(255, 0, 51, 0.22);
	--fmsh-ok: #047857;
	--fmsh-warn: #b45309;
	--fmsh-warn-bg: rgba(180, 83, 9, 0.08);
	--fmsh-warn-line: rgba(180, 83, 9, 0.28);
	--fmsh-seg-track: rgba(0, 0, 0, 0.12);
	--fmsh-seg-fill: #1d1d1f;
	--fmsh-toast-bg: #1d1d1f;
	--fmsh-toast-ink: #ffffff;
	--fmsh-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	--fmsh-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
	--fmsh-shadow-glow: 0 6px 20px rgba(255, 0, 51, 0.22);

	--fmsh-r: 12px;
	--fmsh-r-lg: 16px;
	--fmsh-r-xl: 24px;

	/* Largura da coluna de conteúdo e respiro mínimo até a borda. Ajuste
	   --fmsh-max se a coluna do tema do site for diferente. */
	--fmsh-max: 1280px;
	--fmsh-gutter: 24px;
	--fmsh-font: 'FMSH Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial, sans-serif;
	--fmsh-card-w: 240px;

	/* A seção mora dentro da coluna de conteúdo do tema, que costuma ser bem
	   mais estreita que a janela. Media query de viewport aplicaria o layout de
	   desktop num espaço de 600px e espremeria tudo — então quem manda aqui é a
	   largura do próprio container. */
	container-type: inline-size;
	container-name: fmsh;

	/* Grade full-bleed: o fundo ocupa toda a largura que o tema der, e o
	   conteúdo fica na coluna do meio, alinhado com o resto da página. Em
	   coluna estreita as laterais viram zero sozinhas, sem media query.
	   O modal e o toast são position:fixed — filhos posicionados não são itens
	   de grade, então a coluna não os afeta. */
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--fmsh-gutter), 1fr)
		[content-start] minmax(0, var(--fmsh-max)) [content-end]
		minmax(var(--fmsh-gutter), 1fr) [full-end];

	font-family: var(--fmsh-font);
	background: var(--fmsh-bg);
	color: var(--fmsh-ink);
	/* Faixa de ponta a ponta não combina com canto arredondado; ficam só as
	   bordas de topo e base, como separador da seção. */
	border-radius: 0;
	border: 0;
	border-block: 1px solid var(--fmsh-line);
	/* Sem padding lateral de propósito: o respiro vem das colunas da grade.
	   Padding aqui impediria a trilha de sangrar até a borda e ainda encolheria
	   a medida do container query, derrubando o layout de desktop cedo demais. */
	padding: 20px 0 28px;
	line-height: 1.5;
	position: relative;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Paleta escura — aplicada por configuração ou pelo sistema do visitante. */
.fmsh-app[data-theme='dark'],
.fmsh-app[data-theme='auto'] {
	--fmsh-bg: #08080a;
	--fmsh-card: #121216;
	--fmsh-surface: #1a1a22;
	--fmsh-line: rgba(255, 255, 255, 0.08);
	--fmsh-line-strong: rgba(255, 255, 255, 0.15);
	--fmsh-fill: rgba(255, 255, 255, 0.05);
	--fmsh-fill-2: rgba(255, 255, 255, 0.1);
	--fmsh-fill-3: rgba(255, 255, 255, 0.2);
	--fmsh-ink: #d1d5db;
	--fmsh-ink-strong: #ffffff;
	--fmsh-ink-soft: #d1d5db;
	--fmsh-mute: #9ca3af;
	--fmsh-faint: #6b7280;
	--fmsh-accent-ink: var(--fmsh-accent);
	--fmsh-accent-soft: rgba(255, 0, 51, 0.15);
	--fmsh-accent-line: rgba(255, 0, 51, 0.3);
	--fmsh-ok: #34d399;
	--fmsh-warn: #fbbf24;
	--fmsh-warn-bg: rgba(251, 191, 36, 0.12);
	--fmsh-warn-line: rgba(251, 191, 36, 0.35);
	--fmsh-seg-track: rgba(255, 255, 255, 0.2);
	--fmsh-seg-fill: #ffffff;
	--fmsh-toast-bg: #ffffff;
	--fmsh-toast-ink: #000000;
	--fmsh-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
	--fmsh-shadow-card: 0 12px 28px rgba(0, 0, 0, 0.5);
	--fmsh-shadow-glow: 0 0 35px rgba(255, 0, 51, 0.15);

	color-scheme: dark;
}

/* "auto" só fica escuro se o sistema do visitante estiver escuro. */
@media (prefers-color-scheme: light) {
	.fmsh-app[data-theme='auto'] {
		--fmsh-bg: #fbfbfd;
		--fmsh-card: #ffffff;
		--fmsh-surface: #f5f5f7;
		--fmsh-line: rgba(0, 0, 0, 0.08);
		--fmsh-line-strong: rgba(0, 0, 0, 0.14);
		--fmsh-fill: rgba(0, 0, 0, 0.04);
		--fmsh-fill-2: rgba(0, 0, 0, 0.07);
		--fmsh-fill-3: rgba(0, 0, 0, 0.12);
		--fmsh-ink: #424245;
		--fmsh-ink-strong: #1d1d1f;
		--fmsh-ink-soft: #515154;
		--fmsh-mute: #616166;
		--fmsh-faint: #79797f;
		--fmsh-accent-ink: var(--fmsh-accent-strong);
		--fmsh-accent-soft: rgba(255, 0, 51, 0.08);
		--fmsh-accent-line: rgba(255, 0, 51, 0.22);
		--fmsh-ok: #047857;
		--fmsh-warn: #b45309;
		--fmsh-warn-bg: rgba(180, 83, 9, 0.08);
		--fmsh-warn-line: rgba(180, 83, 9, 0.28);
		--fmsh-seg-track: rgba(0, 0, 0, 0.12);
		--fmsh-seg-fill: #1d1d1f;
		--fmsh-toast-bg: #1d1d1f;
		--fmsh-toast-ink: #ffffff;
		--fmsh-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
		--fmsh-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
		--fmsh-shadow-glow: 0 6px 20px rgba(255, 0, 51, 0.22);

		color-scheme: light;
	}
}

/* --- áreas que ficam sempre escuras ----------------------------------
 *
 * A capa do card e o player em tela cheia ficam por cima de imagem e vídeo,
 * onde texto escuro não tem contraste. Em vez de corrigir regra por regra,
 * a paleta escura é reaplicada nesses containers — assim nenhum token de
 * texto, ícone ou barra escapa quando o tema claro está ativo.
 * -------------------------------------------------------------------- */

.fmsh-card__bars,
.fmsh-card__info,
.fmsh-modal {
	--fmsh-ink: #d1d5db;
	--fmsh-ink-strong: #ffffff;
	--fmsh-ink-soft: #d1d5db;
	--fmsh-mute: #9ca3af;
	--fmsh-faint: #6b7280;
	--fmsh-line: rgba(255, 255, 255, 0.08);
	--fmsh-line-strong: rgba(255, 255, 255, 0.15);
	--fmsh-fill: rgba(255, 255, 255, 0.05);
	--fmsh-fill-2: rgba(255, 255, 255, 0.1);
	--fmsh-fill-3: rgba(255, 255, 255, 0.2);
	--fmsh-accent-ink: var(--fmsh-accent);
	--fmsh-ok: #34d399;
	--fmsh-warn: #fbbf24;
	--fmsh-seg-track: rgba(255, 255, 255, 0.28);
	--fmsh-seg-fill: #ffffff;

	color-scheme: dark;
}

.fmsh-app > * {
	grid-column: content;
	/* Impede a trilha de cards (flex com overflow) de esticar a coluna. */
	min-width: 0;
}

/* A faixa de fundo escapa da coluna do tema e vai até as bordas da janela; só o
   conteúdo continua na coluna. As margens negativas puxam a seção pelo que
   sobra de cada lado.

   Os valores vêm do JS, que mede a coluna e a janela de verdade. O padrão do
   `var()` cobre o intervalo até o script rodar e vale quando a seção preenche o
   elemento que a envolve: aí 50% do contêiner é o meio dela também. Onde não
   vale (tema que estreita a própria seção com max-width), o resultado é um
   punhado de pixels, sem estrago, e o JS acerta em seguida.

   --fmsh-vw é a largura da janela SEM a barra de rolagem. Com 100vw a faixa
   passaria da janela em navegador de barra clássica e a PÁGINA INTEIRA ganharia
   rolagem horizontal; por isso o padrão desconta 18px e o JS escreve a medida
   exata.

   O !important e a classe repetida são para vencer o CSS de layout do próprio
   WordPress, que fixa `margin-inline: auto !important` e um `max-width` nos
   filhos diretos de .is-layout-constrained. */
.fmsh-app.fmsh-app[data-bleed='1'] {
	/* Largura explícita, não `auto`: com largura automática o valor sai do
	   elemento que envolve a seção e as duas margens negativas se somam a ele,
	   estourando a janela. Aqui a faixa tem exatamente a largura útil e a margem
	   esquerda a encosta na borda. */
	width: var(--fmsh-vw, calc(100vw - 18px)) !important;
	max-width: none !important;
	margin-left: var(--fmsh-bleed-l, calc(50% - var(--fmsh-vw, calc(100vw - 18px)) / 2)) !important;
	margin-right: 0 !important;
}

/* Mini-reset: o tema do site anfitrião não pode quebrar a seção. */
.fmsh-app,
.fmsh-app *,
.fmsh-app *::before,
.fmsh-app *::after {
	box-sizing: border-box !important;
	font-family: var(--fmsh-font) !important;
}

.fmsh-app h2,
.fmsh-app h3,
.fmsh-app h4,
.fmsh-app p,
.fmsh-app ul,
.fmsh-app li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	color: inherit;
}

/* `height` fica em :where() pelo mesmo motivo do `color` e do `font` abaixo:
   com o seletor cru, `.fmsh-app img` (0,1,1) vencia
   `.fmsh-card__img { height: 100% }` (0,1,0) e a capa saía na altura natural,
   deixando faixa preta no card sempre que o vídeo não tinha capa vertical. */
.fmsh-app img {
	display: block;
}

.fmsh-app :where(img) {
	max-width: 100%;
	height: auto;
}

/* `color` fica dentro de :where() para o seletor valer (0,1,0) em vez de
   (0,1,1). Com (0,1,1) este reset venceria as classes dos próprios
   componentes — .fmsh-btn--accent, .fmsh-chip, .fmsh-round — e o texto de
   TODOS os botões da seção herdava a cor do corpo em vez da própria.
   Em (0,1,0) ele ainda vence um `a { color: ... }` do tema, mas perde para as
   regras de componente que vêm depois, que é exatamente o desejado. */
.fmsh-app :where(a),
.fmsh-app :where(button) {
	color: inherit;
	font: inherit;
}

.fmsh-app a {
	text-decoration: none !important;
	box-shadow: none !important;
}

/* O reset NÃO zera o background: `.fmsh-app button` tem especificidade maior
   que as classes dos próprios botões (.fmsh-btn, .fmsh-chip, .fmsh-seg...),
   então um `background: none` aqui apagaria o fundo de todos eles. Os botões
   que precisam ser transparentes declaram isso explicitamente logo abaixo. */
.fmsh-app button {
	border: 0;
	margin: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.fmsh-card__watch,
.fmsh-card__share,
.fmsh-modal__toggle,
.fmsh-views button {
	background: transparent;
}

/* :where() zera a contribuição do seletor interno, deixando este reset em
   (0,1,0). Com o seletor cru ele valeria (0,2,1) e venceria
   `.fmsh-search input` (0,1,1) — o campo de busca ficava sem fundo. */
.fmsh-app :where(input[type='text'], input[type='search']) {
	font: inherit;
	color: inherit;
	background: none;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

.fmsh-app :focus-visible {
	outline: 2px solid var(--fmsh-accent);
	outline-offset: 2px;
}

/* O atributo hidden precisa vencer as regras de display das classes abaixo:
   sem isso, .fmsh-tag{display:inline-flex} anula o [hidden] do navegador e o
   selo "EM EXIBIÇÃO" aparece em todos os cards ao mesmo tempo. */
.fmsh-app [hidden],
.fmsh-modal [hidden] {
	display: none !important;
}

.fmsh-sprite {
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.fmsh-icon {
	width: 1em;
	height: 1em;
	flex: none;
	display: inline-block;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fmsh-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Trava o scroll da página enquanto o modal está aberto. */
body.fmsh-lock {
	overflow: hidden !important;
}

/* --- cabeçalho da seção (era a nav fixa do mockup) -------------------- */

.fmsh-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--fmsh-line);
}

.fmsh-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fmsh-brand__ring {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 999px;
	padding: 2px;
	background: linear-gradient(45deg, #ff0033, #ff0000 60%, #cc0000);
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-brand__mono {
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #0d0101;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: -0.01em;
	overflow: hidden;
}

.fmsh-brand__mono img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.fmsh-brand__name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fmsh-ink-strong);
}

.fmsh-brand__live {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--fmsh-accent);
	animation: fmsh-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.fmsh-brand__kicker {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fmsh-mute);
}

.fmsh-stats {
	display: none;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fmsh-ink-soft);
	background: var(--fmsh-fill);
	border: 1px solid var(--fmsh-line);
	border-radius: 999px;
	padding: 7px 16px;
}

.fmsh-stats span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.fmsh-stats .fmsh-icon {
	font-size: 15px;
}

.fmsh-stats__sep {
	color: var(--fmsh-fill-3);
}

.fmsh-bar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- botões ---------------------------------------------------------- */

.fmsh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 9px 16px;
	transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.fmsh-btn:active {
	transform: scale(0.96);
}

.fmsh-btn--accent {
	background: var(--fmsh-accent-solid);
	color: #fff;
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-btn--accent:hover {
	background: var(--fmsh-accent-hover);
	color: #fff;
}

.fmsh-btn--ghost {
	background: var(--fmsh-fill-2);
	color: var(--fmsh-ink-strong);
	border: 1px solid var(--fmsh-line-strong);
}

.fmsh-btn--ghost:hover {
	background: var(--fmsh-fill-3);
	color: var(--fmsh-ink-strong);
}

.fmsh-btn .fmsh-icon {
	font-size: 15px;
}

.fmsh-btn__ext {
	font-size: 12px !important;
	opacity: 0.7;
}

.fmsh-round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--fmsh-fill-2);
	color: var(--fmsh-ink-strong);
	font-size: 16px;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.fmsh-round:hover {
	background: var(--fmsh-fill-3);
}

.fmsh-round:active {
	transform: scale(0.94);
}

.fmsh-round--lg {
	width: 40px;
	height: 40px;
	font-size: 20px;
	background: var(--fmsh-accent);
	color: #fff;
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-round--lg:hover {
	background: var(--fmsh-accent-hover);
}

/* --- hero ------------------------------------------------------------ */

.fmsh-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
	padding: 24px 0 22px;
	border-bottom: 1px solid var(--fmsh-line);
}

.fmsh-hero__text {
	min-width: 0;
}

.fmsh-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: var(--fmsh-accent-soft);
	border: 1px solid var(--fmsh-accent-line);
	color: var(--fmsh-accent-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fmsh-badge .fmsh-icon {
	font-size: 14px;
}

.fmsh-title {
	font-size: clamp(28px, 4vw, 44px) !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em;
	line-height: 1.1 !important;
	color: var(--fmsh-ink-strong);
}

.fmsh-title__accent {
	background: linear-gradient(90deg, #ff0033, #ff0000 55%, #cc0000);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.fmsh-sub {
	margin-top: 10px !important;
	max-width: 44em;
	font-size: 15px;
	color: var(--fmsh-mute);
	line-height: 1.6;
}

/* Painel de reprodução */
.fmsh-nowplaying {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 12px;
	border-radius: var(--fmsh-r-lg);
	background: var(--fmsh-fill);
	border: 1px solid var(--fmsh-line);
}

.fmsh-nowplaying__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fmsh-nowplaying__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fmsh-nowplaying__title {
	font-size: 12px;
	font-weight: 700;
	color: var(--fmsh-ink-strong);
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fmsh-nowplaying__counter {
	font-size: 11px;
	color: var(--fmsh-mute);
}

.fmsh-nowplaying__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* --- barra mestre de progresso (Instagram Stories) ------------------- */

.fmsh-progress {
	margin-top: 22px;
	padding: 16px;
	border-radius: var(--fmsh-r-lg);
	background: var(--fmsh-card);
	border: 1px solid var(--fmsh-line);
	box-shadow: var(--fmsh-shadow-card);
}

.fmsh-progress__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.fmsh-progress__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fmsh-ink-strong);
}

.fmsh-progress__label .fmsh-icon {
	font-size: 15px;
	color: var(--fmsh-accent);
}

.fmsh-progress__timer {
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fmsh-mute);
}

.fmsh-segments {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 6px;
}

.fmsh-seg {
	flex: 1 1 0;
	height: 100%;
	min-width: 0;
	padding: 0;
	border-radius: 999px;
	background: var(--fmsh-seg-track);
	overflow: hidden;
	cursor: pointer;
}

.fmsh-seg__fill {
	display: block;
	height: 100%;
	width: var(--fmsh-fill, 0%);
	border-radius: 999px;
	background: var(--fmsh-seg-fill);
}

.fmsh-seg[data-state='current'] .fmsh-seg__fill {
	background: var(--fmsh-accent);
}

.fmsh-seg[data-state='done'] .fmsh-seg__fill {
	width: 100%;
}

/* --- toolbar (filtros, busca, layout) -------------------------------- */

.fmsh-toolbar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--fmsh-line);
}

.fmsh-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fmsh-filters::-webkit-scrollbar,
.fmsh-track::-webkit-scrollbar {
	display: none;
}

.fmsh-chip {
	flex: none;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	background: var(--fmsh-fill);
	border: 1px solid var(--fmsh-line);
	color: var(--fmsh-ink-soft);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fmsh-chip:hover {
	background: var(--fmsh-fill-2);
	color: var(--fmsh-ink-strong);
}

.fmsh-chip[aria-pressed='true'] {
	background: var(--fmsh-accent-solid);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-toolbar__right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fmsh-search {
	position: relative;
	flex: 1 1 auto;
}

.fmsh-search .fmsh-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: var(--fmsh-mute);
	pointer-events: none;
}

.fmsh-search input {
	width: 100%;
	padding: 10px 16px 10px 36px;
	border-radius: 999px;
	background: var(--fmsh-fill);
	border: 1px solid var(--fmsh-line);
	color: var(--fmsh-ink-strong);
	font-size: 12px;
	font-weight: 500;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fmsh-search input::placeholder {
	color: var(--fmsh-faint);
}

.fmsh-search input:focus {
	outline: none;
	background: var(--fmsh-fill-2);
	border-color: var(--fmsh-accent);
}

.fmsh-views {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: none;
	padding: 4px;
	border-radius: 999px;
	background: var(--fmsh-fill);
	border: 1px solid var(--fmsh-line);
}

.fmsh-views button {
	display: inline-flex;
	padding: 6px;
	border-radius: 999px;
	color: var(--fmsh-mute);
	font-size: 16px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fmsh-views button:hover {
	color: var(--fmsh-ink-strong);
}

.fmsh-views button[aria-pressed='true'] {
	background: var(--fmsh-accent-solid);
	color: #fff;
}

/* --- trilha de cards -------------------------------------------------- */

.fmsh-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	/* Sem isto o navegador espera o JS decidir antes de rolar, e o arrasto
	   horizontal no celular fica travado. */
	touch-action: pan-x pan-y;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 18px 2px;
	margin: 0 -2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fmsh-track .fmsh-card {
	flex: none;
	width: var(--fmsh-card-w);
	scroll-snap-align: start;
}

.fmsh-app[data-layout='grid'] .fmsh-track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	overflow: visible;
	scroll-snap-type: none;
}

.fmsh-app[data-layout='grid'] .fmsh-card {
	width: auto;
}

.fmsh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--fmsh-card);
	border: 1px solid var(--fmsh-line);
	border-radius: var(--fmsh-r-xl);
	overflow: hidden;
	box-shadow: var(--fmsh-shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fmsh-card:hover {
	transform: translateY(-4px);
}

.fmsh-card[data-active='true'] {
	border-color: var(--fmsh-accent);
	box-shadow: 0 0 25px rgba(255, 0, 51, 0.3);
}

/* mini barra de stories no topo do card */
.fmsh-card__bars {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	padding: 10px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 55%, transparent);
	pointer-events: none;
}

.fmsh-card__bars .fmsh-segments {
	height: 4px;
	gap: 4px;
}

.fmsh-card__bars .fmsh-seg {
	cursor: default;
}



.fmsh-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	background: #000;
	overflow: hidden;
	cursor: pointer;
	display: block;
	padding: 0;
	border-radius: 0;
	text-align: left;
}

/* Fallback para Safari < 15, que não tem aspect-ratio. */
@supports not (aspect-ratio: 9 / 16) {
	.fmsh-card__media {
		height: 0;
		padding-top: 177.78%;
	}
}

.fmsh-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0.9;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.fmsh-card:hover .fmsh-card__img {
	transform: scale(1.05);
	opacity: 1;
}

.fmsh-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.3) 55%, transparent);
	opacity: 0.85;
	pointer-events: none;
}

.fmsh-tag {
	position: absolute;
	top: 26px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.fmsh-tag--story {
	right: 12px;
	background: var(--fmsh-accent-solid);
	color: #fff;
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-tag--cat {
	left: 12px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-weight: 700;
}

.fmsh-tag--live {
	left: 12px;
	background: var(--fmsh-ok);
	color: #04170f;
	font-weight: 900;
}

.fmsh-tag .fmsh-icon {
	font-size: 11px;
}

.fmsh-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	transition: transform 0.25s ease, background-color 0.25s ease;
	pointer-events: none;
}

.fmsh-card__play .fmsh-icon {
	fill: currentColor;
	stroke: none;
	margin-left: 3px;
}

.fmsh-card:hover .fmsh-card__play {
	transform: translate(-50%, -50%) scale(1.1);
	background: var(--fmsh-accent);
}

.fmsh-card[data-active='true'] .fmsh-card__play {
	background: var(--fmsh-accent);
	box-shadow: var(--fmsh-shadow-glow);
	transform: translate(-50%, -50%) scale(1.1);
}

.fmsh-card__info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 16px;
	pointer-events: none;
}

.fmsh-card__title {
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	color: #fff;
	margin-bottom: 8px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fmsh-metrics {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 10px;
	font-weight: 500;
	color: var(--fmsh-ink-soft);
}

.fmsh-metrics span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.fmsh-metrics .fmsh-icon {
	font-size: 12px;
}

.fmsh-metrics__views .fmsh-icon {
	color: var(--fmsh-accent);
}

.fmsh-metrics__likes .fmsh-icon {
	color: var(--fmsh-warn);
}

.fmsh-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px;
	background: var(--fmsh-card);
	border-top: 1px solid var(--fmsh-line);
}

.fmsh-card__watch {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: var(--fmsh-ink-strong);
	transition: color 0.2s ease;
}

.fmsh-card__watch .fmsh-icon {
	font-size: 16px;
	color: var(--fmsh-accent);
}

.fmsh-card__watch:hover {
	color: var(--fmsh-accent-ink);
}

.fmsh-card__share {
	display: inline-flex;
	padding: 7px;
	border-radius: 999px;
	color: var(--fmsh-mute);
	font-size: 15px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fmsh-card__share:hover {
	background: var(--fmsh-fill-2);
	color: var(--fmsh-ink-strong);
}

/* --- rodapé da trilha ------------------------------------------------ */

.fmsh-hint {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding: 0 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--fmsh-mute);
}

.fmsh-hint__left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fmsh-hint__left .fmsh-icon {
	font-size: 15px;
	color: var(--fmsh-accent);
}

.fmsh-hint__status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	color: var(--fmsh-ok);
}

.fmsh-hint__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	animation: fmsh-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fmsh-app[data-playing='false'] .fmsh-hint__status {
	color: var(--fmsh-warn);
}

/* --- vazio ------------------------------------------------------------ */

.fmsh-empty {
	margin: 18px 0;
	padding: 56px 24px;
	text-align: center;
	border: 1px dashed var(--fmsh-line);
	border-radius: var(--fmsh-r-xl);
	background: var(--fmsh-card);
}

.fmsh-empty .fmsh-icon {
	font-size: 44px;
	color: var(--fmsh-faint);
	margin-bottom: 12px;
}

.fmsh-empty__title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--fmsh-ink-strong);
}

.fmsh-empty__text {
	margin-top: 6px !important;
	font-size: 12px;
	color: var(--fmsh-mute);
}

/* --- modal (stories fullscreen) -------------------------------------- */

.fmsh-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.fmsh-modal[data-open='true'] {
	opacity: 1;
	pointer-events: auto;
}

.fmsh-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 430px;
	height: 92vh;
	max-height: 820px;
	background: #000;
	border: 1px solid var(--fmsh-line-strong);
	border-radius: var(--fmsh-r-xl);
	overflow: hidden;
	box-shadow: var(--fmsh-shadow);
	font-family: var(--fmsh-font);
}

.fmsh-modal__top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4;
	padding: 12px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 55%, transparent);
}

.fmsh-modal__top .fmsh-segments {
	height: 4px;
	gap: 4px;
	margin-bottom: 12px;
}

.fmsh-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fmsh-modal__who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.fmsh-modal__ring {
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 999px;
	padding: 1.5px;
	background: linear-gradient(45deg, #ff0033, #ff0000 60%, #cc0000);
}

.fmsh-modal__mono {
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #000;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 900;
	overflow: hidden;
}

.fmsh-modal__mono img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.fmsh-modal__name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.fmsh-modal__name .fmsh-icon {
	font-size: 13px;
	color: #60a5fa;
}

.fmsh-modal__cat {
	display: block;
	font-size: 10px;
	color: var(--fmsh-ink-soft);
}

.fmsh-modal__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fmsh-mtool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid var(--fmsh-line);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 16px;
	transition: background-color 0.2s ease;
}

.fmsh-mtool:hover {
	background: rgba(0, 0, 0, 0.9);
}

.fmsh-mtool--text {
	padding: 7px 11px;
	font-size: 14px;
}

.fmsh-mtool--text span {
	font-size: 10px;
	font-weight: 700;
}

.fmsh-mtool--text .fmsh-icon {
	color: var(--fmsh-warn);
}

.fmsh-modal__stage {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	background: #000;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.fmsh-modal__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fmsh-modal__player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Fachada: capa + botão. Nenhuma requisição ao YouTube antes do clique. */
.fmsh-facade {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: #000;
	overflow: hidden;
}

.fmsh-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
}

.fmsh-facade__btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #fff;
	pointer-events: none;
}

.fmsh-facade__ring {
	width: 68px;
	height: 68px;
	border-radius: 999px;
	background: var(--fmsh-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: var(--fmsh-shadow-glow);
}

.fmsh-facade__ring .fmsh-icon {
	fill: currentColor;
	stroke: none;
	margin-left: 4px;
}

.fmsh-facade__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.fmsh-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.fmsh-modal__nav:hover {
	background: var(--fmsh-accent);
}

.fmsh-modal__nav:active {
	transform: translateY(-50%) scale(0.94);
}

.fmsh-modal__nav--prev {
	left: 8px;
}

.fmsh-modal__nav--next {
	right: 8px;
}

.fmsh-modal__foot {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.95) 55%, transparent);
}

.fmsh-modal__title {
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fmsh-modal__metrics {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 11px;
	font-weight: 600;
	color: var(--fmsh-ink-soft);
}

.fmsh-modal__metrics .fmsh-metrics {
	gap: 14px;
	justify-content: flex-start;
	font-size: 11px;
	color: #fff;
}

.fmsh-modal__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--fmsh-ok);
}

.fmsh-modal__toggle:hover {
	text-decoration: underline !important;
}

.fmsh-modal__cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.fmsh-modal__cta .fmsh-btn {
	padding: 12px;
	border-radius: var(--fmsh-r);
}

/* --- toast ------------------------------------------------------------ */

.fmsh-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border-radius: var(--fmsh-r-lg);
	background: var(--fmsh-toast-bg);
	color: var(--fmsh-toast-ink);
	font-family: var(--fmsh-font);
	font-size: 12px;
	font-weight: 700;
	box-shadow: var(--fmsh-shadow);
	opacity: 0;
	transform: translateY(80px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.fmsh-toast[data-open='true'] {
	opacity: 1;
	transform: translateY(0);
}

.fmsh-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: none;
	border-radius: 999px;
	background: #10b981;
	color: #fff;
	font-size: 14px;
}

/* --- aviso de dados desatualizados (só admin, no Client) ------------- */

.fmsh-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: var(--fmsh-r);
	background: var(--fmsh-warn-bg);
	border: 1px solid var(--fmsh-warn-line);
	color: var(--fmsh-warn);
	font-size: 12px;
	line-height: 1.5;
}

.fmsh-notice .fmsh-icon {
	font-size: 16px;
	flex: none;
	margin-top: 1px;
}

/* --- ajustes de espaço apertado --------------------------------------- */

.fmsh-title {
	text-wrap: balance;
}

/* "Assistir agora" quebrava em duas linhas dentro da coluna do tema. */
.fmsh-card__watch span,
.fmsh-btn span {
	white-space: nowrap;
}

/* Abaixo de 620px a toolbar empilha: filtros numa linha rolável, busca embaixo.
   Antes os três blocos disputavam a mesma linha e os chips ficavam cortados. */
@container fmsh (max-width: 619px) {
	.fmsh-bar {
		gap: 12px;
	}

	.fmsh-bar__actions {
		width: 100%;
		justify-content: space-between;
	}

	.fmsh-hero {
		gap: 16px;
	}

	.fmsh-hint {
		font-size: 11px;
	}
}

/* A trilha e os filtros ocupam a largura toda e sangram até a borda — o card
   "entrando pela borda" é o que dá a leitura de vitrine rolável. O padding
   recompõe o alinhamento do primeiro item com o título, em vez de depender de
   margem negativa casada com o padding da seção. */
.fmsh-filters,
.fmsh-track {
	--fmsh-bleed: max(var(--fmsh-gutter), (100% - var(--fmsh-max)) / 2);

	grid-column: full;
	padding-inline: var(--fmsh-bleed);
	margin-inline: 0;

	/* Sem isto o scroll-snap alinha o card com a borda do scrollport e engole o
	   padding: o primeiro card encostava na borda da tela em vez de alinhar
	   com o título. scroll-padding move a área de encaixe para dentro. */
	scroll-padding-inline: var(--fmsh-bleed);
}

/* Container muito estreito (coluna lateral, por exemplo): card menor.
   A regra mira o card, não o .fmsh-app: um container query não pode estilizar
   o próprio elemento que define o container. */
@container fmsh (max-width: 420px) {
	.fmsh-track .fmsh-card {
		width: 200px;
	}

	.fmsh-nowplaying__title {
		max-width: 130px;
	}
}

/* --- blindagem contra o CSS do tema anfitrião -------------------------
 *
 * Seis vezes neste projeto uma regra de fora venceu a classe do componente:
 * o reset da própria seção (que é (0,1,1) contra (0,1,0) das classes) ou o
 * tema do site, que costuma colorir link com `.wp-block-post-content a`
 * (0,2,1). O sintoma variava — botão sem fundo, texto azul sobre vermelho,
 * fonte 16px onde devia ser 12px, capa com faixa preta —, a causa era sempre a
 * mesma.
 *
 * Em vez de continuar corrigindo caso a caso, este bloco fica no fim do arquivo
 * e pina as três propriedades disputadas nos elementos interativos. O
 * qualificador de elemento (`a.fmsh-btn`) sobe a especificidade e o
 * `!important` fecha contra o tema.
 * -------------------------------------------------------------------- */

/* Tamanho: o atalho `font: inherit` do reset carregava font-size junto e
   jogava todo <button> para os 16px do corpo. */
.fmsh-app a.fmsh-btn,
.fmsh-app button.fmsh-btn,
.fmsh-app button.fmsh-chip,
.fmsh-app button.fmsh-card__watch,
.fmsh-app input.fmsh-search__field,
.fmsh-app .fmsh-search input {
	font-size: 12px !important;
}

/* Fundo de destaque exige texto branco em TODOS os estados — o tema colore
   link no hover e o vermelho ficava com texto azul. */
.fmsh-app a.fmsh-btn--accent,
.fmsh-app a.fmsh-btn--accent:link,
.fmsh-app a.fmsh-btn--accent:visited,
.fmsh-app a.fmsh-btn--accent:hover,
.fmsh-app a.fmsh-btn--accent:focus,
.fmsh-app a.fmsh-btn--accent:active,
.fmsh-app button.fmsh-btn--accent,
.fmsh-app button.fmsh-btn--accent:hover,
.fmsh-app button.fmsh-btn--accent:focus,
.fmsh-app .fmsh-chip[aria-pressed='true'],
.fmsh-app .fmsh-chip[aria-pressed='true']:hover,
.fmsh-app .fmsh-views button[aria-pressed='true'],
.fmsh-app .fmsh-views button[aria-pressed='true']:hover,
.fmsh-app .fmsh-tag--story,
.fmsh-app .fmsh-round--lg,
.fmsh-app .fmsh-round--lg:hover,
.fmsh-app .fmsh-facade__ring,
.fmsh-modal .fmsh-modal__nav:hover {
	color: #fff !important;
}

/* Hover do "Assistir agora": vira pílula de destaque de propósito. Antes o que
   aparecia ali era o `button:hover` do tema vazando, com texto escuro sobre um
   fundo avermelhado. */
.fmsh-app button.fmsh-card__watch {
	padding: 6px 12px;
	margin: -6px -12px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fmsh-app button.fmsh-card__watch:hover,
.fmsh-app button.fmsh-card__watch:focus-visible {
	background: var(--fmsh-accent-solid) !important;
	color: #fff !important;
}

.fmsh-app button.fmsh-card__watch:hover .fmsh-icon,
.fmsh-app button.fmsh-card__watch:focus-visible .fmsh-icon {
	color: #fff;
}

/* Capa: preenche o card sempre, qualquer que seja a proporção da imagem que o
   YouTube devolveu. Metade dos vídeos só tem capa 16:9 ou 4:3. */
.fmsh-app .fmsh-card__media img.fmsh-card__img,
.fmsh-modal .fmsh-facade img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
}

/* iOS dá zoom na página ao focar input com fonte menor que 16px. No desktop a
   busca fica nos 12px da barra; no toque sobe para 16px e a página não pula. */
@media (pointer: coarse) {
	.fmsh-app .fmsh-search input {
		font-size: 16px !important;
	}
}

/* --- animações -------------------------------------------------------- */

@keyframes fmsh-ping {
	0% { transform: scale(1); opacity: 1; }
	75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes fmsh-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

/* --- responsivo ------------------------------------------------------- */

@container fmsh (min-width: 620px) {
	.fmsh-app {
		padding: 24px 24px 32px;
	}

	.fmsh-toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.fmsh-toolbar__right {
		flex: none;
	}

	.fmsh-search {
		width: 260px;
		flex: none;
	}

	.fmsh-modal {
		padding: 16px;
	}
}

@container fmsh (min-width: 860px) {
	.fmsh-stats {
		display: flex;
	}

	.fmsh-hero {
		flex-direction: row;
		align-items: flex-end;
	}

	.fmsh-nowplaying {
		width: auto;
		flex: none;
	}
}

/* --- movimento reduzido: sem auto-avanço nem animação decorativa ------ */

@media (prefers-reduced-motion: reduce) {
	.fmsh-app *,
	.fmsh-modal * {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.fmsh-track {
		scroll-behavior: auto;
	}

	.fmsh-card:hover {
		transform: none;
	}
}
