/**
 * TorrentMac: баннер устаревшей версии и таблица Older Versions.
 * Подключается с filemtime() — обход агрессивного кеша style.css.
 */

/* --- Переиспользуемые кнопки (warm secondary) --- */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: #3d2f14;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
}

.tm-btn:focus {
	outline: none;
}

.tm-btn:focus-visible {
	outline: 2px solid #e67e22;
	outline-offset: 2px;
}

.tm-btn--warm {
	background: #fffbf3;
	border-color: #e8c96a;
}

.tm-btn--warm:hover,
.tm-btn--warm:focus-visible {
	background: linear-gradient(135deg, #fffbf3 0%, #fff4dc 100%);
	border-color: #e67e22;
	box-shadow: 0 2px 8px rgba(180, 120, 20, 0.1);
	color: #3d2f14;
}

.tm-btn--neutral {
	padding: 10px 20px;
	background: #fff;
	border-color: #d1d5db;
	color: #374151;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tm-btn--neutral:hover,
.tm-btn--neutral:focus-visible {
	background: #f9fafb;
	border-color: #d1d5db;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	color: #374151;
}

.tm-btn--neutral:focus-visible {
	outline: 2px solid #9ca3af;
	outline-offset: 2px;
}

.tm-btn--secondary {
	padding: 10px 18px;
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #374151;
	box-shadow: none;
	text-decoration: none;
}

.tm-btn--secondary .tm-btn__icon {
	color: #6b7280;
}

.tm-btn--secondary:hover,
.tm-btn--secondary:focus-visible,
.tm-btn--secondary[aria-expanded="true"],
.tm-btn--secondary:active {
	background: #e5e7eb;
	border-color: #9ca3af;
	color: #374151;
	text-decoration: none;
	box-shadow: none;
}

.tm-btn--secondary:focus-visible {
	outline: 2px solid #9ca3af;
	outline-offset: 2px;
}

.tm-btn--link {
	padding: 0;
	border: none;
	background: transparent;
	color: #475569;
	font-weight: 500;
	box-shadow: none;
	text-decoration: none;
}

.tm-btn--link:hover,
.tm-btn--link:focus-visible {
	background: transparent;
	border: none;
	box-shadow: none;
	color: #c22;
	text-decoration: underline;
}

.tm-btn--link:focus-visible {
	outline: 2px solid #c22;
	outline-offset: 2px;
}

.tm-btn--block {
	display: flex;
	width: 100%;
}

.tm-btn--expand .tm-btn__icon {
	font-size: 12px;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.tm-btn--expand[aria-expanded="true"] .tm-btn__icon {
	transform: rotate(180deg);
}

.tm-version-banner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 0 22px;
	padding: 18px 20px 18px 18px;
	border-radius: 6px;
	border: 1px solid #e8c96a;
	background: linear-gradient(135deg, #fffbf3 0%, #fff4dc 48%, #ffefd0 100%);
	box-shadow: 0 4px 18px rgba(180, 120, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.tm-version-banner::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, #f5a623 0%, #e67e22 100%);
	border-radius: 6px 0 0 6px;
}

.tm-version-banner__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(230, 126, 34, 0.15);
	color: #c65d0a;
	font-size: 22px;
	line-height: 1;
}

.tm-version-banner__content {
	flex: 1 1 auto;
	min-width: 0;
	padding-left: 4px;
}

.tm-version-banner__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 12px;
}

.tm-version-banner__badge {
	display: inline-block;
	flex: 0 0 auto;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(90deg, #e67e22, #d35400);
	border-radius: 4px;
	vertical-align: middle;
}

.tm-version-banner__latest {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #3d2f14;
}

.tm-version-banner__latest-name {
	display: inline;
	color: #1a1a1a;
	font-weight: 700;
}

.tm-version-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(180deg, #3d3d3d 0%, #222 100%);
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tm-version-banner__cta:hover,
.tm-version-banner__cta:focus {
	color: #fff !important;
	background: linear-gradient(180deg, #c0392b 0%, #962d22 100%);
	box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
}

.tm-version-banner__cta .fa {
	font-size: 14px;
	transition: transform 0.2s ease;
}

.tm-version-banner__cta:hover .fa {
	transform: translateX(3px);
}

/* App single: меньше зазор breadcrumb → заголовок */
.single:has(article.post:not(.faq-post)) #breadcrumbs {
	padding-bottom: 12px;
}

.single:has(article.post:not(.faq-post)) #main {
	padding-top: 16px;
}

/* H1 app single: перебивает AIOSEO/customizer (не faq-post) */
.single article.post:not(.faq-post) header .single-title.post-title {
	margin-top: 0 !important;
	margin-bottom: 15px !important;
	line-height: 1.25 !important;
}

/* App single: без пунктира под meta bar */
.single article.post:not(.faq-post) header {
	margin-bottom: 30px;
	padding-bottom: 0;
	border-bottom: none;
}

/* Single app post: info/download на всю ширину колонки (перебивает float + width:75%) */
.single article.post .single_row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

.single article.post .single_row .feature-img {
	float: none;
	flex: 0 0 170px;
	width: 170px;
	max-width: 100%;
}

.single article.post .single_row .torrent_info {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.single article.post .single_row {
		flex-direction: column;
	}

	.single article.post .single_row .feature-img {
		flex: 0 0 auto;
		width: 100%;
	}
}

:root {
	--tm-section-gap: 32px;
}

/* Отступы между блоками single app post — flex gap, не margin (style.css: .hentry section margin:0) */
.single article.post:not(.faq-post) .tm-single-blocks {
	--tm-section-gap: 32px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	gap: var(--tm-section-gap, 32px);
	row-gap: var(--tm-section-gap, 32px);
	width: 100%;
	box-sizing: border-box;
}

/* margin:0 только у прямых детей — gap flex не отменяет */
.single article.post:not(.faq-post) .tm-single-blocks > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Сворачиваемый основной контент (single app post) */
.single article.post:not(.faq-post) .tm-entry-content-wrap {
	clear: both;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.single article.post:not(.faq-post) .tm-older-versions,
.single article.post:not(.faq-post) .tm-pros-cons,
.single article.post:not(.faq-post) .tm-whats-new,
.single article.post:not(.faq-post) .tm-seo-accordions,
.single article.post:not(.faq-post) .tm-app-faq,
.single article.post:not(.faq-post) .tm-alternatives {
	clear: both;
}

.single article.post:not(.faq-post) .tm-single-blocks + footer {
	margin-top: var(--tm-section-gap);
}

.tm-entry-content-wrap__inner {
	position: relative;
	padding: 16px;
	box-sizing: border-box;
}

.tm-entry-content-wrap .post_content {
	margin: 0;
	padding: 0;
	border-bottom: none;
}

.tm-entry-content-wrap .post_content > :first-child {
	margin-top: 0;
}

.tm-entry-content-wrap--collapsible:not(.tm-entry-content-wrap--expanded) .tm-entry-content-wrap__inner {
	max-height: 500px;
	overflow: hidden;
}

.tm-entry-content-wrap--collapsible:not(.tm-entry-content-wrap--expanded) .tm-entry-content-wrap__inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%);
	pointer-events: none;
	z-index: 1;
}

.tm-entry-content-wrap__footer {
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 12px 16px;
	text-align: center;
}

.tm-entry-content-wrap--expanded .tm-entry-content-wrap__inner {
	max-height: none;
	overflow: visible;
}

.tm-older-versions {
	clear: both;
}

.tm-older-versions__title {
	font-size: 1.35em;
	margin: 0 0 12px;
}

.tm-older-versions__table-wrap {
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.tm-older-versions__table-scroll {
	overflow-x: auto;
	position: relative;
}

.tm-older-versions--has-more:not(.tm-older-versions--expanded) .tm-older-versions__table-scroll::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%);
	pointer-events: none;
	z-index: 1;
}

.tm-older-versions--has-more:not(.tm-older-versions--expanded) .tm-older-versions__row--extra {
	display: none;
}

.tm-older-versions__footer {
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 12px 16px;
	text-align: center;
}

/* Пунктир темы (#article-footer-meta) — не дублировать под блоками над футером */
.single article.post .tm-older-versions + footer #article-footer-meta,
.single article.post .tm-pros-cons + footer #article-footer-meta,
.single article.post .tm-whats-new + footer #article-footer-meta,
.single article.post .tm-seo-accordions + footer #article-footer-meta,
.single article.post .tm-alternatives + footer #article-footer-meta {
	border-top: none !important;
	margin-top: 0;
	padding-top: 8px;
}

