/* SyteKast Pro viewer — dark cinematic theme.
   Rebuilt for readability on dark site backgrounds: near-black wrap,
   white text, gold accents, tighter spacing, bigger video column. */
.sytekast-player-wrap {
	--sytekast-primary: #141414;
	--sytekast-accent: #c9a227;
	--sytekast-bg: #141414;
	--sytekast-text: #ffffff;
	--sytekast-muted: #b8b8b8;
	--sytekast-surface: #1e1e1e;
	--sytekast-border: #333333;
	--sytekast-radius: 8px;

	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	max-width: 100%;
	color: #ffffff;
	background: #141414 !important;
	padding: 12px;
	border-radius: var(--sytekast-radius);
}

@media (min-width: 900px) {
	.sytekast-player-wrap {
		grid-template-columns: 1fr;
		align-items: start;
	}
}

.sytekast-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--sytekast-radius);
	overflow: hidden;
}

.sytekast-video,
.sytekast-video-frame-wrap,
.sytekast-video-frame {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

/* "Tap for Sound" overlay — appears when autoplay starts muted so the
   viewer can enable sound with one tap (channel-style viewing). */
.sytekast-sound-overlay {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	z-index: 5;
	background: #c9a227;
	color: #141414;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
	white-space: nowrap;
}

.sytekast-sound-overlay:hover {
	background: #d9b83a;
}

.sytekast-sound-overlay:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sytekast-sponsored-disclosure {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 4px;
}

.sytekast-sponsor-card {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	max-width: calc(100% - 24px);
}

.sytekast-sponsor-card-logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 3px;
	background: #fff;
	flex-shrink: 0;
}

.sytekast-sponsor-card-name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sytekast-sponsor-card-link {
	font-size: 12px;
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 4px;
}

.sytekast-sponsor-card-link:hover {
	color: #fff;
	opacity: 0.8;
}

.sytekast-media-error {
	color: #fff;
	text-align: center;
	padding: 24px;
}

.sytekast-media-error button {
	margin: 0 6px;
	padding: 8px 14px;
	border-radius: 4px;
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.sytekast-meta {
	grid-column: 1 / -1;
	background: #141414;
	padding: 4px 8px;
	border-radius: 4px;
}

@media (min-width: 900px) {
	.sytekast-meta {
		grid-column: 1 / 2;
	}
}

.sytekast-now-playing-title {
	margin: 0 0 6px;
	font-size: 1.1rem;
	/* Set directly (not inherited) so theme heading styles can't
	   override it with an unreadable color. */
	color: #ffffff;
}

.sytekast-cta-button {
	display: inline-block;
	padding: 10px 20px;
	background: #c9a227;
	color: #141414;
	text-decoration: none;
	border-radius: var(--sytekast-radius);
	font-weight: 600;
	min-height: 44px;
	line-height: 24px;
}

.sytekast-up-next {
	list-style: none;
	margin: 0;
	padding: 12px;
	display: flex;
	flex-direction: row;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	background: #1e1e1e !important;
	border: 1px solid #333333;
	border-radius: var(--sytekast-radius);
}

.sytekast-up-next-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border-radius: var(--sytekast-radius);
	border: 1px solid var(--sytekast-border);
	background: #141414;
	color: #ffffff;
	cursor: pointer;
	min-width: 160px;
	max-width: 160px;
	flex-shrink: 0;
	text-align: center;
}

.sytekast-up-next-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	color: #ffffff;
	font-size: 12px;
	line-height: 1.3;
}

.sytekast-up-next-thumb {
	width: 100%;
	height: 84px;
	object-fit: cover;
	border-radius: calc(var(--sytekast-radius) - 4px);
	flex-shrink: 0;
}

.sytekast-up-next-item.is-current {
	border-color: #c9a227;
	background: rgba(201, 162, 39, 0.12);
}

.sytekast-up-next.is-locked {
	opacity: 0.55;
}

.sytekast-up-next.is-locked .sytekast-up-next-item {
	cursor: not-allowed;
	pointer-events: none;
}

