:root {
	--sat-bg: #0b1016;
	--sat-surface: #141c26;
	--sat-line: #243040;
	--sat-text: #eef2f6;
	--sat-muted: #9aa8b8;
	--sat-accent: #f2b33d;
	--sat-live: #e5484d;
	--sat-gutter: clamp(16px, 4vw, 48px);
	--sat-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--sat-bg); }

body {
	margin: 0;
	background: var(--sat-bg);
	color: var(--sat-text);
	font-family: var(--sat-font);
	font-size: 16px;
	line-height: 1.5;
}

[dir="rtl"] body { line-height: 1.8; }

a { color: inherit; }

button { font: inherit; color: inherit; }

.sat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px var(--sat-gutter);
}

.sat-brand {
	display: block;
	line-height: 0;
}

.sat-brand img {
	display: block;
	width: auto;
	height: 48px;
}

@media (max-width: 520px) {
	.sat-brand img { height: 38px; }
}

.sat-header { gap: 20px; }

.sat-crumbs {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 var(--sat-gutter) 12px;
}

.sat-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 16px;
	border: 1px solid var(--sat-line);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9rem;
}

.sat-back:hover { border-color: var(--sat-muted); }

.sat-back::before {
	content: "";
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	padding: 3px;
	transform: rotate(135deg);
}

[dir="rtl"] .sat-back::before { transform: rotate(-45deg); }

.sat-crumbs-here { color: var(--sat-muted); }

.sat-lang {
	display: flex;
	padding: 3px;
	border: 1px solid var(--sat-line);
	border-radius: 999px;
}

.sat-lang a {
	padding: 3px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.92rem;
	white-space: nowrap;
	color: var(--sat-muted);
}

.sat-lang a:hover { color: var(--sat-text); }

.sat-lang a[aria-current] {
	background: var(--sat-accent);
	color: #1a1304;
	font-weight: 600;
}

@media (max-width: 520px) {
	.sat-header { flex-wrap: wrap; row-gap: 10px; }
	.sat-lang a { padding-inline: 10px; }
}

.sat-live { padding: 0 var(--sat-gutter) 28px; }

.sat-livebar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0 12px;
}

.sat-livebar-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sat-muted);
}

.sat-collapse {
	padding: 4px 14px;
	border: 1px solid var(--sat-line);
	border-radius: 999px;
	background: none;
	font-size: 0.85rem;
	cursor: pointer;
}

.sat-collapse:hover { border-color: var(--sat-muted); }

.sat-collapse::after {
	content: "";
	display: inline-block;
	margin-inline-start: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	padding: 3px;
	transform: translateY(-1px) rotate(-135deg);
}

.sat-collapse[aria-expanded="false"]::after { transform: translateY(-3px) rotate(45deg); }

.sat-live.is-collapsed { padding-bottom: 8px; }

.sat-live.is-collapsed .sat-livebody { display: none; }

.sat-live.is-collapsed .sat-livebar-title { color: var(--sat-text); }

.sat-livebody {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
	gap: clamp(16px, 2.5vw, 32px);
	align-items: start;
}

.sat-stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.sat-stage:fullscreen { border-radius: 0; }

.sat-screen,
.sat-screen iframe,
.sat-ident,
.sat-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sat-screen iframe { border: 0; }

.sat-livestream,
.sat-livestream iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sat-livestream { z-index: 2; }

.sat-controls { z-index: 3; }

.sat-badge-live.is-live {
	background: var(--sat-live);
	color: #fff;
}

.sat-badge-live.is-live::before { background: #fff; }

.sat-screen { pointer-events: none; }

[hidden] { display: none !important; }

.sat-poster {
	display: flex;
	align-items: flex-end;
	padding: 0;
	border: 0;
	cursor: pointer;
	text-align: start;
	background: #05080c center / cover no-repeat;
}

.sat-poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(5, 8, 12, 0.95) 0%, rgba(5, 8, 12, 0.55) 38%, rgba(5, 8, 12, 0.1) 70%);
}

.sat-poster-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: clamp(60px, 9vw, 92px);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 2px solid rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
	transition: transform 0.2s ease, background 0.2s ease;
}

.sat-poster-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.9em 0 0.9em 1.5em;
	border-color: transparent transparent transparent #fff;
	font-size: clamp(11px, 1.5vw, 16px);
}

.sat-poster:hover .sat-poster-play,
.sat-poster:focus-visible .sat-poster-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: rgba(255, 255, 255, 0.28);
}

.sat-poster-text {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: clamp(14px, 3vw, 32px);
	max-width: 46em;
}

.sat-poster-title {
	font-size: clamp(1.2rem, 2.8vw, 2.1rem);
	font-weight: 700;
	line-height: 1.25;
}

[dir="rtl"] .sat-poster-title { line-height: 1.6; }

.sat-poster-series { color: var(--sat-muted); }

