/* ═══════════════════════════════════════════════════
   Sport Stream Pro — Base Styles
   Extracted & adapted from design. Dynamic colors via :root vars injected by Customizer.
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
	/* Fallbacks — overridden by Customizer inline CSS */
	--ssp-primary:   #111111;
	--ssp-primary-d: #000000;
	--ssp-primary-l: #f0f0f0;
	--ssp-live:      #b45309;
	--ssp-live-bg:   #fef3e8;
	--ssp-bg:        #f4f6fb;
	--ssp-surface:   #ffffff;
	--ssp-surface2:  #fafbfe;
	--ssp-border:    #dde3ef;
	--ssp-border2:   #aaaaaa;
	--ssp-text:      #0d1120;
	--ssp-text2:     #374151;
	--ssp-muted:     #5a6a8a;
	--ssp-muted2:    #9ca3af;
	--ssp-black:     #111111;
	--ssp-radius:    12px;
}

body {
	font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
	background: var(--ssp-bg);
	min-height: 100vh;
	color: var(--ssp-text);
	direction: rtl;
	line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 14px 40px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ── HEADER ── */
.site-header {
	text-align: center;
	padding: 22px 14px 18px;
	border-bottom: 2px solid var(--ssp-border);
	margin-bottom: 16px;
	background: var(--ssp-surface);
	position: relative;
	overflow: hidden;
}
.site-header::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ssp-primary-d), var(--ssp-primary), #555555, var(--ssp-primary-d));
	background-size: 200% 100%;
	animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.header-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	justify-content: center;
	margin-bottom: 10px;
}

.logo-icon {
	width: 58px; height: 58px;
	font-size: 30px;
	border-radius: 14px;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
	background: #080c18;
	display: flex;
	align-items: center;
	justify-content: center;
}
.logo-icon img,
.logo-icon .custom-logo {
	width: 100%; height: 100%;
	object-fit: contain;
}
.logo-emoji { font-size: 30px; line-height: 1; }

.logo-titles { text-align: right; }

.logo-ar {
	font-size: clamp(24px, 5vw, 34px);
	font-weight: 900;
	color: var(--ssp-text);
	line-height: 1.1;
	letter-spacing: -0.5px;
}
.logo-ar span { color: var(--ssp-primary); }

.logo-en {
	font-size: clamp(11px, 2.5vw, 13px);
	color: var(--ssp-muted);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.live-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ssp-primary-l);
	color: var(--ssp-primary-d);
	border: 1px solid var(--ssp-border2);
	font-size: 13px;
	font-weight: 700;
	padding: 5px 18px;
	border-radius: 99px;
}

.live-dot {
	width: 8px; height: 8px;
	background: #e11d48;
	border-radius: 50%;
	animation: badge-blink 1.2s ease-in-out infinite;
	display: inline-block;
}


/* ── Day tabs (أمس / اليوم / الغد) ── */
.day-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.day-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 14px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	color: var(--ssp-muted);
	background: #f1f3f9;
	border: 1px solid var(--ssp-border);
	transition: background .15s, color .15s, border-color .15s;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1.4;
}
.day-tab:hover {
	color: var(--ssp-text);
	background: var(--ssp-primary-l);
	border-color: var(--ssp-border2);
}
.day-tab.is-active {
	background: var(--ssp-primary);
	color: #fff;
	border-color: var(--ssp-primary-d);
}

/* Primary nav */
.primary-nav {
	margin-top: 14px;
}
.primary-nav .nav-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	list-style: none;
}
.primary-nav .nav-menu a {
	font-size: 13px;
	font-weight: 700;
	color: var(--ssp-muted);
	padding: 4px 10px;
	border-radius: 8px;
	transition: color .15s, background .15s;
}
.primary-nav .nav-menu a:hover,
.primary-nav .nav-menu .current-menu-item a {
	color: var(--ssp-text);
	background: var(--ssp-primary-l);
}

/* ── DATE STRIP ── */
.date-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	padding: 10px 18px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	gap: 10px;
	flex-wrap: wrap;
}
.date-strip .label { color: var(--ssp-text); flex: 1 1 auto; min-width: 0; }
.date-strip .value { color: var(--ssp-muted); font-weight: 600; }
.date-strip .message-box {
	width: 100%;
	text-align: center;
	color: var(--ssp-text);
	font-weight: 700;
}

.hero-subtitle {
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	padding: 12px 18px;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--ssp-text2);
	line-height: 1.8;
	text-align: center;
}

/* ── MATCHES ── */
.albaflex { display: flex; flex-direction: column; gap: 10px; }

