.syt {
	--syt-olive: #3b3f1d;
	--syt-accent: #9bb04a;
	--syt-red: #c8001f;
	--syt-text: #3b3f1d;
	--syt-muted: #6b6b6b;
	--syt-border: #e5e5e5;
	background: #fff;
	color: var(--syt-text);
	font-family: inherit;
	padding: 28px 32px 32px;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}
.syt *, .syt *::before, .syt *::after { box-sizing: border-box; }
.syt a { text-decoration: none; }

/* Head */
.syt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.syt__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--syt-text); }
.syt__btn-outline {
	display: inline-block; padding: 7px 10px; border: 1px solid var(--syt-olive); border-radius: 3px;
	font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--syt-olive);
	transition: background .2s, color .2s;
}
.syt__btn-outline:hover { background: var(--syt-olive); color: #fff; }

/* Channel */
.syt__channel { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.syt__avatar {
	flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%;
	border: 4px solid var(--syt-red); overflow: hidden; display: block; background: var(--syt-olive);
}
.syt__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.syt__name { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--syt-text); }
.syt__name:hover { color: var(--syt-text); opacity: .85; }
.syt__verified { color: #3e8ef7; flex: 0 0 auto; }
.syt__subs { margin: 4px 0 10px; font-size: 14px; color: var(--syt-muted); }
.syt__subs strong { color: var(--syt-text); font-weight: 600; }
.syt__btn-subscribe {
	display: inline-block; padding: 7px 16px; border-radius: 3px; background: var(--syt-red);
	color: #fff; font-size: 14px; font-weight: 700; transition: filter .2s;
}
.syt__btn-subscribe:hover { color: #fff; filter: brightness(1.12); }

/* Tab bar */
.syt__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.syt__tab {
	display: inline-block; padding: 0 22px 14px; border-bottom: 2px solid var(--syt-accent);
	font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--syt-accent);
}
.syt__yt {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 30px;
	border-radius: 7px; background: var(--syt-olive); color: #fff; margin-right: 8px; transition: background .2s;
}
.syt__yt:hover { background: var(--syt-red); color: #fff; }

/* Carousel */
.syt__carousel { position: relative; padding: 0 16px; }
.syt__track {
	display: flex; gap: 8px; margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.syt__track::-webkit-scrollbar { display: none; }
.syt__item { flex: 0 0 calc((100% - 4 * 8px) / 5); margin: 0; padding: 0; scroll-snap-align: start; }
.syt__item::before { content: none; }
.syt__video {
	position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #111;
}
.syt__video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.syt__video:hover img { transform: scale(1.04); }
.syt__play {
	position: absolute; left: 50%; top: 50%; width: 56px; height: 40px; margin: -20px 0 0 -28px;
	border-radius: 10px; background: var(--syt-red); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
}
.syt__play::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -5px;
	border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff;
}
.syt__video:hover .syt__play, .syt__video:focus-visible .syt__play { opacity: 1; transform: scale(1); }

.syt__nav {
	position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0;
	display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9); color: #555; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); cursor: pointer;
	transition: background .2s;
}
.syt__nav:hover { background: #fff; color: var(--syt-olive); }
.syt__nav[hidden] { display: none; }
.syt__nav--prev { left: 0; }
.syt__nav--next { right: 0; }
.syt__carousel.has-more::after {
	content: ""; position: absolute; top: 0; right: 16px; bottom: 0; width: 60px; pointer-events: none;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

/* Lightbox */
.syt-modal {
	position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(0, 0, 0, .85);
}
.syt-modal__frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.syt-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.syt-modal__close {
	position: absolute; top: -44px; right: 0; width: 40px; height: 40px; padding: 0; border: 0;
	background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}

@media (max-width: 1199px) {
	.syt__item { flex-basis: calc((100% - 3 * 8px) / 4); }
}
@media (max-width: 991px) {
	.syt__item { flex-basis: calc((100% - 2 * 8px) / 3); }
}
@media (max-width: 767px) {
	.syt { padding: 20px 16px 24px; }
	.syt__head { margin-bottom: 20px; }
	.syt__channel { gap: 14px; margin-bottom: 24px; }
	.syt__avatar { width: 84px; height: 84px; border-width: 3px; }
	.syt__name { font-size: 16px; }
	.syt__carousel { padding: 0; }
	.syt__carousel.has-more::after { right: 0; }
	.syt__item { flex-basis: 78%; }
	.syt__nav { display: none; }
}
