/* ================= RESET ================= */

*{
box-sizing:border-box;
margin:0;
padding:0;
}

/* ================= GLOBAL ================= */

body{
font-family:Cairo,sans-serif;
background:#0c0f15;
color:#fff;
direction:rtl;
}

body.en{direction:ltr;}
body.light{background:#f2f2f2;color:#000;}
body.blue{background:#071a34;color:#fff;}

html,body{
overflow-x:hidden;
}

.container{
width:100%;
max-width:1200px;
margin:auto;
padding:0 14px;
}

/* ================= TOP NAV ================= */

.sports-nav{
width:100%;
margin:20px auto 10px;
display:flex;
justify-content:center;
gap:18px;
flex-wrap:wrap;
padding:10px 0;
border-bottom:1px solid rgba(255,255,255,.08);
position:relative;
}

.nav-item{
font-size:13px;
font-weight:700;
color:#ccc;
cursor:pointer;
padding:7px 18px;
border-radius:20px;
transition:.3s;
}

.nav-item.active{
background:#f5c400;
color:#000;
box-shadow:0 0 12px rgba(245,196,0,.6);
}

/* ================= LANGUAGE SWITCH ================= */

.mini-lang{
position:fixed;
top:10px;
right:10px;
display:flex;
gap:6px;
z-index:9999;
background:rgba(0,0,0,.4);
padding:4px;
border-radius:12px;
}

.mini-lang span{
font-size:11px;
padding:4px 10px;
border-radius:10px;
cursor:pointer;
color:#fff;
}

.mini-lang span.active{
background:#f5c400;
color:#000;
font-weight:700;
}

/* ================= DAY SWITCH ================= */

.day-switch-wrapper{
width:100%;
margin:18px auto 14px;
padding:12px;
border-radius:18px;
background:#151a24;
border:1px solid rgba(255,255,255,.08);
box-shadow:0 8px 20px rgba(0,0,0,.4);
text-align:center;
position:relative;
}

.day-switch{
display:flex;
gap:10px;
justify-content:center;
flex-wrap:wrap;
margin-bottom:10px;
}

.day-switch button{
background:#161b26;
border:none;
color:#fff;
padding:8px 22px;
border-radius:18px;
font-weight:700;
cursor:pointer;
}

.day-switch button.active{
background:#f5c400;
color:#000;
}

.day-info{
font-size:12px;
opacity:.7;
}

/* ================= MATCH CARD ================= */

.match-card{
width:92%;
margin:14px auto;
background:#151a24;
border-radius:16px;
padding:18px;
box-shadow:0 8px 17px rgba(0,0,0,.4);
position:relative;
}

/* League */

.match-league{
position:absolute;
top:8px;
right:12px;
font-size:11px;
color:#f5c400;
font-weight:700;
}

/* Row */

.pm-row{
display:grid;
grid-template-columns:1fr 180px 1fr;
align-items:center;
margin-top:12px;
}

/* Team */

.team{
text-align:center;
}

.team img{
width:82px;
height:82px;
object-fit:contain;
background:#0b0e14;
border-radius:50%;
padding:10px;
margin:0 auto 6px;
display:block;
box-shadow:0 0 14px rgba(0,0,0,.7);
}

.team-name{
font-size:16px;
font-weight:800;
letter-spacing:.3px;
color:#fff;
}

/* Middle */

.mid{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:6px;
}

/* Time Badge */

.time-badge{
display:inline-block;
background:linear-gradient(135deg,#f5c400,#ffdd55);
color:#000;
font-weight:800;
font-size:13px;
padding:6px 18px;
border-radius:14px;
box-shadow:0 0 12px rgba(245,196,0,.7);
}

/* Status */

.status-under{
margin-top:6px;
font-size:12px;
font-weight:700;
color:#aaa;
letter-spacing:.3px;
}

.status-under.live{
color:#ff3b3b;
text-shadow:0 0 6px rgba(255,0,0,.5);
}

/* ================= MOBILE ================= */

@media(max-width:480px){

.pm-row{
grid-template-columns:1fr;
gap:14px;
}

.team img{
width:65px;
height:65px;
}

.team-name{
font-size:14px;
}

}

/* ================= NEWS SECTION ================= */

/* ================= FULL SCREEN NEWS ================= */

#news-details{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#0b1220;
z-index:9999;
display:none;
overflow-y:auto;
padding:60px 20px;
}

#news-details.active{
display:block;
}

#news-content{
max-width:900px;
margin:auto;
background:#151a24;
padding:30px;
border-radius:18px;
}

