/* ==========================================================================
   ETB Single Video Page
   Font sizes follow the Videos Landing page per client instruction.
   Shared component styles (cards, book tags, play buttons, etc.) are
   duplicated here because videos-landing.css is not loaded on single posts.
   ========================================================================== */

/* ── Design tokens (identical to videos-landing.css) ───────────────────── */

.etb-videos-page {
	--etb-orange:            #FA4616;
	--etb-yellow:            #FED141;
	--etb-thumb-bg:          #1C1C1C;
	--etb-avatar-bg:         rgba(250, 70, 22, 0.09);
	--color-border-secondary: var(--bb-content-border-color, rgba(0, 0, 0, 0.14));
	--color-border-tertiary:  rgba(0, 0, 0, 0.08);
	--color-text-primary:   var(--bb-body-text-color, #1a1a1a);
	--color-text-tertiary:  rgba(0, 0, 0, 0.45);
}

/* ── Header box-shadow ──────────────────────────────────────────────────── */

body.single-video .site-header {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */

.etb-single-video-wrap {
	padding-bottom: 2rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */

.etb-breadcrumb {
	font-size: 16px;
	color: var(--color-text-tertiary);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	overflow: hidden;
	padding: 14px 0 16px;
	margin: 0;
}

.etb-breadcrumb a {
	color: var(--color-text-tertiary);
	text-decoration: none;
	white-space: nowrap;
}

.etb-breadcrumb a:hover {
	color: var(--etb-orange);
}

.etb-breadcrumb-title {
	color: var(--color-text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* ── Video player ───────────────────────────────────────────────────────── */

.etb-video-player {
	background: #1C1C1C;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: 32px;
}

.etb-video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Play button placeholder (shown when no YouTube ID) */
.etb-play-btn-lg {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.50);
	border: 1.5px solid rgba(255, 255, 255, 0.70);
	display: flex;
	align-items: center;
	justify-content: center;
}

.etb-play-btn-lg::after {
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.90);
	margin-left: 5px;
}

/* YouTube badge (bottom-left) */
.etb-yt-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.72);
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 1;
}

/* Duration badge (bottom-right) — scoped to player */
.etb-sv-duration {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: #000;
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 5px;
	line-height: 1.5;
	z-index: 1;
}

/* ── Meta section (2-column grid) ───────────────────────────────────────── */

.etb-single-meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	margin-bottom: 48px;
}

/* ── Left column ────────────────────────────────────────────────────────── */

/* Title sits above the video player */
.etb-video-title {
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 32px;
	line-height: 1.25;
	color: var(--color-text-primary);
}

.etb-single-description {
	font-size: 17px;
	line-height: 1.7;
	color: var(--color-text-primary);
	margin: 0 0 24px;
}

.etb-meta-divider {
	border: none;
	height: 1px;
	background: rgba(0, 0, 0, 0.10);
	margin: 0 0 20px;
}

/* Author full row — rendered as <a> so the entire block is clickable */
.etb-author-full {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.etb-author-full:hover .etb-sv-author-name {
	text-decoration: underline;
}

.etb-avatar-lg {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--etb-avatar-bg);
	color: var(--etb-orange);
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Photo avatar — replaces initials when a real photo is available */
img.etb-avatar-photo {
	object-fit: cover;
	background: var(--etb-avatar-bg);
}

.etb-author-info {
	flex: 1;
	min-width: 0;
}

.etb-sv-author-name {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--etb-orange);
}

.etb-single-video-wrap .etb-author-title {
	display: block;
	font-size: 14px !important;
	color: var(--color-text-primary) !important;
	font-weight: 400;
}

.etb-single-video-wrap .etb-author-org {
	display: block;
	font-size: 14px !important;
	color: var(--color-text-tertiary) !important;
	font-weight: 400;
}

.etb-see-profile {
	font-size: 14px;
	color: var(--etb-orange);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: auto;
}