.tm-seo-accordions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tm-pros-cons {
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	margin: 0;
}

.tm-pros-cons__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: #f8fafc;
	border-bottom: none;
	cursor: pointer;
	list-style: none;
}

.tm-pros-cons__summary::-webkit-details-marker {
	display: none;
}

.tm-pros-cons__summary-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.tm-pros-cons__summary-icon {
	color: #059669;
	font-size: 14px;
}

.tm-pros-cons__summary-hint {
	font-size: 12px;
	color: #6b7280;
}

.tm-pros-cons[open] .tm-pros-cons__summary-hint {
	color: #374151;
}

.tm-pros-cons[open] .tm-pros-cons__summary {
	border-bottom: 1px solid #e5e7eb;
}

.tm-pros-cons__body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
}

.tm-pros-cons__col {
	padding: 12px 14px 14px;
}

.tm-pros-cons__col--pros {
	border-right: 1px solid #e5e7eb;
}

.tm-pros-cons__title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.2;
}

.tm-pros-cons__title--pros {
	color: #166534;
}

.tm-pros-cons__title--cons {
	color: #b91c1c;
}

.tm-pros-cons__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-pros-cons__item {
	margin: 0 0 10px;
	padding-left: 18px;
	position: relative;
	line-height: 1.45;
	color: #111827;
}

