/* Tinsta video player — estilo X (ver public/js/tinsta.player.js) */

.tinsta-player {
	--tp-accent: #1da1f2;
	position: relative;
	display: block;
	width: 100%;
	max-height: 510px;
	max-height: min(510px, 72vh);
	margin: 10px 0 4px;
	overflow: hidden;
	background: #000;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, .08);
	cursor: pointer;
	outline: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	line-height: normal;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.tinsta-player.tp-portrait { max-width: 100%; }
.tinsta-player:focus-visible { box-shadow: 0 0 0 2px var(--tp-accent); }
.tinsta-player *, .tinsta-player *::before, .tinsta-player *::after { box-sizing: border-box; }

.tinsta-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	background: #000;
	display: block;
}

/* Botões genéricos (reset contra os estilos dos temas) */
.tinsta-player button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 0;
	text-shadow: none;
	min-width: 0;
	width: auto;
	height: auto;
	float: none;
}
.tinsta-player svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* Play grande no centro */
.tp-big-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 58px !important;
	height: 58px !important;
	margin: -29px 0 0 -29px !important;
	padding: 15px 14px 15px 17px !important;
	border-radius: 50% !important;
	background: var(--tp-accent) !important;
	border: 4px solid #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
	opacity: 0;
	transform: scale(.85);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
	z-index: 3;
}
.tinsta-player.tp-idle .tp-big-play,
.tinsta-player.tp-engaged.tp-paused:not(.tp-seeking) .tp-big-play,
.tinsta-player.tp-ended .tp-big-play {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}
.tinsta-player.tp-ended .tp-big-play { padding: 13px !important; }
.tinsta-player:hover .tp-big-play { filter: brightness(1.08); }

/* Prévia: selo com o tempo e botão de som */
.tp-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	font-variant-numeric: tabular-nums;
	z-index: 2;
	transition: opacity .2s;
	pointer-events: none;
}
.tp-peek-mute {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 30px !important;
	height: 30px !important;
	padding: 6px !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, .65) !important;
	z-index: 2;
	opacity: 0;
	transition: opacity .2s, background .15s;
	pointer-events: none;
}
.tinsta-player.tp-playing:not(.tp-engaged) .tp-peek-mute { opacity: 1; pointer-events: auto; }
.tp-peek-mute:hover { background: rgba(0, 0, 0, .85) !important; }
.tinsta-player.tp-engaged .tp-badge { opacity: 0; }

/* Carregando / erro */
.tp-spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}
/* Só quando a pessoa está assistindo e o carregamento passa de meio segundo
   (na prévia sem som o poster fica na tela, como no X) */
.tinsta-player.tp-engaged.tp-loading.tp-playing .tp-spinner { animation: tp-spin .8s linear infinite, tp-show 0s linear .5s forwards; }
@keyframes tp-show { to { opacity: 1; } }
@keyframes tp-spin { to { transform: rotate(360deg); } }

.tp-error {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	color: #fff;
	font-size: 14px;
	background: rgba(0, 0, 0, .8);
	z-index: 5;
}
.tinsta-player.tp-has-error .tp-error { display: flex; }

/* Barra de controles */
.tp-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 6px;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 55%, transparent);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	z-index: 4;
	cursor: default;
}
.tinsta-player.tp-engaged.tp-controls .tp-bar,
.tinsta-player.tp-engaged.tp-paused .tp-bar {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.tinsta-player.tp-engaged.tp-playing:not(.tp-controls) { cursor: none; }

.tp-progress {
	position: relative;
	height: 16px;
	margin: 0 0 2px;
	cursor: pointer;
	touch-action: none;
}
.tp-progress::before,
.tp-buffered,
.tp-played {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	transition: height .12s, margin .12s;
}
.tp-progress::before { right: 0; background: rgba(255, 255, 255, .3); }
.tp-buffered { width: 0; background: rgba(255, 255, 255, .45); }
.tp-played { width: 0; background: var(--tp-accent); }
.tp-thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 13px;
	height: 13px;
	margin: -6.5px 0 0 -6.5px;
	border-radius: 50%;
	background: var(--tp-accent);
	transform: scale(0);
	transition: transform .12s;
}
.tp-progress:hover::before, .tp-progress:hover .tp-buffered, .tp-progress:hover .tp-played,
.tinsta-player.tp-seeking .tp-progress::before, .tinsta-player.tp-seeking .tp-buffered, .tinsta-player.tp-seeking .tp-played {
	height: 6px;
	margin-top: -3px;
}
.tp-progress:hover .tp-thumb, .tinsta-player.tp-seeking .tp-thumb { transform: scale(1); }
.tp-hover-time {
	position: absolute;
	bottom: 18px;
	left: 0;
	transform: translateX(-50%);
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .12s;
}
.tp-progress:hover .tp-hover-time { opacity: 1; }