/* Full Channel mode (spec Section 10): "a complete media destination" --
   larger channel experience with persistent programming navigation,
   distinct from Featured + Playlist's single-video-plus-list layout. */
@media (min-width: 900px) {
	.sytekast-player-wrap.sytekast-mode-full_channel {
		grid-template-columns: 1fr;
	}
}

.sytekast-mode-full_channel .sytekast-up-next {
	max-height: none;
}

.sytekast-mode-full_channel .sytekast-stage {
	aspect-ratio: 16 / 8;
}

.sytekast-mode-full_channel .sytekast-up-next-item {
	padding: 10px;
}

.sytekast-up-next.is-locked::after {
	content: "Navigation resumes when this plays out";
	display: block;
	font-size: 11px;
	color: #999;
	text-align: center;
	padding: 6px 0 0;
}

.sytekast-preview-banner {
	background: #2a2410;
	color: #e8c84a;
	border: 1px solid #6b5a1e;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	margin: 0 0 8px;
	display: inline-block;
}

.sytekast-up-next-item:focus-visible {
	outline: 2px solid var(--sytekast-accent);
	outline-offset: 2px;
}

.sytekast-up-next-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
}

.sytekast-up-next-item.is-current .sytekast-up-next-label {
	color: #c9a227;
}

.sytekast-sponsored-badge {
	display: inline-block;
	margin-top: 4px;
	font-size: 10px;
	text-transform: uppercase;
	background: #c9a227;
	color: #141414;
	padding: 2px 6px;
	border-radius: 3px;
	width: fit-content;
}

.sytekast-ad-skip-btn {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	min-height: 32px;
}

.sytekast-ad-skip-btn:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.sytekast-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	max-height: none !important;
	overflow: visible !important;
	flex-direction: unset !important;
}

.sytekast-grid-item {
	flex-direction: column;
	align-items: flex-start;
	padding: 8px !important;
}

.sytekast-grid-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: calc(var(--sytekast-radius) - 2px);
	margin-bottom: 6px;
}

.sytekast-channel-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.sytekast-channel-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 6px;
}

.sytekast-channel-title {
	margin: 0;
	font-size: 1.4rem;
	color: #ffffff;
}

.sytekast-network-name {
	margin: 2px 0 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #b8b8b8;
	opacity: 0.9;
}

.sytekast-mode-compact .sytekast-stage {
	max-width: 480px;
	margin: 0 auto;
}

.sytekast-mode-minimal_embed {
	display: block;
}

.sytekast-mode-minimal_embed .sytekast-stage {
	border-radius: 0;
}

.sytekast-empty,
.sytekast-access-denied {
	padding: 24px;
	text-align: center;
	border: 1px dashed #555;
	border-radius: var(--sytekast-radius);
	color: #b8b8b8;
}

@media (prefers-reduced-motion: reduce) {
	.sytekast-player-wrap * {
		transition: none !important;
		animation: none !important;
	}
}

/* Channel Page (doc: Channel Page + Playlist Workflow Correction) --
   the public destination experience: branding header, Featured
   Playlist, Additional Programming sections. */
.sytekast-channel-page-header {
	position: relative;
	margin-bottom: 24px;
}

.sytekast-channel-cover {
	width: 100%;
	aspect-ratio: 3 / 1;
	background-size: cover;
	background-position: center;
	border-radius: var(--sytekast-radius);
}

.sytekast-channel-header-inner {
	padding: 16px 0;
}

.sytekast-channel-page-header .sytekast-channel-logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 8px;
	margin-bottom: 8px;
}

.sytekast-channel-page-title {
	margin: 0 0 8px;
	font-size: 2rem;
	color: #ffffff;
}

.sytekast-channel-description {
	color: #e6e6e6;
	opacity: 0.9;
	max-width: 70ch;
}

.sytekast-channel-page .sytekast-channel-section {
	margin-bottom: 40px;
}

.sytekast-channel-additional-programming .sytekast-channel-section-label {
	margin: 0 0 12px;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #b8b8b8;
}

.sytekast-channel-cta-wrap {
	text-align: center;
	margin: 32px 0;
}
