/*
 * ANSR YouTube Channel Gallery
 * Everything is scoped under .ycg. Override the custom properties below from
 * Elementor → Site Settings → Custom CSS, e.g.  .ycg { --ycg-accent: #F37032; }
 */

.ycg {
	--ycg-ink: #00242e;          /* ANSR deep teal: titles, primary buttons */
	--ycg-ink-2: #29454c;        /* body copy */
	--ycg-muted: #5b7177;        /* meta text (5.1:1 on white) */
	--ycg-surface: #ffffff;
	--ycg-wash: #eef3f3;         /* chips, search, skeletons */
	--ycg-line: #d5dfe0;
	--ycg-teal: #004c4c;
	--ycg-accent: #f05722;       /* ANSR logo orange: play affordances, beam */
	--ycg-on-accent: #00242e;    /* text on orange (4.7:1) */
	--ycg-stage: #00242e;        /* featured stage background */
	--ycg-on-stage: #ffffff;
	--ycg-overlay: rgba(0, 20, 26, 0.84);
	--ycg-font: inherit;
	--ycg-cols: 3;
	--ycg-gap-x: 24px;
	--ycg-gap-y: 36px;
	--ycg-r-thumb: 12px;
	--ycg-r-panel: 20px;
	--ycg-sticky-top: 0px;
	--ycg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	container: ycg / inline-size;
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.ycg,
.ycg *,
.ycg *::before,
.ycg *::after {
	box-sizing: border-box;
}

.ycg-shell {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ycg .ycg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ycg .ycg-i {
	width: 20px;
	height: 20px;
	flex: none;
	fill: currentColor;
}

.ycg .ycg-i--sm {
	width: 16px;
	height: 16px;
}

/* ---------- Theme-proof resets (Hello / Elementor kit styles target bare elements) ---------- */

.ycg .ycg-b,
.ycg .ycg-b:is(:hover, :focus, :active) {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-decoration: none;
	text-transform: none;
	width: auto;
}

.ycg .ycg-b[hidden],
.ycg [hidden] {
	display: none !important;
}

.ycg :is(h2, h3, p, ul, ol, li, figure) {
	margin: 0;
	padding: 0;
}

.ycg :focus-visible {
	outline: 3px solid var(--ycg-accent);
	outline-offset: 3px;
}

/* Themes often style :focus (mouse clicks too); keep rings for keyboard focus only. */
.ycg :focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

.ycg a,
.ycg a:is(:hover, :focus, :active, :visited) {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

/* ---------- Buttons ---------- */

.ycg .ycg-button,
.ycg .ycg-button:is(:hover, :focus, :active, :visited) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--ycg-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ycg .ycg-button--dark,
.ycg .ycg-button--dark:is(:focus, :active, :visited) {
	background: var(--ycg-ink);
	color: #fff;
}

.ycg .ycg-button--dark:hover {
	background: var(--ycg-teal);
	color: #fff;
}

.ycg .ycg-button--accent,
.ycg .ycg-button--accent:is(:focus, :active, :visited) {
	background: var(--ycg-accent);
	color: var(--ycg-on-accent);
}

.ycg .ycg-button--accent:hover {
	background: #ff6a33;
	color: var(--ycg-on-accent);
}

.ycg .ycg-button--ghost,
.ycg .ycg-button--ghost:is(:focus, :active, :visited) {
	background: transparent;
	border-color: var(--ycg-line);
	color: var(--ycg-ink);
}

.ycg .ycg-button--ghost:hover {
	background: var(--ycg-wash);
	border-color: var(--ycg-line);
	color: var(--ycg-ink);
}

.ycg .ycg-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	border-bottom: 1px solid var(--ycg-line);
	padding-bottom: 2px;
}

.ycg .ycg-link:hover {
	border-bottom-color: var(--ycg-ink);
}

/* ---------- Channel header ---------- */

.ycg-channel {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ycg-line);
}

.ycg .ycg-channel__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex: none;
	object-fit: cover;
	max-width: none;
}

.ycg-channel__text {
	flex: 1;
	min-width: 0;
}

.ycg .ycg-channel__name {
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
}

.ycg .ycg-channel__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 4px;
	color: var(--ycg-muted);
	font-size: 14px;
}

/* ---------- Featured stage ---------- */

.ycg-featured {
	--ycg-sp: clamp(14px, 1.6vw, 20px);
	--ycg-sg: clamp(20px, 3.5vw, 48px);
	position: relative;
	overflow: hidden;
	background: var(--ycg-stage);
	border-radius: var(--ycg-r-panel);
	color: var(--ycg-on-stage);
}

.ycg-featured__slide {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: var(--ycg-sg);
	padding: var(--ycg-sp) var(--ycg-sg) var(--ycg-sp) var(--ycg-sp);
}

.ycg-featured__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: calc(var(--ycg-r-panel) - 6px);
	overflow: hidden;
	background: #000;
}

.ycg .ycg-featured__poster {
	position: absolute;
	inset: 0;
	display: block;
}

.ycg .ycg-featured__poster img,
.ycg .ycg-featured__media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

.ycg .ycg-featured__poster .ycg-thumb__img {
	transition: transform 0.6s var(--ycg-ease), filter 0.4s;
}