.tm-pros-cons__item:last-child {
	margin-bottom: 0;
}

.tm-pros-cons__item::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: #6b7280;
}

.tm-whats-new {
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	margin: 0;
}

.tm-whats-new__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: #f8fafc;
	border-bottom: none;
	cursor: pointer;
	list-style: none;
}

.tm-whats-new__summary::-webkit-details-marker {
	display: none;
}

.tm-whats-new__summary-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.tm-whats-new__summary-hint {
	font-size: 12px;
	color: #6b7280;
}

.tm-whats-new[open] .tm-whats-new__summary {
	border-bottom: 1px solid #e5e7eb;
}

.tm-whats-new[open] .tm-whats-new__summary-hint {
	color: #374151;
}

.tm-whats-new__body {
	padding: 12px 14px 14px;
}

.tm-whats-new__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tm-whats-new;
}

.tm-whats-new__item {
	position: relative;
	padding-left: 28px;
	margin: 0 0 10px;
	line-height: 1.45;
	color: #111827;
	counter-increment: tm-whats-new;
}

.tm-whats-new__item:last-child {
	margin-bottom: 0;
}

.tm-whats-new__item::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	line-height: 18px;
	border-radius: 50%;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #166534;
	background: #dcfce7;
}

.tm-alternatives {
	clear: both;
}

.tm-alternatives__title {
	font-size: 1.35em;
	margin: 0 0 12px;
}

.tm-alternatives__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.tm-alternatives__item-wrap {
	margin: 0;
	border-bottom: 1px solid #eee;
}

.tm-alternatives__item-wrap:last-child {
	border-bottom: none;
}

.tm-alternatives__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none !important;
	color: inherit;
	transition: background 0.15s ease;
}

.tm-alternatives__item:hover,
.tm-alternatives__item:focus {
	background: #f8f8f8;
}

.tm-alternatives__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tm-alternatives__thumb--empty {
	color: #999;
	font-size: 22px;
}

.tm-alternatives__img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
}

