:root {
	--blwh-bg: #0b0b0c;
	--blwh-surface: #151516;
	--blwh-text: #f3f0ea;
	--blwh-muted: #a6a19a;
	--blwh-gold: #c8aa65;
	--blwh-gold-soft: rgba(200, 170, 101, .18);
	--blwh-line: rgba(255, 255, 255, .10);
}

.blwh-watch-history,
.blwh-watch-history * { box-sizing: border-box; }

.blwh-watch-history {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 1500px;
	margin: 26px auto 30px;
	padding: 20px;
	border: 1px solid var(--blwh-line);
	border-radius: 18px;
	background:
		radial-gradient(900px 240px at 0% 0%, rgba(200, 170, 101, .12), transparent 60%),
		linear-gradient(145deg, rgba(24, 24, 26, .98), rgba(10, 10, 11, .98));
	box-shadow: 0 18px 46px rgba(0, 0, 0, .25);
	color: var(--blwh-text);
	pointer-events: auto;
}

.blwh-watch-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 17px;
}

.blwh-watch-heading { min-width: 0; }
.blwh-watch-eyebrow {
	display: block;
	margin: 0 0 4px;
	color: var(--blwh-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.blwh-watch-title {
	margin: 0 !important;
	color: var(--blwh-text) !important;
	font-size: clamp(22px, 2.4vw, 30px) !important;
	font-weight: 800 !important;
	letter-spacing: -.035em;
	line-height: 1.1 !important;
}

.blwh-watch-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
}

.blwh-watch-tabs {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--blwh-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .035);
}

.blwh-watch-tab,
.blwh-watch-clear {
	appearance: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.blwh-watch-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 11px;
	border-radius: 999px;
	background: transparent;
	color: var(--blwh-muted);
	font-size: 11px;
	font-weight: 750;
	line-height: 1;
	transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.blwh-watch-tab span {
	display: inline-grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	font-size: 9px;
}

.blwh-watch-tab:hover,
.blwh-watch-tab.is-active { background: var(--blwh-gold-soft); color: #fff8e8; }
.blwh-watch-tab.is-active { box-shadow: inset 0 0 0 1px rgba(200, 170, 101, .2); }

.blwh-watch-clear {
	min-height: 32px;
	padding: 0 6px;
	background: transparent;
	color: var(--blwh-muted);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	transition: color .18s ease;
}
.blwh-watch-clear:hover { color: var(--blwh-gold); }

.blwh-watch-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.blwh-watch-card {
	position: relative;
	z-index: 3;
	display: block;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 12px;
	background: rgba(255, 255, 255, .035);
	color: var(--blwh-text) !important;
	text-decoration: none !important;
	cursor: pointer;
	pointer-events: auto !important;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

/* Child layers never intercept the link click. */
.blwh-watch-card > * { pointer-events: none; }

.blwh-watch-card:hover {
	transform: translateY(-3px);
	border-color: rgba(200, 170, 101, .56);
	background: rgba(255, 255, 255, .06);
}

.blwh-watch-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #090909;
}

.blwh-watch-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}
.blwh-watch-card:hover .blwh-watch-thumb img { transform: scale(1.04); }

.blwh-watch-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .68));
}

.blwh-thumb-fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #222, #080808);
	color: var(--blwh-gold);
	font-size: 25px;
}

.blwh-watch-status {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	max-width: calc(100% - 16px);
	overflow: hidden;
	padding: 5px 7px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 6px;
	background: rgba(5, 5, 5, .78);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.blwh-watch-card.is-progress .blwh-watch-status { border-color: rgba(200, 170, 101, .48); color: #fff5dc; }

.blwh-watch-play {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 50%;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(4, 4, 4, .62);
	color: #fff;
	transform: translate(-50%, -50%);
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.blwh-watch-play svg { width: 17px; height: 17px; margin-left: 2px; }
.blwh-watch-card:hover .blwh-watch-play { background: var(--blwh-gold); color: #16120a; transform: translate(-50%, -50%) scale(1.08); }

.blwh-watch-card-body { display: block; padding: 10px 10px 11px; }
.blwh-watch-card-title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 32px;
	color: var(--blwh-text);
	font-size: 12px;
	font-weight: 740;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.blwh-watch-progress {
	display: block;
	height: 3px;
	margin: 9px 0 7px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
}
.blwh-watch-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a98645, #e0c47f); }

.blwh-watch-meta {
	display: block;
	overflow: hidden;
	margin-top: 8px;
	color: var(--blwh-muted);
	font-size: 10px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.blwh-watch-progress + .blwh-watch-meta { margin-top: 0; }

.blwh-watch-empty {
	grid-column: 1 / -1;
	padding: 20px;
	border: 1px dashed rgba(255, 255, 255, .14);
	border-radius: 12px;
	background: rgba(255, 255, 255, .025);
	color: var(--blwh-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 1260px) { .blwh-watch-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .blwh-watch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.blwh-watch-history { margin: 18px 0 24px; padding: 15px; border-right: 0; border-left: 0; border-radius: 0; }
	.blwh-watch-head { align-items: flex-start; flex-direction: column; gap: 12px; }
	.blwh-watch-actions { width: 100%; justify-content: space-between; gap: 7px; }
	.blwh-watch-tabs { min-width: 0; overflow-x: auto; }
	.blwh-watch-tab { padding: 0 9px; font-size: 10px; white-space: nowrap; }
	.blwh-watch-clear { font-size: 10px; }
	.blwh-watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.blwh-watch-card-body { padding: 9px; }
	.blwh-watch-card-title { min-height: 31px; font-size: 11px; }
	.blwh-watch-meta { font-size: 9px; }
}
@media (max-width: 390px) { .blwh-watch-actions { align-items: flex-start; flex-direction: column; } .blwh-watch-clear { padding-left: 4px; } }