.etb-see-profile:hover {
	text-decoration: underline;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.etb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.etb-sidebar-box {
	background: #fff;
	box-shadow: 1px 1px 12px -3px rgba(0, 0, 0, 0.2);
	border-radius: 20px;
	border: none;
	padding: 18px 20px;
}

.etb-sidebar-label {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--color-text-primary);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.etb-sidebar-label svg {
	flex-shrink: 0;
	display: block;
}

.etb-tag-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Outline tags (Books / Topics / Characters sidebar) */
.etb-outline-tag {
	border: 1px solid rgba(250, 70, 22, 0.3);
	background: rgba(250, 70, 22, 0.07);
	color: var(--etb-orange);
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 20px;
	display: inline-block;
	line-height: 1.5;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

a.etb-outline-tag:hover {
	background: rgba(250, 70, 22, 0.14);
	border-color: rgba(250, 70, 22, 0.5);
}

/* Subscribe box */
.etb-sidebar-subscribe {
	padding: 22px 20px;
	text-align: center;
}

/* Icon + title side by side */
.etb-subscribe-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 16px;
}

.etb-yt-icon {
	flex-shrink: 0;
}

.etb-sidebar-subscribe p {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text-primary);
	margin: 0;
	line-height: 1.4;
	text-align: left;
}

.etb-subscribe-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #fff !important;
	background: var(--bb-primary-color, #FA4616);
	border: none;
	border-radius: 20px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background 0.2s;
}

.etb-subscribe-btn:hover {
	background: var(--e-global-color-5fee31c, #d93a0f) !important;
	color: #fff !important;
}

/* ── Related videos ─────────────────────────────────────────────────────── */

.etb-related {
	margin-bottom: 2rem;
}

.etb-related h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--color-text-primary);
}

/* ── Back link ──────────────────────────────────────────────────────────── */

.etb-back-link {
	text-align: center;
	padding: 8px 0 40px;
}

.etb-back-link a {
	font-size: 14px;
	color: var(--color-text-tertiary);
	text-decoration: none;
	transition: color 0.15s;
}

.etb-back-link a:hover {
	color: var(--color-text-primary);
}

/* ── Shared card components (for related videos grid) ───────────────────── */

.etb-video-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.etb-video-card {
	border: none;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 1px 1px 12px -3px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

.etb-video-card:hover {
	transform: translateY(-5px);
}

.etb-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.etb-card-thumbnail {
	background: var(--etb-thumb-bg);
	aspect-ratio: 16 / 9;
	position: relative;
	overflow: hidden;
}

.etb-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.etb-card-meta {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.etb-video-card h3 {
	font-size: 17px;
	font-weight: 500;
	margin: 2px 0 5px;
	line-height: 1.3;
	color: var(--color-text-primary);
}

/* Book tags (filled orange — on cards) */
.etb-book-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.etb-book-tag {
	display: inline-block;
	background: var(--etb-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 8px;
	text-transform: none;
	line-height: 1.4;
}

/* Author row in cards */
.etb-author {
	display: flex;
	align-items: center;
	gap: 8px;
}

.etb-avatar-sm {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--etb-avatar-bg);
	color: var(--etb-orange);
	font-size: 11px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.etb-author-name {
	font-size: 14px;
	color: var(--color-text-tertiary);
}

/* Duration badge in cards */
.etb-duration {
	position: absolute;
	bottom: 10px;
	right: 7px;
	background: rgb(0, 0, 0);
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 5px;
	line-height: 1.5;
	z-index: 1;
}

/* Play button on cards */
.etb-play-btn-sm {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.70);
	background: rgba(0, 0, 0, 0.50);
	display: flex;
	align-items: center;
	justify-content: center;
}

.etb-play-btn-sm::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 9px 0 9px 16px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.90);
	margin-left: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.etb-single-meta {
		grid-template-columns: 1fr;
	}

	.etb-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.etb-video-title {
		font-size: 24px;
	}

	/* "See profile →" wraps to own line below affiliation */
	.etb-author-full {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.etb-see-profile {
		flex-basis: 100%;
		margin-left: 0;
		padding-left: 58px; /* 44px avatar + 14px gap */
		margin-top: -5px;
	}

	.etb-author-title {
		white-space: normal;
		overflow: visible;
	}

	.etb-sidebar-box {
		border-radius: 16px;
	}

	.etb-video-grid {
		grid-template-columns: 1fr;
	}
}
