/* إعدادات عامة لتصفير الهوامش */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5; /* لون خلفية مريح للعين شبيه بالمواقع الرياضية */
    color: #333;
}

/* تنسيق القائمة العلوية */
.main-header {
    background-color: #06050f; /* لون كحلي غامق احترافي */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 900;
}

.logo span {
    color: #e50914; /* لون أحمر رياضي لكلمة TV */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: #fff;
    border-bottom: 2px solid #e50914;
    padding-bottom: 5px;
}

/* شريط الأيام */
.dates-nav {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.date-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: 0.3s;
}

.date-btn:hover {
    background-color: #f9f9f9;
}

.date-btn.active {
    background-color: #e50914;
    color: #fff;
    border-color: #e50914;
}

/* حاوية المباريات */
.matches-container {
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* تنسيق كرت المباراة (المستنسخ) */
.match-card {

    position: relative;

    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* رأس الكرت (البطولة) مع الشعار */
.match-header {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center; /* وضع العناصر في المنتصف */
    align-items: center; /* توسيط الشعار والنص على نفس الخط */
    gap: 8px; /* المسافة بين النص والشعار */
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #eee;
}

/* تحجيم شعار البطولة ليكون صغيراً وأنيقاً */
.league-logo {
    width: 28px; 
    height: 28px;
    object-fit: contain;
}

/* جسم الكرت (الفرق) */
.match-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    gap: 10px;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

/* المنتصف (النتيجة والوقت) */
.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    background-color: #1a1a2e;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
}

.match-time, .match-score {
    font-size: 22px;
    font-weight: 900;
}

.match-status {
    font-size: 12px;
    margin-top: 5px;
    color: #aaa;
}

.live-text {
    color: #fff;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

/* ذيل الكرت (المعلق والقناة) */
.match-footer {
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
}

/* تأثير النبض للمباريات المباشرة */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* توافق الشاشات الصغيرة (الجوال) */
@media (max-width: 600px) {
    .header-container { flex-direction: column; gap: 10px; }
    .nav-menu { padding: 0; }
    .match-body { padding: 15px 10px; }
    .team-logo { width: 40px; height: 40px; }
    .team-name { font-size: 14px; text-align: center; }
    .match-time, .match-score { font-size: 18px; }
}
/* =========================================
   تصميم قسم الجريدة الرياضية (الأخبار)
========================================= */
.news-newspaper-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

.newspaper-header {
    border-bottom: 3px solid #1a1a2e;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.newspaper-header h2 {
    font-size: 22px;
    color: #1a1a2e;
    font-weight: 900;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: 1fr; /* عرض المقال بشكل عريض ومريح للقراءة */
    gap: 25px;
}

.news-article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e1e1e1;
    transition: transform 0.3s ease;
}

.news-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 4px solid #e50914;
}

.article-content {
    padding: 25px;
    position: relative;
}

.article-badge {
    position: absolute;
    top: -20px;
    right: 25px;
    background-color: #e50914;
    color: #fff;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(229,9,20,0.4);
}

.article-title {
    font-size: 20px;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 900;
}

.article-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 13px;
    color: #888;
    font-weight: bold;
}

/* توافق الجوال للجريدة */
@media (max-width: 600px) {
    .article-img { height: 200px; }
    .article-title { font-size: 18px; }
    .article-text { font-size: 14px; }
}

/* =========================================
   تأثير زر التشغيل عند مرور الماوس (Hover)
========================================= */

/* القناع الشفاف الذي يغطي الكرت بالكامل */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* لون أبيض نصف شفاف يغطي الكرت */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* الزر مخفي تماماً في الوضع الطبيعي */
    transition: opacity 0.3s ease; /* سرعة ونعومة الظهور */
    z-index: 10; /* لضمان ظهوره فوق كل النصوص والصور */
}

/* 🎯 السحر هنا: إظهار القناع عندما يمر الماوس فوق الكرت */
.match-card:hover .play-overlay {
    opacity: 1; 
}

/* تصميم الدائرة البيضاء (تم تصغير الحجم إلى 50 بكسل) */
.play-btn {
    background-color: rgba(255, 255, 255, 0.95);
    width: 90px;  /* صغرناها من 65 إلى 50 */
    height: 90px; /* صغرناها من 65 إلى 50 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: scale(0.5); 
    transition: transform 0.3s ease;
}

/* التوسيط البصري السحري للمثلث داخل الدائرة الجديدة */
.play-btn svg {
    margin-left: 2px; /* إزاحة مدروسة لليمين ليصبح في المركز البصري تماماً */
}

/* 1. تصميم زر المثلث وإخفاؤه في الوضع العادي */
.play-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* لجعله في المنتصف تماماً */
    font-size: 40px; /* حجم المثلث، يمكنك تكبيره أو تصغيره */
    color: white; /* لون المثلث */
    background-color: rgba(0, 0, 0, 0.6); /* خلفية دائرية شفافة حول المثلث */
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%; /* لجعل الخلفية دائرية */
    opacity: 0; /* 🟢 هذا السطر يجعله مخفياً تماماً 🟢 */
    transition: opacity 0.3s ease; /* لجعل ظهوره ناعماً وليس فجأة */
    cursor: pointer;
    z-index: 10;
}

/* 2. إظهار المثلث عندما يمر الماوس فوق البطاقة بالكامل */
.match-card:hover .play-hover-icon {
    opacity: 1; /* 🟢 هذا السطر يظهره عندما يمر الماوس 🟢 */
}

/* 3. لمسة احترافية (اختياري): جعل التوقيت باهتاً عند ظهور المثلث */
.match-card:hover .match-time,
.match-card:hover .match-status {
    opacity: 0.1; /* يخفت التوقيت لكي يبرز زر التشغيل أكثر */
    transition: opacity 0.3s ease;
}