/* =========================================================
   FUTBOL AGENDA
   ========================================================= */

/* صرف اپنے کنٹینر کو اسٹائل کریں، تھیم کو مت توڑیں */
.agenda-container { 
  max-width: 900px; 
  margin: 20px auto; 
  background: #111; 
  border-radius: 12px; 
  overflow: hidden; 
}

/* =========================================================
   AGENDA HEADER
   ========================================================= */

.agenda-header { 
  padding: 12px; 
  text-align: center; 
  font-weight: bold; 
  background: #D80000; 
  color: #fff; 
}

/* =========================================================
   MENU
   ========================================================= */

ul#menu { 
  list-style: none; 
  margin: 0; 
  padding: 15px; 
  background: #111; 
}

ul#menu li {
  list-style: none;
}

/* =========================================================
   MATCH BOX
   ========================================================= */

li.toggle-submenu { 
  background: #111; 
  border: 3px solid #222; 
  border-radius: 12px; 
  margin-bottom: 12px; 
  overflow: hidden; 
}

/* =========================================================
   MATCH INFO
   ========================================================= */

.match-info { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 12px; 
  cursor: pointer; 
}

.match-left { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

/* =========================================================
   TIME
   RED TEXT ONLY - NO RED BACKGROUND
   ========================================================= */

.agenda-container ul#menu li.toggle-submenu .match-info .match-left .match-time {
  display: inline !important;
  position: static !important;

  color: #D80000 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: none !important;
  border-width: 0 !important;
  border-style: none !important;

  border-radius: 0 !important;

  box-shadow: none !important;
  outline: none !important;

  padding: 0 !important;
  margin: 0 !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* اگر کسی theme/plugin pseudo-element لگا رہا ہو */
.agenda-container .match-time::before,
.agenda-container .match-time::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* =========================================================
   FLAG / COUNTRY IMAGE
   ========================================================= */

.flag { 
  width: 20px; 
  height: 20px; 
  border-radius: 4px; 
  object-fit: cover; 
  display: block;
}

/* =========================================================
   MATCH TITLE
   ========================================================= */

.match { 
  font-weight: 600; 
  color: #fff;
}

/* =========================================================
   SUBMENU
   ========================================================= */

.submenu-list { 
  display: none; 
  padding: 10px 20px; 
  margin: 0 !important;
  border-top: 2px solid #222; 
  background: #111;
}

.submenu-item { 
  display: block; 
  padding: 8px 0; 
  color: #dd0303; 
  text-decoration: none; 
  font-weight: 600; 
  cursor: pointer;
}

.submenu-item:hover {
  color: #ff3333;
  text-decoration: none;
}

.submenu-item i { 
  margin-right: 8px; 
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  flex-direction: column;
  z-index: 999999;
}

/* =========================================================
   MODAL HEADER
   ========================================================= */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #D80000;
  padding: 10px 15px;
  font-weight: bold;
  color: #fff;
  z-index: 10;
}

/* =========================================================
   IFRAME
   ========================================================= */

.iframe-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.modal-iframe {
  position: absolute;
  top: -65px;
  left: 0;
  width: 100%;
  height: calc(100% + 120px);
  border: none;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-btn {
  background: #ff0000;
  border: none;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
}

.close-btn:hover {
  background: #cc0000;
}

/* =========================================================
   BODY WHEN MODAL IS OPEN
   ========================================================= */

body.modal-open {
  overflow: hidden !important;
  height: 100vh;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .agenda-container {
    width: 100%;
    max-width: 100%;
    margin: 15px auto;
    border-radius: 10px;
  }

  ul#menu {
    padding: 10px;
  }

  li.toggle-submenu {
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .match-info {
    padding: 10px;
  }

  .match-left {
    gap: 8px;
  }

  .match-time {
    font-size: 14px !important;
  }

  .flag {
    width: 20px;
    height: 20px;
  }

  .match {
    font-size: 14px;
  }
}