.ycg .ycg-featured__poster:hover .ycg-thumb__img {
	transform: scale(1.02);
	filter: brightness(0.9);
}

.ycg .ycg-featured__label {
	color: var(--ycg-accent);
	font-size: 14px;
	font-weight: 600;
}

.ycg .ycg-featured__title {
	margin-top: 10px;
	color: var(--ycg-on-stage);
	font-family: var(--ycg-font);
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.18;
	text-transform: none;
	text-wrap: balance;
}

.ycg .ycg-featured__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
}

.ycg .ycg-featured__desc {
	display: -webkit-box;
	margin-top: 16px;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.84);
	font-size: 15px;
	line-height: 1.6;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ycg-featured__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.ycg .ycg-featured .ycg-button--ghost,
.ycg .ycg-featured .ycg-button--ghost:is(:focus, :active, :visited) {
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.ycg .ycg-featured .ycg-button--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.ycg-featured__slide.is-playing .ycg-featured__actions [data-ycg-play] {
	display: none;
}

/* ---------- Controls ---------- */

.ycg-controls {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ycg--sticky .ycg-controls {
	position: sticky;
	top: var(--ycg-sticky-top);
	z-index: 20;
	margin: -10px -12px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.ycg-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ycg-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	max-width: 520px;
}

.ycg .ycg-search__icon {
	position: absolute;
	left: 16px;
	color: var(--ycg-muted);
	pointer-events: none;
}

.ycg .ycg-search__input,
.ycg .ycg-search__input:is(:hover, :focus) {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 44px 0 46px;
	background: var(--ycg-wash);
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 15px;
	line-height: 46px;
	outline: none;
	transition: background-color 0.2s, border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.ycg .ycg-search__input::placeholder {
	color: var(--ycg-muted);
	opacity: 1;
}

.ycg .ycg-search__input:focus {
	background: var(--ycg-surface);
	border-color: var(--ycg-ink);
}

.ycg .ycg-search__input:focus-visible {
	outline: 3px solid var(--ycg-accent);
	outline-offset: 2px;
}

.ycg .ycg-search__input::-webkit-search-cancel-button {
	display: none;
}

.ycg .ycg-search__kbd {
	position: absolute;
	right: 14px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--ycg-line);
	border-radius: 6px;
	background: var(--ycg-surface);
	color: var(--ycg-muted);
	font-family: inherit;
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
}

.ycg-search.has-value .ycg-search__kbd,
.ycg .ycg-search__input:focus ~ .ycg-search__kbd {
	display: none;
}

.ycg .ycg-search__clear,
.ycg .ycg-search__clear:is(:hover, :focus, :active) {
	position: absolute;
	right: 8px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--ycg-muted);
}

.ycg .ycg-search__clear:hover {
	background: var(--ycg-wash);
	color: var(--ycg-ink);
}

@media (hover: none) {
	.ycg .ycg-search__kbd {
		display: none;
	}
}

/* Segmented sort control */

.ycg-seg {
	display: inline-flex;
	padding: 4px;
	background: var(--ycg-wash);
	border-radius: 999px;
}

.ycg .ycg-seg__btn,
.ycg .ycg-seg__btn:is(:hover, :focus, :active) {
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--ycg-muted);
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.ycg .ycg-seg__btn:hover {
	color: var(--ycg-ink);
}

.ycg .ycg-seg__btn[aria-pressed="true"],
.ycg .ycg-seg__btn[aria-pressed="true"]:is(:hover, :focus, :active) {
	background: var(--ycg-surface);
	color: var(--ycg-ink);
	box-shadow: 0 1px 2px rgba(0, 36, 46, 0.14), 0 0 0 1px rgba(0, 36, 46, 0.05);
}

/* Playlist chips */

.ycg-chips {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.ycg-chips__track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: 2px;
	margin: -2px;
}

.ycg-chips__track::-webkit-scrollbar {
	display: none;
}

.ycg .ycg-chip,
.ycg .ycg-chip:is(:hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 38px;
	padding: 0 16px;
	background: var(--ycg-wash);
	border-radius: 999px;
	color: var(--ycg-ink);
	font-size: 14px;
	font-weight: 600;
	scroll-snap-align: start;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.ycg .ycg-chip:hover {
	background: #e1eaea;
}

.ycg .ycg-chip[aria-pressed="true"],
.ycg .ycg-chip[aria-pressed="true"]:is(:hover, :focus, :active) {
	background: var(--ycg-ink);
	color: #fff;
}

.ycg .ycg-chip__count {
	color: var(--ycg-muted);
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ycg .ycg-chip[aria-pressed="true"] .ycg-chip__count {
	color: rgba(255, 255, 255, 0.72);
}

.ycg .ycg-chips__arrow,
.ycg .ycg-chips__arrow:is(:hover, :focus, :active) {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ycg-surface);
	box-shadow: 0 1px 3px rgba(0, 36, 46, 0.2);
	color: var(--ycg-ink);
}

.ycg .ycg-chips__arrow:hover {
	background: var(--ycg-wash);
}

.ycg-chips__arrow--prev {
	left: 0;
}

.ycg-chips__arrow--next {
	right: 0;
}

.ycg-chips::before,
.ycg-chips::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: 64px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}

.ycg-chips::before {
	left: 0;
	background: linear-gradient(90deg, var(--ycg-surface) 40%, rgba(255, 255, 255, 0));
}

.ycg-chips::after {
	right: 0;
	background: linear-gradient(270deg, var(--ycg-surface) 40%, rgba(255, 255, 255, 0));
}

.ycg-chips.can-prev::before,
.ycg-chips.can-next::after {
	opacity: 1;
}

.ycg-resultbar {
	margin-bottom: -12px;
}

.ycg .ycg-count {
	color: var(--ycg-muted);
	font-size: 14px;
}

/* ---------- Grid & cards ---------- */

.ycg .ycg-grid {
	display: grid;
	grid-template-columns: repeat(var(--ycg-cols), minmax(0, 1fr));
	gap: var(--ycg-gap-y) var(--ycg-gap-x);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ycg .ycg-card {
	list-style: none;
	margin: 0;
	min-width: 0;
}

.ycg .ycg-card::before,
.ycg .ycg-card::marker {
	content: none;
}

.ycg .ycg-card__link {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-radius: calc(var(--ycg-r-thumb) + 2px);
}

.ycg .ycg-card__link:focus-visible {
	outline-offset: 6px;
}

.ycg .ycg-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--ycg-r-thumb);
	background: var(--ycg-wash);
	isolation: isolate;
}

