/* ============================================
   ============================================
   התאמה לנייד - 360px
   ============================================
   ============================================ */

/* תפריט עליון */
.top-menu {
    height: 35px;
    max-height: 35px;
}
.menu-section {
    padding: 0 3px;
    font-size: 12px;
}
.menu-btn {
    font-size: 12px;
    padding: 0 5px;
}
.support-btn {
    font-size: 9px;
    padding: 0 4px;
    gap: 3px;
}
.support-btn svg {
    width: 10px;
    height: 10px;
}
/* חלק הרשמה והתחברות */
.auth-section {
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
}
.logo-container {
    margin-left: 2px;
}
.auth-buttons {
    padding: 0;
}
.auth-btn {
    font-size: 9px;
    padding: 0 6px;
    gap: 4px;
}
.auth-btn svg {
    width: 12px;
    height: 12px;
}
/* שדה חיפוש */
.search-section {
    padding: 10px;
}
.search-container {
    max-width: 600px;
}
.search-input {
    font-size: 11px;
    padding: 7px 8px 7px 30px;
    text-align: right;
}
.search-icon {
    width: 14px;
    height: 14px;
    left: 8px;
}
/* תפריט ספורט */
.sports-menu-wrapper {
    padding: 0px 0 10px 0;
    overflow: visible;
}
.sports-menu {
    gap: 10px;
    padding: 4px 0 10px 0;
    align-items: flex-start;
    justify-content: flex-start;
}
.sport-item {
    min-width: 55px;
    gap: 4px;
    padding: 5px 0 8px 0;
    overflow: visible;
}
.sport-item::after {
    bottom: 2px;
    height: 2.5px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.6);
    z-index: 100;
}
.sport-icon {
    width: 26px;
    height: 26px;
}
.sport-name {
    font-size: 11px;
}
.content-wrapper {
    padding: 10px;
}
.content-container {
    gap: 10px;
}
.page-title {
    font-size: 18px;
}
.tab-btn {
    font-size: 10px;
    padding: 7px 10px;
    gap: 4px;
    margin-bottom: -2px;
}
.tab-icon {
    width: 12px;
    height: 12px;
}
.tab-btn.active {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
    z-index: 2;
    position: relative;
    margin-bottom: -2px;
    overflow: visible;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--yellow);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}
.tabs-container {
    gap: 3px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
    contain: layout style;
}
.tabs-container::-webkit-scrollbar {
    display: none;
}
/* קונטיינר למשחקים ולליגות - 360px */
.matches-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    box-sizing: border-box;
}

