/*
Theme Name: YallaShoot
Theme URI: https://albaadani.com
Author: YallaShoot
Author URI: https://albaadani.com
Description: قالب يلا شوت - متابعة نتائج ومباريات كرة القدم مباشر
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yallashoot
Tags: sports, football, rtl-language, dark, custom-colors, custom-logo
*/

/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-card-hover: #1f2d3d;
    --bg-nav: #161b22;
    --accent-red: #e63946;
    --accent-green: #2ecc71;
    --accent-blue: #1da1f2;
    --accent-yellow: #f39c12;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --border-light: #21262d;
    --live-color: #e63946;
    --win-color: #2ecc71;
    --font-arabic: 'Cairo', 'Tajawal', 'Almarai', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --transition: all 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    min-height: 100vh;
}

body.ltr { direction: ltr; text-align: left; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-arabic); border: none; outline: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent-red);
    border-radius: 2px;
    display: inline-block;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: #0a0e13;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }

.top-bar .clock {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.85rem;
}

.top-bar .clock i { font-size: 0.9rem; }

.social-links { display: flex; gap: 8px; }
.social-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}
.social-links a.twitter { background: #1da1f2; color: #fff; }
.social-links a.facebook { background: #1877f2; color: #fff; }
.social-links a.youtube { background: #ff0000; color: #fff; }
.social-links a.telegram { background: #0088cc; color: #fff; }
.social-links a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo img { height: 44px; width: auto; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: -0.5px;
}

.logo-text .tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }

.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.main-nav a.active { color: var(--accent-red); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--border-color); color: var(--text-primary); }

.search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.search-btn:hover { background: var(--border-color); color: var(--text-primary); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
}

/* =============================================
   HERO / TICKER
   ============================================= */
.ticker-bar {
    background: var(--accent-red);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.ticker-label {
    background: rgba(0,0,0,0.3);
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    margin-left: 16px;
}

.ticker-scroll {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    gap: 40px;
    white-space: nowrap;
}

.ticker-scroll span {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.main-wrapper {
    padding: 24px 0;
}

.main-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* =============================================
   MATCHES TABS SECTION
   ============================================= */
.matches-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.matches-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.matches-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matches-title i { color: var(--accent-red); }

/* Tabs */
.matches-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab-btn {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-arabic);
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230,57,70,0.4);
}

/* League Group */
.league-group { margin: 0; }

.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.league-header:hover { background: var(--bg-card-hover); }

.league-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.league-flag-placeholder {
    width: 22px;
    height: 16px;
    background: var(--border-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.league-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex: 1;
}

.league-count {
    font-size: 0.75rem;
    background: var(--border-color);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Match Card */
.match-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.match-card:hover { background: var(--bg-card-hover); }
.match-card:last-child { border-bottom: none; }

/* Team Side */
.team-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-side.home { flex-direction: row-reverse; }
.team-side.away { flex-direction: row; }

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-primary);
    padding: 4px;
    flex-shrink: 0;
}

.team-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.team-info { display: flex; flex-direction: column; }
.team-side.home .team-info { align-items: flex-end; }
.team-side.away .team-info { align-items: flex-start; }

.team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.team-group {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Score Center */
.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 32px;
    text-align: center;
    line-height: 1;
}

.score-divider {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 300;
}

.match-time-display {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.match-time-display.live {
    background: rgba(230,57,70,0.15);
    color: var(--accent-red);
    animation: pulse-live 1.5s ease-in-out infinite;
    border: 1px solid rgba(230,57,70,0.3);
}

.match-time-display.live::before {
    content: '● ';
    font-size: 0.6rem;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-time-display.upcoming {
    background: rgba(243,156,18,0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(243,156,18,0.2);
}

.match-time-display.finished {
    background: var(--bg-primary);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.match-time-display.postponed {
    background: rgba(139,148,158,0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.match-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(29,161,242,0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(29,161,242,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 6px;
    font-family: var(--font-arabic);
}

.watch-btn:hover {
    background: #c0313d;
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   NEWS SECTION
   ============================================= */
.news-section { margin-bottom: 24px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-img .news-cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.news-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover { color: var(--accent-red); }

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-views {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured News (large card) */
.news-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

.news-card.featured .news-card-img {
    width: 340px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.news-card.featured .news-card-body { padding: 20px; }

.news-card.featured .news-card-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i { color: var(--accent-red); }

.widget-body { padding: 12px 0; }

/* Standing Table */
.standing-table { width: 100%; border-collapse: collapse; }
.standing-table th {
    padding: 6px 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standing-table th:first-child { text-align: right; padding-right: 16px; }

.standing-table td {
    padding: 8px 10px;
    font-size: 0.82rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.standing-table td:first-child { text-align: right; padding-right: 16px; }

.standing-table tr:last-child td { border-bottom: none; }
.standing-table tr:hover td { background: var(--bg-card-hover); }

.standing-table .pos { color: var(--text-muted); font-weight: 700; min-width: 24px; }
.standing-table .team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.standing-table .team-cell img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.standing-table .pts { font-weight: 800; color: var(--text-primary); }
.standing-table .form-cell { display: flex; gap: 2px; justify-content: center; }
.form-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.form-dot.w { background: var(--accent-green); }
.form-dot.d { background: var(--accent-yellow); }
.form-dot.l { background: var(--accent-red); }

/* Top Scorers */
.scorers-list { padding: 0 12px; }
.scorer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-light);
}
.scorer-item:last-child { border-bottom: none; }

.scorer-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.scorer-rank.top3 { background: var(--accent-yellow); color: #000; }

.scorer-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}

.scorer-info { flex: 1; min-width: 0; }
.scorer-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorer-club {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.scorer-goals {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-red);
    flex-shrink: 0;
}

/* Ad Widget */
.ad-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
    text-align: center;
}

.ad-widget img { width: 100%; }
.ad-label {
    padding: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-top {
    padding: 40px 0 32px;
}

.footer-top .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand .logo-text .name { font-size: 1.6rem; }

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 12px 0 16px;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.footer-social a:hover { transform: translateY(-2px); }
.footer-social a.twitter:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.footer-social a.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.footer-social a.youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.footer-social a.telegram:hover { background: #0088cc; border-color: #0088cc; color: #fff; }

.footer-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.footer-links a::before {
    content: '›';
    color: var(--accent-red);
    font-size: 1rem;
    font-weight: 700;
}
.footer-links a:hover { color: var(--text-primary); padding-right: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 16px 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-copyright span { color: var(--accent-red); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal a:hover { color: var(--text-primary); }

/* =============================================
   SINGLE MATCH PAGE
   ============================================= */
.match-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1f3a 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.match-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.match-hero .league-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.match-hero-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.match-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.match-hero-team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 8px;
}

.match-hero-team .name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.match-hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.match-hero-score .scores {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-hero-score .sep { color: var(--text-muted); font-weight: 300; }

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.match-detail-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
}

.match-detail-card .icon { font-size: 1.4rem; margin-bottom: 6px; }
.match-detail-card .label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.match-detail-card .value { font-size: 0.95rem; font-weight: 700; }

/* Stream Links */
.stream-links { margin-bottom: 24px; }
.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.stream-link-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.stream-link-card:hover {
    border-color: var(--accent-red);
    background: var(--bg-card-hover);
}

.stream-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.stream-info .name { font-size: 0.9rem; font-weight: 700; }
.stream-info .quality { font-size: 0.72rem; color: var(--accent-green); }

/* =============================================
   SEARCH MODAL
   ============================================= */
.search-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.search-modal.active { opacity: 1; visibility: visible; }

.search-modal-inner {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    width: 100%;
    max-width: 580px;
    margin: 0 20px;
    box-shadow: var(--shadow);
}

.search-modal-inner input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-arabic);
    direction: rtl;
    outline: none;
    transition: var(--transition);
}

.search-modal-inner input:focus { border-color: var(--accent-red); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
}

.page-item {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.page-item.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* =============================================
   LIGHT THEME
   ============================================= */
body.light-theme {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #f6f8fa;
    --bg-card-hover: #eef1f5;
    --bg-nav: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #444c56;
    --text-muted: #6e7681;
    --border-color: #d8dee4;
    --border-light: #e8ecf0;
}

/* =============================================
   LOADING SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .main-wrapper .container {
        grid-template-columns: 1fr;
    }
    .sidebar { display: none; }
    .footer-top .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .news-card.featured { flex-direction: column; }
    .news-card.featured .news-card-img { width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .match-details-grid { grid-template-columns: 1fr 1fr; }
    .footer-top .container { grid-template-columns: 1fr; }
    .match-hero { padding: 20px; }
    .match-hero-score .scores { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .top-bar { display: none; }
    .match-card { grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 10px; }
    .team-name { font-size: 0.78rem; }
    .score { font-size: 1.3rem; }
    .match-details-grid { grid-template-columns: 1fr; }
    .team-logo, .team-logo-placeholder { width: 32px; height: 32px; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   UTILITIES
   ============================================= */
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-yellow { color: var(--accent-yellow); }
.text-muted { color: var(--text-muted); }
.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
