/* ==========================================================================
   1. ПЕРЕМЕННЫЕ (CSS VARIABLES)
   ========================================================================== */
:root {
	/* Границы для расчета резины */
	--min-viewport: 375;
	--max-viewport: 1620;

	/* Цвета */
	--color-white: #ffffff;
	--color-black: #000000;
	--color-gray-light: #e5e5e5;
	--color-gray-dark: #333333;
	--color-gray-muted: #595959;
	--color-accent: #000000;
	--color-border: #cccccc;

	/* Резиновые шрифты: calc(min + (max - min) * ((100vw - min_v) / (max_v - min_v))) */
	--fz-h1: calc(32px + (64 - 32) * ((100vw - 375px) / (1620 - 375)));
	--fz-h2: calc(36px + (48 - 26) * ((100vw - 375px) / (1620 - 375)));
	--fz-h3: calc(20px + (24 - 20) * ((100vw - 375px) / (1620 - 375)));
	--fz-body: calc(14px + (18 - 14) * ((100vw - 375px) / (1620 - 375)));

	/* Резиновые отступы */
	--space-section: calc(40px + (100 - 40) * ((100vw - 375px) / (1620 - 375)));
	--space-grid: calc(20px + (60 - 20) * ((100vw - 375px) / (1620 - 375)));

	--container-max: 1620px;
	--transition: all 0.3s ease;
}

/* Ограничение роста на экранах шире 1620px */
@media (min-width: 1620px) {
	:root {
		--fz-h1: 64px;
		--fz-h2: 48px;
		--fz-h3: 24px;
		--fz-body: 18px;
		--space-section: 40px;
		--space-grid: 60px;
	}
}

/* ==========================================================================
   2. ОБНУЛЕНИЕ (RESET)
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Montserrat', sans-serif;
	color: var(--color-black);
	background: var(--color-white);
	font-size: var(--fz-body);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	font-weight: 400;
}
a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}
ul {
	list-style: none;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Длинные URL/строки без пробелов не должны раздувать страницу вбок */
html {
	overflow-x: clip;
}

body,
.episode-hero__description,
.episode-hero__title,
.episode-card__excerpt,
.episode-card__title,
.entry-content,
.blog-single__body,
.blog-card__excerpt {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.episode-hero__description a,
.episode-card__excerpt a,
.entry-content a,
.blog-single__body a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* ==========================================================================
   3. ГЛОБАЛЬНЫЕ КОМПОНЕНТЫ (CORE)
   ========================================================================== */
[class*='__container'] {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.section-title {
	font-size: var(--fz-h2);
	font-weight: 800;
	margin-bottom: calc(var(--space-grid) / 1.5);
}

.btn-primary {
	display: inline-block;
	background: var(--color-black);
	color: var(--color-white);
	padding: 10px 77px;
	font-weight: 700;
	border-radius: 7px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-primary:hover {
	background: var(--color-gray-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}

button.btn-primary {
	border: none;
	font-family: inherit;
	font-size: inherit;
}

/* ==========================================================================
   КРУГОВОЙ ЛОГОТИП (circle-logo)
   ========================================================================== */

/* Базовый блок логотипа */
.circle-logo {
	position: relative;
	width: 300px;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
}

/* Маленькая версия логотипа */
.circle-logo--small {
	width: 80px;
	height: 80px;
}

/* Средняя версия логотипа */
.circle-logo--medium {
	width: 180px;
	height: 180px;
	font-size: 18px;
	color: var(--color-gray-dark);
}

.circle-logo__text-medium {
	font-weight: 600;
	font-size: 28px;
	color: var(--color-gray-dark);
}

/* Контейнер для вращающейся картинки */
.circle-logo__rotating-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Картинка которая крутится */
.circle-logo__rotating-bg img,
.circle-logo__rotating-bg svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	animation: spin 15s linear infinite;
}

/* Текст поверх картинки (статичный) */
.circle-logo__text {
	position: relative;
	z-index: 2;
	font-weight: 600;
	font-size: var(--fz-h2);
	line-height: 1;
	letter-spacing: 2px;
	color: var(--color-gray-dark);
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Для маленького логотипа текст поменьше */
.circle-logo--small .circle-logo__text {
	font-size: 14px;
	letter-spacing: 1px;
}

/* ==========================================================================
   АНИМАЦИЯ ВРАЩЕНИЯ
   ========================================================================== */

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   4. ХЕДЕР (HEADER) - фиксированная версия без уменьшения
   ========================================================================== */
.header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-gray-light);
}

.header__container {
	/*display: flex;*/
	align-items: center;
	justify-content: space-between;
	min-height: 100%;
}

/* Логотип */
.logo__image {
	max-height: 50px;
	width: auto;
	display: block;
}

/* Десктопное меню */
.menu__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 48px;
}

.menu__link {
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
}

.menu__link:hover {
	opacity: 0.6;
}

/* ==========================================================================
   БУРГЕР-МЕНЮ
   ========================================================================== */

/* Кнопка бургера */
.header__burger {
	display: none;
	position: relative;
	width: 30px;
	height: 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1001;
	padding: 0;
}

.burger__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-black);
	transition: all 0.3s ease;
}

.burger__line:nth-child(1) {
	top: 0;
}

.burger__line:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.burger__line:nth-child(3) {
	bottom: 0;
}

/* Анимация бургера при открытом меню */
.header__burger.active .burger__line:nth-child(1) {
	transform: rotate(45deg);
	top: 9px;
}

.header__burger.active .burger__line:nth-child(2) {
	opacity: 0;
}

.header__burger.active .burger__line:nth-child(3) {
	transform: rotate(-45deg);
	bottom: 9px;
}