.ycg .ycg-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transition: transform 0.5s var(--ycg-ease);
}

/* The future beam: thin tail, step at 46%, thick head — draws in on hover/focus. */
.ycg .ycg-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	height: 6px;
	background:
		linear-gradient(var(--ycg-accent), var(--ycg-accent)) left bottom / 46% 2px no-repeat,
		linear-gradient(var(--ycg-accent), var(--ycg-accent)) right bottom / 54% 6px no-repeat;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s var(--ycg-ease);
}

.ycg .ycg-card__link:focus-visible .ycg-thumb__img {
	transform: scale(1.035);
}

.ycg .ycg-card__link:focus-visible .ycg-thumb::after,
.ycg .ycg-upnext__btn:focus-visible .ycg-thumb::after {
	transform: scaleX(1);
}

/* Hover effects only where a real pointer hovers; phones keep a "sticky" hover after a tap. */
@media (hover: hover) {
	.ycg .ycg-card__link:hover .ycg-thumb__img {
		transform: scale(1.035);
	}

	.ycg .ycg-card__link:hover .ycg-thumb::after,
	.ycg .ycg-upnext__btn:hover .ycg-thumb::after {
		transform: scaleX(1);
	}

	.ycg .ycg-card__link:hover .ycg-play {
		opacity: 1;
		transform: scale(1);
	}
}

.ycg .ycg-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: var(--ycg-accent);
	color: var(--ycg-on-accent);
	box-shadow: 0 6px 20px rgba(0, 20, 26, 0.3);
	opacity: 0;
	transform: scale(0.86);
	transition: opacity 0.25s, transform 0.35s var(--ycg-ease);
}

.ycg .ycg-play .ycg-i {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.ycg .ycg-card__link:focus-visible .ycg-play {
	opacity: 1;
	transform: scale(1);
}

.ycg .ycg-play--lg {
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	opacity: 1;
	transform: none;
}

.ycg .ycg-play--lg .ycg-i {
	width: 32px;
	height: 32px;
}

.ycg .ycg-featured__poster:hover .ycg-play--lg {
	transform: scale(1.06);
}

@media (hover: none) {
	.ycg .ycg-play {
		opacity: 0.94;
		transform: scale(0.82);
	}
}

.ycg .ycg-dur {
	position: absolute;
	right: 8px;
	bottom: 10px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 6px;
	background: var(--ycg-overlay);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.ycg .ycg-dur:empty {
	display: none;
}

/* "New" sits in the meta line, never on the thumbnail, so it can't cover a logo or title in the artwork. */
.ycg .ycg-badge {
	align-self: center;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fdebe4;
	color: #a8390f;            /* 5.1:1 on the pill */
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.ycg-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 8px;
}

.ycg .ycg-card__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.35;
	text-transform: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ycg .ycg-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	color: var(--ycg-muted);
	font-size: 14px;
	line-height: 1.4;
}

/* Meta lines: a short hairline separates date, length and views so "2 weeks ago 46 min" can't misread. */
.ycg .ycg-card__meta > * + :not(.ycg-badge)::before,
.ycg .ycg-featured__meta > * + *::before,
.ycg .ycg-modal__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.85em;
	margin-right: 12px;
	background: currentColor;
	opacity: 0.35;
	vertical-align: -0.08em;
}

.ycg .ycg-card__meta,
.ycg .ycg-featured__meta,
.ycg .ycg-modal__meta {
	column-gap: 12px;
}

.ycg .ycg-modal__panel:focus {
	outline: none;
}

/* Skeletons */

