/* Havey E-Paper + TV — brand red/black/white, RTL-friendly */

.havey-epaper-btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	background: #c62828;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	border: 0;
	border-radius: 2px;
	line-height: 1.5;
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, serif;
}

.havey-epaper-btn:hover,
.havey-epaper-btn:focus {
	background: #0b0b0b;
	color: #fff !important;
}

.havey-epaper-btn--small {
	padding: 0.35rem 0.75rem;
	font-size: 0.95rem;
}

/* TV card */
.havey-tv-card {
	background: #0b0b0b;
	color: #fff;
	padding: 12px;
	border: 1px solid #1a1a1a;
}

.havey-tv-card__link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: #fff !important;
	padding: 8px 4px 12px;
}

.havey-tv-card__play {
	flex: 0 0 auto;
	line-height: 0;
}

.havey-tv-card__name {
	display: block;
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
}

.havey-tv-card__hint {
	display: block;
	opacity: 0.8;
	font-size: 0.85rem;
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

.havey-tv-card__btn {
	display: block;
	text-align: center;
	background: #c62828;
	color: #fff !important;
	text-decoration: none !important;
	padding: 0.55rem 0.75rem;
	font-weight: 700;
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, serif;
}

.havey-tv-card__btn:hover,
.havey-tv-card__btn:focus {
	background: #fff;
	color: #0b0b0b !important;
}

/* Latest e-paper widget */
.havey-epaper-latest__thumb {
	display: block;
	margin-bottom: 0.75rem;
}

.havey-epaper-latest__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e4e4e4;
}

.havey-epaper-latest__date {
	margin: 0 0 0.75rem;
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	color: #444;
}

.havey-epaper-latest__actions {
	margin: 0 0 0.5rem;
}

.havey-epaper-latest__archive {
	margin: 0;
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, serif;
}

.havey-epaper-latest__archive a {
	color: #c62828 !important;
}

.havey-epaper-empty {
	margin: 0;
	color: #666;
}

/* Page / archive / reader titles — Noto Nastaliq (match header Urdu UI) */
.havey-epaper-archive__title,
.havey-epaper-reader__title,
body.havey-news.post-type-havey_epaper .single-title,
body.havey-news:has(.havey-live-tv) .single-title,
.widget_havey_tv_widget .widget-title,
.widget_havey_latest_epaper_widget .widget-title {
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", "Urdu Typesetting", Tahoma, serif !important;
	line-height: 1.9 !important;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

/* Live TV: tighten theme title → content spacing (Evermag lacks page-slug-* class) */
body.havey-news:has(.havey-live-tv) .single-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.2vw + 1rem, 1.85rem);
}

body.havey-news:has(.havey-live-tv) .entry-content {
	padding-top: 0;
	margin-top: 0;
}

body.havey-news:has(.havey-live-tv) .havey-live-tv {
	margin-top: 0.25rem;
}

.havey-epaper-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 1rem 0 1.5rem;
}

.havey-epaper-filter select {
	min-height: 38px;
	padding: 4px 8px;
}

.havey-epaper-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.havey-epaper-card {
	border: 1px solid #e4e4e4;
	background: #fff;
	padding: 0.75rem;
}

.havey-epaper-card__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.havey-epaper-card__title {
	font-size: 1.05rem;
	line-height: 1.8;
	margin: 0.6rem 0 0.25rem;
}

.havey-epaper-card__title a {
	color: #111 !important;
	text-decoration: none !important;
}

.havey-epaper-card__date,
.havey-epaper-card__city {
	margin: 0 0 0.5rem;
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	color: #555;
	font-size: 0.92rem;
}

/* Reader */
.havey-reader {
	background: #111;
	color: #fff;
	padding: 12px;
}

.havey-reader__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.havey-reader__btn {
	min-width: 40px;
	min-height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: #1c1c1c;
	color: #fff;
	cursor: pointer;
	font-size: 1.1rem;
}

.havey-reader__btn:hover,
.havey-reader__btn:focus {
	border-color: #c62828;
	background: #c62828;
}

.havey-reader__indicator {
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	min-width: 4.5rem;
	text-align: center;
}

.havey-reader__stage {
	overflow: auto;
	max-height: min(80vh, 1100px);
	background: #000;
	outline: none;
	text-align: center;
}

.havey-reader__page {
	margin: 0;
	padding: 8px;
}

.havey-reader__page img {
	max-width: 100%;
	height: auto;
	transform-origin: center top;
	transition: transform 0.15s ease;
}

.havey-reader__thumbs {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
	overflow-x: auto;
}

.havey-reader__thumb {
	border: 2px solid transparent;
	background: #1c1c1c;
	padding: 4px;
	cursor: pointer;
	color: #fff;
}

.havey-reader__thumb.is-active,
.havey-reader__thumb:hover,
.havey-reader__thumb:focus {
	border-color: #c62828;
}

.havey-reader__thumb img {
	display: block;
	width: 64px;
	height: auto;
}

.havey-reader__thumb span {
	display: block;
	font-size: 11px;
	margin-top: 2px;
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

.havey-epaper-pdf__object {
	width: 100%;
	min-height: 70vh;
	border: 1px solid #ddd;
}

/* Live TV page */
.havey-live-tv {
	max-width: 900px;
	margin: 0 0 2rem;
}

.havey-live-tv__channel-name {
	font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	margin: 0 0 1rem;
	letter-spacing: 0.01em;
}

.havey-live-tv__actions .havey-epaper-btn {
	line-height: 2;
}

.havey-live-tv__player {
	position: relative;
	padding-top: 56.25%;
	background: #0b0b0b;
	margin-bottom: 1rem;
}

.havey-live-tv__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.havey-live-tv__note {
	color: #555;
	font-size: 0.95rem;
}

.havey-live-tv__actions {
	margin-top: 1rem;
}

.havey-epaper-reader__back a {
	color: #c62828 !important;
}

@media (max-width: 767.98px) {
	.havey-epaper-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.havey-reader__stage {
		max-height: 70vh;
	}
}

@media (max-width: 480px) {
	.havey-epaper-grid {
		grid-template-columns: 1fr;
	}
}