.AY_Match {
	position: relative;
	overflow: hidden;
	text-align: center;
	border-radius: var(--ssp-radius);
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
	transition: transform .18s, box-shadow .18s;
}
.AY_Match:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
}

.MT_Mask {
	position: absolute;
	inset: 0;
	z-index: 10;
	cursor: pointer;
	display: block;
}

.MT_Info {
	width: 100%;
	background: var(--ssp-surface2);
	border-bottom: 1px solid var(--ssp-border);
}
.MT_Info ul { display: flex; align-items: center; list-style: none; }
.MT_Info li {
	flex: 1;
	font-size: 12px;
	padding: 6px 12px 7px;
	color: var(--ssp-muted);
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
}

.AY_Inner { display: flex; align-items: center; }
.AY_Inner > div { flex: 0 0 auto; width: 33.33%; }

.MT_Team {
	display: flex;
	align-items: center;
	flex-direction: column;
	padding: 12px 8px;
}

.TM_Logo img {
	display: block;
	margin: 0 auto 6px;
	width: 62px; height: 62px;
	object-fit: contain;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}

.TM_Name {
	font-weight: 700;
	font-size: 13px;
	color: var(--ssp-text);
	line-height: 1.3;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.MT_Data {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 12px 4px;
}

.MT_Time {
	font-size: 18px;
	color: var(--ssp-live);
	font-weight: 800;
	letter-spacing: 1px;
}

.MT_TimeSub {
	font-size: 11px;
	color: var(--ssp-muted);
	font-weight: 600;
}

.MT_Result {
	font-size: 28px;
	font-weight: 900;
	color: var(--ssp-text);
	display: inline-flex;
	gap: 4px;
	align-items: center;
	line-height: 1;
}

.MT_Stat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	background: #f1f3f9;
	color: var(--ssp-muted);
	border: 1px solid var(--ssp-border);
	min-width: 64px;
	height: 22px;
	gap: 5px;
}

.AY_Match.not-started .MT_Result { display: none; }
.AY_Match.live .MT_Time,
.AY_Match.finished .MT_Time { display: none; }

@keyframes live-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .3), 0 1px 6px rgba(0, 0, 0, .07); }
	50%      { box-shadow: 0 0 0 7px rgba(0, 0, 0, .0), 0 1px 6px rgba(0, 0, 0, .07); }
}
@keyframes badge-blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: .35; }
}

.AY_Match.live {
	border-color: var(--ssp-border2);
	border-right: 4px solid var(--ssp-primary);
	animation: live-pulse 1.6s ease-in-out infinite;
	background: #f5f5f5;
}
.AY_Match.live .MT_Info {
	background: var(--ssp-primary-l);
	border-bottom-color: var(--ssp-border2);
}
.AY_Match.live .MT_Info li { color: var(--ssp-primary-d); }
.AY_Match.live .MT_Stat {
	background: var(--ssp-primary);
	color: #fff;
	border-color: var(--ssp-primary-d);
	animation: badge-blink 900ms ease-in-out infinite;
}
.AY_Match.live .MT_Result { color: var(--ssp-primary); }

.AY_Match.finished { opacity: .6; }
.AY_Match.finished .MT_Stat {
	background: #f5f5f7;
	color: var(--ssp-muted2);
	border-color: #e5e7eb;
}
.AY_Match.finished .MT_Result { color: var(--ssp-muted2); }

/* ── LOADING / ERROR ── */
.no-data__msg {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ssp-muted);
	font-size: 16px;
	text-align: center;
	flex-direction: column;
	gap: 10px;
}

.spinner {
	width: 38px; height: 38px;
	border: 3px solid #cccccc;
	border-top-color: var(--ssp-primary);
	border-radius: 50%;
	animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SEO / CONTENT BLOCK ── */
.seo-block,
.page-content {
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	padding: 28px 24px;
	margin-top: 22px;
}
.seo-block h2,
.page-content h2 {
	font-size: clamp(18px, 3.5vw, 24px);
	font-weight: 900;
	color: var(--ssp-text);
	border-right: 4px solid var(--ssp-primary);
	padding-right: 14px;
	margin-bottom: 16px;
}
.seo-block h3,
.page-content h3 {
	font-size: clamp(15px, 2.8vw, 19px);
	font-weight: 800;
	color: var(--ssp-text);
	margin: 22px 0 10px;
}
.seo-block p,
.page-content p {
	font-size: clamp(13px, 2vw, 15px);
	line-height: 2.1;
	color: var(--ssp-text2);
	margin-bottom: 10px;
}
.seo-block strong,
.page-content strong { color: var(--ssp-text); }

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin: 16px 0;
}
.feature-item {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--ssp-primary-l);
	border: 1px solid var(--ssp-border2);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ssp-primary-d);
}
.feature-item .fi-icon { font-size: 18px; flex-shrink: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--ssp-border); padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
	font-size: 15px;
	font-weight: 800;
	color: var(--ssp-text);
	margin-bottom: 8px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.faq-q::before { content: 'س:'; color: var(--ssp-primary); flex-shrink: 0; }