.tm-alternatives__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tm-alternatives__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #c22;
	line-height: 1.3;
}

.tm-alternatives__item:hover .tm-alternatives__name,
.tm-alternatives__item:focus .tm-alternatives__name {
	color: #a11;
}

.tm-alternatives__desc {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.45;
	color: #555;
}

.tm-older-versions__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.tm-older-versions__table th,
.tm-older-versions__table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.tm-older-versions__table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
}

.tm-older-versions__version {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.tm-badge {
	display: inline-block;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: 4px;
	vertical-align: middle;
	white-space: nowrap;
	margin-left: 8px;
}

.tm-badge--latest {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #059669;
}

.tm-badge--current {
	color: #4b5563;
	background: #f9fafb;
	border: 1px solid #9ca3af;
}

/* Latest — главная актуальная версия (emerald success) */
.tm-older-versions__table tr.is-latest {
	background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%);
}

.tm-older-versions__table tr.is-latest td {
	background: transparent !important;
	font-weight: 600;
	color: #064e3b;
}

.tm-older-versions__table tr.is-latest td:first-child {
	box-shadow: inset 5px 0 0 #059669;
}

.tm-older-versions__table tr.is-latest td:last-child {
	color: #6b7280;
	font-weight: 400;
}

.tm-older-versions__table tr.is-latest a,
.tm-older-versions__table a.tm-older-versions__link--latest,
.tm-older-versions__table tr.is-latest .tm-older-versions__name {
	color: #047857 !important;
	font-weight: 600;
	text-decoration: none;
}

/* Current outdated — вы на странице этой устаревшей версии (neutral gray) */
.tm-older-versions__table tr.is-current:not(.is-latest) {
	background: linear-gradient(90deg, #f9fafb 0%, #f3f4f6 100%);
}

.tm-older-versions__table tr.is-current:not(.is-latest) td {
	background: transparent !important;
	font-weight: 500;
	color: #374151;
	border-bottom-color: #e5e7eb;
}

.tm-older-versions__table tr.is-current:not(.is-latest) td:first-child {
	box-shadow: inset 5px 0 0 #6b7280;
}

.tm-older-versions__table tr.is-current:not(.is-latest) td:last-child {
	color: #6b7280;
	font-weight: 400;
}

.tm-older-versions__table tr.is-current:not(.is-latest) .tm-older-versions__name {
	color: #1f2937;
	font-weight: 600;
}

/* Ссылки старых версий: neutral slate */
.tm-older-versions__table tbody tr:not(.is-latest):not(.is-current) a.tm-older-versions__link {
	color: #475569 !important;
	font-weight: 400;
	text-decoration: none;
}

.tm-older-versions__table tbody tr:not(.is-latest):not(.is-current):hover td {
	background: #fafafa;
}

.tm-older-versions__table tbody tr.is-current:not(.is-latest) a.tm-older-versions__link {
	color: #1f2937 !important;
	font-weight: 600;
	text-decoration: none;
}

.tm-older-versions__table a.tm-older-versions__link {
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tm-older-versions__table a.tm-older-versions__link:hover,
.tm-older-versions__table a.tm-older-versions__link:focus-visible {
	text-decoration: none;
	border-bottom-color: currentColor;
}

.tm-older-versions__table tbody tr:last-child td {
	border-bottom: none;
}

/* Карточка torrent_info: файл + метрики */
.tm-torrent-card {
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	margin-bottom: 12px;
}

.tm-torrent-card__meta {
	width: 100%;
	margin: 0;
	background: #fff;
}

.tm-torrent-card__meta th,
.tm-torrent-card__meta td {
	border-bottom-color: #ececec;
	padding: 9px 12px;
}

.tm-torrent-card__meta tr:last-child th,
.tm-torrent-card__meta tr:last-child td {
	border-bottom: none;
}

.tm-post-stats {
	margin: 0;
	background: #f9f9f9;
	border-top: 1px solid #e8e8e8;
}

.tm-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
}

.tm-metric {
	position: relative;
	padding: 8px 10px 9px;
	text-align: center;
	border-right: 1px solid #e8e8e8;
	box-sizing: border-box;
}

.tm-metric:last-child {
	border-right: none;
}

.tm-metric__label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 5px;
}