/* Мобильная версия */
@media (max-width: 767px) {
	.header__burger {
		display: block;
		margin-left: auto;
	}

	.header__menu {
		position: absolute;
		top: 100%; /* Прилипает к нижней границе шапки */
		left: 0;
		width: 100%;
		background: var(--color-gray-light);
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		border-top: 1px solid var(--color-border);
	}

	.header__menu.active {
		max-height: 300px; /* Достаточно для всех пунктов */
	}

	.menu__list {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 20px 0;
	}

	.menu__item {
		width: 100%;
		text-align: center;
	}

	.menu__link {
		display: block;
		padding: 12px 20px;
		font-size: 18px;
		width: 100%;
	}

	.menu__link:hover {
		background: rgba(0, 0, 0, 0.05);
		opacity: 1;
	}
}

/* Планшеты и десктопы */
@media (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__menu {
		position: static;
		display: block;
		max-height: none;
		overflow: visible;
		box-shadow: none;
		border-top: none;
	}
}

/* ==========================================================================
   5. ХИРО-СЕКЦИЯ (HERO)
   ========================================================================== */
.hero {
	padding: var(--space-section) 0;
}
.hero__container {
	display: flex;
	flex-direction: column;
	gap: 80px;
}
.hero__title {
	font-size: var(--fz-h1);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 10px;
}
.hero__description {
	font-size: 24px;
	margin-bottom: 48px;
	max-width: 648px;
}

.hero__visual {
	margin: auto;
}

/* Блок Social (переиспользуемый) */
.social__caption {
	font-weight: 700;
	font-size: 24px;
	margin-bottom: 20px;
	display: block;
}
.social__list {
	display: flex;
	flex-wrap: wrap;
	column-gap: 10px;
	row-gap: 30px;
}
.social__link {
	padding: 10px;
	border: 1px solid var(--color-black);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	transition: var(--transition);
}

.social__link:hover {
	background: var(--color-black);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social__link:active {
	transform: translateY(0);
}

/* ==========================================================================
   6. ЭПИЗОДЫ (EPISODES)
   ========================================================================== */
.episodes {
	padding: var(--space-section) 0;
}
.episodes__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-bottom: 40px;
}

.episode-card {
	display: flex;
	flex-direction: column;
	padding: 15px;
	border-radius: 7px;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.episode-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.episode-card__visual {
	background: #f9f9f9;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	box-shadow: 0 4px 4px 0 #00000040;
	transition: box-shadow 0.3s ease;
}

.episode-card:hover .episode-card__visual {
	box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.5);
}

.episode-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.episode-card__meta {
	display: flex;
	justify-content: space-between;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 10px;
}

.episode-card__season {
	color: var(--color-gray-dark);
}

.episode-card__date {
	color: var(--color-gray-dark);
}

.episode-card__title {
	font-size: var(--fz-h3);
	margin-bottom: 15px;
}

.episode-card__title a {
	text-decoration: none;
	color: var(--color-black);
	transition: color 0.3s ease;
}