#news-content h2{
margin-bottom:15px;
}

#news-content img{
width:100%;
max-height:400px;
object-fit:cover;
border-radius:12px;
margin:20px 0;
}

#news-content p{
line-height:1.8;
font-size:15px;
}

.close-news{
position:fixed;
top:20px;
right:20px;
width:42px;
height:42px;
background:#ff3b3b;
color:#fff;
border-radius:50%;
text-align:center;
line-height:42px;
font-size:18px;
cursor:pointer;
z-index:10000;
}

/* ===== آخر الأخبار ===== */


/* =========================
   NEWS PRO GRID ULTIMATE
========================= */

.pro-news {
  padding: 40px 30px;
  background: #0b1730;
  border-radius: 20px;
}

.pro-title h2 {
  color: white;
  font-size: 22px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.news-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
}

.news-label{
background:#e11d48;
color:white;
padding:10px 20px;
border-radius:30px;
font-weight:700;
font-size:14px;
box-shadow:0 6px 18px rgba(225,29,72,.4);
}

.pro-title h2::after {
  content: "";
  width: 40%;
  height: 3px;
  background: #f7c600;
  position: absolute;
  bottom: -8px;
  right: 0;
  border-radius: 5px;
}

/* GRID 4 PER ROW */
.pro-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
width:100%;
}

.pro-card{
position:relative;
height:200px;
border-radius:12px;
overflow:hidden;
cursor:pointer;
transition:.3s;
}

.pro-card img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* تثبيت عدد الأخبار في الصف */

@media (max-width:1200px){
.pro-grid{
grid-template-columns:repeat(3,1fr);
}
}

@media (max-width:900px){
.pro-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media (max-width:500px){
.pro-grid{
grid-template-columns:1fr;
}
}

.pro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}

.pro-content {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  color: white;
}

.pro-content h3 {
  font-size: 13px;
  line-height: 1.4;
}




.news-date {
  font-size: 12px;
  opacity: 0.8;
}


.pro-content h3 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* زر */
.read-more {
    display: inline-block;
    padding: 6px 14px;
    background: #facc15;
    color: #000;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

/* Hover احترافي */
.pro-card:hover img {
    transform: scale(1.1);
}

.pro-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

.pro-card:hover {
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.2);
}

.news-section {
  width: 100%;
}

.pro-news {
  width: 100%;
  max-width: 1400px;   /* يخليها واسعة */
  margin: auto;
  padding: 40px;
  background: #0b1730;
  border-radius: 20px;
}


.news-details {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 9999;
}

.news-details.active {
  display: flex;
}

#news-content {
  background: #111;
  color: white;
  max-width: 800px;
  width: 100%;
  padding: 30px;
  border-radius: 15px;
  overflow-y: auto;
  max-height: 90vh;
}

