.ogyt {
	--ogyt-gap: 16px;
	--ogyt-radius: 8px;
	--ogyt-line: rgba(0, 0, 0, .12);
	--ogyt-hover: rgba(0, 0, 0, .05);
	--ogyt-active: rgba(0, 0, 0, .06);
	margin: 0;
	color: inherit;
	font-family: inherit;
}

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

/* Baseline reset so the theme's <button> chrome never leaks in.
   :where() keeps this at (0,0,1); the .ogyt .ogyt-list rules below win outright. */
:where(.ogyt) button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: inherit;
	min-height: 0;
	cursor: pointer;
}

/* ---- player + sidebar ---- */
.ogyt-player-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: var(--ogyt-gap);
	align-items: stretch;
}

.ogyt-player {
	align-self: start;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--ogyt-radius);
	overflow: hidden;
}

/* Column 2 wrapper: has no intrinsic height (the list inside is absolute), so
   the grid row is sized by the player, and this stretches to match it. */
.ogyt-sidebar {
	position: relative;
	min-height: 0;
}

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

/* list container — fills .ogyt-sidebar (so it matches the player height),
   theme list styling killed, one even 8px pad */
.ogyt .ogyt-list {
	position: absolute;
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	border: 1px solid var(--ogyt-line);
	border-radius: var(--ogyt-radius);
}

.ogyt .ogyt-list li {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.ogyt .ogyt-list .ogyt-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	outline: 0;
	font-family: inherit;
	color: inherit;
}

.ogyt .ogyt-list .ogyt-row:hover {
	background: var(--ogyt-hover);
}

.ogyt .ogyt-list .ogyt-row.is-active {
	background: var(--ogyt-active);
}

.ogyt .ogyt-list .ogyt-row.is-active .ogyt-row-title {
	font-weight: 600;
}

.ogyt-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 128px;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(0, 0, 0, .1);
}

.ogyt-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ogyt-dur {
	position: absolute;
	right: 4px;
	bottom: 4px;
	padding: 2px 4px;
	border-radius: 3px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.ogyt-live {
	position: absolute;
	left: 4px;
	top: 4px;
	padding: 2px 4px;
	border-radius: 3px;
	background: #c00;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
}

.ogyt .ogyt-row-title {
	font-family: inherit;
	font-size: .9em;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- grid ---- */
.ogyt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--ogyt-gap);
}

.ogyt .ogyt-grid .ogyt-card {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	color: inherit;
}

.ogyt .ogyt-grid .ogyt-card .ogyt-thumb {
	width: 100%;
}

.ogyt .ogyt-grid .ogyt-card-title {
	display: block;
	margin-top: .5em;
	font-family: inherit;
	font-size: .95em;
	font-weight: 600;
	line-height: 1.3;
}

/* ---- lightbox ---- */
.ogyt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
	background: rgba(0, 0, 0, .85);
}

.ogyt-lightbox-frame {
	width: min(1100px, 100%);
	aspect-ratio: 16 / 9;
}

.ogyt-lightbox-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--ogyt-radius);
}

.ogyt-lightbox-close {
	position: absolute;
	top: 12px;
	right: 16px;
	color: #fff;
	font-size: 32px;
	line-height: 1;
}

@media (max-width: 782px) {
	.ogyt-player-sidebar {
		grid-template-columns: 1fr;
	}

	.ogyt-sidebar {
		position: static;
	}

	.ogyt .ogyt-list {
		position: static;
		max-height: 380px;
	}
}