.ycg .ycg-card--skeleton .ycg-thumb,
.ycg .ycg-sk {
	background: linear-gradient(90deg, var(--ycg-wash) 0%, #f7fafa 40%, var(--ycg-wash) 80%) 0 0 / 300% 100%;
	animation: ycg-shimmer 1.4s linear infinite;
}

.ycg .ycg-sk {
	display: block;
	height: 14px;
	border-radius: 6px;
}

.ycg .ycg-sk--l {
	width: 92%;
	height: 18px;
}

.ycg .ycg-sk--m {
	width: 70%;
}

.ycg .ycg-sk--s {
	width: 36%;
}

@keyframes ycg-shimmer {
	to {
		background-position: -150% 0;
	}
}

.ycg .ycg-card.is-entering {
	animation: ycg-in 0.45s var(--ycg-ease) both;
}

@keyframes ycg-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* Empty / error / load more */

.ycg .ycg-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 24px;
	border: 1px dashed var(--ycg-line);
	border-radius: var(--ycg-r-panel);
	text-align: center;
}

.ycg .ycg-empty__title {
	color: var(--ycg-ink);
	font-size: 20px;
	font-weight: 600;
}

.ycg .ycg-empty__text {
	max-width: 46ch;
	margin-bottom: 8px;
	color: var(--ycg-muted);
}

.ycg .ycg-admin-hint {
	margin-top: 8px;
	color: var(--ycg-muted);
	font-size: 13px;
}

.ycg .ycg-admin-hint a {
	text-decoration: underline;
}

.ycg-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding-top: 8px;
}

.ycg .ycg-more__btn {
	min-width: 220px;
}

.ycg .ycg-more__btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

.ycg .ycg-more__status {
	color: var(--ycg-muted);
	font-size: 14px;
}

.ycg .ycg-more__error {
	color: #a3260f;
	font-size: 14px;
}

.ycg .ycg-footer {
	display: flex;
	justify-content: center;
	padding-top: 4px;
	font-size: 14px;
}

/* ---------- Player dialog ---------- */

html.ycg-lock {
	overflow: hidden;
	scrollbar-gutter: stable;
}

.ycg .ycg-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: clamp(12px, 3vw, 40px);
	border: 0;
	background: transparent;
	color: var(--ycg-ink);
	overflow: hidden;
}

.ycg .ycg-modal[open] {
	display: grid;
	place-items: center;
}

.ycg .ycg-modal::backdrop {
	background: rgba(0, 20, 26, 0.86);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ycg .ycg-modal[open] .ycg-modal__panel {
	animation: ycg-pop 0.28s var(--ycg-ease);
}

@keyframes ycg-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.985);
	}
}

.ycg-modal__panel {
	display: flex;
	flex-direction: column;
	width: min(1360px, 100%);
	max-height: 100%;
	overflow: hidden;
	border-radius: var(--ycg-r-panel);
	background: var(--ycg-surface);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.ycg-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 8px 10px 8px 20px;
	border-bottom: 1px solid var(--ycg-line);
}

.ycg .ycg-modal__pos {
	color: var(--ycg-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.ycg-modal__nav {
	display: flex;
	gap: 4px;
}

.ycg .ycg-iconbtn,
.ycg .ycg-iconbtn:is(:hover, :focus, :active) {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--ycg-ink);
	transition: background-color 0.15s;
}

.ycg .ycg-iconbtn:hover {
	background: var(--ycg-wash);
}

.ycg .ycg-iconbtn:disabled {
	cursor: default;
	opacity: 0.35;
}

.ycg .ycg-iconbtn--close,
.ycg .ycg-iconbtn--close:is(:hover, :focus, :active) {
	margin-left: 6px;
	background: var(--ycg-wash);
}

.ycg .ycg-iconbtn--close:hover {
	background: #dfe8e9;
}

.ycg-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	flex: 1;
	min-height: 0;
}

.ycg-modal__main {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ycg-modal__player {
	position: relative;
	aspect-ratio: 16 / 9;
	max-height: calc(100dvh - 260px);
	min-height: 200px;
	width: 100%;
	background: #000;
}

.ycg .ycg-modal__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ycg-modal__fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 14px;
	padding: 24px;
	color: #fff;
	text-align: center;
}

.ycg .ycg-modal__fallback img {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: brightness(0.35);
}

.ycg-modal__info {
	padding: 22px 28px 32px;
}

.ycg .ycg-modal__title {
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-transform: none;
}

.ycg .ycg-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 8px;
	color: var(--ycg-muted);
	font-size: 14px;
}

.ycg-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.ycg .ycg-modal__actions .ycg-button {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.ycg .ycg-modal__desc {
	margin-top: 20px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--ycg-wash);
}

