:root {
  /* Color Variables */
  --primary-bg: #1E262A;
  --nav-bg: #27313b;
  --card-bg: #000;
  --border-color: #d2d2d2;
  --footer-border: #a940a2;
  --link-color: #3be6e8;
  --text-light: #fff;
  --text-gray: #505050;

  /* Spacing Variables */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 5px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
}

/* Base Styles */
body {
  max-width: 780px;
  background: var(--primary-bg);
  padding: 0;
  margin: 0 auto;
  min-height: 100vh;
  font-family: "Droid Arabic Kufi", Georgia, sans-serif;
  color: var(--text-light);
}
/*---------------------ADS-----------------------*/
.ads {
    display: block;
    width: 100%;
    min-height: 250px;
    background: #000; /* المساحة السوداء التي ظهرت في صورتك */
    text-align: center;
    position: relative;
    z-index: 10; /* لضمان ظهور الإعلان فوق أي طبقات خلفية */
    overflow: visible; /* غيرها من hidden إلى visible لضمان عدم قص الإعلان */
}
/*---------------------video-----------------------*/
/* الحاوية الخارجية للمشغل */
.player-container {
    max-width: 100%;
    margin: var(--space-md) auto;
    background: #291f1f;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 5px;
}

/* عنوان القناة فوق المشغل */
.player-header {
    background: #333;
    color: var(--text-light);
    padding: 10px 15px;
    font-size: 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* حاوية الفيديو الذكية (Responsive 16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* تضمن أبعاد 16:9 تلقائياً */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* التحكم والحالة أسفل المشغل */
.player-controls {
    padding: 10px;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.status {
    font-size: 14px;
    color: #aaa; /* جعل اللون أفتح ليناسب الخلفية المظلمة */
}

/* تنسيق الأزرار */
.player-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: background var(--transition-fast);
}

.player-btn:hover {
    background: #45a049;
}

.video {
    background: #000;
    text-align: center;
    margin: 1px;
    height: 315px !important;
    padding: 3px;
    border-width: 0px;
	}
	
	/* صورة المشغل */
.prodoctur {
    background: #000;
    text-align: center;
    margin: 1px;
    padding: 3px;
    border-width: 0px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.prodoctur img {
    background: #000;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.prodoctur a {
    text-decoration: none;
    display: block;
}

/* حاوية أيقونة التشغيل الوسطى صورة المشغل*/
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.play-icon-overlay svg {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

/*  سأثير عند تمرير الماوس صورة المشغل */
.prodoctur:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.prodoctur:hover img {
    opacity: 0.8;
}
/*---------------------divTable-----------------------*/
    header {
        color: #505050;   
    }
     nav{
        background-color: #27313b;
     }
	      nav a {
    display: inline-block;
    padding: 8px;
  
    }
    nav a:first-child {
        background-color: #27313b;
    }
    nav a+a {
        float: right;
    }

/* Grid Layouts */
.grid-container {
  background: var(--card-bg);
  margin: var(--space-xs) 0;
  padding: var(--space-md);
  text-align: center;
}

/* Channel Grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.channel-grid img {
  width: 100%;
  max-width: 85%;
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  transition: transform var(--transition-fast);
}

.channel-grid img:hover {
  transform: scale(1.05);
}

/* Social Section */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.social-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--transition-normal);
}

.social-card:hover {
  transform: scale(1.05);
}

/* Content Sections */
.content-section {
  background: var(--card-bg);
  margin: var(--space-xs) 0;
  padding: var(--space-md);
  text-align: center;
  line-height: 1.6;
}

/* Footer */
.footer {
  border: 2px solid var(--footer-border);
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background-color: var(--card-bg);
  margin-top: var(--space-lg);
  font-size: 0.8rem;
}

.footer a {
  color: var(--link-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  
  nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  
  .content-section {
    padding: var(--space-sm);
    font-size: 0.9rem;
  }
}

.share-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.share-title {
  font-size: 1.2rem;
  color: var(--text-light); /* أو لون مناسب */
  margin-bottom: 10px;
  text-align: center;
}

.social-section {
  display: flex;
  justify-content: center;   /* الوسط أفقيًا */
  align-items: center;       /* الوسط عموديًا */
  min-height: 200px;         /* أو أي ارتفاع مناسب */
}


.social-buttons {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.social-btn {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #eee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn img {
  width: 32px;
  height: 32px;
}