.tp-row { display: flex; align-items: center; height: 32px; gap: 4px; }
.tp-btn {
	width: 32px !important;
	height: 32px !important;
	padding: 6px !important;
	border-radius: 50% !important;
	flex: 0 0 auto;
	transition: background .15s;
}
.tp-btn:hover, .tp-btn:focus-visible { background: rgba(255, 255, 255, .16) !important; outline: none; }
.tp-time {
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	padding: 0 4px;
	text-shadow: 0 0 2px rgba(0, 0, 0, .5);
}
.tp-spacer { flex: 1 1 auto; }

/* Volume: o slider aparece ao passar o mouse */
.tp-vol { display: flex; align-items: center; }
.tinsta-player .tp-vol-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 0;
	height: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	opacity: 0;
	background: linear-gradient(to right, #fff var(--tp-vol, 100%), rgba(255, 255, 255, .3) var(--tp-vol, 100%));
	transition: width .18s ease, opacity .18s ease, margin .18s ease;
	cursor: pointer;
	box-shadow: none;
	float: none;
}
.tp-vol:hover .tp-vol-slider, .tp-vol:focus-within .tp-vol-slider { width: 70px; opacity: 1; margin: 0 8px 0 2px; }
.tinsta-player .tp-vol-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
}
.tinsta-player .tp-vol-slider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
}
@media (hover: none) {
	.tp-vol-slider { display: none; }
}

/* Tela cheia */
.tinsta-player.tp-fullscreen,
.tinsta-player:fullscreen {
	max-height: none !important;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	border-radius: 0;
	border: 0;
	margin: 0;
}
.tinsta-player.tp-fullscreen .tp-bar { padding: 40px 24px 12px; }

/* Página do post: um pouco maior */
.tinsta-player.tp-status { max-height: 640px; max-height: min(640px, 80vh); }

/* Temas antigos (2012 / v1.5): cantos menos arredondados, como as mídias da época */
.tp-era-classic .tinsta-player { border-radius: 5px; }

/* Modo escuro do tema 2015 */
html.dark-mode .tinsta-player { border-color: rgba(255, 255, 255, .12); }

/* ------- Composer: botão e prévia do upload ------- */
.tp-compose-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 2px;
	padding: 4px;
	border-radius: 50%;
	cursor: pointer;
	vertical-align: middle;
	color: var(--tp-accent, #1da1f2);
	transition: background .15s;
	float: left;
}
.tp-compose-btn:hover { background: rgba(29, 161, 242, .1); }
.tp-compose-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.tp-compose-btn.is-disabled { opacity: .4; cursor: default; pointer-events: none; }
.tp-compose-btn input { display: none !important; }

.tp-compose-preview {
	position: relative;
	clear: both;
	margin: 8px 0;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	max-height: 320px;
	aspect-ratio: 16 / 9;
}
.tp-era-classic .tp-compose-preview { border-radius: 5px; }
.tp-compose-preview video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #000;
}
.tp-compose-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 8px;
	border-radius: 50%;
	border: 0;
	background: rgba(15, 20, 25, .75);
	color: #fff;
	cursor: pointer;
	line-height: 0;
	z-index: 2;
}
.tp-compose-remove:hover { background: rgba(39, 44, 48, .9); }
.tp-compose-remove svg { width: 16px; height: 16px; fill: currentColor; }
.tp-compose-status {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 12px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.tp-compose-bar {
	height: 4px;
	margin-top: 6px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .3);
	overflow: hidden;
}
.tp-compose-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--tp-accent, #1da1f2);
	transition: width .2s;
}
.tp-compose-preview.is-done .tp-compose-bar { display: none; }
.tp-compose-preview.is-error .tp-compose-status { background: rgba(224, 36, 94, .9); }
.tp-compose-error {
	clear: both;
	margin: 6px 0;
	color: #e0245e;
	font-size: 13px;
}

