/* Кинозал клана — светлая/тёмная через переменные темы сайта */
.clans-watch {
	--cw-bg: var(--bg-2, #fff);
	--cw-panel: var(--fltx, var(--bg, #f9f9f9));
	--cw-text: var(--tt, #161616);
	--cw-muted: var(--tt-2, #757b85);
	--cw-line: var(--bdc, rgba(127,127,127,.2));
	--cw-accent: var(--tt-accent, var(--bg1s, #c50725));
	--cw-radius: 14px;
	color: var(--cw-text);
	margin: 0 0 24px;
	font-family: inherit;
	width: 100%;
	max-width: none;
	text-align: left;
}
.clans-watch [hidden] {
	display: none !important;
}
body.clans-watch-page .wrapper {
	overflow: visible;
}
body.clans-watch-page .carou,
body.clans-watch-page .animefilm {
	display: none !important;
}
.page:has(.clans-watch) > .page__title {
	display: none;
}
.full-text:has(.clans-watch) {
	padding: 12px;
	overflow: visible;
	text-align: left;
}
.clans-watch--denied {
	padding: 40px 20px;
	text-align: center;
	background: var(--cw-panel);
	border-radius: var(--cw-radius);
}
.clans-watch__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 12px;
}
.clans-watch__back {
	color: var(--cw-text);
	text-decoration: none;
	font-weight: 600;
}
.clans-watch__back:hover { color: var(--cw-accent); }
.clans-watch__now {
	flex: 1 1 160px;
	min-width: 0;
	font-size: .92rem;
	color: var(--cw-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.clans-watch__hostline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .88rem;
	color: var(--cw-muted);
	position: relative;
	min-width: 0;
	flex: 1 1 auto;
}
.clans-watch__givewrap {
	position: relative;
}
.clans-watch__givemenu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 220px;
	max-width: min(320px, 80vw);
	max-height: 260px;
	overflow: auto;
	padding: 6px;
	background: var(--cw-bg);
	border: 1px solid var(--cw-line);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.clans-watch__giveitem {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--cw-text);
	text-align: left;
	padding: 7px 8px;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	box-shadow: none;
}
.clans-watch__giveitem:hover {
	background: var(--cw-panel);
}
.clans-watch__giveitem img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.clans-watch__giveempty {
	padding: 10px 8px;
	color: var(--cw-muted);
	font-size: .85rem;
}
.clans-watch button.clans-watch__ghost {
	display: inline-flex;
	align-items: center;
	height: auto;
	min-height: 32px;
	border: 1px solid var(--cw-line);
	background: transparent;
	color: var(--cw-text);
	border-radius: 999px;
	padding: 5px 12px;
	cursor: pointer;
	font: inherit;
	box-shadow: none;
	flex: 0 0 auto;
}
.clans-watch button.clans-watch__ghost[hidden] {
	display: none !important;
}
.clans-watch__ghost:hover { border-color: var(--cw-accent); color: var(--cw-accent); }
.clans-watch__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: stretch;
	min-height: 520px;
}
.clans-watch__stage {
	grid-column: 1;
	grid-row: 1 / span 2;
}
.clans-watch__chat {
	grid-column: 2;
	grid-row: 1;
}
.clans-watch__ready {
	grid-column: 2;
	grid-row: 2;
}
.clans-watch__stage,
.clans-watch__chat {
	background: var(--cw-panel);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	min-width: 0;
}
.clans-watch__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
	background: #0b0b0f;
	border-radius: var(--cw-radius) var(--cw-radius) 0 0;
	overflow: hidden;
}
.full-text iframe.clans-watch__iframe,
iframe.clans-watch__iframe {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #000;
}
iframe.clans-watch__iframe[hidden] {
	display: none !important;
}
.clans-watch__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
}
.clans-watch__empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #cfcfd4;
	text-align: center;
	padding: 24px;
}
.clans-watch__empty-ico {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.08);
	font-size: 26px;
}
.clans-watch__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
}
.clans-watch__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.clans-watch__poster {
	width: 40px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--cw-line);
}
.clans-watch__title {
	font-weight: 700;
	line-height: 1.25;
}
.clans-watch__ep,
.clans-watch__hint {
	font-size: .85rem;
	color: var(--cw-muted);
}
.clans-watch__controls {
	display: flex;
	align-items: center;
	gap: 8px;
}
.clans-watch__btn {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid var(--cw-line);
	background: var(--cw-bg);
	color: var(--cw-text);
	cursor: pointer;
}
.clans-watch__btn:hover { border-color: var(--cw-accent); color: var(--cw-accent); }
.clans-watch__btn:disabled { opacity: .4; cursor: default; }
.clans-watch__voices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 10px;
}
button.clans-watch__voice {
	height: auto;
	min-height: 0;
	border: 1px solid var(--cw-line);
	background: transparent;
	color: var(--cw-text);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: .8rem;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none;
}
button.clans-watch__voice:hover {
	background: transparent;
	border-color: var(--cw-accent);
	color: var(--cw-accent);
}
button.clans-watch__voice.is-on,
button.clans-watch__voice.is-on:hover {
	background: var(--cw-accent);
	border-color: var(--cw-accent);
	color: #fff;
}
.clans-watch__episodes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 0 14px 12px;
	max-height: 140px;
	overflow-y: auto;
}
.clans-watch__eps-label {
	font-size: .78rem;
	color: var(--cw-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-right: 4px;
}
button.clans-watch__epbtn {
	height: 32px;
	min-width: 32px;
	padding: 0 8px;
	border: 1px solid var(--cw-line);
	background: transparent;
	color: var(--cw-text);
	border-radius: 8px;
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
button.clans-watch__epbtn:hover:not(:disabled) {
	background: transparent;
	border-color: var(--cw-accent);
	color: var(--cw-accent);
}
button.clans-watch__epbtn.is-on,
button.clans-watch__epbtn.is-on:hover {
	background: var(--cw-accent);
	border-color: var(--cw-accent);
	color: #fff;
}
button.clans-watch__epbtn:disabled {
	cursor: default;
	opacity: .85;
}
.clans-watch__pick { padding: 0 14px 14px; }
.clans-watch__search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--cw-line);
	border-radius: 10px;
	padding: 0 12px;
	background: var(--cw-bg);
	color: var(--cw-muted);
}
.clans-watch__search input {
	flex: 1;
	border: 0;
	background: transparent;
	color: var(--cw-text);
	padding: 10px 0;
	font: inherit;
	outline: none;
	width: 100%;
}
.clans-watch__results {
	margin-top: 8px;
	border: 1px solid var(--cw-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--cw-bg);
	max-height: 280px;
	overflow-y: auto;
}
button.clans-watch__hit {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	margin: 0;
	height: auto;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cw-text);
	text-align: left;
	padding: 8px 10px;
	cursor: pointer;
	font: inherit;
	font-weight: 400;
	white-space: normal;
	box-shadow: none;
}
button.clans-watch__hit:hover {
	background: color-mix(in srgb, var(--cw-accent) 10%, transparent);
	color: var(--cw-text);
	border-color: transparent;
}
button.clans-watch__hit img {
	width: 32px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}