.sat-poster-cta {
	margin-top: 8px;
	padding: 8px 20px;
	border-radius: 999px;
	background: var(--sat-accent);
	color: #1a1304;
	font-weight: 700;
}

.sat-badge-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--sat-accent);
	color: #1a1304;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sat-badge-live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1a1304;
	animation: sat-pulse 1.6s ease-in-out infinite;
}

@keyframes sat-pulse {
	50% { opacity: 0.25; }
}

.sat-controls {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 28px 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sat-stage:hover .sat-controls,
.sat-controls:focus-within { opacity: 1; }

@media (hover: none) {
	.sat-controls { opacity: 1; }
}

.sat-controls button {
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	font-size: 0.85rem;
	cursor: pointer;
}

.sat-controls button:hover { background: rgba(255, 255, 255, 0.18); }

.sat-controls #sat-mute { margin-inline-start: auto; }

.sat-controls #sat-mute[aria-pressed="true"] {
	text-decoration: line-through;
	color: var(--sat-muted);
}

.sat-ident {
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 45%, #1d2a3a 0%, #0b1016 70%);
}

.sat-ident video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sat-ident-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	animation: sat-ident-in 1.2s ease-out both;
}

.sat-ident-logo img {
	display: block;
	width: auto;
	height: clamp(64px, 16vw, 144px);
}

.sat-ident-line { color: var(--sat-muted); }

@keyframes sat-ident-in {
	from { opacity: 0; transform: scale(0.92); letter-spacing: 0.2em; }
	to { opacity: 1; transform: scale(1); letter-spacing: 0; }
}

.sat-label,
.sat-next-when {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sat-accent);
}

.sat-now h1 {
	margin: 4px 0 6px;
	font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	line-height: 1.3;
}

[dir="rtl"] .sat-now h1 { line-height: 1.7; }

.sat-now-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--sat-muted);
}

.sat-audio:not(:empty) {
	padding: 1px 9px;
	border: 1px solid var(--sat-line);
	border-radius: 4px;
	font-size: 0.8rem;
	color: var(--sat-text);
}

.sat-now-desc {
	margin: 0;
	color: var(--sat-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
}

.sat-next {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sat-line);
}

.sat-next li {
	display: grid;
	gap: 1px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sat-line);
}

.sat-next li:not(:first-child) .sat-next-when { color: var(--sat-muted); }

.sat-next-name { font-weight: 600; }

.sat-next-when .sat-badge-live {
	margin-inline-start: 6px;
	vertical-align: 1px;
	font-size: 0.7rem;
}

.sat-next li.is-live .sat-next-when { color: var(--sat-text); }

.sat-next-series {
	font-size: 0.88rem;
	color: var(--sat-muted);
}

.sat-footer {
	padding: 24px var(--sat-gutter) 40px;
	border-top: 1px solid var(--sat-line);
	color: var(--sat-muted);
	font-size: 0.88rem;
}

.sat-row { position: relative; }

.sat-row h2,
.sat-episodes h2 {
	margin: 0;
	padding: 18px var(--sat-gutter) 4px;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.sat-row-all {
	margin-inline-start: 12px;
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--sat-accent);
	text-decoration: none;
}

.sat-row-all:hover { text-decoration: underline; }

.sat-row-wrap { position: relative; }

.sat-row-scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--sat-gutter);
	scrollbar-width: none;
	padding: 10px var(--sat-gutter) 6px;
}

.sat-row-scroll::-webkit-scrollbar { display: none; }

.sat-row-scroll .sat-tile {
	flex: 0 0 clamp(190px, 21vw, 290px);
	scroll-snap-align: start;
}

.sat-row-nav {
	position: absolute;
	top: 10px;
	z-index: 6;
	width: clamp(28px, 3.4vw, 44px);
	height: calc(clamp(190px, 21vw, 290px) * 9 / 16);
	border: 0;
	background: rgba(11, 16, 22, 0.72);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sat-row-wrap:hover .sat-row-nav,
.sat-row-nav:focus-visible { opacity: 1; }

.sat-row-nav::before {
	content: "";
	display: inline-block;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	padding: 5px;
}

.sat-row-prev { inset-inline-start: 0; }
.sat-row-next { inset-inline-end: 0; }

.sat-row-prev::before { transform: rotate(135deg); }
.sat-row-next::before { transform: rotate(-45deg); }
[dir="rtl"] .sat-row-prev::before { transform: rotate(-45deg); }
[dir="rtl"] .sat-row-next::before { transform: rotate(135deg); }

@media (hover: none) {
	.sat-row-nav { display: none; }
}

.sat-tile {
	position: relative;
	display: block;
	text-decoration: none;
	border-radius: 8px;
}

.sat-tile-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--sat-surface);
}

.sat-tile-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sat-tile-len {
	position: absolute;
	inset-inline-end: 6px;
	bottom: 6px;
	padding: 0 7px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.75);
	font-size: 0.75rem;
}

