.wgyt-section,
.wgyt-archive,
.wgyt-article-widget,
.wgyt-modal {
	--wgyt-ink: var(--wg-ink, #211714);
	--wgyt-paper: var(--wg-paper, #fcfaf7);
	--wgyt-surface: var(--wg-surface, #fff);
	--wgyt-rule: var(--wg-rule, #e8e0da);
	--wgyt-muted: var(--wg-muted, #75665f);
	--wgyt-accent: var(--wg-accent, #9a3412);
	--wgyt-rust: var(--wg-accent, #9a3412);
	--wgyt-tint: rgba(154, 52, 18, .055);
	--wgyt-tint: color-mix(in srgb, var(--wgyt-accent) 6%, transparent);
	--wgyt-serif: var(--wg-serif, Georgia, serif);
	--wgyt-sans: var(--wg-sans, Arial, sans-serif);
}

.wgyt-section { padding-bottom: 8px; }

.wgyt-heading-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 20px 0 24px;
}

.wgyt-eyebrow,
.wgyt-card-meta,
.wgyt-watch-label,
.wgyt-privacy-note,
.wgyt-article-label { font-family: var(--wgyt-sans); }

.wgyt-eyebrow,
.wgyt-article-label {
	margin: 0 0 7px;
	color: var(--wgyt-accent);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wgyt-channel-link { white-space: nowrap; font-size: 12.5px; font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Click-to-play frame: the embed layers over a poster that stays put      */
/* ---------------------------------------------------------------------- */

.wgyt-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--wgyt-ink);
}

.wgyt-preview {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 0;
	padding: 0;
	background: var(--wgyt-ink);
	cursor: pointer;
}

.wgyt-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease, opacity 240ms ease;
}

.wgyt-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(33, 23, 20, .6));
	pointer-events: none;
}

.wgyt-preview:hover img { transform: scale(1.025); opacity: .9; }

.wgyt-frame-player { display: none; }

.wgyt-frame.is-playing .wgyt-frame-player {
	position: absolute;
	display: block;
	inset: 0;
	background: #000;
}

.wgyt-frame.is-playing .wgyt-preview { visibility: hidden; }
.wgyt-frame-player iframe { display: block; width: 100%; height: 100%; border: 0; }

.wgyt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 1.5px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	background: rgba(20, 13, 11, .34);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .26);
	backdrop-filter: blur(7px) saturate(130%);
	transform: translate(-50%, -50%);
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
	-webkit-backdrop-filter: blur(7px) saturate(130%);
}

.wgyt-play span {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 12px solid #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

.wgyt-preview:hover .wgyt-play,
.wgyt-preview:focus-visible .wgyt-play {
	border-color: #fff;
	background: rgba(154, 52, 18, .86);
	transform: translate(-50%, -50%) scale(1.08);
}

.wgyt-watch-label {
	position: absolute;
	right: 12px;
	bottom: 10px;
	z-index: 1;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Fullscreen / YouTube actions under a frame                              */
/* ---------------------------------------------------------------------- */

.wgyt-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 15px;
	padding-top: 14px;
	border-top: 1px solid var(--wgyt-rule);
}

.wgyt-expand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--wgyt-rule);
	background: none;
	color: var(--wgyt-ink);
	cursor: pointer;
	font-family: var(--wgyt-sans);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.wgyt-expand:hover,
.wgyt-expand:focus-visible { border-color: var(--wgyt-accent); background: var(--wgyt-accent); color: #fff; }

.wgyt-expand-icon { position: relative; width: 12px; height: 12px; }

.wgyt-expand-icon::before,
.wgyt-expand-icon::after {
	content: "";
	position: absolute;
	width: 5px;
	height: 5px;
}

.wgyt-expand-icon::before { top: 0; left: 0; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.wgyt-expand-icon::after { right: 0; bottom: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

.wgyt-actions-link {
	font-family: var(--wgyt-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
}

/* ---------------------------------------------------------------------- */
/* Showcase: playlist on the left feeding the stage player on the right    */
/* ---------------------------------------------------------------------- */

.wgyt-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1.62fr) minmax(292px, .78fr);
	overflow: hidden;
	border: 1px solid var(--wgyt-rule);
	background: var(--wgyt-surface);
	box-shadow: 0 14px 42px rgba(33, 23, 20, .075);
}

.wgyt-playlist {
	display: flex;
	min-width: 0;
	min-height: 0;
	flex-direction: column;
	border-left: 1px solid var(--wgyt-rule);
	background: var(--wgyt-paper);
}

.wgyt-playlist-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 18px;
	border-bottom: 1px solid var(--wgyt-rule);
	color: var(--wgyt-ink);
	font-family: var(--wgyt-sans);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wgyt-playlist-count { color: var(--wgyt-muted); font-weight: 600; letter-spacing: .08em; }

.wgyt-playlist-items {
	overflow-y: auto;
	min-height: 0;
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.wgyt-item + .wgyt-item { border-top: 1px solid var(--wgyt-rule); }

.wgyt-item-button {
	display: grid;
	width: 100%;
	align-items: center;
	padding: 16px;
	border: 0;
	border-left: 3px solid transparent;
	margin: 0;
	background: none;
	cursor: pointer;
	gap: 12px;
	grid-template-columns: auto 96px minmax(0, 1fr);
	text-align: left;
	transition: background 160ms ease, border-color 160ms ease;
}

.wgyt-item-button:hover,
.wgyt-item-button:focus-visible {
	border-left-color: var(--wgyt-accent);
	background: var(--wgyt-tint);
}

/* The film currently loaded into the stage. */
.wgyt-item-button.is-current {
	border-left-color: var(--wgyt-accent);
	background: var(--wgyt-surface);
}

.wgyt-item-button.is-current .wgyt-item-index { color: var(--wgyt-accent); }
.wgyt-item-button.is-current .wgyt-item-title { color: var(--wgyt-accent); }
.wgyt-item-button.is-current .wgyt-item-play { background: rgba(154, 52, 18, .78); opacity: 1; }

.wgyt-item-index {
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
}

.wgyt-item-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	width: 96px;
	aspect-ratio: 16 / 9;
	background: var(--wgyt-ink);
}

.wgyt-item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease, opacity 240ms ease;
}

.wgyt-item-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .88);
	border-radius: 50%;
	background: rgba(20, 13, 11, .32);
	box-shadow: 0 2px 9px rgba(0, 0, 0, .24);
	opacity: 0;
	backdrop-filter: blur(4px) saturate(130%);
	transform: translate(-50%, -50%);
	transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
	-webkit-backdrop-filter: blur(4px) saturate(130%);
}