.clans-watch__people {
	padding: 0 14px 14px;
}
.clans-watch__people-label {
	display: block;
	font-size: .78rem;
	color: var(--cw-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.js-cw-people {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.clans-watch__ava {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid transparent;
	background: var(--cw-line);
}
.clans-watch__ava.is-host { border-color: var(--cw-accent); }
.clans-watch__chat {
	display: flex;
	flex-direction: column;
	min-height: 420px;
	max-height: 78vh;
}
.clans-watch__chat-head {
	padding: 12px 14px;
	font-weight: 700;
	border-bottom: 1px solid var(--cw-line);
}
.clans-watch__msgs {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.clans-watch__msg {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.clans-watch__msg img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.clans-watch__msg-name {
	font-weight: 600;
	font-size: .8rem;
}
.clans-watch__msg-body {
	font-size: .92rem;
	line-height: 1.35;
	word-break: break-word;
}
.clans-watch__msg--sys {
	justify-content: center;
	color: var(--cw-muted);
	font-size: .82rem;
	text-align: center;
}
.clans-watch__form {
	display: flex;
	gap: 8px;
	padding: 10px 12px 12px;
	border-top: 1px solid var(--cw-line);
}
.clans-watch__form input {
	flex: 1;
	border: 1px solid var(--cw-line);
	border-radius: 10px;
	background: var(--cw-bg);
	color: var(--cw-text);
	padding: 10px 12px;
	font: inherit;
}
.clans-watch__send {
	width: 42px;
	border: 0;
	border-radius: 10px;
	background: var(--cw-accent);
	color: #fff;
	cursor: pointer;
}
.clans-watch__send:hover { filter: brightness(1.08); }

.clans-watch__fly {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	overflow: hidden;
}
.clans-watch__emoji {
	position: absolute;
	bottom: 16%;
	font-size: 28px;
	line-height: 1;
	pointer-events: none;
	animation: cw-fly 1s ease-out forwards;
}
@keyframes cw-fly {
	0% { transform: translate(0, 8px) scale(.7); opacity: 0; }
	18% { opacity: 1; transform: translate(var(--dx, 0), -12px) scale(1.15); }
	100% { transform: translate(var(--dx, 0), -110px) scale(.85); opacity: 0; }
}
.clans-watch__count {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 4px 24px rgba(0,0,0,.55);
	pointer-events: none;
	background: rgba(0,0,0,.28);
}
.clans-watch__count[hidden] { display: none !important; }
.clans-watch__lag {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(8,10,16,.82);
	color: #fff;
	text-align: center;
}
.clans-watch__lag[hidden] { display: none !important; }
.clans-watch__lag-txt { font-size: .9rem; }
.clans-watch__lag .clans-watch__ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.clans-watch__reacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px 14px 0;
}
button.clans-watch__react {
	width: 36px;
	height: 36px;
	min-height: 36px;
	padding: 0;
	border: 1px solid var(--cw-line);
	border-radius: 10px;
	background: var(--cw-bg);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
button.clans-watch__react-off {
	height: auto;
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid var(--cw-line);
	border-radius: 999px;
	background: transparent;
	color: var(--cw-muted);
	font: inherit;
	font-size: .8rem;
	cursor: pointer;
	box-shadow: none;
	margin-left: auto;
}
button.clans-watch__react-off.is-off { color: var(--cw-accent); border-color: var(--cw-accent); }
.clans-watch__ready {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	background: var(--cw-panel);
}
.clans-watch__ready[hidden] { display: none !important; }
.clans-watch__ready-sum { font-weight: 700; margin-bottom: 6px; }
.clans-watch__ready-list { font-size: .85rem; color: var(--cw-muted); display: flex; flex-direction: column; gap: 2px; max-height: 120px; overflow: auto; }
.clans-watch__ready-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@keyframes cw-ready-pulse {
	0%, 100% { box-shadow: 0 0 4px 0 rgba(34, 197, 94, .35); }
	50% { box-shadow: 0 0 16px 6px rgba(34, 197, 94, .7); }
}
.clans-watch button.clans-watch__imready {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 36px;
	padding: 6px 16px;
	border: 2px solid #22c55e;
	border-radius: 999px;
	background: transparent;
	color: #22c55e;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 6px rgba(34, 197, 94, .4);
	animation: cw-ready-pulse 1.15s ease-in-out infinite;
}
.clans-watch button.clans-watch__imready.is-ready,
.clans-watch button.clans-watch__imready:disabled {
	animation: none;
	background: #22c55e;
	border-color: #16a34a;
	color: #fff;
	box-shadow: 0 0 12px 2px rgba(34, 197, 94, .55);
	cursor: default;
}
.clans-watch__pin {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--cw-line);
	background: color-mix(in srgb, var(--cw-accent) 10%, transparent);
	font-size: .9rem;
	line-height: 1.35;
}
.clans-watch__pin[hidden] { display: none !important; }
.clans-watch__pin .js-cw-pin-txt { flex: 1; min-width: 0; }
.clans-watch button.clans-watch__pin-remove {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	flex: 0 0 auto;
	height: auto;
	min-height: 28px;
	padding: 4px 10px;
	border: 1px solid var(--cw-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--cw-accent);
	cursor: pointer;
	font: inherit;
	font-size: .8rem;
	box-shadow: none;
	white-space: nowrap;
}
.clans-watch button.clans-watch__pin-remove[hidden] { display: none !important; }
.clans-watch button.clans-watch__pin-remove:hover {
	background: var(--cw-accent);
	color: #fff;
}
.clans-watch__pin[hidden] { display: none !important; }
.clans-watch__pin-edit {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--cw-line);
}
.clans-watch__pin-edit[hidden] { display: none !important; }
.clans-watch__pin-edit input {
	flex: 1;
	border: 1px solid var(--cw-line);
	border-radius: 8px;
	background: var(--cw-bg);
	color: var(--cw-text);
	padding: 7px 10px;
	font: inherit;
}

@media (max-width: 960px) {
	body.clans-watch-page .content {
		padding-left: 0;
		padding-right: 0;
	}
	.full-text:has(.clans-watch) {
		padding: 8px 0 12px;
		border-radius: 0;
		background: transparent;
	}
	.clans-watch {
		margin-bottom: 12px;
	}
	.clans-watch__top {
		padding: 0 12px;
	}
	.clans-watch__grid {
		display: flex;
		flex-direction: column;
		min-height: 0;
		gap: 0;
	}
	.clans-watch__stage {
		display: contents;
		grid-column: auto;
		grid-row: auto;
	}
	.clans-watch__chat {
		grid-column: auto;
		grid-row: auto;
	}
	.clans-watch__ready {
		grid-column: auto;
		grid-row: auto;
		margin: 10px 0 0;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	.clans-watch__player { order: 1; }
	.clans-watch__reacts { order: 2; }
	.clans-watch__ready { order: 3; }
	.clans-watch__bar { order: 4; }
	.clans-watch__chat { order: 5; }
	.clans-watch__voices { order: 6; }
	.clans-watch__episodes { order: 7; }
	.clans-watch__pick { order: 8; }
	.clans-watch__people { order: 9; }
	.clans-watch__player {
		width: 100%;
		aspect-ratio: 16 / 9;
		border-radius: 0;
	}
	.clans-watch__bar,
	.clans-watch__voices,
	.clans-watch__episodes,
	.clans-watch__pick,
	.clans-watch__people,
	.clans-watch__reacts,
	.clans-watch__ready {
		padding-left: 12px;
		padding-right: 12px;
		background: var(--cw-panel);
	}
	.clans-watch__chat {
		order: 5;
		max-height: 48vh;
		min-height: 280px;
		margin: 10px 12px;
		border-radius: var(--cw-radius);
	}
}