/* Página de mídia: miniatura do vídeo nativo */
.native_video { position: relative; display: block; overflow: hidden; }
.native_video .native-video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video_native {
	position: absolute;
	left: 5px;
	bottom: 5px;
	z-index: 10;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Composer dos temas 2012 / v1.5: ícone cinza como os outros da época */
.tp-era-classic .tp-compose-btn {
	color: #999;
	width: 28px;
	height: 28px;
	margin: 1px 4px 0 6px;
	padding: 2px;
	border-radius: 4px;
}
.tp-era-classic .tp-compose-btn svg { width: 22px; height: 22px; }
.tp-era-classic .tp-compose-btn:hover { color: #666; background: none; }

/* ------- Selo de vídeo nas miniaturas (perfil / mídia) ------- */
.tp-thumb-video { position: relative; display: inline-block; cursor: pointer; }
.tp-thumb-badge {
	position: absolute;
	left: 4px;
	bottom: 4px;
	z-index: 11;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px 5px 1px 4px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font: 600 11px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	white-space: nowrap;
}
.tp-thumb-badge i {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 7px;
	border-color: transparent transparent transparent #fff;
}

/* ------- Visualizador (abre o vídeo sobre a página) ------- */
html.tp-viewer-open, html.tp-viewer-open body { overflow: hidden; }
.tp-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 48px;
	background: rgba(0, 0, 0, .9);
	animation: tp-fade .15s ease;
}
@keyframes tp-fade { from { opacity: 0; } }
.tp-viewer-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
}
.tp-viewer .tinsta-player.tp-in-viewer {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
}
.tp-viewer-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: rgba(39, 44, 48, .75);
	color: #fff;
	cursor: pointer;
	line-height: 0;
}
.tp-viewer-close:hover { background: rgba(60, 66, 70, .9); }
.tp-viewer-close svg { width: 20px; height: 20px; fill: currentColor; }
.tp-viewer-link {
	position: absolute;
	bottom: 14px;
	color: #fff !important;
	font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	opacity: .85;
	text-decoration: none !important;
}
.tp-viewer-link:hover { opacity: 1; text-decoration: underline !important; }