.sat-tile-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	padding: 6px 2px 0;
	font-size: 0.92rem;
	font-weight: 600;
}

.sat-tile-more { display: none; }

.sat-tile-meta {
	display: block;
	font-size: 0.8rem;
	color: var(--sat-muted);
}

.sat-tile-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	margin-top: 4px;
	font-size: 0.82rem;
	color: var(--sat-muted);
}

.sat-tile.is-current .sat-tile-img { outline: 2px solid var(--sat-accent); outline-offset: 2px; }

.sat-tile.is-current .sat-tile-name { color: var(--sat-accent); }

.sat-card {
	position: absolute;
	z-index: 50;
	overflow: hidden;
	border-radius: 12px;
	background: var(--sat-surface);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
	pointer-events: none;

	visibility: hidden;
	opacity: 0;
	transform: scale(var(--sat-card-from, 0.82));
	transition: opacity 0.14s ease-in, transform 0.14s ease-in, visibility 0s linear 0.14s;
	will-change: transform, opacity;
}

.sat-card.is-on {
	visibility: visible;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.12s ease-out, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.sat-card.is-placing { transition: none; }

.sat-card-img {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #05080c;
}

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

.sat-card-body { padding: 8px 12px 12px; }

.sat-card-name {
	display: block;
	font-size: 0.98rem;
	font-weight: 700;
}

.sat-card .sat-tile-meta { margin-top: 2px; }

.sat-card .sat-tile-desc { -webkit-line-clamp: 5; }

@media (prefers-reduced-motion: reduce) {
	.sat-card,
	.sat-card.is-on { transition: none; }
}

.sat-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(72vh, 56.25vw);
	background: #05080c;
}

.sat-hero-art {
	position: absolute;
	inset: 0;
	background: center / cover no-repeat;
}

.sat-hero-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, var(--sat-bg) 0%, rgba(11, 16, 22, 0.6) 35%, rgba(11, 16, 22, 0) 70%),
		linear-gradient(to right, rgba(11, 16, 22, 0.85) 0%, rgba(11, 16, 22, 0.35) 45%, rgba(11, 16, 22, 0) 75%);
}

[dir="rtl"] .sat-hero-art::after {
	background:
		linear-gradient(to top, var(--sat-bg) 0%, rgba(11, 16, 22, 0.6) 35%, rgba(11, 16, 22, 0) 70%),
		linear-gradient(to left, rgba(11, 16, 22, 0.85) 0%, rgba(11, 16, 22, 0.35) 45%, rgba(11, 16, 22, 0) 75%);
}

.sat-hero-info {
	position: relative;
	max-width: 44em;
	padding: clamp(20px, 4vw, 56px) var(--sat-gutter);
}

.sat-hero-series {
	color: var(--sat-accent);
	font-weight: 600;
	text-decoration: none;
}

.sat-hero-series:hover { text-decoration: underline; }

.sat-hero h1 {
	margin: 4px 0 8px;
	font-size: clamp(1.6rem, 4.2vw, 3.1rem);
	line-height: 1.15;
}

[dir="rtl"] .sat-hero h1 { line-height: 1.6; }

.sat-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--sat-muted);
}

.sat-hero-desc {
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
}

.sat-play {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--sat-accent);
	color: #1a1304;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}

.sat-play::before {
	content: "";
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
}

.sat-play:hover { filter: brightness(1.08); }

.sat-hero.is-playing {
	display: block;
	min-height: 0;
	aspect-ratio: 16 / 9;
	max-height: 82vh;
	margin-inline: auto;
	background: #000;
}

.sat-hero.is-playing .sat-hero-art { display: none; }

.sat-hero-player,
.sat-hero-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 240px), 1fr));
	gap: 20px 12px;
	padding: 10px var(--sat-gutter) 48px;
}

.sat-notfound {
	padding: 80px var(--sat-gutter);
	text-align: center;
	color: var(--sat-muted);
}

.sat-footer { margin-top: 24px; }

.sat-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 40px;
}

.sat-footer p { margin: 0 0 4px; }

.sat-footer-contact { text-align: end; }

.sat-footer-contact a { text-decoration: none; }

.sat-footer-contact a:hover { text-decoration: underline; }

@media (max-width: 520px) {
	.sat-footer-contact { text-align: start; }
}

.sat-footer a { color: var(--sat-text); }

@media (max-width: 860px) {
	.sat-livebody { grid-template-columns: minmax(0, 1fr); }
	.sat-stage {
		margin-inline: calc(var(--sat-gutter) * -1);
		border-radius: 0;
	}
	.sat-row-scroll .sat-tile { flex-basis: clamp(150px, 42vw, 220px); }
}

@media (prefers-reduced-motion: reduce) {
	.sat-badge-live::before,
	.sat-ident-mark { animation: none; }
	.sat-poster-play { transition: none; }
}
