
.ysmpj, .ysmpj *{box-sizing:border-box;font-family:"Cairo",Tahoma,Arial!important}
.ysmpj{direction:rtl;color:#fff}
.ysmpj-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:0 0 12px}
.ysmpj-tab{background:#0c1322;border:1px solid rgba(255,255,255,.08);color:#fff;padding:10px 14px;border-radius:14px;cursor:pointer;font-weight:900;transition:.2s}
.ysmpj-tab:hover{transform:translateY(-1px);border-color:rgba(25,224,194,.35)}
.ysmpj-tab.is-active{background:linear-gradient(180deg,#19e0c2,#0fb9a2);color:#041015;border-color:transparent}
.ysmpj-panel{background:#0b0f17;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden}
.ysmpj-top{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#0f172a,#0b0f17)}
.ysmpj-title{font-size:18px;font-weight:900}
.ysmpj-date{font-size:13px;opacity:.85}
.ysmpj-body{max-height:700px;overflow-y:auto;overflow-x:hidden;padding:12px;position:relative}
.ysmpj-loading,.ysmpj-empty{padding:18px;text-align:center;opacity:.9}

.ysmpj-champ{border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;margin:0 0 14px;background:#0b0f17}
.ysmpj-champ-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#0c1322;border-bottom:1px solid rgba(255,255,255,.08)}
.ysmpj-champ-left{display:flex;align-items:center;gap:10px}
.ysmpj-champ-logo{width:28px;height:28px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.12)}
.ysmpj-champ-title{font-weight:900;font-size:15px}
.ysmpj-champ-count{min-width:34px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#0b0f17;border:1px solid rgba(255,255,255,.12);font-weight:900;font-size:13px}

.ysmpj-table{display:flex;flex-direction:column;gap:10px;padding:12px}
.ysmpj-row{display:grid;grid-template-columns:1fr 160px 1fr 110px;gap:10px;align-items:center;padding:12px 12px;border-radius:16px;background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08);text-decoration:none;color:#fff!important}
.ysmpj-row:hover{border-color:rgba(25,224,194,.35);transform:translateY(-1px)}
.ysmpj-row:visited{color:#fff!important}
.ysmpj-team{display:flex;align-items:center;gap:10px;min-width:0}
.ysmpj-team span{font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff!important}
.ysmpj-team img{width:30px;height:30px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.12)}
.ysmpj-away{justify-content:flex-end}

.ysmpj-mid{display:flex;flex-direction:column;align-items:center;gap:6px}
.ysmpj-mid-top{display:flex;align-items:center;justify-content:center;gap:8px}
.ysmpj-time{padding:6px 14px;border-radius:999px;background:#0c1322;border:1px solid rgba(255,255,255,.12);font-weight:900;font-size:13px;color:#fff!important}
.ysmpj-score{font-weight:900;font-size:18px;color:#fff!important}

.ysmpj-status{font-weight:900;font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12)}
.ysmpj-status.live{background:rgba(25,224,194,.12);border-color:rgba(25,224,194,.35);color:#19e0c2}
.ysmpj-status.break{background:rgba(255,193,7,.10);border-color:rgba(255,193,7,.35);color:#ffc107}
.ysmpj-status.end{background:rgba(255,255,255,.08);color:#dfe7ff}
.ysmpj-status.upcoming{background:rgba(255,255,255,.06);color:#dfe7ff;opacity:.9}
.ysmpj-status.postponed{background:rgba(255,152,0,.10);border-color:rgba(255,152,0,.35);color:#ff9800}
.ysmpj-status.canceled{background:rgba(244,67,54,.10);border-color:rgba(244,67,54,.35);color:#f44336}
.ysmpj-min{margin-right:6px}

@media(max-width:520px){
  .ysmpj-row{grid-template-columns:1fr}
  .ysmpj-mid{align-items:flex-start}
  .ysmpj-away{justify-content:flex-start}
}

.ysmpj-actions{display:flex;justify-content:flex-end}
.ysmpj-watch{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:12px;
  background:rgba(25,224,194,.14);border:1px solid rgba(25,224,194,.35);color:#19e0c2!important;
  font-weight:900;font-size:12px;text-decoration:none;min-width:90px}
.ysmpj-watch:hover{filter:brightness(1.1)}
.ysmpj-watch-off{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10);color:#dfe7ff!important;opacity:.7}

.ysmpj-row{cursor:pointer}
.ysmpj-row .ysmpj-watch{cursor:pointer}
/* Details accordion inside same shortcode */
.ysmpj-details-host{margin-top:10px}
.ysmpj-details{border:1px solid rgba(255,255,255,.08);border-radius:18px;background:#0b0f17;overflow:hidden}
.ysmpj-details-card{}
.ysmpj-details-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#0c1322;border-bottom:1px solid rgba(255,255,255,.08)}
.ysmpj-details-champ{display:flex;align-items:center;gap:10px;font-weight:900}
.ysmpj-details-champ img{width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.12);object-fit:cover}
.ysmpj-details-close{background:transparent;border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:12px;width:34px;height:34px;font-size:18px;line-height:1;cursor:pointer}
.ysmpj-details-hero{display:grid;grid-template-columns:1fr 200px 1fr;gap:10px;padding:14px}
.ysmpj-details-team{display:flex;align-items:center;gap:10px;min-width:0}
.ysmpj-details-team.right{justify-content:flex-end}
.ysmpj-details-team img{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.12);object-fit:cover}
.ysmpj-details-team .name{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ysmpj-details-mid{display:flex;flex-direction:column;align-items:center;gap:8px}
.ysmpj-details-mid .score{font-weight:900;font-size:24px}
.ysmpj-details-mid .meta{display:flex;gap:10px;align-items:center}
.ysmpj-details-mid .time{padding:6px 12px;border-radius:999px;background:#0c1322;border:1px solid rgba(255,255,255,.12);font-weight:900;font-size:12px}
.ysmpj-details-mid .badge{padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-weight:900;font-size:12px}
.ysmpj-details-mid .badge.live{background:rgba(25,224,194,.12);border-color:rgba(25,224,194,.35);color:#19e0c2}
.ysmpj-details-mid .badge.break{background:rgba(255,193,7,.10);border-color:rgba(255,193,7,.35);color:#ffc107}
.ysmpj-details-mid .badge.end{background:rgba(255,255,255,.08);color:#dfe7ff}
.ysmpj-details-mid .badge.upcoming{background:rgba(255,255,255,.06);color:#dfe7ff;opacity:.9}
.ysmpj-details-mid .badge.postponed{background:rgba(255,152,0,.10);border-color:rgba(255,152,0,.35);color:#ff9800}
.ysmpj-details-mid .badge.canceled{background:rgba(244,67,54,.10);border-color:rgba(244,67,54,.35);color:#f44336}
.ysmpj-details-mid .min{margin-right:6px}

/* Tabs from match-details.php inspired */
.nav-tabs{display:flex;justify-content:flex-start;gap:10px;background:#0b0f17;padding:10px;margin:0 14px 14px;border-radius:15px;
  box-shadow:0 5px 15px rgba(0,0,0,0.3);border:1px solid rgba(255,255,255,.08);overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.nav-tabs::-webkit-scrollbar{display:none}
.tab-item{flex:0 0 auto;text-align:center;padding:8px 15px;font-size:12px;font-weight:900;color:rgba(255,255,255,.7);
  border-radius:10px;cursor:pointer;transition:.2s}
.tab-item.active{background:#0c1322;color:#fff}

.ysmpj-tabpanels{padding:0 14px 14px}
.ysmpj-tabpanel{display:none}
.ysmpj-tabpanel.active{display:block}

.ysmpj-events{display:flex;flex-direction:column;gap:8px}
.ysmpj-event{display:grid;grid-template-columns:60px 30px 1fr;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08)}
.ysmpj-event .min{font-weight:900;opacity:.9}
.ysmpj-event .txt .p{font-weight:900}
.ysmpj-event .txt .a{opacity:.75;font-size:12px}
.ysmpj-event .e{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}

.ysmpj-stats{display:flex;flex-direction:column;gap:8px}
.ysmpj-stat-row{display:grid;grid-template-columns:70px 1fr 70px;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08)}
.ysmpj-stat-row .v{font-weight:900;text-align:center}
.ysmpj-stat-row .n{font-weight:900;opacity:.9;text-align:center}

.ysmpj-lineup{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ysmpj-lineup-team{border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;background:#0b0f17}
.ysmpj-lineup-title{padding:10px 12px;background:#0c1322;border-bottom:1px solid rgba(255,255,255,.08);font-weight:900}
.ysmpj-lineup-sec{padding:10px 12px}
.ysmpj-lineup-sec-h{font-weight:900;margin-bottom:8px;opacity:.9}
.ysmpj-player{display:grid;grid-template-columns:44px 1fr 70px;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;
  background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08);margin-bottom:8px}
.ysmpj-player .n{font-weight:900;opacity:.9;text-align:center}
.ysmpj-player .name{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ysmpj-player .pos{opacity:.75;font-size:12px;text-align:left}

.ysmpj-info-grid{display:flex;flex-direction:column;gap:8px}
.ysmpj-info-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08)}
.ysmpj-empty-mini{padding:14px;text-align:center;opacity:.85}

@media(max-width:740px){ .ysmpj-details-hero{grid-template-columns:1fr} .ysmpj-lineup{grid-template-columns:1fr} }

/* Details overlay inside shortcode */
.ysmpj-overlay{position:absolute;inset:0;z-index:50;background:#0b0f17;padding:12px;overflow:auto;border-radius:16px}
.ysmpj-overlay .ysmpj-details{margin:0}
/* Events layout (pixel-like) */
.ysmpj-events2{display:flex;flex-direction:column;gap:10px}
.ys-event-row{display:grid;grid-template-columns:1fr 70px 1fr;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08)}
.ys-col-time{font-weight:900;text-align:center;opacity:.95}
.ys-col-home,.ys-col-away{min-width:0}
.event-content{display:flex;align-items:center;gap:10px;max-width:100%}
.event-content.home{flex-direction:row}
.event-content.away{flex-direction:row-reverse}
.ev-icon{width:18px;display:flex;justify-content:center;align-items:center;flex-shrink:0}
.event-info{display:flex;flex-direction:column;justify-content:center;min-width:0}
.ev-title{font-size:12px;font-weight:900;color:#fff;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-sub{font-size:10px;color:rgba(255,255,255,.65);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Better mobile table */
@media(max-width:760px){
  .ysmpj-row{grid-template-columns:1fr;gap:8px}
  .ysmpj-actions{justify-content:flex-start}
  .ysmpj-mid{align-items:flex-start}
  .ysmpj-team{justify-content:flex-start}
  .ysmpj-away{justify-content:flex-start}
  .ysmpj-time{width:fit-content}
}

/* Stats bars pixel-like */
.ysmpj-stats-bars{display:flex;flex-direction:column;gap:12px}
.ys-stat{padding:10px 12px;border-radius:14px;background:linear-gradient(180deg,#0f172a,#0b0f17);border:1px solid rgba(255,255,255,.08)}
.ys-stat-head{display:grid;grid-template-columns:70px 1fr 70px;gap:10px;align-items:center;margin-bottom:8px}
.ys-stat-head .v{font-weight:900;text-align:center}
.ys-stat-head .n{font-weight:900;text-align:center;opacity:.9}
.ys-stat-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10)}
.ys-stat-bar .home{background:rgba(25,224,194,.9)}
.ys-stat-bar .away{background:rgba(86,125,255,.9)}
/* Mobile keep PC layout but scale down */
@media(max-width:600px){
  .ysmpj{transform:scale(.92);transform-origin:top center}
}