/* Composer v1 / v1.5: ícone de foto da época (abre o #upload escondido) */
.tp-era-classic .photo_post {
	display: block;
	float: left;
	width: 40px;
	height: 30px;
	margin: 0;
	cursor: pointer;
	background: url('../../themes/2012/img/upload.png') no-repeat left top;
}
.tp-era-classic .photo_post:hover { opacity: .5; }
.tp-era-classic .photo_post:active { border-radius: 3px; box-shadow: inset 0 0 20px #838080; }
.tp-era-classic .wrapper_media .tp-compose-btn { margin-top: 1px; }

/* ------- DMs: vídeo nas bolhas e lixeira das minhas mensagens ------- */
.dm-msg-bubble .tinsta-player,
.message_image + .tinsta-player,
.detail_grid .tinsta-player.tp-dm {
	width: 260px;
	max-width: 100%;
	max-height: 360px;
	margin: 6px 0 2px;
	border-radius: 12px;
}
.dm-msg-bubble .tinsta-player.tp-portrait { width: 200px; }
.dm-msg-bubble { position: relative; }
.dm-msg-delete {
	position: absolute;
	top: 50%;
	left: -30px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	padding: 5px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8899a6;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s, background .15s, color .15s;
	line-height: 0;
}
.dm-msg-delete svg { width: 16px; height: 16px; fill: currentColor; }
.dm-msg-bubble:hover .dm-msg-delete,
.dm-msg-delete:focus-visible { opacity: 1; }
.dm-msg-delete:hover { background: rgba(224, 36, 94, .1); color: #e0245e; }
@media (hover: none) { .dm-msg-delete { opacity: .7; } }
.tp-dm-preview { max-height: 220px; margin: 0; }
.message_video_label { color: #8899a6; font-size: 13px; margin: 4px 0 0; }

/* ------- Direct Messages: apagar conversa / todas ------- */
.dm-btn-deleteall:hover { color: #e0245e !important; border-color: #e0245e !important; }
.dm-btn-deleteall svg { width: 16px; height: 16px; fill: currentColor; }
.dm-conversation-item { position: relative; }
.dm-conv-delete {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 28px;
	height: 28px;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8899a6;
	cursor: pointer;
	opacity: 0;
	line-height: 0;
	transition: opacity .15s, background .15s, color .15s;
}
.dm-conv-delete svg { width: 16px; height: 16px; fill: currentColor; }
.dm-conversation-item:hover .dm-conv-delete, .dm-conv-delete:focus-visible { opacity: 1; }
.dm-conv-delete:hover { background: rgba(224, 36, 94, .1); color: #e0245e; }
@media (hover: none) { .dm-conv-delete { opacity: .7; } }

/* ------- Direct Messages no celular ------- */

@media (max-width: 600px) {
	#dm-modal-overlay .dm-header { padding: 0 8px 0 14px !important; gap: 8px; }
	#dm-modal-overlay .dm-header-title {
		flex: 1 1 auto;
		min-width: 0;
		font-size: 17px !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block !important;
	}
	#dm-modal-overlay .dm-header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
	#dm-modal-overlay .dm-header-actions > button { margin: 0 !important; }
	/* "New message" vira só o ícone */
	#dm-modal-overlay .dm-btn-new span { display: none; }
	#dm-modal-overlay .dm-btn-new { padding: 0 10px !important; height: 32px; }
	#dm-modal-overlay .dm-btn-new svg { margin: 0 !important; }
	#dm-modal-overlay .dm-btn-close { font-size: 24px; padding: 0 4px; }
	/* itens mais compactos; lixeira sempre visível e fora do texto */
	#dm-modal-overlay .dm-conversation-item { padding: 12px 14px !important; }
	#dm-modal-overlay .dm-item-avatar { width: 44px !important; height: 44px !important; }
	#dm-modal-overlay .dm-item-names { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	#dm-modal-overlay .dm-item-username { overflow: hidden; text-overflow: ellipsis; }
	#dm-modal-overlay .dm-conv-delete { opacity: .55; right: 6px; bottom: 8px; }
	#dm-modal-overlay .dm-notification-banner { padding: 10px 12px !important; }
}
#dm-modal-overlay .dm-conversation-item .dm-item-content { padding-right: 30px !important; min-width: 0; }
#dm-modal-overlay .dm-conversation-item .dm-item-snippet { padding-right: 0; }
@media (max-width: 600px) {
	#dm-modal-overlay .dm-btn-close { font-size: 28px !important; width: 36px; height: 36px; line-height: 1; color: #657786; }
}

/* ------- Respostas abertas em "Expandir" (getData.php) — mesmo layout em todos os temas ------- */
.status-reply-item.spanReply {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	position: relative;
	float: none !important;
	width: auto !important;
	padding: 10px 12px !important;
	text-align: left !important;
	box-sizing: border-box;
	clear: both;
}
.status-reply-item .status-reply-avatar-link {
	flex: 0 0 36px;
	float: none !important;
	margin: 0 !important;
	position: static !important;
}
.status-reply-item .status-reply-avatar {
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	position: static !important;
	float: none !important;
	border-radius: 4px;
	display: block;
}
.status-reply-item .status-reply-content {
	flex: 1 1 auto;
	min-width: 0;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	text-align: left !important;
}
.status-reply-item .status-reply-header {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 5px;
	margin: 0 0 2px;
	float: none !important;
	text-align: left !important;
}
.status-reply-item .status-reply-name { font-weight: bold; float: none !important; margin: 0 !important; }
.status-reply-item .status-reply-username { float: none !important; margin: 0 !important; color: #8899a6; }
.status-reply-item .status-reply-time {
	margin-left: auto !important;
	float: none !important;
	position: static !important;
	white-space: nowrap;
	color: #8899a6;
	font-size: 12px;
}
.status-reply-item .status-reply-text {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	line-height: 1.4;
}
.status-reply-item .removeReply { position: absolute !important; right: 6px; bottom: 6px; top: auto !important; left: auto !important; }

/* ------- Alinhamentos (varredura 25/10/2026) ------- */
/* Discover / Encontrar amigos / Contas populares: botão Seguir e Pesquisa ficam no fluxo */
.home-col-center .posts li .follow_button,
.home-col-center .feed-card-2015 form .follow_button,
.feed-card-2015 form .follow_button {
	position: static !important;
	top: auto !important;
	right: auto !important;
	white-space: nowrap;
}
.home-col-center .posts li.hoverList > div:first-child { min-width: 0; }

/* Menu de Configurações / Mensagens (todos os temas): quebra em vez de sair da tela */
ul.settingsList { display: flex !important; flex-wrap: wrap; }
ul.settingsList > li { float: none !important; flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
	ul.settingsList > li { width: auto !important; }
	ul.settingsList > li a { white-space: nowrap; padding-left: 10px !important; padding-right: 10px !important; }
}

/* Abas do perfil (v2): rolam de lado no celular em vez de cortar */
.profile-stream-tabs-2015 {
	overflow-x: auto !important;
	white-space: nowrap;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.profile-stream-tabs-2015::-webkit-scrollbar { display: none; }
.profile-stream-tabs-2015 > a { flex-shrink: 0; }

/* Filtros da busca (v2): texto do rótulo quebra dentro da caixa */
.search-filters-box-2015 label { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.search-filters-box-2015 label span { min-width: 0; overflow-wrap: anywhere; }

/* ------- Citar post: cartão do post citado + janela de citar ------- */
.tq-card {
	display: block;
	margin: 8px 0 6px;
	padding: 10px 12px;
	border: 1px solid #e1e8ed;
	border-radius: 14px;
	color: inherit !important;
	text-decoration: none !important;
	background: transparent;
	transition: background .15s;
	overflow: hidden;
	text-align: left;
	line-height: 1.35;
}
a.tq-card:hover { background: rgba(0, 0, 0, .03); }
.tp-era-classic .tq-card { border-radius: 5px; }
html.dark-mode .tq-card { border-color: #38444d; }
html.dark-mode a.tq-card:hover { background: rgba(255, 255, 255, .04); }
.tq-head { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; white-space: nowrap; }
.tq-avatar { width: 20px !important; height: 20px !important; border-radius: 50%; object-fit: cover; flex: 0 0 auto; margin: 0 !important; float: none !important; position: static !important; }
.tq-name { font-weight: bold; overflow: hidden; text-overflow: ellipsis; }
.tq-head .verified_img { width: 14px; height: 14px; margin: 0; }
.tq-user, .tq-time { color: #8899a6; overflow: hidden; text-overflow: ellipsis; }
.tq-time::before { content: "· "; }
.tq-time:empty::before { content: ""; }
.tq-body { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; }
.tq-text { flex: 1 1 auto; min-width: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.tq-media { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #000; }
.tq-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tq-media-video i {
	position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
	background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.tq-card-gone { color: #8899a6; font-size: 13.5px; background: rgba(0, 0, 0, .03); }
.tq-card-static { margin: 10px 0 0; }

.tweet-action-quote:hover { color: #1da1f2 !important; }
.tq-btn-classic {
	cursor: pointer;
	float: left !important;
	margin: 0 10px 0 0 !important;
	font-size: 12px !important;
	line-height: inherit;
	color: #999 !important;
	text-decoration: none !important;
}
.tq-btn-classic span { float: left; }
.tq-btn-classic:hover { color: #0084B4 !important; }
.tq-btn-classic:hover .tq-ico { opacity: 1; filter: none; }
.tq-btn-classic .tq-ico {
	float: left; width: 11px; height: 11px; margin: 3px 4px 0 0; opacity: .7;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M14.23 2.854c.98-.977 2.56-.977 3.54 0l3.38 3.378c.97.977.97 2.559 0 3.536L9.91 21H3v-6.914L14.23 2.854zM14.75 19l-2 2H21v-2h-6.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html.tq-open, html.tq-open body { overflow: hidden; }
.tq-modal {
	position: fixed; inset: 0; z-index: 100001;
	display: flex; align-items: flex-start; justify-content: center;
	padding: 8vh 12px 12px;
	background: rgba(0, 0, 0, .45);
}
.tq-dialog {
	width: 100%; max-width: 560px;
	background: #fff; color: #14171a;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
	padding: 14px 16px 12px;
	font-family: inherit;
}
html.dark-mode .tq-dialog { background: #15202b; color: #fff; }
.tq-dialog-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; margin-bottom: 10px; }
.tq-x { border: 0; background: none; font-size: 26px; line-height: 1; color: #8899a6; cursor: pointer; padding: 0 4px; }
.tq-input {
	width: 100%; min-height: 90px; resize: vertical;
	border: 1px solid #e1e8ed; border-radius: 12px;
	padding: 10px 12px; font: inherit; font-size: 15px;
	background: transparent; color: inherit; box-sizing: border-box;
}
.tq-input:focus { outline: 0; border-color: #1da1f2; box-shadow: 0 0 0 3px rgba(29, 161, 242, .2); }
html.dark-mode .tq-input { border-color: #38444d; }
.tq-dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.tq-count { color: #8899a6; font-size: 13px; }
.tq-count-low { color: #e0245e; }
.tq-send {
	border: 0; border-radius: 999px; padding: 8px 18px;
	background: #1da1f2; color: #fff; font-weight: bold; font-size: 14px; cursor: pointer;
}
.tq-send[disabled] { opacity: .5; cursor: default; }
@media (max-width: 600px) {
	.tq-modal { padding: 0; align-items: stretch; }
	.tq-dialog { max-width: none; border-radius: 0; min-height: 100%; }
}

/* ------- Prévia de links (estilo X) ------- */
.lp-slot { display: none; }
.lp-card {
	display: flex; flex-direction: column;
	margin: 10px 0 6px;
	border: 1px solid #e1e8ed;
	border-radius: 14px;
	overflow: hidden;
	color: inherit !important;
	text-decoration: none !important;
	background: transparent;
	transition: background .15s;
	max-width: 100%;
	text-align: left;
}
.lp-card:hover { background: rgba(0, 0, 0, .03); }
html.dark-mode .lp-card { border-color: #38444d; }
html.dark-mode .lp-card:hover { background: rgba(255, 255, 255, .04); }
.tp-era-classic .lp-card { border-radius: 5px; }
.lp-img { display: block; aspect-ratio: 1.91 / 1; background: #f5f8fa; overflow: hidden; border-bottom: 1px solid #e1e8ed; }
html.dark-mode .lp-img { background: #192734; border-color: #38444d; }
.lp-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.lp-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; line-height: 1.35; }
.lp-site { color: #8899a6; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-title { font-size: 14.5px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp-desc { color: #657786; font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.dark-mode .lp-desc { color: #8899a6; }
/* sem imagem: cartão compacto */
.lp-card:not(.lp-has-img) .lp-meta { padding: 10px 12px; }

/* Reserva o espaço da barra de rolagem desde o início: sem isso, quando a timeline
   chega por AJAX a barra aparece e a página inteira desliza para o lado (salto de layout) */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
	html { overflow-y: auto; scrollbar-gutter: stable; }
}
/* fotos com width/height no HTML: os atributos só dão a proporção (sem salto ao carregar) */
.ProfileTweet-photo[width][height], .photoPost[width][height] { height: auto !important; }
/* v2 no celular: a coluna de Trends vem depois da timeline; reservando a altura da tela
   para a timeline, os Trends não aparecem no topo e depois "pulam" quando os posts chegam */
@media (max-width: 768px) {
	.home-2015-container .home-col-center { min-height: calc(100vh - 56px); }
}