/* מלבני ליגות - 360px */
.leagues-wrapper {
    margin-bottom: 8px;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.leagues-container {
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    direction: rtl;
    width: 100%;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
}
.leagues-container::-webkit-scrollbar {
    display: none;
}
.league-scroll-btn {
    display: none !important; /* תמיד מוסתר בנייד */
}
/* עדכון רוחב ליגות לנייד - 4 ליגות */
.league-box {
    width: calc((100% - 15px) / 4); /* 4 ליגות, פחות gap (5px * 3) */
    min-width: calc((100% - 15px) / 4);
    max-width: calc((100% - 15px) / 4);
    padding: 5px;
    flex: 0 0 auto;
    flex-shrink: 0;
    border-radius: 0 !important; /* ללא עיגול פינות */
    box-sizing: border-box;
}
.league-box-content {
    gap: 3px;
}
.league-header {
    gap: 4px;
}
.league-name {
    font-size: 7px;
    line-height: 1.1;
}
.league-season {
    font-size: 5px;
    line-height: 1.1;
}
.league-stats {
    gap: 3px;
    padding-top: 2px;
}
.stat-label {
    font-size: 4px;
    line-height: 1.1;
}
.stat-value {
    font-size: 7px;
    line-height: 1.1;
}
.league-icon {
    width: 14px;
    height: 14px;
}
.league-name-wrapper {
    gap: 1px;
}
.league-stat {
    gap: 1px;
}
/* הטופס שלי - 360px */
.form-and-table-wrapper {
    flex-direction: column;
    gap: 10px;
}
.my-form-container {
    flex: 1;
    width: 100%;
    border-radius: 5px;
}
.my-form-header {
    padding: 6px 8px;
    border-radius: 5px 5px 0 0;
}
.my-form-title {
    font-size: 8px;
}
.empty-live-matches,
.empty-tab-message {
    padding: 25px 10px;
    min-height: 100px;
}
.empty-live-matches-icon,
.empty-tab-message-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}
.empty-live-matches-title,
.empty-tab-message-title {
    font-size: 12px;
    margin-bottom: 5px;
}
.empty-live-matches-message,
.empty-tab-message-text {
    font-size: 10px;
}
.my-form-content {
    padding: 10px;
    gap: 8px;
}
.guest-greeting {
    font-size: 11px;
}
.empty-form-message {
    font-size: 10px;
    padding: 0 5px;
}
.my-form-container .auth-buttons {
    height: 30px;
}
.my-form-container .auth-btn {
    font-size: 9px;
    padding: 0 10px;
    gap: 4px;
}
.my-form-container .auth-btn svg {
    width: 12px;
    height: 12px;
}
.guest-greeting {
    font-size: 14px;
}
.my-form-container .auth-btn {
    padding: 8px 12px;
    font-size: 12px;
}
/* טבלת הימורים - 360px */
.bets-table-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
}
.bets-table-container::before {
    top: -12px; /* 10px gap + 2px כדי ליישר עם הפס הצהוב */
}
.date-group {
    gap: 10px;
    margin-bottom: 10px;
}
.date-group:last-child {
    margin-bottom: 0;
}
.date-header {
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px 5px 0 0;
}
.date-header-title {
    font-size: 12px;
}
.bets-table {
    border-radius: 5px;
    table-layout: fixed;
    width: 100%;
    font-size: 10px;
}
.bets-table th {
    font-size: 8px;
    padding: 3px 2px;
    box-sizing: border-box;
    overflow: hidden;
}
.date-badge {
    border-radius: 0;
    width: 25px;
    background: linear-gradient(315deg, var(--green-dark) 0%, var(--green-light) 50%, var(--green-dark) 100%);
    border-left: 2px solid var(--green-light);
}
.date-badge::before {
    border-radius: 0;
}
.date-title {
    font-size: 9px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    padding: 6px 2px;
    opacity: 0.8;
}
/* עמודת LIVE */
.bets-table th:nth-child(1),
.bets-table th.live-header {
    width: 30px;
    padding: 3px 2px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.15) 100%);
    color: #ff4444;
    font-weight: 700;
    font-size: 8px;
}
.bets-table th.live-header .live-icon {
    width: 18px;
    height: 18px;
    color: #ff4444;
}
.bets-table td.live-cell {
    padding: 3px 2px;
    font-size: 7px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.15) 100%) !important;
}
.bets-table td.live-cell .live-time-text {
    font-size: 7px;
}
/* עמודת הקבוצות - עדיפות מקסימלית */
.bets-table th:nth-child(2) {
    min-width: 150px;
    width: auto;
    padding: 4px 3px;
    text-align: right;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    font-size: 7px;
}
.bets-table td {
    padding: 3px 2px;
    font-size: 8px;
    line-height: 1.1;
    box-sizing: border-box;
    overflow: hidden;
}
.bets-table td:nth-child(2) {
    padding: 4px 5px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    min-width: 150px;
    width: auto;
    max-width: 100%;
    overflow: visible;
}
/* צמצום עמודות ה-odds */
.bets-table th:nth-child(3),
.bets-table th:nth-child(4),
.bets-table th:nth-child(5) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    padding: 4px 3px;
    font-size: 7px;
    overflow: hidden;
    box-sizing: border-box;
}
.bets-table td:nth-child(3),
.bets-table td:nth-child(4),
.bets-table td:nth-child(5) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    padding: 4px 3px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}
.bet-odds-btn {
    font-size: 8px;
    padding: 2px 1px;
    min-width: 0;
    max-width: 100%;
    letter-spacing: 0;
}
/* עמודת הכוכב, מגרש וסטטיסטיקה - גודל מותאם */
.bets-table th.actions-header {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 5px 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
    background-color: rgba(255, 215, 0, 0.2);
    border-left: 1px solid rgba(255, 215, 0, 0.4);
    box-sizing: border-box;
    overflow: hidden;
}
.bets-table td.actions-cell {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 4px 2px;
    vertical-align: middle;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    box-sizing: border-box;
    overflow: hidden;
}
.bets-table th.actions-header {
    font-size: 7px;
}
.bets-table th.actions-header svg {
    width: 9px;
    height: 9px;
}
.stats-buttons {
    gap: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stats-btn,
.field-btn {
    width: 14px;
    height: 14px;
    padding: 2px;
    flex-shrink: 0;
}
.stats-btn svg,
.field-btn svg {
    width: 10px;
    height: 10px;
}
.bets-table td.actions-cell {
    padding: 2px 2px;
    vertical-align: middle;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
}
.bets-table th.date-header {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    padding: 4px 2px;
    background: linear-gradient(315deg, var(--green-dark) 0%, var(--green-light) 50%, var(--green-dark) 100%);
    border-radius: 0;
    border-top-right-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
}
.bets-table td.date-cell {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    padding: 2px 2px;
    vertical-align: middle;
    background: linear-gradient(315deg, var(--green-dark) 0%, var(--green-light) 50%, var(--green-dark) 100%);
    border-left: 2px solid var(--green-light);
    box-sizing: border-box;
    overflow: hidden;
}
.bets-table td.date-cell .date-title {
    font-size: 9px;
}
.bets-table thead tr:first-child th.actions-header {
    border-top-left-radius: 5px;
}
.bets-table thead tr:first-child th:nth-child(1) {
    border-top-right-radius: 5px;
}
.bets-table tbody tr:last-child td.actions-cell {
    border-bottom-left-radius: 5px;
}
.bets-table tbody tr:last-child td.live-cell {
    border-bottom-right-radius: 5px;
}
.bets-table td.live-cell {
    padding: 3px 1px;
    text-align: center;
    vertical-align: middle;
    font-size: 7px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.15) 100%) !important;
}
.bets-table td:nth-child(3),
.bets-table td:nth-child(3),
.bets-table td:nth-child(3),
.bets-table td:nth-child(4),
.bets-table td:nth-child(5) {
    padding: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
}
.stats-buttons {
    gap: 5px;
}
.stats-btn,
.field-btn {
    padding: 2px;
}
.stats-btn svg,
.field-btn svg,
.star-btn svg {
    width: 11px;
    height: 11px;
}
.match-teams {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.team-name {
    font-size: clamp(6px, 1.8vw, 9px);
    line-height: 1.2;
    gap: clamp(2px, 0.5vw, 4px);
    white-space: nowrap;
    overflow: visible;
    flex: 1;
    min-width: 0;
}
.match-teams .team-name:first-of-type {
    padding-right: 4px;
    flex-direction: row;
    direction: rtl;
    justify-content: flex-start;
}
.match-teams .team-name:last-of-type {
    padding-left: 4px;
    flex-direction: row-reverse;
    justify-content: flex-start;
}
.match-info {
    padding: 0 4px;
    min-width: 35px;
    gap: 1px;
}
.match-vs {
    font-size: clamp(8px, 1.8vw, 10px);
}
.team-logo {
    width: clamp(8px, 2.5vw, 14px);
    height: clamp(8px, 2.5vw, 14px);
    min-width: clamp(8px, 2.5vw, 14px);
    min-height: clamp(8px, 2.5vw, 14px);
    flex-shrink: 1;
}
.match-score {
    font-size: 8px;
    line-height: 1.1;
}

/* הסתרת התוצאה המרכזית בנייד */
#live-matches-container .bets-table td:nth-child(2) .match-teams .match-info .match-score {
    display: none !important;
}