.ycg .ycg-modal__desc-text {
	color: var(--ycg-ink-2);
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.ycg .ycg-modal__desc-text a {
	color: var(--ycg-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ycg .ycg-modal__desc.is-clamped .ycg-modal__desc-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.ycg .ycg-modal__more,
.ycg .ycg-modal__more:is(:hover, :focus, :active) {
	margin-top: 8px;
	color: var(--ycg-ink);
	font-size: 14px;
	font-weight: 600;
}

.ycg .ycg-modal__more:hover {
	text-decoration: underline;
}

.ycg-modal__next {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 20px 28px;
	border-left: 1px solid var(--ycg-line);
}

.ycg .ycg-modal__next-title {
	margin-bottom: 14px;
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
}

.ycg .ycg-upnext {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}

.ycg .ycg-upnext li {
	list-style: none;
}

.ycg .ycg-upnext__btn,
.ycg .ycg-upnext__btn:is(:hover, :focus, :active) {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	width: 100%;
	border-radius: 10px;
	text-align: left;
}

.ycg .ycg-upnext__btn .ycg-thumb {
	border-radius: 8px;
}

.ycg .ycg-upnext__btn .ycg-dur {
	right: 5px;
	bottom: 7px;
	padding: 2px 5px;
	font-size: 11px;
}

.ycg .ycg-upnext__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ycg-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ycg .ycg-upnext__meta {
	display: block;
	margin-top: 4px;
	color: var(--ycg-muted);
	font-size: 13px;
}

.ycg .ycg-upnext__end {
	color: var(--ycg-muted);
	font-size: 14px;
}

/* ---------- Responsive (container-based, so it adapts to any Elementor column width) ---------- */

@media (max-width: 1024px) {
	.ycg .ycg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ycg .ycg-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@container ycg (min-width: 1000px) {
	.ycg .ycg-grid {
		grid-template-columns: repeat(var(--ycg-cols), minmax(0, 1fr));
	}
}

@container ycg (max-width: 999px) {
	.ycg .ycg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container ycg (max-width: 860px) {
	.ycg-featured__slide {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px 12px 24px;
	}

	.ycg-featured__body {
		padding: 0 12px;
	}
}

@container ycg (max-width: 600px) {
	.ycg {
		--ycg-gap-y: 28px;
	}

	.ycg .ycg-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ycg-shell {
		gap: 22px;
	}

	.ycg-channel {
		flex-wrap: wrap;
	}

	.ycg .ycg-channel__avatar {
		width: 52px;
		height: 52px;
	}

	.ycg .ycg-channel__cta {
		width: 100%;
	}

	.ycg-search {
		flex-basis: 100%;
		max-width: none;
	}

	.ycg-seg {
		width: 100%;
	}

	.ycg .ycg-seg__btn {
		flex: 1;
	}

	.ycg-featured__actions .ycg-button {
		flex: 1;
	}

	.ycg .ycg-chips__arrow {
		display: none !important;
	}

	.ycg .ycg-more__btn {
		width: 100%;
	}
}

/* The dialog lives in the top layer, so it responds to the viewport. */
@media (max-width: 900px) {
	.ycg .ycg-modal {
		padding: 0;
	}

	.ycg-modal__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.ycg-modal__layout {
		display: block;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ycg-modal__main {
		overflow: visible;
	}

	.ycg-modal__player {
		position: sticky;
		top: 0;
		z-index: 2;
		max-height: none;
	}

	.ycg-modal__info {
		padding: 18px 18px 24px;
	}

	.ycg-modal__next {
		padding: 20px 18px 40px;
		border-top: 1px solid var(--ycg-line);
		border-left: 0;
	}

	.ycg .ycg-upnext__btn {
		grid-template-columns: 136px minmax(0, 1fr);
	}
}

/* ======================= 1.1 additions ======================= */

/* Play control: frosted glass, so the thumbnail's own text and faces stay readable. */
.ycg .ycg-play {
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	background: rgba(0, 20, 26, 0.5);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 6px 20px rgba(0, 20, 26, 0.3);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: opacity 0.25s, transform 0.35s var(--ycg-ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ycg .ycg-play .ycg-i {
	width: 22px;
	height: 22px;
	margin-left: 3px;
}

@media (hover: hover) {
	.ycg .ycg-card__link:hover .ycg-play {
		background: var(--ycg-accent);
		border-color: var(--ycg-accent);
		color: var(--ycg-on-accent);
	}
}

@media (hover: none) {
	.ycg .ycg-play {
		top: auto;
		left: 10px;
		bottom: 10px;
		width: 36px;
		height: 36px;
		margin: 0;
		opacity: 1;
		transform: none;
	}

	.ycg .ycg-play .ycg-i {
		width: 15px;
		height: 15px;
		margin-left: 2px;
	}
}

/* Featured: a "Play · 4:00" pill in the corner instead of a disc over the middle of the picture. */
.ycg .ycg-pill {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(0, 20, 26, 0.62);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ycg .ycg-pill__dur {
	padding-left: 8px;
	border-left: 1px solid rgba(255, 255, 255, 0.4);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.ycg .ycg-pill .ycg-i {
	color: var(--ycg-accent);
}

.ycg .ycg-featured__poster:is(:hover, :focus-visible) .ycg-pill {
	background: rgba(0, 20, 26, 0.85);
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

/* 4:3 and vertical videos: true-shape frame over a blurred fill (no black bars). */
.ycg .ycg-thumb .ycg-thumb__bg,
.ycg .ycg-featured__poster .ycg-thumb__bg {
	filter: blur(22px) brightness(0.72) saturate(1.2);
	transform: scale(var(--ycg-zoom, 1.5));
	transition: none;
}

.ycg .ycg-thumb__frame {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: 1;
	height: 100%;
	aspect-ratio: var(--ycg-r, 1.3333);
	overflow: hidden;
	transform: translateX(-50%);
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.4);
}

/* A wide video moved into Shorts: framed across the middle of the vertical card. */
.ycg .ycg-thumb__frame.ycg-thumb__frame--wide {
	top: 50%;
	bottom: auto;
	left: 0;
	width: 100%;
	height: auto;
	transform: translateY(-50%);
}

/* Watched marker: videos this visitor already opened keep the beam. */
.ycg .is-viewed .ycg-thumb::after {
	transform: scaleX(1);
}

/* Videos / Shorts tabs, active tab underlined with the beam. */
.ycg-tabs {
	display: flex;
	gap: 32px;
	border-bottom: 1px solid var(--ycg-line);
}

.ycg .ycg-tab,
.ycg .ycg-tab:is(:hover, :focus, :active) {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 4px 2px 14px;
	color: var(--ycg-muted);
	font-size: 17px;
	font-weight: 600;
}

.ycg .ycg-tab:hover,
.ycg .ycg-tab[aria-pressed="true"],
.ycg .ycg-tab[aria-pressed="true"]:is(:hover, :focus, :active) {
	color: var(--ycg-ink);
}

.ycg .ycg-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 5px;
	background:
		linear-gradient(var(--ycg-accent), var(--ycg-accent)) left bottom / 46% 2px no-repeat,
		linear-gradient(var(--ycg-accent), var(--ycg-accent)) right bottom / 54% 5px no-repeat;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s var(--ycg-ease);
}

.ycg .ycg-tab[aria-pressed="true"]::after {
	transform: scaleX(1);
}

.ycg .ycg-tab__count {
	color: var(--ycg-muted);
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* Shorts grid: vertical cards. */
.ycg .ycg-grid.ycg-grid--shorts {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px 16px;
}

.ycg .ycg-thumb.ycg-thumb--short {
	aspect-ratio: 9 / 16;
	border-radius: 14px;
}

.ycg .ycg-card--short .ycg-card__link {
	gap: 10px;
}

.ycg .ycg-card--short .ycg-card__title {
	font-size: 15px;
}

.ycg .ycg-card--short .ycg-card__meta {
	font-size: 13px;
}

@media (max-width: 1024px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container ycg (min-width: 1000px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@container ycg (max-width: 999px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container ycg (max-width: 760px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container ycg (max-width: 520px) {
	.ycg .ycg-grid.ycg-grid--shorts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.ycg-tabs {
		gap: 24px;
	}
}

/* Shorts player: vertical video with details beside it; arrows move up and down. */
.ycg .ycg-modal--short .ycg-modal__panel {
	width: auto;
	max-width: 100%;
}

.ycg .ycg-modal--short .ycg-modal__layout {
	display: block;
}

.ycg .ycg-modal--short .ycg-modal__next {
	display: none;
}

.ycg .ycg-modal--short .ycg-modal__main {
	display: grid;
	grid-template-columns: auto minmax(280px, 360px);
	overflow: hidden;
}

.ycg .ycg-modal--short .ycg-modal__player {
	width: auto;
	height: min(calc(100dvh - 150px), 780px);
	min-height: 0;
	max-height: none;
	aspect-ratio: 9 / 16;
}

.ycg .ycg-modal--short .ycg-modal__info {
	max-height: min(calc(100dvh - 150px), 780px);
	overflow-y: auto;
}

.ycg .ycg-modal--short .ycg-modal__nav .ycg-iconbtn:not(.ycg-iconbtn--close) svg {
	transform: rotate(90deg);
}

@media (max-width: 900px) {
	.ycg .ycg-modal--short .ycg-modal__panel {
		width: 100%;
	}

	.ycg .ycg-modal--short .ycg-modal__main {
		display: block;
		overflow: visible;
	}

	.ycg .ycg-modal--short .ycg-modal__player {
		position: relative; /* the iframe is positioned against this box */
		top: auto;
		width: min(100%, calc((100dvh - 140px) * 0.5625));
		height: auto;
		margin: 0 auto;
	}

	.ycg .ycg-modal--short .ycg-modal__info {
		max-height: none;
	}
}

/* ======================= 1.1.1: play button styles ======================= */

.ycg .ycg-play__label {
	display: none;
}

/* Soft shade rising from the bottom on hover, so the label and duration stay legible. */
.ycg .ycg-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 20, 26, 0.55), rgba(0, 20, 26, 0) 50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.ycg .ycg-card__link:focus-visible .ycg-thumb::before {
	opacity: 1;
}

@media (hover: hover) {
	.ycg .ycg-card__link:hover .ycg-thumb::before {
		opacity: 1;
	}
}

/* Pill (default): "▶ Play" in the bottom-left corner. */
.ycg.ycg--play-pill .ycg-play {
	top: auto;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	height: 32px;
	margin: 0;
	padding: 0 13px 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(0, 20, 26, 0.72);
	box-shadow: 0 4px 14px rgba(0, 20, 26, 0.25);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	opacity: 0;
	transform: translateY(6px);
}

.ycg.ycg--play-pill .ycg-play .ycg-i {
	width: 14px;
	height: 14px;
	margin: 0;
	color: var(--ycg-accent);
}

.ycg.ycg--play-pill .ycg-play__label {
	display: inline;
}

.ycg.ycg--play-pill .ycg-card__link:focus-visible .ycg-play {
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.ycg.ycg--play-pill .ycg-card__link:hover .ycg-play {
		border-color: rgba(255, 255, 255, 0.6);
		background: rgba(0, 20, 26, 0.85);
		color: #fff;
		opacity: 1;
		transform: none;
	}
}

@media (hover: none) {
	.ycg.ycg--play-pill .ycg-play {
		left: 8px;
		bottom: 8px;
		height: 28px;
		padding: 0 10px 0 8px;
		font-size: 12px;
		opacity: 1;
		transform: none;
	}
}

/* Circle: a clean white disc in the centre. */
.ycg.ycg--play-circle .ycg-play {
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border: 0;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 6px 22px rgba(0, 20, 26, 0.3);
	color: var(--ycg-ink);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

@media (hover: hover) {
	.ycg.ycg--play-circle .ycg-card__link:hover .ycg-play {
		border-color: transparent;
		background: #fff;
		color: var(--ycg-ink);
	}
}

@media (hover: none) {
	.ycg.ycg--play-circle .ycg-play {
		top: auto;
		left: 8px;
		bottom: 8px;
		width: 34px;
		height: 34px;
		margin: 0;
	}
}

/* None: no button; the hover shade and the beam signal "playable". */
.ycg.ycg--play-none .ycg-play {
	display: none;
}

/* ======================= 1.2: likes and comments ======================= */

.ycg .ycg-i--xs {
	width: 12px;
	height: 12px;
}

.ycg .ycg-button--soft,
.ycg .ycg-button--soft:is(:focus, :active, :visited) {
	background: var(--ycg-wash);
	border-color: transparent;
	color: var(--ycg-ink);
}

.ycg .ycg-button--soft:hover {
	background: #e1eaea;
	border-color: transparent;
	color: var(--ycg-ink);
}

.ycg .ycg-engage__n {
	font-variant-numeric: tabular-nums;
}

.ycg .ycg-comments {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--ycg-line);
}

.ycg .ycg-comments__title {
	margin-bottom: 18px;
	color: var(--ycg-ink);
	font-family: var(--ycg-font);
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
}

.ycg .ycg-comments__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.ycg .ycg-cmt {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 12px;
	list-style: none;
}

.ycg .ycg-cmt__av {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	max-width: none;
	border-radius: 50%;
	background: var(--ycg-wash);
	color: var(--ycg-teal);
	font-size: 14px;
	font-weight: 700;
	object-fit: cover;
}

.ycg .ycg-cmt__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	color: var(--ycg-muted);
	font-size: 13px;
}

.ycg .ycg-cmt__author {
	color: var(--ycg-ink);
	font-weight: 600;
}

.ycg .ycg-cmt__text {
	display: -webkit-box;
	margin-top: 4px;
	overflow: hidden;
	color: var(--ycg-ink-2);
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
	white-space: pre-line;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
}

.ycg .ycg-cmt__text a {
	color: var(--ycg-teal);
	text-decoration: underline;
}

.ycg .ycg-cmt__meta {
	display: flex;
	gap: 14px;
	margin-top: 6px;
	color: var(--ycg-muted);
	font-size: 12px;
}

.ycg .ycg-cmt__likes {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ycg .ycg-comments__note {
	color: var(--ycg-muted);
	font-size: 14px;
	list-style: none;
}

.ycg .ycg-comments__join {
	min-height: 40px;
	font-size: 14px;
}

/* ======================= 1.3: YouTube-style cards, menu, sign-in ======================= */

.ycg {
	position: relative;
}

.ycg .ycg-card {
	position: relative;
}

.ycg .ycg-card__body {
	padding-right: 36px;
}

/* Soft background behind the whole card on hover, as on YouTube. */
@media (hover: hover) and (min-width: 700px) {
	.ycg .ycg-card__link {
		margin: -8px;
		padding: 8px;
		border-radius: 18px;
		transition: background-color 0.2s;
	}

	.ycg .ycg-card:is(:hover, .is-menu-open) .ycg-card__link {
		background: var(--ycg-hover-bg, #eef3f3);
	}

	.ycg .ycg-card__link:focus-visible {
		outline-offset: 2px;
	}
}

/* ⋮ button, aligned with the title (margin % follows the card width, so it tracks the thumbnail height). */
.ycg .ycg-card__more-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	pointer-events: none;
}

.ycg .ycg-card__more,
.ycg .ycg-card__more:is(:hover, :focus, :active) {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: calc(56.25% + 6px) -8px 0 auto;
	border-radius: 50%;
	color: var(--ycg-ink);
	opacity: 0;
	pointer-events: auto;
	transition: opacity 0.15s, background-color 0.15s;
}

.ycg .ycg-card--short .ycg-card__more {
	margin-top: calc(177.78% + 2px);
}

.ycg .ycg-card__more:hover,
.ycg .ycg-card__more[aria-expanded="true"] {
	background: rgba(0, 36, 46, 0.09);
}

.ycg .ycg-card:is(:hover, :focus-within, .is-menu-open) .ycg-card__more,
.ycg .ycg-card__more:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.ycg .ycg-card__more {
		opacity: 1;
	}
}

.ycg .ycg-menu {
	position: absolute;
	z-index: 30;
	min-width: 230px;
	padding: 6px;
	border-radius: 14px;
	background: var(--ycg-surface);
	box-shadow: 0 12px 36px rgba(0, 20, 26, 0.18), 0 0 0 1px rgba(0, 36, 46, 0.06);
	animation: ycg-pop 0.16s var(--ycg-ease);
}

.ycg .ycg-menu__item,
.ycg .ycg-menu__item:is(:hover, :focus, :active, :visited) {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ycg-ink);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
}

.ycg .ycg-menu__item:hover,
.ycg .ycg-menu__item:focus-visible {
	background: var(--ycg-wash);
	outline: none;
}

/* Like button when visitors can like from the site. */
.ycg .ycg-engage.is-on,
.ycg .ycg-engage.is-on:is(:hover, :focus, :active, :visited) {
	background: var(--ycg-ink);
	color: #fff;
}

.ycg .ycg-engage.is-on .ycg-i {
	color: var(--ycg-accent);
}

.ycg .ycg-modal__notice {
	margin-top: 10px;
	color: var(--ycg-teal);
	font-size: 13px;
	font-weight: 600;
}

.ycg .ycg-modal__notice:empty {
	display: none;
}

/* Comment box. */
.ycg .ycg-compose {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.ycg .ycg-compose .ycg-cmt__av img {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.ycg .ycg-compose__text,
.ycg .ycg-compose__text:is(:hover, :focus) {
	display: block;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 8px 0;
	overflow: hidden;
	border: 0;
	border-bottom: 1px solid var(--ycg-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ycg-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	outline: none;
	resize: none;
}

.ycg .ycg-compose__text:focus {
	border-bottom: 2px solid var(--ycg-ink);
}

.ycg .ycg-compose__text::placeholder {
	color: var(--ycg-muted);
	opacity: 1;
}

.ycg .ycg-compose__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 10px;
}

.ycg .ycg-compose__who {
	color: var(--ycg-muted);
	font-size: 13px;
}

.ycg .ycg-compose__signout,
.ycg .ycg-compose__signout:is(:hover, :focus, :active) {
	color: var(--ycg-teal);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
}

.ycg .ycg-compose__btns {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.ycg .ycg-button--sm,
.ycg .ycg-button--sm:is(:hover, :focus, :active) {
	min-height: 36px;
	padding: 0 16px;
	font-size: 14px;
}

.ycg .ycg-button[disabled] {
	cursor: default;
	opacity: 0.45;
}

.ycg .ycg-cmt.is-new {
	animation: ycg-in 0.4s var(--ycg-ease) both;
}

/* ======================= 1.4: featured carousel ======================= */

.ycg-carousel__viewport {
	overflow: hidden;
}

.ycg-carousel__track {
	display: flex;
	transition: transform 0.6s var(--ycg-ease);
}

.ycg-featured__slide {
	flex: 0 0 100%;
	min-width: 0;
}

/* Room for the controls under the text column. */
.ycg-carousel .ycg-featured__body {
	padding-bottom: 60px;
}

.ycg .ycg-carousel__controls {
	position: absolute;
	right: var(--ycg-sg);
	bottom: calc(var(--ycg-sp) + 6px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ycg .ycg-carousel__btn,
.ycg .ycg-carousel__btn:is(:hover, :focus, :active) {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.2s, border-color 0.2s;
}

.ycg .ycg-carousel__btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.6);
}

.ycg .ycg-carousel__btn .ycg-i {
	width: 18px;
	height: 18px;
}

.ycg .ycg-carousel__pause {
	margin-left: 6px;
}

.ycg .ycg-carousel__dots {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
}

/* Each video is a short bar; the active one fills in orange as its time runs. */
.ycg .ycg-carousel__dot,
.ycg .ycg-carousel__dot:is(:hover, :focus, :active) {
	position: relative;
	width: 22px;
	height: 18px;
	padding: 0;
	transition: width 0.3s var(--ycg-ease);
}

.ycg .ycg-carousel__dot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 7px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.28);
}

.ycg .ycg-carousel__dot:hover::before {
	background: rgba(255, 255, 255, 0.5);
}

.ycg .ycg-carousel__dot.is-active {
	width: 46px;
}

.ycg .ycg-carousel__fill {
	position: absolute;
	left: 0;
	right: 0;
	top: 7px;
	height: 4px;
	border-radius: 2px;
	background: var(--ycg-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.ycg .ycg-carousel__dot.is-active .ycg-carousel__fill {
	animation: ycg-fill var(--ycg-autoplay, 7000ms) linear forwards;
}

.ycg .ycg-carousel.is-paused .ycg-carousel__fill {
	animation-play-state: paused;
}

.ycg .ycg-carousel.is-static .ycg-carousel__dot.is-active .ycg-carousel__fill {
	animation: none;
	transform: scaleX(1);
}

@keyframes ycg-fill {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@container ycg (max-width: 860px) {
	.ycg .ycg-carousel__controls {
		right: 50%;
		bottom: 18px;
		transform: translateX(50%);
	}

	.ycg-carousel .ycg-featured__body {
		padding-bottom: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ycg .ycg-carousel__dot.is-active .ycg-carousel__fill {
		animation: none;
		transform: scaleX(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ycg *,
	.ycg *::before,
	.ycg *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.ycg .ycg-chip[aria-pressed="true"],
	.ycg .ycg-seg__btn[aria-pressed="true"] {
		outline: 2px solid CanvasText;
	}

	.ycg .ycg-thumb::after {
		background: Highlight;
	}
}

@media print {
	.ycg-controls,
	.ycg-more,
	.ycg-modal {
		display: none !important;
	}
}