.wgyt-item-play::before {
	content: "";
	margin-left: 2px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #fff;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}

.wgyt-item-button:hover .wgyt-item-thumb img,
.wgyt-item-button:focus-visible .wgyt-item-thumb img { transform: scale(1.05); opacity: .82; }
.wgyt-item-button:hover .wgyt-item-play,
.wgyt-item-button:focus-visible .wgyt-item-play { border-color: #fff; background: rgba(154, 52, 18, .78); opacity: 1; }

.wgyt-item-copy { display: block; min-width: 0; }

.wgyt-item-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--wgyt-ink);
	font-family: var(--wgyt-serif);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wgyt-item-date {
	display: block;
	margin-top: 4px;
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wgyt-playlist-more {
	display: block;
	padding: 13px 18px;
	border-top: 1px solid var(--wgyt-rule);
	color: var(--wgyt-accent);
	font-family: var(--wgyt-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.wgyt-playlist-more:hover { background: var(--wgyt-tint); text-decoration: underline; }

.wgyt-stage { display: flex; min-width: 0; flex-direction: column; }

.wgyt-stage-frame .wgyt-play { width: 74px; height: 74px; }
.wgyt-stage-frame .wgyt-play span { margin-left: 5px; border-top-width: 10px; border-bottom-width: 10px; border-left-width: 17px; }
.wgyt-stage-frame .wgyt-watch-label { right: 18px; bottom: 14px; font-size: 10px; }

.wgyt-stage-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding: 20px 26px 22px;
}

.wgyt-stage-copy .wgyt-card-meta { margin-bottom: 9px; }
.wgyt-stage-eyebrow { color: var(--wgyt-accent); }

.wgyt-stage-title {
	margin: 0;
	color: var(--wgyt-ink);
	font-family: var(--wgyt-serif);
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 700;
	letter-spacing: -.018em;
	line-height: 1.18;
}

.wgyt-stage-description { margin-top: 10px; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; }

/* ---------------------------------------------------------------------- */
/* Archive cards (paginated library — overlay playback)                    */
/* ---------------------------------------------------------------------- */

.wgyt-layout {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.wgyt-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wgyt-rule);
	background: var(--wgyt-surface);
	box-shadow: 0 7px 24px rgba(33, 23, 20, .055);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wgyt-card:hover {
	transform: translateY(-3px);
	border-color: rgba(154, 52, 18, .35);
	box-shadow: 0 16px 36px rgba(33, 23, 20, .12);
}

/* The film currently loaded into the player above. */
.wgyt-card.is-current {
	border-color: var(--wgyt-accent);
	box-shadow: 0 0 0 1px var(--wgyt-accent), 0 16px 36px rgba(33, 23, 20, .12);
}

.wgyt-card.is-current .wgyt-card-title { color: var(--wgyt-accent); }
.wgyt-card.is-current .wgyt-card-flag { display: block; }

.wgyt-card .wgyt-preview { aspect-ratio: 16 / 9; height: auto; }
.wgyt-card-copy { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 17px; }

.wgyt-card-flag {
	display: none;
	margin-bottom: 8px;
	color: var(--wgyt-accent);
	font-family: var(--wgyt-sans);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wgyt-card-title {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.wgyt-card-title:hover { color: var(--wgyt-accent); }

.wgyt-card-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
	color: var(--wgyt-muted);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wgyt-card h3 {
	margin: 0;
	color: var(--wgyt-ink);
	font-family: var(--wgyt-serif);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.012em;
	line-height: 1.24;
}

.wgyt-description {
	display: -webkit-box;
	overflow: hidden;
	margin: 9px 0 0;
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 11.5px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.wgyt-privacy-note { margin: 10px 0 0; color: var(--wgyt-muted); font-size: 11px; text-align: right; }

/* Searchable, paginated video library on the main archive page. */
.wgyt-archive { padding-top: 42px; scroll-margin-top: 84px; }
.wgyt-archive-head { margin-bottom: 24px; }
.wgyt-archive-head h1 { margin: 4px 0 0; color: var(--wgyt-ink); font-family: var(--wgyt-serif); font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.wgyt-archive-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 22px; padding: 0 0 10px; scrollbar-width: thin; }
.wgyt-archive-nav a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--wgyt-rule); color: var(--wgyt-ink); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-decoration: none; }
.wgyt-archive-nav a:hover, .wgyt-archive-nav a.is-active { border-color: var(--wgyt-rust); background: var(--wgyt-rust); color: #fff; }
.wgyt-archive-nav span { margin-left: 5px; opacity: .7; }
.wgyt-archive-grid { row-gap: 26px; }

.wgyt-more-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin: 40px 0 22px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wgyt-rule);
}

.wgyt-more-head h3 {
	margin: 0;
	color: var(--wgyt-ink);
	font-family: var(--wgyt-serif);
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1;
}

.wgyt-more-head p {
	margin: 0;
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
}
/* Grow-in-place control for the grid. */
.wgyt-library-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding-top: 26px;
	border-top: 1px solid var(--wgyt-rule);
}

.wgyt-load-more {
	padding: 13px 30px;
	border: 1px solid var(--wgyt-accent);
	color: var(--wgyt-accent);
	font-family: var(--wgyt-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 160ms ease, color 160ms ease;
}

.wgyt-load-more:hover { background: var(--wgyt-accent); color: #fff; text-decoration: none; }
.wgyt-load-more.is-loading { cursor: progress; opacity: .6; pointer-events: none; }

.wgyt-load-status {
	margin: 0;
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
}

/* ---------------------------------------------------------------------- */
/* Related film inside an article — bordered card, in-place playback       */
/* ---------------------------------------------------------------------- */

.wgyt-article-widget {
	overflow: hidden;
	margin: 40px 0;
	border: 1px solid var(--wgyt-rule);
	border-top: 3px solid var(--wgyt-accent);
	background: var(--wgyt-surface);
	box-shadow: 0 12px 34px rgba(33, 23, 20, .07);
	font-family: var(--wgyt-sans);
}

.wgyt-article-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 20px;
	border-bottom: 1px solid var(--wgyt-rule);
	background: var(--wgyt-paper);
}

.wg-entry-content .wgyt-article-label { margin: 0; }

.wgyt-article-date {
	color: var(--wgyt-muted);
	font-family: var(--wgyt-sans);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.wgyt-article-frame .wgyt-play { width: 68px; height: 68px; }
.wg-entry-content .wgyt-article-frame img { margin: 0; }
.wgyt-article-copy { padding: 18px 20px 20px; }
.wg-entry-content .wgyt-article-copy h2 { margin: 0; font-family: var(--wgyt-serif); font-size: 25px; line-height: 1.18; }
.wg-entry-content .wgyt-article-copy p { margin: 9px 0 0; color: var(--wgyt-muted); font-family: var(--wgyt-sans); font-size: 13.5px; line-height: 1.55; }
.wg-entry-content .wgyt-article-copy a { font-family: var(--wgyt-sans); }

/* ---------------------------------------------------------------------- */
/* Opt-in fullscreen overlay                                               */
/* ---------------------------------------------------------------------- */

body.wgyt-modal-open { overflow: hidden; }
.wgyt-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 32px;
	background: rgba(20, 13, 11, .88);
	backdrop-filter: blur(8px);
}
.wgyt-modal-panel { width: min(1120px, 100%); overflow: hidden; background: #110e0d; box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.wgyt-modal-bar { display: flex; align-items: center; gap: 20px; min-height: 58px; padding: 12px 16px 12px 20px; color: #fff; }
.wgyt-modal-title { flex: 1; overflow: hidden; font-family: var(--wgyt-serif); font-size: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wgyt-modal-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: none; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.wgyt-modal-close:hover { border-color: #fff; }
.wgyt-modal-player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.wgyt-modal-player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 1040px) {
	.wgyt-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wgyt-showcase { grid-template-columns: minmax(0, 1fr); }
	.wgyt-playlist { border-left: 0; border-top: 1px solid var(--wgyt-rule); }
	.wgyt-playlist-items { max-height: 336px; }
}

@media (max-width: 700px) {
	.wgyt-layout { grid-template-columns: 1fr; gap: 16px; }
	.wgyt-card { display: grid; grid-template-columns: 42% 1fr; }
	.wgyt-card:hover { transform: none; }
	.wgyt-card .wgyt-preview { height: 100%; aspect-ratio: auto; }
	.wgyt-card-copy { padding: 14px; }
	.wgyt-more-head { margin: 30px 0 18px; }
	.wgyt-more-head h3 { font-size: 21px; }
	.wgyt-card h3 { font-size: 17px; }
	.wgyt-description { -webkit-line-clamp: 2; }
	.wgyt-privacy-note { text-align: left; }
	.wgyt-modal { padding: 12px; }
	.wgyt-modal-title { font-size: 15px; }
	.wgyt-stage-copy { padding: 16px 16px 18px; }
	.wgyt-stage-frame .wgyt-play { width: 56px; height: 56px; }
	.wgyt-playlist-items { max-height: none; }
	.wgyt-item-button { padding: 11px 14px; gap: 11px; grid-template-columns: 88px minmax(0, 1fr); }
	.wgyt-item-index { display: none; }
	.wgyt-item-thumb { width: 88px; }
	.wgyt-article-copy { padding: 16px; }
	.wg-entry-content .wgyt-article-copy h2 { font-size: 21px; }
}

@media (max-width: 460px) {
	.wgyt-card { display: block; }
	.wgyt-card .wgyt-preview { height: auto; aspect-ratio: 16 / 9; }
	.wgyt-article-widget { margin: 30px 0; }
	.wgyt-actions { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.wgyt-preview img,
	.wgyt-play,
	.wgyt-expand,
	.wgyt-item-button,
	.wgyt-item-thumb img,
	.wgyt-item-play,
	.wgyt-load-more,
	.wgyt-card { transition: none; }
	.wgyt-card:hover { transform: none; }
}