/* UPCOMING/FINISHED: כמו לייב בנייד (שתי שורות + תוצאה ליד הקבוצה) */
#upcoming-matches-container .bets-table td:nth-child(3) .match-teams,
#finished-matches-container .bets-table td:nth-child(3) .match-teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    width: 100%;
    padding: 4px 0;
}

#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .match-info,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .match-info {
    display: none !important;
}

#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .team-name,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .team-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
    padding: 2px 4px 2px 30px; /* אותו padding לשתי שורות כמו LIVE */
    position: relative;
    white-space: nowrap;
    overflow: visible;
}

#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .team-name:first-of-type,
#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .team-name:last-of-type,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .team-name:first-of-type,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .team-name:last-of-type {
    flex-direction: row !important; /* למנוע row-reverse מהחוקים הכלליים */
    justify-content: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
    padding: 2px 4px 2px 30px !important; /* לנעול התחלה באותו קו */
}

#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .team-name .team-logo,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .team-name .team-logo {
    order: 0 !important; /* לוגו תמיד ראשון */
}

#upcoming-matches-container .bets-table td:nth-child(3) .match-teams .team-name .match-score-inline,
#finished-matches-container .bets-table td:nth-child(3) .match-teams .team-name .match-score-inline {
    min-width: 28px;
    width: 28px;
    text-align: left;
    direction: ltr;
    font-size: 8px;
    font-weight: 700;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
}
/* התאמות שורת מידע בנייד קטן */
.match-details-info {
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
}
.match-detail-item {
    font-size: clamp(8px, 1.4vw, 10px);
    gap: 4px;
}
.match-detail-item svg {
    width: 11px;
    height: 11px;
}
.bets-table td.match-details-cell {
    padding: 5px 6px;
}
/* התאמות למשחקים קרובים בנייד קטן */
/* עמודה 1: כוכב */
#upcoming-matches-container .bets-table th.live-header,
#upcoming-matches-container .bets-table td.live-cell {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 3px 2px !important;
}
/* עמודה 2: תאריך */
#upcoming-matches-container .bets-table th:nth-child(2),
#upcoming-matches-container .bets-table td.date-cell {
    min-width: 50px !important;
    max-width: 60px !important;
    padding: 3px 2px !important;
    font-size: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%) !important;
    border-left: none !important;
}
/* עמודה 3: ליגה/קבוצות - יותר מקום */
#upcoming-matches-container .bets-table th:nth-child(3),
#upcoming-matches-container .bets-table td:nth-child(3) {
    min-width: 140px !important;
    padding: 4px 3px !important;
}
/* עמודות 4, 5, 6: יחסים - קטן עוד יותר */
#upcoming-matches-container .bets-table th:nth-child(4),
#upcoming-matches-container .bets-table th:nth-child(5),
#upcoming-matches-container .bets-table th:nth-child(6),
#upcoming-matches-container .bets-table td:nth-child(4),
#upcoming-matches-container .bets-table td:nth-child(5),
#upcoming-matches-container .bets-table td:nth-child(6) {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 3px !important;
    position: relative !important;
    vertical-align: middle !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%) !important;
}
/* עמודה 7: פעולות */
#upcoming-matches-container .bets-table th.actions-header,
#upcoming-matches-container .bets-table td.actions-cell {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    padding: 3px 2px !important;
}
#upcoming-matches-container .match-date-upcoming {
    font-size: clamp(7px, 1.4vw, 9px);
}
/* התאמות למשחקים שהסתיימו בנייד קטן */
/* עמודה 2: תאריך */
#finished-matches-container .bets-table th:nth-child(2),
#finished-matches-container .bets-table td.date-cell {
    min-width: 65px !important;
    max-width: 80px !important;
    padding: 4px 3px !important;
    font-size: 9px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%) !important;
    border-left: none !important;
}
/* עמודה 4: סטטוס */
#finished-matches-container .bets-table th:nth-child(4),
#finished-matches-container .bets-table td.status-cell {
    min-width: 65px !important;
    max-width: 80px !important;
    padding: 4px 3px !important;
    font-size: 9px;
}
#finished-matches-container .match-date-finished {
    font-size: clamp(8px, 1.7vw, 10px);
}
#finished-matches-container .match-status-finished {
    font-size: clamp(8px, 1.7vw, 10px);
}
.team-score {
    color: #333333;
    font-size: 8px;
    font-weight: 700;
    min-width: 2px;
    padding: 4px 4px;
    line-height: 1.0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.5);
}
.match-info {
    gap: 1px;
}
.match-time {
    font-size: 6px;
    line-height: 1.2;
}
.match-score {
    font-size: 8px;
    line-height: 1.2;
}
.bet-odds-btn {
    font-size: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 2px 1px;
    letter-spacing: 0;
}
.site-footer {
    padding: 10px;
}
.footer-content {
    gap: 5px;
}
.footer-copyright {
    font-size: 9px;
}
.footer-link {
    font-size: 9px;
}
.footer-separator {
    font-size: 9px;
}