.tm-metric__value {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #222;
}

.tm-metric--downloads .tm-metric__value {
	font-size: 18px;
	font-variant-numeric: tabular-nums;
}

.tm-metric--checked .tm-metric__value {
	font-size: 13px;
	font-weight: 500;
}

.tm-metric--checked time {
	white-space: nowrap;
}

.tm-metric__body {
	display: block;
}

.tm-metric--votable {
	position: relative;
	padding-bottom: 18px;
}

.tm-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 6px;
	width: 100%;
	max-width: 100%;
	line-height: 1.2;
}

.tm-rating__stars {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	line-height: 1;
}

.tm-rating__star {
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	line-height: 1;
	font-size: 14px;
}

.tm-rating--votable .tm-rating__star,
.tm-rating--locked .tm-rating__star {
	cursor: pointer;
}

.tm-rating--votable:not(.tm-rating--hover) .tm-rating__star .fa,
.tm-rating--locked .tm-rating__star .fa {
	color: #f5a200;
}

.tm-rating--votable.tm-rating--hover .tm-rating__star .fa {
	color: #b0b0b0;
	transition: color 0.12s ease;
}

.tm-rating--votable.tm-rating--hover .tm-rating__star--active .fa,
.tm-rating--votable.tm-rating--hover .tm-rating__star:hover .fa {
	color: #f5a200;
}

.tm-rating--locked .tm-rating__star {
	cursor: default;
}

.tm-rating__hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	margin: 0;
	text-align: center;
	font-size: 11px;
	line-height: 1.2;
	color: #888;
	font-style: italic;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.tm-rating--votable.tm-rating--hover .tm-rating__hint {
	opacity: 1;
	visibility: visible;
}

.tm-rating__star:focus {
	outline: 2px solid rgba(245, 162, 0, 0.35);
	outline-offset: 2px;
}

.tm-rating--locked .tm-rating__star {
	cursor: default;
	opacity: 0.95;
}

.tm-rating__meta {
	display: inline-flex;
	flex-shrink: 0;
	align-items: baseline;
	gap: 3px;
	font-size: 12px;
	color: #555;
	white-space: nowrap;
}

.tm-rating__sep {
	color: #bbb;
}

.tm-rating__avg {
	font-weight: 700;
	color: #222;
}

@media (max-width: 520px) {
	.tm-metrics {
		grid-template-columns: 1fr;
	}

	.tm-metric {
		border-right: none;
		border-bottom: 1px solid #e8e8e8;
		min-height: 0;
		padding: 10px 12px;
	}

	.tm-metric:last-child {
		border-bottom: none;
	}

	.tm-metric--votable {
		padding-bottom: 18px;
	}
}

.tm-rating__avg {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Комментарии: шаблон uses .comment-list (не .commentlist) */
.comment-list .comment-author img.avatar:not(.avatar-60),
.comment-list .vcard img.avatar:not(.avatar-60),
.commentlist .comment-author img.avatar:not(.avatar-60),
.commentlist .vcard img.avatar:not(.avatar-60) {
	width: 32px;
	height: 32px;
	max-width: 32px;
}

/* Administrator: Gravatar class avatar-60 + перебить Custom CSS */
.comment-list .comment-author img.avatar.avatar-60,
.comment-list .vcard img.avatar.avatar-60,
.commentlist .comment-author img.avatar.avatar-60,
.commentlist .vcard img.avatar.avatar-60,
.comment-list li.comment-by-admin .comment-author img.avatar,
.comment-list li.comment-by-admin .vcard img.avatar {
	width: 60px !important;
	height: 60px !important;
	max-width: 60px !important;
}

/* Author profile page (template Author Profile) */
.tm-author-profile__header {
	margin: 0 0 28px;
}

.tm-author-profile__name {
	margin: 0 0 6px;
	font-size: 1.75rem;
	line-height: 1.2;
	color: #1a1a2e;
}

.tm-author-profile__role {
	margin: 0 0 20px;
	font-size: 0.95rem;
	color: #7b6b8f;
	font-weight: 500;
}

.tm-author-profile__figure {
	display: block;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
}

.tm-author-profile__figure--header {
	margin-top: 4px;
}

.tm-author-profile__figure--after-about {
	margin-top: -4px;
	margin-bottom: 28px;
}

.tm-author-profile__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(80, 40, 120, 0.12);
	object-fit: cover;
}