.faq-a {
	font-size: 13px;
	line-height: 2;
	color: var(--ssp-text2);
	padding-right: 26px;
}

/* Keywords cloud */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kw-tag {
	background: var(--ssp-primary-l);
	border: 1px solid var(--ssp-border2);
	color: var(--ssp-primary-d);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 13px;
	border-radius: 99px;
}

/* ── NEWS / BLOG ── */
.section-title {
	font-size: clamp(18px, 3.5vw, 22px);
	font-weight: 900;
	color: var(--ssp-text);
	border-right: 4px solid var(--ssp-primary);
	padding-right: 12px;
	margin: 24px 0 14px;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.news-card {
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	overflow: hidden;
	transition: transform .18s, box-shadow .18s;
}
.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.news-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.news-body { padding: 14px; }

.news-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	margin-bottom: 6px;
}
.news-title a:hover { color: var(--ssp-primary); }

.news-excerpt {
	font-size: 13px;
	color: var(--ssp-muted);
	line-height: 1.7;
	margin-bottom: 8px;
}

.news-date {
	font-size: 12px;
	color: var(--ssp-muted2);
	font-weight: 600;
}

/* Single post */
.single-post .entry-header,
.single-page .entry-header {
	margin-bottom: 18px;
}
.entry-title {
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 900;
	line-height: 1.3;
	margin-bottom: 8px;
}
.entry-meta {
	font-size: 13px;
	color: var(--ssp-muted);
	display: flex;
	gap: 16px;
}
.entry-thumbnail {
	margin-bottom: 20px;
	border-radius: var(--ssp-radius);
	overflow: hidden;
}
.entry-content {
	font-size: 15px;
	line-height: 2;
	color: var(--ssp-text2);
}
.entry-content p { margin-bottom: 14px; }
.entry-content img {
	border-radius: 8px;
	margin: 12px 0;
}
.entry-footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--ssp-border);
	font-size: 13px;
	color: var(--ssp-muted);
}

.archive-header {
	margin-bottom: 20px;
}
.archive-title {
	font-size: clamp(20px, 4vw, 28px);
	font-weight: 900;
}
.archive-desc {
	font-size: 14px;
	color: var(--ssp-muted);
	margin-top: 6px;
}

/* Pagination */
.navigation.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 24px 0;
}
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	background: var(--ssp-surface);
	border: 1px solid var(--ssp-border);
	color: var(--ssp-text);
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	background: var(--ssp-primary);
	color: #fff;
	border-color: var(--ssp-primary);
}

/* ── FOOTER ── */
.site-footer {
	background: linear-gradient(135deg, var(--ssp-black) 0%, #333333 100%);
	border-radius: var(--ssp-radius);
	padding: 28px 20px;
	text-align: center;
	margin-top: 24px;
	position: relative;
	overflow: hidden;
}
.site-footer::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ssp-primary-d), var(--ssp-primary), #555555, var(--ssp-primary-d));
}
.footer-brand {
	font-size: clamp(18px, 3.5vw, 26px);
	font-weight: 900;
	color: #fff;
	margin-bottom: 8px;
}
.footer-brand span { color: #aaaaaa; }
.footer-sub {
	font-size: 13px;
	color: rgba(255, 255, 255, .65);
	margin-bottom: 14px;
	line-height: 1.9;
}
.footer-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 14px;
}
.footer-links a,
.footer-menu a {
	color: rgba(255, 255, 255, .75);
	font-size: 13px;
	font-weight: 600;
}
.footer-links a:hover,
.footer-menu a:hover {
	color: #fff;
	text-decoration: underline;
}
.footer-menu {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 14px;
}
.footer-menu,
.footer-copy {
	font-size: 11px;
	color: rgba(255, 255, 255, .4);
	line-height: 2;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
	.TM_Logo img { width: 46px; height: 46px; }
	.TM_Name     { font-size: 11px; }
	.MT_Result   { font-size: 22px; }
	.MT_Time     { font-size: 15px; }
	.MT_Info li  { font-size: 11px; }
	.features-grid { grid-template-columns: 1fr 1fr; }
	.news-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