/* ============================================
   סינון כדורגל - התאמה לנייד 360px
   שורה 1: ימים | שורה 2: תאריך + ליגה + נקה
   ============================================ */
body[data-page="football"] .filters-chip {
    height: 32px;
    font-size: 11px;
    padding: 0 10px;
    flex: 1 0 0;
    min-width: 62px;
    max-width: 110px;
    border-radius: 0;
}
body[data-page="football"] .filters-chips {
    width: 100%;
    justify-content: center;
    gap: 8px;
}
body[data-page="football"] .filters-row1 .filters-chips {
    gap: 0;
    border-radius: 0;
}
body[data-page="football"] .filters-row2 {
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}
body[data-page="football"] .filters-row2 .filters-date-btn,
body[data-page="football"] .filters-row2 .league-dd-btn {
    height: 32px;
    font-size: 11px;
    border-radius: 0;
}
body[data-page="football"] .filters-row2 .clear-filters-btn-modern {
    width: auto !important;
    min-width: 58px;
    height: 32px;
    padding: 0 8px !important;
    border-radius: 0;
}

/* טיפוגרפיה אחידה לסינון בכדורגל (360px) */
body[data-page="football"] .upcoming-filters-modern {
    --filters-h: 32px;
    --filters-fs: 11px;
    --filters-icon: 12px;
}