.episode-card__title a:hover {
	color: var(--color-gray-dark);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.episode-card__excerpt {
	font-weight: 500;
	font-size: 16px;
	color: var(--color-gray-muted);
	margin-bottom: 10px;
}

/* ==========================================================================
   ТЕГИ (TAGS)
   ========================================================================== */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.tags__item {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f0f0;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-gray-dark);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.tags__item:hover {
	background: var(--color-gray-dark);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   ФИДБЕК (FEEDBACK)
   ========================================================================== */

.feedback {
	margin-top: auto;
	min-height: 52px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.feedback__caption {
	display: block;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--color-black);
}

.feedback__actions {
	display: flex;
	gap: 10px;
}

.feedback__btn {
	padding: 5px 15px;
	border: 1px solid var(--color-black);
	border-radius: 7px;
	font-weight: 700;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.feedback__btn:hover {
	background: var(--color-black);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feedback__btn:active {
	transform: translateY(0);
}

/* ==========================================================================
   7. АВТОР (AUTHOR)
   ========================================================================== */
.author {
	padding: var(--space-section) 0;
}
.author__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.author__greeting {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
}

.author__name {
	font-size: var(--fz-h2);
	font-weight: 700;
	margin-bottom: 20px;
}

.author__visual {
	justify-self: center;
}

.author__photo {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
/* ==========================================================================
   7. ПАРТНЕРЫ (PARTNERS)
   ========================================================================== */

.partners {
	padding: var(--space-section) 0;
}

.partners__grid {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	padding-bottom: 40px;
}

.partners__item {
	flex: 0 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 328px;
	max-height: 105px;
	cursor: default;
}

.partners__link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
}

.partners__logo {
	max-height: 105px;
	width: auto;
	filter: grayscale(1);
	opacity: 0.7;
	transition: all 0.3s ease;
	cursor: default;
}

.partners__link:hover .partners__logo,
.partners__logo:hover {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
	.partners__grid {
		justify-content: center;
		gap: 30px;
	}
	.partners__logo {
		max-height: 50px;
	}
}

@media (max-width: 480px) {
	.partners__grid {
		flex-direction: column;
		gap: 25px;
	}
}

/* ==========================================================================
   8. ФУТЕР (FOOTER)
   ========================================================================== */
.footer {
	background: var(--color-gray-light);
	padding: var(--space-section) 0 40px;
}
.footer__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	text-align: center;
}

.footer .menu__list {
	flex-direction: column;
	align-items: center;
}

.footer__list {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
}

.footer__list-item {
	font-size: 16px;
}

.footer__link {
	text-decoration: underline;
	font-weight: 700;
}

.footer__copyright {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.1;
	margin-top: 54px;
}

/* ==========================================================================
   9. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */

@media (min-width: 768px) {
	.header__container {
		flex-direction: row;
		justify-content: space-between;
	}
	.episodes__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.author__grid {
		flex-direction: row;
	}
	.author__intro {
		flex: 1;
	}
	.author__description {
		flex: 1;
	}
}

@media (min-width: 1200px) {
	.hero__container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.hero__content {
		flex: 0 0 60%;
	}
	.episodes__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.author__grid {
		display: grid;
		grid-template-columns: 1fr 1.5fr;
		gap: 80px;
	}
	.footer__container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}
	.footer .menu__list,
	.footer .social__list {
		align-items: flex-start;
	}
}

/* ==========================================================================
   WP ULike - Только лайки
   ========================================================================== */

.episode-card__feedback .wpulike {
	margin: 0;
	padding: 0;
}

.episode-card__feedback .wpulike .wp_ulike_btn {
	background: transparent;
	border: 1px solid var(--color-gray-dark);
	border-radius: 7px;
	padding: 5px 15px;
	margin: 0;
	color: var(--color-black);
	font-size: 14px;
	min-width: 60px;
	box-shadow: none;
	transition: var(--transition);
}

.episode-card__feedback .wpulike .wp_ulike_btn:hover {
	background: var(--color-gray-dark);
	color: var(--color-black);
}

.episode-card__feedback .wpulike .count-box {
	font-weight: 700;
	color: var(--color-gray-dark);
	margin-left: 5px;
}

.episode-card__feedback .wpulike .wp_ulike_general_class {
	display: flex;
	gap: 10px;
}

.episode-card__feedback .wpulike .wp_ulike_is_loading {
	background: transparent;
}

/* ==========================================================================
   СТРАНИЦА ЭПИЗОДА (EPISODE SINGLE)
   ========================================================================== */

.episode-hero {
	padding: var(--space-section) 0;
}

.episode-hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.episode-hero__cover {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f9f9f9;
	aspect-ratio: 16/9;
	border-radius: 0;
	box-shadow: 0 4px 4px 0 #00000040;
	margin: auto;
}

.episode-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.episode-hero__cover .circle-logo {
	transform: scale(0.8);
}

.episode-hero__info {
	display: flex;
	flex-direction: column;
}

.episode-hero__info .tags__item {
	cursor: default;
}

.episode-hero__meta {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 24px;
	color: var(--color-gray-dark);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.episode-hero__date {
	margin-left: 10px;
}

.episode-hero__title {
	font-size: var(--fz-h2);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--color-black);
}

.episode-hero__description {
	font-size: 24px;
	line-height: 1.5;
	color: var(--color-gray-muted);
	margin-bottom: 20px;
}

.episode-hero__tags {
	margin-top: 10px;
}

/* Мобильные устройства */
@media (max-width: 767px) {
	.episode-hero__container {
		display: flex;
		flex-direction: column;
		gap: 30px;
		width: 100%;
		overflow-x: hidden;
	}

	/* Убираем aspect-ratio на мобилках */
	.episode-hero__cover {
		aspect-ratio: unset;
		height: auto;
		width: 100%;
	}
}

@media (min-width: 1200px) {
	.episode-hero__container {
		grid-template-columns: 400px 1fr;
		gap: 60px;
	}
}

/* ==========================================================================
   ПЛЕЕР 
   ========================================================================== */

.episode-player-block {
	padding: 60px 0;
	background: #f8f8f8;
}

.episode-player-block__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.episode-player-block__title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 40px;
}

.episode-player-block__embed {
	width: 100%;
	margin-bottom: 28px;
	line-height: 0;
	overflow: visible;
	background: transparent;
}

.episode-player-block__iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	background: transparent;
}

.episode-player-block__missing {
	margin: 0;
	color: #666;
	font-size: 16px;
}

.episode-player-block__timeline {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 32px;
	width: 100%;
}

.timeline__current,
.timeline__duration {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	min-width: 50px;
	font-family: monospace;
	text-align: center;
}

.timeline__progress {
	flex: 1;
	height: 16px;
	background: #ddd;
	border-radius: 50px;
	cursor: pointer;
	position: relative;
}

.timecode-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.progress__filled {
	height: 100%;
	background: #000;
	width: 0%;
	border-radius: 50px;
	position: relative;
	transition: width 0.1s linear;
}