.close-news {
  position: absolute;
  top: 20px;
  left: 30px;
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.news-more-wrapper {
  text-align: center;
  margin-top: 35px;
}

.news-more-btn{
background:#fff;
color:#000;
padding:10px 30px;
border-radius:25px;
border:none;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.news-more-btn:hover{
transform:translateY(-3px);
}

.single-news-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #0b1730;
    color: white;
    border-radius: 15px;
}

.single-news-container h1 {
    margin-bottom: 20px;
}

.single-news-container p {
    line-height: 1.8;
    font-size: 16px;
}


/* صفحة الخبر */
.single-news-page {
  padding: 60px 20px;
  background: #081221;
  min-height: 100vh;
}

.single-news-box {
  max-width: 900px;
  margin: auto;
  background: #0f1c34;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.single-news-box h1 {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.single-news-box img {
  width: 100%;
  border-radius: 15px;
  margin: 25px 0;
}

.single-news-box p {
  line-height: 1.9;
  font-size: 17px;
  color: #ddd;
}

/* زر رجوع */
.back-home {
  display: inline-block;
  margin-top: 30px;
  background: linear-gradient(45deg,#f7c600,#ffd633);
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: 0.3s;
}

.back-home:hover {
  transform: translateY(-3px);
}


/* زر رجوع احترافي */
.back-btn {
  display: inline-block;
  margin-bottom: 25px;
  padding: 8px 18px;
  background: linear-gradient(45deg,#f7c600,#ffd633);
  color: #000;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* تحسين شكل المقال */
.single-news-box {
  max-width: 850px;
  margin: 60px auto;
  padding: 45px;
  background: linear-gradient(180deg,#0f1c34,#0b1730);
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.single-news-box h1 {
  font-size: 30px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.single-news-box p {
  font-size: 18px;
  line-height: 2;
  color: #e0e0e0;
}

.related-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
  margin-top: 20px;
}

.related-card {
  background: #0f1c34;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  border-radius: 10px;
}

.related-card p {
  font-size: 14px;
  margin-top: 8px;
}

.share-buttons {
  margin: 15px 0;
  display: flex;
  gap: 10px;
}

.share-buttons a {
  background: #1e3a8a;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.share-buttons a:hover {
  background: #2563eb;
}

.related-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.related-card {
  background: #111827;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  border-radius: 10px;
}

.related-card p {
  font-size: 14px;
  margin-top: 8px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
}

.standings-table th,
.standings-table td {
  padding: 12px;
  text-align: center;
}

.standings-table thead {
  background: #1e3a8a;
  color: white;
}

.standings-table tbody tr:hover {
  background: #1f2937;
}

.tabs{
  display:flex;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.tab-btn{
  flex:1;
  padding:12px;
  background:none;
  border:none;
  color:white;
  cursor:pointer;
  transition:0.3s;
  font-weight:600;
}

.tab-btn:hover{
  background:rgba(255,255,255,0.1);
}

.tab-btn.active{
  background:rgba(255,255,255,0.15);
  border-bottom:3px solid #ffd600;
}

.tab-content{
  display:none;
  animation:fade 0.4s ease;
}

.tab-content.active{
  display:block;
}

@keyframes fade{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}


.header-card{
  background: linear-gradient(90deg,#1f1f1f,#2a2a2a);
  padding:20px;
  border-radius:15px;
  margin-bottom:20px;
  display:flex;
  flex-direction:column;
  gap:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.league-title{
  font-size:20px;
  font-weight:bold;
}

.share-btn{
  background:#00e676;
  border:none;
  padding:8px 14px;
  border-radius:20px;
  cursor:pointer;
  font-weight:bold;
  transition:0.3s;
}

.share-btn:hover{
  transform:scale(1.05);
}

tr:nth-child(1){
  background:rgba(255,215,0,0.15);
}

tr:nth-child(2){
  background:rgba(192,192,192,0.15);
}

tr:nth-child(3){
  background:rgba(205,127,50,0.15);
}

tr{
  transition:0.2s ease;
}

tr:active{
  transform:scale(0.99);
}

.player-cell{
display:flex;
align-items:center;
gap:10px;
}
.player-img{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
}

.player-cell{
display:flex;
align-items:center;
gap:10px;
}
.player-img{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
}

.gold{
background:linear-gradient(90deg,#fff8dc,#fff);
border-left:5px solid gold;
}
.silver{
background:linear-gradient(90deg,#f2f2f2,#fff);
border-left:5px solid silver;
}
.bronze{
background:linear-gradient(90deg,#fce5cd,#fff);
border-left:5px solid #cd7f32;
}

#stats table tr:hover{
background:#f5f5f5;
transition:0.3s;
}

#stats a{
text-decoration:none;
color:#111;
font-weight:600;
}
#stats a:hover{
color:#d71920;
}


.match-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg,#020617,#020617);
    padding: 15px;
    border-radius: 14px;
    margin: 20px auto;
    max-width: 900px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team img {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.team span {
    font-size: 16px;
    font-weight: bold;
}

.score {
    font-size: 34px;
    font-weight: bold;
    color: #22c55e;
}

.timeline {
    position:relative;
    margin-top:30px;
    padding-left:40px;
}

.timeline:before {
    content:'';
    position:absolute;
    left:15px;
    top:0;
    bottom:0;
    width:3px;
    background:#16a34a;
}

.timeline-item {
    margin-bottom:25px;
    position:relative;
}

.timeline-minute {
    font-weight:bold;
    color:#22c55e;
}

.timeline-content {
    background:rgba(255,255,255,0.05);
    padding:10px 15px;
    border-radius:10px;
    margin-top:5px;
}

.stat-row {
    display:flex;
    align-items:center;
    gap:15px;
}

.bar {
    flex:1;
    height:15px;
    background:#333;
    border-radius:20px;
    overflow:hidden;
}

.bar-home {
    height:100%;
    background:#16a34a;
}

.stat-simple {
    margin-top:20px;
    text-align:center;
}

.video-container {
    max-width: 900px;
    margin: 40px auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.7);
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* طبقة حماية فوق الفيديو */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* منع التحديد والسحب */
body {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* السماح بتشغيل الفيديو فقط */
video, iframe {
    pointer-events: auto;
}

/* ================== PLAYER WRAPPER ================== */

.player-wrapper{
    position:relative;
    max-width:900px;
    margin:50px auto;
}

/* ================== VIDEO CONTAINER ================== */

.video-container{
    position:relative;
    padding-top:56.25%;
    background:#000;
    border-radius:16px;
    overflow:hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* الفيديو والصورة */
.video-container iframe,
.video-container img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ================== BLUR + ZOOM EFFECT ================== */

.video-thumbnail img{
    filter: blur(10px) brightness(0.7);
    transform: scale(1.05);
    transition: all 0.4s ease;
}

.video-thumbnail:hover img{
    filter: blur(4px) brightness(0.85);
    transform: scale(1.08);
}

/* ================== PLAY BUTTON ================== */

.play-button{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgba(0,0,0,0.7);
    width:100px;
    height:100px;
    border-radius:50%;
    font-size:42px;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:0.3s ease;
    animation:pulse 1.8s infinite;
}

.play-button:hover{
    background:rgba(255,0,0,0.8);
    transform:translate(-50%,-50%) scale(1.1);
}

/* تأثير نبض */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.6); }
    70% { box-shadow: 0 0 0 25px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* ================== WATERMARK ================== */

.watermark{
    position:absolute;
    top:15px;
    right:20px;
    font-weight:bold;
    font-size:18px;
    color:white;
    background:rgba(0,0,0,0.5);
    padding:6px 12px;
    border-radius:8px;
    backdrop-filter: blur(5px);
    z-index:10;
    pointer-events:none;
}

/* ================== VIEWS ================== */

.views{
    margin-top:15px;
    color:#aaa;
    font-size:14px;
    text-align:center;
}

/* ================== PROTECTION LAYER ================== */

.video-protection-layer{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9;
    pointer-events:none;
}
.loader{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#000;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:20;
}

.spinner{
    width:60px;
    height:60px;
    border:6px solid #333;
    border-top:6px solid red;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to { transform:rotate(360deg); }
}

.fullscreen-btn{
    position:absolute;
    bottom:15px;
    right:15px;
    background:rgba(0,0,0,0.7);
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:6px;
    cursor:pointer;
    z-index:15;
}

.custom-controls{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    background:linear-gradient(to top,rgba(0,0,0,0.8),transparent);
    padding:15px;
    display:flex;
    align-items:center;
    gap:15px;
}

.custom-controls button{
    background:none;
    border:none;
    color:white;
    font-size:20px;
    cursor:pointer;
}

#progress{
    flex:1;
}



/* ================= NEWS GRID ================= */

.news-wrapper{
max-width:1400px;
margin:auto;
padding:40px 20px;
}

.news-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
}

.news-badge{
background:#e11d48;
color:#fff;
padding:10px 20px;
border-radius:30px;
font-weight:700;
}

.all-news-btn{
background:#fff;
color:#000;
padding:10px 25px;
border-radius:25px;
text-decoration:none;
font-weight:700;
}

/* الشبكة */

.news-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

/* الكارد */

.news-card{
position:relative;
height:200px;
border-radius:14px;
overflow:hidden;
cursor:pointer;
transition:.3s;
}

.news-card img{
width:100%;
height:100%;
object-fit:cover;
}

.news-overlay{
position:absolute;
bottom:0;
left:0;
right:0;
padding:12px;
background:linear-gradient(to top,rgba(0,0,0,0.8),transparent);
color:white;
}

.news-overlay h3{
font-size:14px;
margin-bottom:5px;
}

.news-date{
font-size:12px;
opacity:.8;
}

.news-card:hover{
transform:translateY(-5px);
}

/* ===== NEWS ===== */

.newsSection{
margin-top:40px;
padding:10px;
}

.newsGrid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.news-card{
background:#0f172a;
border-radius:12px;
overflow:hidden;
position:relative;
height:180px;
}

.news-card img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

.news-title{
position:absolute;
bottom:0;
left:0;
right:0;
padding:10px;
font-size:14px;
color:#fff;
background:linear-gradient(transparent,rgba(0,0,0,0.9));
}