.tm-author-profile__stats-card {
	margin: 0 0 28px;
	padding: 22px 24px;
	border-radius: 10px;
	border: 1px solid #e8e0f0;
	background: linear-gradient(135deg, #fff 0%, #faf7ff 55%, #fff5f8 100%);
	box-shadow: 0 8px 28px rgba(80, 40, 120, 0.08);
}

.tm-author-profile__specialization {
	margin: 16px 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #444;
}

.tm-author-profile__stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-author-profile__stats li {
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #ebe4f2;
	text-align: center;
}

.tm-author-profile__stat-value {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	color: #5c3d7a;
	font-variant-numeric: tabular-nums;
}

.tm-author-profile__stat-value--sm {
	font-size: 0.95rem;
	font-weight: 600;
}

.tm-author-profile__stat-label {
	display: block;
	margin-top: 4px;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

.tm-author-profile__bio-card,
.tm-author-profile__recent {
	margin: 0 0 28px;
	padding: 22px 24px;
	border-radius: 8px;
	border: 1px solid #ececec;
	background: #fff;
}

.tm-author-profile__section-title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: #222;
}

.tm-author-profile__bio-personal {
	font-size: 1rem;
	line-height: 1.7;
	color: #444;
}

.tm-author-profile__bio-personal p {
	margin: 0 0 1em;
}

.tm-author-profile__recent-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-author-profile__recent-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.tm-author-profile__recent-item:last-child {
	border-bottom: none;
}

.tm-author-profile__recent-link {
	font-weight: 600;
	color: #2c5282;
	text-decoration: none;
}

.tm-author-profile__recent-link:hover {
	color: #5c3d7a;
}

.tm-author-profile__recent-version {
	margin-left: 6px;
	font-weight: 500;
	font-size: 0.88em;
	color: #777;
}

.tm-author-profile__recent-date {
	font-size: 0.85rem;
	color: #888;
	white-space: nowrap;
}

.tm-author-profile__empty,
.tm-author-profile__admin-hint {
	margin: 0;
	padding: 14px 16px;
	border-radius: 6px;
	background: #f8f8f8;
	color: #666;
	font-size: 0.95rem;
}

.tm-author-profile__admin-hint {
	border: 1px dashed #c9a227;
	background: #fffbeb;
	color: #5c4a00;
}

.tm-reviewer-link,
.tm-comment-author-link {
	font-weight: 600;
	text-decoration: none;
}

.tm-reviewer-link:hover,
.tm-comment-author-link:hover {
	text-decoration: underline;
}

a.tm-comment-author-avatar-link {
	display: inline-block;
	border-radius: 50%;
	line-height: 0;
}

a.tm-comment-author-avatar-link:hover {
	opacity: 0.92;
}

@media (max-width: 600px) {
	.tm-version-banner {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}

	.tm-version-banner__icon {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.tm-version-banner__cta {
		display: flex;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}

	.tm-pros-cons__body {
		grid-template-columns: 1fr;
	}

	.tm-pros-cons__col--pros {
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
	}
}

/* Листинг: миниатюра в рамке ~100px; битый img не раздувает пост */
#main .home-thumb {
	overflow: hidden;
	max-height: 100px;
}

#main .home-thumb img {
	display: block;
	width: 100px;
	height: auto !important;
	max-width: 100%;
	max-height: 100px;
	min-height: 0;
	object-fit: contain;
	object-position: center;
}
