: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: 1024px;
  background: var(--primary-bg);
  padding: 0;
  margin: 0 auto;
  min-height: 100vh;
  font-family: "Droid Arabic Kufi", Georgia, sans-serif;
  color: var(--text-light);
}

/*---------------------video-----------------------*/
.player-container {
    max-width: 100%;
    margin: 0 auto;
    background: #291f1f;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
	padding: 5px
    }
.player-header {
    background: #333;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    }
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    }
.player-controls {
    padding: 10px;
    background: #f0f0f0;
    justify-content: space-between;
    align-items: center;
	width: 100%;
  height: 315px; /* أو أي ارتفاع مناسب */
}
       
.status {
font-size: 14px;
color: #666;
}
button {
padding: 5px 10px;
background: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background: #45a049;
}

.video {
    background: #000;
    text-align: center;
    margin: 1px;
    height: 247px !important;
    padding: 3px;
    border-width: 0px;
	}
/*---------------------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(120px, 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;
}
