/* YouTube Past Streams — compact list */

.ypsp {
	--ypsp-gap: 0.5rem;
	--ypsp-border: 1px solid rgba(0, 0, 0, 0.08);
	--ypsp-radius: 6px;
	font-size: 0.875rem;
	line-height: 1.35;
	max-width: 42rem;
}

/* Featured: live now or latest past stream (page 1 only) */
.ypsp-featured {
	margin-bottom: 0.75rem;
	padding: 0.65rem;
	border: var(--ypsp-border);
	border-radius: var(--ypsp-radius);
	background: rgba(0, 0, 0, 0.02);
}

.ypsp-featured--live {
	border-color: rgba(200, 40, 40, 0.35);
	background: rgba(200, 40, 40, 0.06);
}

.ypsp-featured-inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.ypsp-featured-thumb {
	position: relative;
	flex-shrink: 0;
	display: block;
	border-radius: var(--ypsp-radius);
	overflow: hidden;
	line-height: 0;
	max-width: 46%;
}

.ypsp-featured-thumb img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 140px;
	object-fit: cover;
}

.ypsp-badge {
	position: absolute;
	left: 0.4rem;
	bottom: 0.4rem;
	padding: 0.15rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	border-radius: 3px;
	color: #fff;
	background: #c00;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ypsp-featured-meta {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ypsp-featured-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.ypsp-featured--live .ypsp-featured-label {
	color: #a00;
}

.ypsp-featured-title {
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	word-break: break-word;
}

.ypsp-featured-title:hover,
.ypsp-featured-title:focus {
	text-decoration: underline;
}

.ypsp-featured-date {
	font-size: 0.8125rem;
	opacity: 0.75;
}

.ypsp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ypsp-gap);
}

.ypsp-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 0.4rem 0;
	border-bottom: var(--ypsp-border);
}

.ypsp-item:last-child {
	border-bottom: none;
}

.ypsp-thumb {
	flex-shrink: 0;
	display: block;
	border-radius: var(--ypsp-radius);
	overflow: hidden;
	line-height: 0;
	background: rgba(0, 0, 0, 0.06);
}

.ypsp-thumb img {
	display: block;
	width: 96px;
	height: auto;
	max-height: 54px;
	object-fit: cover;
}

.ypsp-meta {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ypsp-title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	word-break: break-word;
}

.ypsp-title:hover,
.ypsp-title:focus {
	text-decoration: underline;
}

.ypsp-date {
	font-size: 0.8125rem;
	opacity: 0.75;
}

.ypsp-empty {
	margin: 0;
	padding: 0.5rem 0;
	opacity: 0.8;
	font-style: italic;
}

.ypsp-error {
	padding: 0.75rem;
	border-radius: var(--ypsp-radius);
	background: rgba(180, 40, 40, 0.08);
	color: #6b1c1c;
	font-size: 0.875rem;
}

.ypsp-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 0.75rem;
	padding-top: 0.5rem;
	border-top: var(--ypsp-border);
}

.ypsp-link {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.03);
}

.ypsp-link:hover,
.ypsp-link:focus {
	background: rgba(0, 0, 0, 0.07);
}

.ypsp-link--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.ypsp-link--latest {
	border-style: dashed;
}

@media (max-width: 420px) {
	.ypsp-featured-inner {
		flex-direction: column;
	}

	.ypsp-featured-thumb {
		max-width: 100%;
	}
}

@media (min-width: 480px) {
	.ypsp-thumb img {
		width: 120px;
		max-height: 68px;
	}
}