/* סגנונות נוספים למשחקים קרובים והסתיימו בנייד 360px - שורות */
#upcoming-matches-container .bets-table tbody tr,
#finished-matches-container .bets-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#upcoming-matches-container .bets-table tbody tr:hover,
#finished-matches-container .bets-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

#upcoming-matches-container .bets-table tbody tr:last-child,
#finished-matches-container .bets-table tbody tr:last-child {
    border-bottom: none;
}

/* סגנונות נוספים למשחקים קרובים והסתיימו בנייד 360px - תאים */
#upcoming-matches-container .bets-table tbody td,
#finished-matches-container .bets-table tbody td {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#upcoming-matches-container .bets-table tbody td:last-child,
#finished-matches-container .bets-table tbody td:last-child {
    border-right: none;
}

/* border-radius לתאים האחרונים במשחקים קרובים והסתיימו בנייד 360px */
#upcoming-matches-container .bets-table tbody tr:last-child td.live-cell,
#finished-matches-container .bets-table tbody tr:last-child td.live-cell {
    border-bottom-right-radius: 8px;
}

#upcoming-matches-container .bets-table tbody tr:last-child td.actions-cell,
#finished-matches-container .bets-table tbody tr:last-child td.actions-cell {
    border-bottom-left-radius: 8px;
}

/* הקטנת כרטיסים בנייד 360px */
.card-red-icon,
.card-flash-icon.yellow {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
}

.card-yellow-count,
.card-red-count {
    font-size: 6px !important;
    padding: 0 1px !important;
    min-width: 8px !important;
    top: -4px !important;
    right: -3px !important;
    line-height: 1.1 !important;
}