.episode-player-block__controls {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.controls__top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.controls__main-group {
	display: flex;
	min-width: 275px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.controls__btn {
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	transition: all 0.3s ease;
}

.controls__btn svg {
	width: 32px;
	height: 32px;
	transition: fill 0.3s ease;
}

.controls__btn:hover {
	transform: scale(1.05);
}

.controls__btn--play svg,
.controls__btn--pause svg {
	width: 32px;
	height: 32px;
}

.controls__btn--pause {
	display: none;
	border-radius: 50%;
	background-color: var(--color-black);
}

.controls__btn--back,
.controls__btn--next {
	position: relative;
}

.controls__btn--back::after,
.controls__btn--next::after {
	content: '10';
	position: absolute;
	font-size: 10px;
	font-weight: 700;
	color: #000;
	transition: color 0.3s ease;
}

.controls__btn--back::after {
	font-size: 14px;
}

.controls__btn--next::after {
	font-size: 14px;
}

@keyframes rewind {
	0% {
		transform: rotate(0deg) scale(1);
	}
	50% {
		transform: rotate(-20deg) scale(0.9);
	}
	100% {
		transform: rotate(0deg) scale(1);
	}
}

@keyframes forward {
	0% {
		transform: rotate(0deg) scale(1);
	}
	50% {
		transform: rotate(20deg) scale(0.9);
	}
	100% {
		transform: rotate(0deg) scale(1);
	}
}

.controls__btn--back.rewind-animation svg {
	animation: rewind 0.2s ease;
}

.controls__btn--next.forward-animation svg {
	animation: forward 0.2s ease;
}

.controls__actions-group {
	display: flex;
	gap: 15px;
}

.controls__btn--download,
.controls__btn--share {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid #000;
	border-radius: 7px;
	font-size: 18px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.controls__btn--download svg,
.controls__btn--share svg {
	width: 16px;
	height: 16px;
	transition: fill 0.3s ease;
}

.controls__btn--download:hover,
.controls__btn--share:hover {
	background: #000;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.controls__btn--download:active,
.controls__btn--share:active {
	transform: translateY(0);
}

.controls__btn--download:hover svg path,
.controls__btn--share:hover svg path {
	stroke: #fff !important;
	fill: #fff !important;
}

.controls__btn--download svg path:first-child {
	stroke: #000;
	fill: none;
}

.controls__btn--download:hover svg path:first-child {
	stroke: #fff !important;
	fill: none !important;
}

.controls__btn--download svg path:last-child {
	fill: #000;
	stroke: none;
}

.controls__btn--download:hover svg path:last-child {
	fill: #fff !important;
	stroke: none !important;
}

.controls__btn--share svg path:first-child {
	stroke: #000;
	fill: none;
}

.controls__btn--share:hover svg path:first-child {
	stroke: #fff !important;
	fill: none !important;
}

.controls__btn--share svg path:last-child {
	fill: #000;
	stroke: none;
}

.controls__btn--share:hover svg path:last-child {
	fill: #fff !important;
	stroke: none !important;
}

.episode-player-block__feedback {
	display: flex;
	align-items: center;
	gap: 20px;
}

.feedback__label {
	font-weight: 600;
	font-size: 16px;
	color: #000;
	white-space: nowrap;
}

.episode-player-block__feedback .wpulike {
	margin: 0 !important;
	padding: 0 !important;
}

.episode-player-block__feedback .wp_ulike_btn {
	background: transparent !important;
	border: 1px solid #000 !important;
	border-radius: 7px !important;
	padding: 6px 15px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #000 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transition: var(--transition) !important;
}

.episode-player-block__feedback .wp_ulike_btn:hover {
	background: #000 !important;
	color: #fff !important;
}

.episode-player-block__feedback .wp_ulike_general_class {
	display: flex !important;
	gap: 10px !important;
}

.episode-player-block__feedback .count-box {
	font-weight: 600 !important;
	color: #000 !important;
	margin-left: 5px !important;
}

.controls__volume-group {
	display: flex;
	align-items: center;
	gap: 20px;
}

.volume-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}

.volume__btn {
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	transition: all 0.3s ease;
}

.volume__btn svg {
	width: 20px;
	height: 20px;
	fill: #000;
	transition: fill 0.3s ease;
}

.volume__btn:hover svg {
	scale: 1.2;
}

.volume__slider {
	width: 200px;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	transition: opacity 0.3s ease;
}

.volume__slider:hover {
	opacity: 0.8;
}

.slider__filled {
	height: 100%;
	background: #000;
	border-radius: 2px;
	width: 100%;
	position: relative;
	transition: width 0.1s linear;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ПЛЕЕРА
   ========================================================================== */

@media (max-width: 1200px) {
	.controls__top-row {
		flex-wrap: wrap;
		gap: 20px;
	}
	.controls__actions-group {
		flex-wrap: wrap;
	}
}

@media (max-width: 992px) {
	.episode-player-block__timeline {
		margin-bottom: 30px;
	}
	.timeline__progress {
		height: 14px;
		width: 100%;
	}
	.controls__main-group {
		min-width: auto;
		gap: 15px;
	}
	.controls__btn--download,
	.controls__btn--share {
		padding: 8px 16px;
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.episode-player-block {
		padding: 40px 0;
	}
	.episode-player-block__title {
		font-size: 28px;
		margin-bottom: 30px;
	}
	.episode-player-block__timeline {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 25px;
	}
	.timeline__timecodes {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}
	.timeline__current,
	.timeline__duration {
		font-size: 16px;
		min-width: 45px;
	}
	.timeline__progress {
		width: 100% !important;
		height: 12px;
		flex: none;
	}
	.controls__top-row {
		flex-direction: column;
		align-items: stretch;
		gap: 25px;
	}
	.controls__main-group {
		width: 100%;
		justify-content: center;
		order: 1;
	}
	.controls__actions-group {
		width: 100%;
		justify-content: center;
		order: 2;
		gap: 12px;
		flex-wrap: wrap;
	}
	.controls__btn--download,
	.controls__btn--share {
		flex: 1;
		min-width: 140px;
		justify-content: center;
		font-size: 15px;
	}
	.episode-player-block__feedback {
		width: 100%;
		justify-content: center;
		order: 3;
		margin-top: 5px;
		flex-wrap: wrap;
	}
	.feedback__label {
		font-size: 15px;
	}
	.episode-player-block__feedback .wp_ulike_btn {
		padding: 5px 12px !important;
	}
	.controls__volume-group {
		order: 4;
		width: 100%;
		padding-top: 15px;
	}
	.volume-wrapper {
		width: 100%;
		justify-content: space-between;
	}
	.volume__slider {
		width: 100% !important;
		max-width: none;
		height: 6px;
	}
}

@media (max-width: 576px) {
	.episode-player-block__title {
		font-size: 24px;
		margin-bottom: 25px;
	}
	.episode-player-block__timeline {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 20px;
	}
	.timeline__current,
	.timeline__duration {
		font-size: 14px;
		min-width: 40px;
	}
	.timeline__progress {
		width: 100% !important;
		height: 10px;
		flex: none;
	}
	.controls__main-group {
		gap: 12px;
	}
	.controls__btn svg {
		width: 28px;
		height: 28px;
	}
	.controls__btn--play svg,
	.controls__btn--pause svg {
		width: 28px;
		height: 28px;
	}
	.controls__actions-group {
		flex-direction: column;
		gap: 10px;
	}
	.controls__btn--download,
	.controls__btn--share {
		width: 100%;
		font-size: 14px;
		padding: 8px 12px;
	}
	.episode-player-block__feedback {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
	.feedback__label {
		font-size: 14px;
	}
	.episode-player-block__feedback .wpulike {
		width: 100%;
	}
	.episode-player-block__feedback .wp_ulike_general_class {
		justify-content: center !important;
	}
	.controls__volume-group {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}
	.volume-wrapper {
		width: 100%;
		justify-content: space-between;
		gap: 15px;
	}
	.volume__slider {
		width: 100% !important;
		height: 6px;
	}
	.volume__btn svg {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 375px) {
	.episode-player-block {
		padding: 30px 0;
	}
	.episode-player-block__title {
		font-size: 22px;
		margin-bottom: 20px;
	}
	.episode-player-block__timeline {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 15px;
	}
	.timeline__current,
	.timeline__duration {
		font-size: 12px;
		min-width: 35px;
	}
	.timeline__progress {
		width: 100% !important;
		height: 8px;
		flex: none;
	}
	.controls__main-group {
		gap: 8px;
	}
	.controls__btn svg {
		width: 24px;
		height: 24px;
	}
	.controls__btn--play svg,
	.controls__btn--pause svg {
		width: 24px;
		height: 24px;
	}
	.controls__btn--back::after,
	.controls__btn--next::after {
		font-size: 12px;
	}
	.volume-wrapper {
		gap: 10px;
	}
	.volume__slider {
		width: 100% !important;
	}
}

/* ==========================================================================
   ТРАНСКРИПЦИЯ
   ========================================================================== */

.episode-transcript {
	padding: var(--space-section) 0;
	background: #f9f9f9;
}

.episode-transcript__container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.episode-transcript__container.episode-transcript__container--has-content {
	max-width: none;
}

.episode-transcript__content {
	background: var(--color-white);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	margin-top: 30px;
}

/* Сворачиваемый блок: по умолчанию ~12 строк */
.episode-transcript__body {
	max-height: 21.6em; /* 12 * line-height 1.8 */
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.episode-transcript__body.is-expanded {
	max-height: none;
}

.episode-transcript__toggle-wrap {
	text-align: center;
	margin-top: 24px;
}

.episode-transcript__text {
	line-height: 1.8;
	font-size: 24px;
	font-weight: 500;
	color: var(--color-gray-dark);
}

.episode-transcript__text p {
	margin-bottom: 20px;
}

.episode-transcript__text p:last-child {
	margin-bottom: 0;
}

.episode-transcript__placeholder {
	text-align: center;
	color: var(--color-gray-muted);
	font-style: italic;
	padding: 40px;
	margin: 0;
}

.episode-transcript__download {
	text-align: center;
	margin-top: 30px;
}

.episode-transcript__timestamp {
	color: var(--color-accent);
	font-weight: 700;
	margin-right: 10px;
	cursor: pointer;
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	transition: var(--transition);
}

.episode-transcript__timestamp:hover,
.episode-transcript__timestamp.active {
	background: var(--color-accent);
	color: var(--color-white);
}

/* ==========================================================================
   СОЦИАЛЬНЫЕ СЕТИ (как social__link)
   ========================================================================== */

.episode-social {
	padding: var(--space-section) 0;
}

.episode-social__title {
	font-size: var(--fz-h2);
	font-weight: 700;
	margin-bottom: 40px;
}

.episode-social__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.episode-social__grid .social-card {
	display: inline-block;
	padding: 0.6em 1.2em;
	border: 1px solid var(--color-black);
	border-radius: 7px;
	font-size: 26px;
	font-weight: 700;
	text-decoration: none;
	color: var(--color-black);
	transition: all 0.3s ease;
	background: transparent;
}

.episode-social__grid .social-card:hover {
	background: var(--color-black);
	color: var(--color-white);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   НАВИГАЦИЯ МЕЖДУ ВЫПУСКАМИ
   ========================================================================== */

.episode-navigation {
	padding: 40px 0;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.episode-navigation__container {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.episode-navigation__prev,
.episode-navigation__next {
	flex: 1;
	text-decoration: none;
	color: var(--color-black);
	padding: 20px;
	background: #f9f9f9;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.episode-navigation__prev:hover,
.episode-navigation__next:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.episode-navigation__prev:active,
.episode-navigation__next:active {
	transform: translateY(0);
}

.episode-navigation__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-gray-muted);
	margin-bottom: 8px;
}

.episode-navigation__title {
	display: block;
	font-weight: 700;
	line-height: 1.4;
}

.episode-navigation__next {
	text-align: right;
}

/* ==========================================================================
   СТРАНИЦА АРХИВА ВЫПУСКОВ
   ========================================================================== */

.episodes-archive {
	padding: var(--space-section) 0;
}

.episodes-archive__title {
	font-size: var(--fz-h1);
	font-weight: 700;
	margin-bottom: 75px;
}

/* ПОИСК */
.episodes-archive__search {
	margin-bottom: 84px;
}

.episodes-archive__search .search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.episodes-archive__search .search-field {
	flex: 1;
	height: 54px;
	padding: 0 20px;
	border: 2px solid var(--color-black);
	border-radius: 7px;
	font-size: 16px;
	outline: none;
	font-family: 'Montserrat', sans-serif;
	background: white;
	transition: all 0.3s ease;
	line-height: 54px;
}

.episodes-archive__search .search-field:focus {
	border-color: var(--color-black);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
	outline: none;
}

.episodes-archive__search .search-field::placeholder {
	color: #999;
	font-weight: 600;
	line-height: 54px;
	opacity: 1;
}

.episodes-archive__search .search-field::-moz-placeholder {
	line-height: 52px;
	color: #999;
}

.episodes-archive__search .search-field:-ms-input-placeholder {
	line-height: 52px;
	color: #999;
}

.episodes-archive__search .search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 54px;
	background: var(--color-black);
	border: 1px solid var(--color-black);
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.episodes-archive__search .search-submit:hover {
	opacity: 1;
	background: var(--color-gray-dark);
	transform: scale(1.02);
}

.episodes-archive__search .search-submit:active {
	transform: scale(0.98);
}

.episodes-archive__search .search-submit svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* Фильтры по тегам */
.episodes-archive__filters {
	margin-bottom: 80px;
}

.filters__label {
	display: block;
	font-weight: 700;
	font-size: var(--fz-h1);
	margin-bottom: 48px;
}

.filters__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.filters__tag {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--color-black);
	border-radius: 7px;
	font-size: 28px;
	font-weight: 700;
	color: var(--color-black);
	text-decoration: none;
	transition: all 0.3s ease;
}

.filters__tag:hover,
.filters__tag.active {
	background: var(--color-black);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filters__tag:active {
	transform: translateY(0);
}

/* ==========================================================================
   ПАГИНАЦИЯ
   ========================================================================== */

.episodes-archive__pagination,
.search-results__pagination {
	margin-top: 60px;
	text-align: center;
}

.episodes-archive__pagination .page-numbers,
.search-results__pagination .page-numbers {
	display: inline-block;
	margin: 0 3px;
	padding: 8px 13px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
}

.episodes-archive__pagination .page-numbers.current,
.search-results__pagination .page-numbers.current {
	background: #333;
	color: #fff;
	border-color: #333;
}

.episodes-archive__pagination .page-numbers:hover,
.search-results__pagination .page-numbers:hover {
	background: #333;
	color: #fff;
	border-color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.episodes-archive__pagination .page-numbers:active,
.search-results__pagination .page-numbers:active {
	transform: translateY(0);
}

.episodes-archive__pagination .prev,
.episodes-archive__pagination .next,
.search-results__pagination .prev,
.search-results__pagination .next {
	padding: 8px 16px;
}

/* Кнопка загрузить еще */
.episodes-archive__load-more {
	text-align: center;
	margin-top: 60px;
}

.episodes-archive__load-more .btn-primary {
	padding: 15px 40px;
	font-size: 18px;
}

.episodes-archive__load-more .btn-primary:hover {
	background: var(--color-gray-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Нет результатов */
.no-results {
	text-align: center;
	padding: 60px;
	color: var(--color-gray-dark);
	font-size: 18px;
	grid-column: 1 / -1;
}

/* ==========================================================================
   СТРАНИЦА ПОИСКА
   ========================================================================== */

.search-results {
	padding-bottom: 48px;
}

.search-results__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.search-results__title {
	font-size: var(--fz-h2);
	font-weight: 800;
	margin: 30px 0;
	line-height: 1.3;
}

.search-results__title span {
	color: var(--color-gray-dark);
	font-weight: 400;
}

.search-results__count {
	font-size: 18px;
	font-weight: 400;
	color: var(--color-gray-dark);
	margin-left: 15px;
	white-space: nowrap;
}

.search-results__search-form {
	margin-bottom: 30px;
}

.search-results__search-form .search-form {
	display: flex;
	border: 1px solid var(--color-border);
	border-radius: 7px;
	overflow: hidden;
	transition: var(--transition);
}

.search-results__search-form .search-form:focus-within {
	border-color: var(--color-black);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-results__search-form .search-field {
	flex: 1;
	padding: 15px 20px;
	border: none;
	font-size: 16px;
	outline: none;
	font-family: 'Montserrat', sans-serif;
}

.search-results__search-form .search-field::placeholder {
	color: #999;
	font-weight: 400;
}

.search-results__search-form .search-submit {
	padding: 15px 30px;
	background: var(--color-black);
	color: white;
	border: none;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.search-results__search-form .search-submit:hover {
	opacity: 0.8;
	background: var(--color-gray-dark);
}

.search-results__info {
	margin-bottom: 30px;
	padding: 15px 0;
	color: var(--color-gray-dark);
	font-size: 15px;
	border-bottom: 1px solid var(--color-border);
	font-weight: 500;
}

.search-results__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-grid);
	margin-bottom: 40px;
}

@media (min-width: 768px) {
	.search-results__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.search-results__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.search-results__none {
	text-align: center;
	padding: 80px 40px;
	background: #f9f9f9;
	border-radius: 20px;
	margin-top: 30px;
}

.search-results__none p {
	font-size: 20px;
	color: var(--color-gray-dark);
	margin-bottom: 40px;
	font-weight: 500;
}

.search-results__none .search-results__search-form {
	margin-bottom: 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

@keyframes pulse {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
	100% {
		opacity: 1;
	}
}

.search-results__loading {
	text-align: center;
	padding: 60px;
	color: var(--color-gray-dark);
	font-size: 18px;
	animation: pulse 1.5s ease-in-out infinite;
}

.search-results__load-more {
	text-align: center;
	margin-top: 40px;
}

.search-results__load-more .btn-primary {
	padding: 12px 40px;
	font-size: 16px;
	border: 2px solid var(--color-black);
	background: transparent;
	color: var(--color-black);
}

.search-results__load-more .btn-primary:hover {
	background: var(--color-black);
	color: white;
}

/* ==========================================================================
   404 СТРАНИЦА
   ========================================================================== */

.error-404 {
	padding: calc(var(--space-section) * 1.5) 0;
	text-align: center;
	background: linear-gradient(to bottom, #f8f8f8, var(--color-white));
}

.error-404__container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.error-404__logo {
	margin-bottom: 40px;
	display: flex;
	justify-content: center;
}

.error-404__logo .circle-logo {
	width: 248px;
	height: 248px;
}

.error-404__logo .circle-logo__text {
	font-size: var(--fz-h1);
}

.error-404__title {
	font-size: calc(48px + (72 - 48) * ((100vw - 375px) / (1620 - 375)));
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 20px;
	color: var(--color-black);
}

.error-404__description {
	font-size: calc(18px + (24 - 18) * ((100vw - 375px) / (1620 - 375)));
	line-height: 1.6;
	color: var(--color-gray-dark);
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.error-404__actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

.error-404__actions .btn-primary {
	min-width: 200px;
	padding: 15px 30px;
	font-size: 16px;
}

.error-404__actions .btn-primary:hover {
	background: var(--color-gray-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary--outline {
	background: transparent;
	color: var(--color-black);
	border: 2px solid var(--color-black);
}

.btn-primary--outline:hover {
	background: var(--color-black);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.error-404__search {
	max-width: 500px;
	margin: 0 auto;
	padding-top: 30px;
	border-top: 1px solid var(--color-border);
}

.error-404__search-label {
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--color-gray-dark);
}

.error-404__search .search-form {
	display: flex;
	border: 1px solid var(--color-border);
	border-radius: 7px;
	overflow: hidden;
}

.error-404__search .search-field {
	flex: 1;
	padding: 15px 20px;
	border: none;
	font-size: 16px;
	outline: none;
	font-family: 'Montserrat', sans-serif;
}

.error-404__search .search-submit {
	padding: 15px 30px;
	background: var(--color-black);
	color: white;
	border: none;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.error-404__search .search-submit:hover {
	opacity: 0.8;
}

.error-404__recommended {
	padding: var(--space-section) 0;
	background: #f9f9f9;
}

.error-404__recommended .section-title {
	text-align: center;
	margin-bottom: 40px;
}

.error-404__recommended .episode-card__visual {
	position: relative;
	width: 100%;
	height: 128px;
	aspect-ratio: 16/9;
	background: #f9f9f9;
	overflow: hidden;
}

.error-404__recommended .episode-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.error-404__recommended .episode-card__visual .circle-logo {
	/*width: 60px;*/
	/*height: 60px;*/
	transform: scale(0.8);
}

.error-404__recommended .episode-card__visual .circle-logo__text {
	font-size: 12px;
}

@media (max-width: 768px) {
	.error-404__logo .circle-logo {
		width: 120px;
		height: 120px;
	}
	.error-404__title {
		font-size: 48px;
	}
	.error-404__actions {
		flex-direction: column;
		align-items: center;
	}
	.error-404__actions .btn-primary {
		width: 100%;
		max-width: 300px;
	}
	.error-404__recommended .episodes__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.episodes-archive__search .search-form {
		flex-direction: column;
		gap: 10px;
	}
	.episodes-archive__search .search-field {
		width: 100%;
		height: 46px;
		line-height: 46px;
	}
	.episodes-archive__search .search-field::placeholder {
		line-height: 46px;
	}
	.episodes-archive__search .search-submit {
		width: 100%;
		height: 46px;
	}
	.error-404__logo .circle-logo {
		width: 100px;
		height: 100px;
	}
	.error-404__title {
		font-size: 32px;
	}
	.error-404__description {
		font-size: 16px;
	}
	.error-404__recommended .episodes__grid {
		grid-template-columns: 1fr;
	}
	.error-404__search .search-form {
		flex-direction: column;
	}
	.error-404__search .search-submit {
		width: 100%;
	}
}

/* ==========================================================================
   БЛОГ
   ========================================================================== */

.blog-archive {
	padding: var(--space-section) 0;
}

.blog-archive__title {
	font-size: var(--fz-h1);
	font-weight: 800;
	margin-bottom: 12px;
}

.blog-archive__lead {
	font-size: 18px;
	font-weight: 500;
	color: var(--color-gray-muted);
	margin-bottom: 32px;
	max-width: 640px;
}

.blog-archive__search {
	margin-bottom: 40px;
}

.blog-archive__search .search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
	max-width: 560px;
}

.blog-archive__search .search-field {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1px solid var(--color-border);
	border-radius: 7px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	outline: none;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.blog-archive__search .search-field:focus {
	border-color: var(--color-black);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.blog-archive__search .search-submit {
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-black);
	border-radius: 7px;
	background: var(--color-black);
	color: var(--color-white);
	cursor: pointer;
	transition: var(--transition);
}

.blog-archive__search .search-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-archive__search .search-submit svg {
	width: 20px;
	height: 20px;
}

.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-bottom: 40px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	padding: 15px;
	border-radius: 7px;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__visual {
	background: #f9f9f9;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 4px 4px 0 #00000040;
	transition: box-shadow 0.3s ease;
}

.blog-card:hover .blog-card__visual {
	box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.5);
}

.blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-card__meta {
	display: flex;
	justify-content: space-between;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 10px;
}

.blog-card__label,
.blog-card__date {
	color: var(--color-gray-dark);
}

.blog-card__title {
	font-size: var(--fz-h3);
	margin-bottom: 15px;
	color: var(--color-black);
}

.blog-card__excerpt {
	font-weight: 500;
	font-size: 16px;
	color: var(--color-gray-muted);
	margin-bottom: 16px;
}

.blog-card__stats {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.blog-card__views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-gray-muted);
}

.blog-card__views-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: var(--color-gray-dark);
}

.blog-card__views-icon svg {
	width: 100%;
	height: 100%;
}

.blog-card__feedback .wpulike {
	margin: 0;
}

.blog-card__feedback .wpulike .wp_ulike_btn {
	padding: 5px 15px;
	border: 1px solid var(--color-black);
	border-radius: 7px;
	font-weight: 700;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.blog-card__feedback .wpulike .wp_ulike_btn:hover {
	background: var(--color-black);
	color: var(--color-white);
}

.blog-card__feedback .wpulike .count-box {
	font-weight: 700;
}

.blog-archive__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.blog-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--color-border);
	border-radius: 7px;
	text-decoration: none;
	color: var(--color-black);
	font-weight: 700;
	transition: var(--transition);
}

.blog-archive__pagination .page-numbers.current,
.blog-archive__pagination .page-numbers:hover {
	background: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
}

/* Single blog */

.blog-single__header {
	padding: calc(40px + (80 - 40) * ((100vw - 375px) / (1620 - 375))) 0 24px;
}

.blog-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-gray-muted);
}

.blog-breadcrumbs__link {
	color: var(--color-gray-dark);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: var(--transition);
}

.blog-breadcrumbs__link:hover {
	color: var(--color-black);
	border-bottom-color: var(--color-black);
}

.blog-breadcrumbs__sep {
	color: var(--color-border);
}

.blog-breadcrumbs__current {
	color: var(--color-gray-muted);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.blog-single__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

/* Текст статьи и обложка внутри — шире прежних 820px (~⅔ контейнера) */
.blog-single__container--content {
	max-width: 1100px;
}

.blog-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	font-weight: 700;
	font-size: 24px;
	margin-bottom: 16px;
	color: var(--color-gray-dark);
}

.blog-single__views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-gray-muted);
}

.blog-single__views-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.blog-single__views-icon svg {
	width: 100%;
	height: 100%;
}

/* Заголовок — на всю ширину контейнера (3/3) */
.blog-single__title {
	font-size: var(--fz-h1);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 16px;
	max-width: 100%;
}

/* Лид под заголовком — примерно 2/3 */
.blog-single__lead {
	font-size: 20px;
	font-weight: 500;
	color: var(--color-gray-muted);
	max-width: 66.666%;
	margin: 0;
}

.blog-single__cover {
	margin: 0 0 40px;
}

.blog-single__cover-img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: 7px;
	box-shadow: 0 4px 4px 0 #00000040;
}

.blog-single__content {
	padding-bottom: var(--space-section);
}

.blog-single__body {
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-gray-dark);
}

.blog-single__body > *:first-child {
	margin-top: 0;
}

.blog-single__body p,
.blog-single__body ul,
.blog-single__body ol,
.blog-single__body blockquote {
	margin-bottom: 1.25em;
}

.blog-single__body h2,
.blog-single__body h3,
.blog-single__body h4 {
	font-weight: 800;
	color: var(--color-black);
	margin: 1.6em 0 0.6em;
	line-height: 1.25;
}

.blog-single__body a {
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration: underline;
}

.blog-single__body img {
	max-width: 100%;
	height: auto;
	border-radius: 7px;
}

.blog-single__body blockquote {
	margin-left: 0;
	padding: 16px 20px;
	border-left: 3px solid var(--color-black);
	background: #f9f9f9;
	font-weight: 500;
}

.blog-single__body ul,
.blog-single__body ol {
	padding-left: 1.4em;
}

.blog-single__feedback {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--color-gray-light);
}

.blog-single__feedback .feedback__label {
	font-size: 20px;
	font-weight: 700;
}

.blog-related {
	padding: var(--space-section) 0;
	background: #f9f9f9;
}

.blog-related__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.blog-related .section-title {
	margin-bottom: 32px;
}

.blog-navigation {
	padding: 40px 0 var(--space-section);
}

.blog-navigation__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.blog-navigation__placeholder {
	display: none;
}

.blog-navigation__prev,
.blog-navigation__next {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--color-border);
	border-radius: 7px;
	text-decoration: none;
	color: var(--color-black);
	transition: var(--transition);
}

.blog-navigation__next {
	text-align: right;
}

.blog-navigation__prev:hover,
.blog-navigation__next:hover {
	border-color: var(--color-black);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.blog-navigation__label {
	font-size: 13px;
	font-weight: 800;
	color: var(--color-gray-muted);
}

.blog-navigation__title {
	font-size: 16px;
	font-weight: 700;
}

.blog-navigation__back {
	display: flex;
	justify-content: center;
	margin-top: 28px;
	padding: 0 calc(15px + (30 - 15) * ((100vw - 375px) / (1620 - 375)));
}

.blog-navigation__back-btn {
	padding: 12px 36px;
	text-decoration: none;
	text-align: center;
}

@media (min-width: 768px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-navigation__container {
		grid-template-columns: 1fr 1fr;
	}

	.blog-navigation__placeholder {
		display: block;
	}
}

@media (min-width: 1200px) {
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.blog-archive__search .search-form {
		flex-direction: column;
	}

	.blog-archive__search .search-submit {
		width: 100%;
	}

	.blog-single__lead {
		font-size: 17px;
		max-width: 100%;
	}

	.blog-single__body {
		font-size: 16px;
	}

	.blog-single__feedback {
		flex-direction: column;
		align-items: flex-start;
	}
}
