/* League Table Varzesh3 5.2.0 - fully scoped */
.ltv5-wrap{width:100%;max-width:100%;box-sizing:border-box;direction:rtl;font-family:inherit;font-size:14px;line-height:1.7;overflow:hidden}
.ltv5-wrap *{box-sizing:border-box}
.ltv5-tabs{display:flex;align-items:stretch;gap:0;border-bottom:1px solid #e5e7eb;margin:0 0 18px;padding:0}
.ltv5-tab{appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;color:#555;padding:10px 24px;cursor:pointer;font:inherit;font-size:15px;line-height:1.5;border-radius:0;margin:0}
.ltv5-tab.active{color:#d91e2b;border-bottom-color:#d91e2b;background:transparent}
.ltv5-panel{display:none;width:100%;min-width:0}
.ltv5-panel.active{display:block}

/* League table */
.ltv5-table-scroll{width:100%;overflow:visible}
.ltv5-table{width:100%!important;max-width:100%!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;margin:0!important}
.ltv5-table th,.ltv5-table td{padding:9px 5px!important;border-bottom:1px solid #eceff1!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap!important;font-size:14px!important;line-height:1.5!important}
.ltv5-table th{font-weight:700!important;color:#59636b!important;background:transparent!important}
.ltv5-table tbody tr:nth-child(even){background:#f5f6f7!important}
.ltv5-table tbody tr:hover{background:#eef1f3!important}
.ltv5-team{width:28%;text-align:right!important}
.ltv5-team-inner{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;direction:rtl!important;text-align:right!important}
.ltv5-wrap img.ltv5-logo{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;object-fit:contain!important;display:inline-block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;vertical-align:middle!important}
.ltv5-wrap img.ltv5-game-logo{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important;object-fit:contain!important;display:inline-block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;vertical-align:middle!important}

/* Matches - Varzesh3-like layout, without the event/player button */
.ltv5-games-heading{margin:0 0 14px;padding:0 2px;text-align:right}
.ltv5-games-heading h2{margin:0 0 8px;font-size:18px;line-height:1.6;font-weight:700;color:#171717}
.ltv5-games-heading p{margin:0;color:#71818a;font-size:14px;line-height:1.9}
.ltv5-game-header{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:46px;background:#f4f5f6;border-bottom:1px solid #eceff1;padding:0 10px;color:#66737b;font-size:13px;direction:rtl}
.ltv5-game-header strong{justify-self:start;color:#222;font-size:14px}
.ltv5-game-header span{justify-self:end;color:#68727a}
.ltv5-game-row{display:grid;grid-template-columns:76px minmax(260px,1fr) 78px minmax(260px,1fr);align-items:center;min-height:54px;border-bottom:1px solid #eceff1;direction:rtl;background:#fff}
.ltv5-game-time{text-align:right;padding:0 8px;font-size:14px;white-space:nowrap;direction:ltr;color:#222}
.ltv5-game-team{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;line-height:1.5;white-space:nowrap;color:#222}
.ltv5-game-team span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.ltv5-home{flex-direction:row;direction:rtl; justify-content: left;}
.ltv5-away{flex-direction:row;direction:ltr; justify-content: right;}
.ltv5-game-score{text-align:center;font-weight:700;font-size:15px;white-space:nowrap;direction:rtl;color:#222}
.ltv5-empty{padding:20px;text-align:center;color:#777}

/* Stats */
.ltv5-stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ltv5-stats-grid>div{border:1px solid #eee;border-radius:8px;padding:16px 8px;text-align:center;min-width:0}
.ltv5-stats-grid strong,.ltv5-stats-grid span{display:block}
.ltv5-stats-grid strong{font-size:22px;margin-bottom:4px}
.ltv5-stats-grid span{font-size:12px}
.ltv5-updated{margin-top:14px;font-size:12px;color:#777}

@media(max-width:700px){
 .ltv5-wrap{font-size:12px}
 .ltv5-tabs{margin-bottom:12px}
 .ltv5-tab{padding:8px 12px;font-size:13px}

 /* همان جدول دسکتاپ؛ هیچ ستونی در موبایل مخفی نمی‌شود */
 .ltv5-table-scroll{width:100%;overflow:hidden}
 .ltv5-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
 .ltv5-table th,.ltv5-table td{padding:6px 1px!important;font-size:10.5px!important;line-height:1.35!important;white-space:normal!important;overflow:hidden!important}
 .ltv5-table th:nth-child(1),.ltv5-table td:nth-child(1){width:5%!important}
 .ltv5-table th:nth-child(2),.ltv5-table td:nth-child(2){width:31%!important}
 .ltv5-table th:nth-child(3),.ltv5-table td:nth-child(3),
 .ltv5-table th:nth-child(4),.ltv5-table td:nth-child(4),
 .ltv5-table th:nth-child(5),.ltv5-table td:nth-child(5),
 .ltv5-table th:nth-child(6),.ltv5-table td:nth-child(6),
 .ltv5-table th:nth-child(7),.ltv5-table td:nth-child(7),
 .ltv5-table th:nth-child(8),.ltv5-table td:nth-child(8),
 .ltv5-table th:nth-child(9),.ltv5-table td:nth-child(9){width:9.14%!important}
 .ltv5-team{width:31%!important}
 .ltv5-team-inner{gap:4px!important;min-width:0!important}
 .ltv5-team-inner>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:normal}
 .ltv5-wrap img.ltv5-logo{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;min-height:21px!important;max-height:21px!important;flex:0 0 21px}

 .ltv5-games-heading{margin-bottom:10px}
 .ltv5-games-heading h2{font-size:16px;margin-bottom:5px}
 .ltv5-games-heading p{font-size:11px;line-height:1.8}
 .ltv5-game-header{min-height:40px;padding:0 7px;font-size:11px}
 .ltv5-game-header strong{font-size:12px}
 .ltv5-game-row{grid-template-columns:52px minmax(120px,1fr) 44px minmax(120px,1fr);min-height:48px}
 .ltv5-game-time{font-size:11px;padding:0 4px}
 .ltv5-game-team{font-size:11px;gap:4px}
 .ltv5-game-score{font-size:12px}
 .ltv5-wrap img.ltv5-game-logo{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;min-height:22px!important;max-height:22px!important}
 .ltv5-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ===== وضعیت زنده (Live) ===== */

/* نقطه چشمک‌زن */
.ltv5-live-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    margin-left: 4px;
    animation: ltv5-pulse 1.2s infinite;
    vertical-align: middle;
}
@keyframes ltv5-pulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.5; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.ltv5-live-minute {
    font-weight: bold;
    color: #e74c3c;
    font-size: 0.95rem;
    direction: ltr;
    display: inline-block;
    vertical-align: middle;
}

.ltv5-game-row.is-live {
    background: #fff5f5 !important;
    border-left: 3px solid #e74c3c;
    border-right: 3px solid #e74c3c;
    transition: background 0.2s;
}
.ltv5-game-row.is-live .ltv5-game-score {
    color: #e74c3c;
    font-weight: 800;
}

.ltv5-game-time .ltv5-live-dot,
.ltv5-game-time .ltv5-live-minute {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

@media (max-width: 600px) {
    .ltv5-live-dot {
        width: 8px;
        height: 8px;
    }
    .ltv5-live-minute {
        font-size: 0.8rem;
    }
}
.ltv5-week-header {
    background: #1e293b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 18px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
.ltv5-date-subdivider {
background: #f5f7f8;
    color: #0a131c;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 2px 0 2px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-weight: bold;
    direction: ltr;
}