.match-cards {
    gap: 1px !important;
    margin-right: 1px !important;
    margin-left: 0.5px !important;
}

/* ============================================
   התאמה לנייד - פרטי משחק 360px
   ============================================ */
.match-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.match-detail-header h2 {
    font-size: 14px;
}

.back-link {
    font-size: 9px;
    padding: 5px 10px;
    align-self: flex-end;
    gap: 4px;
}

.match-detail-league {
    padding: 8px 12px;
    gap: 6px;
    border-radius: 8px;
}

.league-logo-detail {
    width: 20px;
    height: 20px;
}

.league-name-detail {
    font-size: 11px;
}

.match-detail-teams {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 12px;
}

.team-detail {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.team-label {
    font-size: 8px;
    margin-bottom: 0;
}

.team-logo-detail {
    width: 35px;
    height: 35px;
}

.team-name-detail {
    font-size: 11px;
    max-width: 85px;
    text-align: center;
    word-wrap: break-word;
}

.match-score-wrapper {
    margin: 0;
    gap: 6px;
}

.match-score-detail {
    font-size: 24px;
    min-width: 75px;
    width: auto;
    padding: 6px 10px;
    letter-spacing: 1px;
    border-radius: 10px;
}

.elapsed-time-under-score {
    font-size: 12px;
    padding: 4px 8px;
    gap: 5px;
}

.live-dot {
    width: 6px;
    height: 6px;
}

.match-detail-info {
    padding: 12px 14px;
    border-radius: 10px;
}

.match-detail-info p {
    font-size: 10px;
    margin: 5px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.match-detail-info strong {
    min-width: auto;
    font-size: 10px;
}

/* התאמת קונטיינר ראשי */
.football-live-container {
    padding: 10px;
}

.football-live-container h1 {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 8px 0;
}

/* טאבים למשחק - 360px */
.match-tab-btn {
    padding: 3px 4px !important;
    font-size: 7px !important;
    gap: 2px !important;
    min-height: 24px !important;
}

.match-tab-content {
    padding: 3px 5px !important;
}

.match-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.match-info-item {
    padding: 8px;
}

.match-info-label {
    font-size: 9px;
}

.match-info-value {
    font-size: 12px;
}

/* התאמות לסטטיסטיקות, אירועים והרכבים בנייד 360px - קטן מאוד */
.match-stats-container {
    border-radius: 5px;
}

.stats-table-header {
    padding: 3px 4px !important;
    gap: 2px !important;
    margin-bottom: 1px !important;
}

.stats-team-logo {
    width: 12px !important;
    height: 12px !important;
}

.stats-team-name {
    font-size: 7px !important;
    line-height: 1.1 !important;
}

.stats-header-label {
    font-size: 6px !important;
}

.stats-table-row {
    padding: 2px 3px !important;
    gap: 1.5px !important;
}

.stats-label {
    font-size: 6px !important;
    line-height: 1.1 !important;
}

.stats-value {
    font-size: 7px !important;
    padding: 2px 2.5px !important;
    min-width: 25px !important;
}

/* אירועים - עיצוב חדש - 360px - קטן מאוד מאוד */
.match-detail-container .event-card {
    padding: 0 !important;
    margin-bottom: 2px !important;
    border-radius: 2px !important;
    min-height: auto !important;
}

.match-detail-container .event-info {
    padding: 2px 4px !important;
    gap: 1.5px !important;
}

.match-detail-container .event-header {
    gap: 1.5px !important;
    margin-bottom: 0 !important;
}

.match-detail-container .event-icon-badge {
    width: 12px !important;
    height: 12px !important;
    padding: 1px !important;
    border-radius: 2px !important;
    min-width: 12px !important;
    max-width: 12px !important;
}

.match-detail-container .event-icon {
    font-size: 6px !important;
    line-height: 1 !important;
}

.match-detail-container .event-type-name {
    font-size: 5px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.match-detail-container .event-details {
    gap: 1px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.match-detail-container .event-player-name,
.match-detail-container .event-assist-name {
    gap: 1.5px !important;
    font-size: 5px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.match-detail-container .event-player-icon,
.match-detail-container .event-assist-icon {
    font-size: 5px !important;
    width: 7px !important;
    height: 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.match-detail-container .event-player-text,
.match-detail-container .event-assist-text {
    font-size: 5px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.match-detail-container .event-detail-text {
    font-size: 4px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.match-detail-container .event-divider {
    width: 1px !important;
    margin: 0 !important;
}

.match-detail-container .event-time {
    min-width: 28px !important;
    max-width: 28px !important;
    width: 28px !important;
    padding: 2px 1px !important;
    flex-shrink: 0 !important;
}

.match-detail-container .event-time .event-minute {
    font-size: 6px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* כותרות קבוצות - 360px */
.match-events-timeline {
    gap: 2px !important;
    padding: 2px 0 !important;
}

.events-column-header {
    padding: 2px 4px !important;
    margin-bottom: 1px !important;
    gap: 3px !important;
}

.team-logo-small {
    width: 12px !important;
    height: 12px !important;
}

.team-name-small {
    font-size: 6px !important;
    line-height: 1.1 !important;
}

.events-list {
    gap: 1.5px !important;
}

.event-item {
    padding: 2px 3px !important;
    gap: 1.5px !important;
    overflow: visible !important;
}

/* אייקונים על הציר - 360px */
.match-detail-container .timeline-event-icon {
    width: 16px !important;
    height: 16px !important;
}

.match-detail-container .timeline-event-icon-inner {
    width: 14px !important;
    height: 14px !important;
    padding: 1.5px !important;
}

.match-detail-container .timeline-event-icon .timeline-event-icon-symbol {
    font-size: 7px !important;
}

.match-detail-container .timeline-marker-label {
    font-size: 6px !important;
    padding: 1px 1.5px !important;
}

.match-detail-container .timeline-vs-badge-header {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    font-size: 7px !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

/* סגנונות ישנים - שמירה לתאימות */
.event-time-badge {
    min-width: 22px !important;
    height: 22px !important;
    font-size: 6px !important;
}

.event-icon {
    font-size: 8px !important;
}

.event-type-badge {
    font-size: 6px !important;
    padding: 1px 3px !important;
}

.event-player {
    font-size: 7px !important;
    line-height: 1.1 !important;
}

.event-assist,
.event-detail {
    font-size: 6px !important;
    line-height: 1.1 !important;
}

.match-lineups-timeline {
    gap: 2px !important;
    padding: 2px 0 !important;
}

.lineups-column {
    gap: 2px !important;
}

.lineups-column-header {
    padding: 2px 4px !important;
    margin-bottom: 1px !important;
    gap: 3px !important;
}

.lineup-coach-info {
    padding: 0 1.5px !important;
    gap: 1.5px !important;
    margin-bottom: 2px !important;
}

.lineup-pill {
    font-size: 6px !important;
    padding: 1.5px 2.5px !important;
}

.lineup-section {
    padding: 3px !important;
    margin-bottom: 2px !important;
}

.lineup-section-title {
    font-size: 7px !important;
    margin-bottom: 1px !important;
    padding-bottom: 1px !important;
    line-height: 1.1 !important;
}

.lineup-players-list {
    padding-right: 2px !important;
}

.lineup-player-item {
    padding: 2px 2.5px !important;
    margin: 0.5px 0 !important;
    font-size: 7px !important;
    line-height: 1.1 !important;
}

.lineup-player-meta {
    font-size: 5px !important;
    line-height: 1.1 !important;
}

.lineup-player-name {
    font-size: 7px !important;
    line-height: 1.1 !important;
}

/* =========================================================
   football.php (360px) - איחוד גדלים/עמודות לכל הטאבים
   (Live/Upcoming/Finished) כדי שלא יהיה גדול/קטן שונה
   ========================================================= */
body[data-page="football"] {
    --bets-th-fs: 8px;
    --bets-td-fs: 8px;
    --bets-date-header-fs: 12px;
    --bets-date-sub-fs: 6px;
    --bets-status-fs: 8px;

    --col-star-w: 30px;
    --col-time-w: 30px;
    --col-date-w: 60px;
    --col-odds-w: 20px;
    --col-actions-w: 35px;
    --col-status-w: 60px;
}

body[data-page="football"] #live-matches-container .bets-table th,
body[data-page="football"] #upcoming-matches-container .bets-table th,
body[data-page="football"] #finished-matches-container .bets-table th {
    font-size: var(--bets-th-fs) !important;
}

body[data-page="football"] #live-matches-container .bets-table td,
body[data-page="football"] #upcoming-matches-container .bets-table td,
body[data-page="football"] #finished-matches-container .bets-table td {
    font-size: var(--bets-td-fs) !important;
}

body[data-page="football"] .date-header-title {
    font-size: var(--bets-date-header-fs) !important;
}

/* תאריך/שעה: אותו גודל בשני הטאבים */
body[data-page="football"] #upcoming-matches-container .match-date-upcoming .date-part,
body[data-page="football"] #upcoming-matches-container .match-date-upcoming .time-part,
body[data-page="football"] #finished-matches-container .match-date-finished .date-part,
body[data-page="football"] #finished-matches-container .match-date-finished .time-part {
    font-size: var(--bets-date-sub-fs) !important;
    line-height: 1.1 !important;
}

/* עמודות: רוחב אחיד */
body[data-page="football"] #live-matches-container .bets-table th.live-header,
body[data-page="football"] #live-matches-container .bets-table td.live-cell {
    width: var(--col-time-w) !important;
    min-width: var(--col-time-w) !important;
    max-width: var(--col-time-w) !important;
}

body[data-page="football"] #upcoming-matches-container .bets-table th.live-header,
body[data-page="football"] #upcoming-matches-container .bets-table td.live-cell,
body[data-page="football"] #finished-matches-container .bets-table th.live-header,
body[data-page="football"] #finished-matches-container .bets-table td.live-cell {
    width: var(--col-star-w) !important;
    min-width: var(--col-star-w) !important;
    max-width: var(--col-star-w) !important;
}

body[data-page="football"] #upcoming-matches-container .bets-table th:nth-child(2),
body[data-page="football"] #upcoming-matches-container .bets-table td.date-cell,
body[data-page="football"] #finished-matches-container .bets-table th:nth-child(2),
body[data-page="football"] #finished-matches-container .bets-table td.date-cell {
    width: var(--col-date-w) !important;
    min-width: var(--col-date-w) !important;
    max-width: var(--col-date-w) !important;
}

body[data-page="football"] #finished-matches-container .bets-table th:nth-child(4),
body[data-page="football"] #finished-matches-container .bets-table td.status-cell {
    width: var(--col-status-w) !important;
    min-width: var(--col-status-w) !important;
    max-width: var(--col-status-w) !important;
    font-size: var(--bets-status-fs) !important;
}

body[data-page="football"] #finished-matches-container .match-status-finished {
    font-size: var(--bets-status-fs) !important;
    line-height: 1.2 !important;
    white-space: pre-line !important; /* מאפשר \n לשבור שורה */
    word-break: break-word !important;
}

body[data-page="football"] #upcoming-matches-container .bets-table th.actions-header,
body[data-page="football"] #upcoming-matches-container .bets-table td.actions-cell,
body[data-page="football"] #finished-matches-container .bets-table th.actions-header,
body[data-page="football"] #finished-matches-container .bets-table td.actions-cell,
body[data-page="football"] #live-matches-container .bets-table th.actions-header,
body[data-page="football"] #live-matches-container .bets-table td.actions-cell {
    width: var(--col-actions-w) !important;
    min-width: var(--col-actions-w) !important;
    max-width: var(--col-actions-w) !important;
}