   .result-block {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    position: relative;
    font-size: 13px;
    flex-shrink: 0;
}

.result-block:hover::after {
    content: attr(data-hover);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
}

.win { background-color: green; }
.loss { background-color: red; }
.draw { background-color: yellow; color: black; }

.result-container {
    display: flex;
}

.team-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ðŸ”’ Prevent wrap */
}

.team-name {
    font-weight: bold;
    flex: 1 1 auto;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-right {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.time-cell {
    text-align: center;
    font-size: 11px;
    white-space: nowrap;
}

.small-screen {
    display: none;
}

.favorite-icon {
    font-size: 14px;
    color: gray;
    cursor: pointer;
    margin-left: 5px;
}

.favorite-icon.active {
    color: gold;
}


/* 🔘 Toggle Button (fixed on right edge) */
#league-toggle {
  position: fixed;
  top: 40%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(26, 115, 232, 0.4); /* 40% visible */
  color: #fff;
  font-size: 20px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.2s;
}
#league-toggle:hover {
  background: rgba(21, 90, 182, 0.6);
}
#league-toggle:active { transform: scale(0.95); }


/* When sidebar is open, push toggle left */
#league-toggle.shifted {
  right: 380px; /* same as sidebar width */
}

/* 📊 Sidebar */
#league-sidebar {
  position: fixed;
  top: 15%;
  right: -380px; /* hidden initially */
  width: 310px;
  height: 85%;
  background: #f7ebeb;
  transition: right 0.3s ease;
  z-index: 1999;
  overflow-y: auto;
  }

/* 📌 When open */
#league-sidebar.open {
  right: 0;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
  gap: 5px;
}
.sidebar-header select {
  flex-grow: 1;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.sidebar-header button {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.widget-wrapper {
  position: relative;
  margin-top: 10px;
}

/* This overlay blocks clicks ONLY on table part */
.iframe-overlay {
  position: absolute;
  top: 50px;       /* allow top 50px clickable (tabs) */
  left: 0;
  width: 100%;
  height: calc(100% - 50px); /* block below */
  background: transparent;
  z-index: 2;
}


/* âœ… Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .result-block {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }

    .small-screen {
        display: inline;
    }

    .time {
        font-size: 9px;
        line-height: 1.2;
    }

    .team-name {
        font-size: 11px;
    }

    .favorite-icon {
        font-size: 12px;
    }

    .result-container {
        gap: 3px;
    }

    .results-right {
        gap: 3px;
    }

    .team-results {
        overflow-x: auto;
    }
}

.tips-day-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 16px;
    flex-wrap: wrap;
}

.tips-day-tab {
    padding: 10px 22px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #1b891b;
    border-radius: 6px;
    background: #fff;
    color: #1b891b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tips-day-tab:hover {
    background: #f0fff0;
}

.tips-day-tab.is-active {
    background: #1b891b;
    color: #fff;
}

.tips-day-panel {
    display: none;
}

.tips-day-panel.is-active {
    display: block;
}


/* Predict table: per-match stripes (not league blocks) */
.predict-matches-table tbody tr:nth-child(even){
    background-color:transparent;
}

.predict-matches-table tbody tr.match-stripe-even > td{
    background-color:#ffffff;
}

.predict-matches-table tbody tr.match-stripe-odd > td{
    background-color:#e8ece9;
}

.predict-matches-table tbody tr.flag-header > th{
    background-color:#48545d;
}

.predict-matches-table tbody tr.match-row{
    cursor:pointer;
}

.predict-matches-table tbody tr.match-row:hover > td,
.predict-matches-table tbody tr.match-row.is-expanded > td{
    background-color:#e3f5eb !important;
}

.predict-matches-table .time-cell{
    vertical-align:middle;
}

.match-teams-cell{
    position:relative;
}

.match-row-chevron-wrap{
    position:absolute;
    left:40%;
    bottom:1px;
    transform:translateX(-50%);
    display:block;
    margin-top:0;
    line-height:1;
}

.match-row-chevron{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:14px;
    color:#1b891b;
    font-size:11px;
    line-height:14px;
    font-weight:bold;
    pointer-events:none;
    transition:transform 0.2s ease, color 0.2s ease;
}

.match-row-chevron::before{
    content:'▸';
    display:block;
}

.match-row.is-expanded .match-row-chevron{
    transform:rotate(90deg);
    color:#0d6b3a;
}

.match-extra-row{
    display:none;
}

.match-extra-row.is-open{
    display:table-row;
}

.match-extra-row.match-stripe-even > td{
    background-color:#f7faf8;
}

.match-extra-row.match-stripe-odd > td{
    background-color:#eef2ef;
}

.match-extra-content{
    padding:8px 10px;
    color:#2a3430;
}

.match-center-bar{
    margin-bottom:6px;
}

.match-toggle-btn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    gap:8px;
    background:#eef8f2;
    color:#1b6b42;
    border:1px solid #b8dcc8;
    border-radius:6px;
    padding:5px 10px;
    cursor:pointer;
    font-size:11px;
    font-weight:600;
    transition:background 0.2s, border-color 0.2s;
}

.match-toggle-btn:hover,
.match-toggle-btn.is-open{
    background:#dff3e8;
    border-color:#7fc49a;
}

.match-toggle-label-short{
    display:none;
}

.match-toggle-chevron{
    font-size:10px;
    color:#1b891b;
    transition:transform 0.2s ease;
}

.match-toggle-btn.is-open .match-toggle-chevron{
    transform:rotate(180deg);
}

.match-expand-content{
    display:none;
}

.match-expand-content.is-open{
    display:block;
}

.odds-boxes{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
    margin-bottom:8px;
}

.odds-card{
    background:#ffffff;
    border-radius:6px;
    padding:5px 4px;
    text-align:center;
    border:1px solid #d4e5dc;
}

.odds-card-title{
    font-size:10px;
    color:#5a6b62;
    margin-bottom:2px;
    line-height:1.2;
}

.odds-card-value{
    font-size:13px;
    color:#1b891b;
    font-weight:700;
}

.comments-section{
    margin-top:6px;
    padding-top:6px;
    border-top:1px solid #d4e5dc;
}

.comments-section-title{
    font-size:11px;
    font-weight:700;
    color:#1b6b42;
    margin-bottom:4px;
}

.comments-empty,
.comments-placeholder{
    color:#6b7a72;
    font-size:11px;
    text-align:center;
    padding:6px 4px;
}

.comments-wrapper{
    background:#ffffff;
    border:1px solid #d4e5dc;
    border-radius:6px;
    padding:6px;
    max-height:140px;
    overflow-y:auto;
}

.comment-item{
    background:#f4faf6;
    border-left:2px solid #32c787;
    padding:5px 6px;
    border-radius:4px;
    margin-bottom:5px;
    animation:fadeIn 0.25s ease;
}

.comment-item:last-child{
    margin-bottom:0;
}

.comment-user{
    color:#1b6b42;
    font-weight:600;
    font-size:11px;
    margin-bottom:2px;
}

.comment-text{
    color:#2a3430;
    font-size:12px;
    line-height:1.35;
    word-break:break-word;
}

.comment-time{
    color:#7a8a82;
    font-size:10px;
    margin-top:2px;
}

.comment-form{
    display:flex;
    gap:6px;
    margin-top:6px;
    align-items:center;
}

.comment-input{
    flex:1;
    min-width:0;
    background:#fff;
    border:1px solid #c5d9ce;
    border-radius:5px;
    color:#2a3430;
    padding:6px 8px;
    resize:none;
    height:32px;
    font-size:12px;
    line-height:1.3;
}

.comment-input::placeholder{
    color:#8a9a92;
}

.send-comment-btn{
    flex-shrink:0;
    background:#32c787;
    color:#fff;
    border:none;
    border-radius:5px;
    padding:0 10px;
    height:32px;
    cursor:pointer;
    font-weight:600;
    font-size:11px;
}

.send-comment-btn:hover{
    background:#2ab078;
}

.send-comment-btn:disabled{
    opacity:0.65;
    cursor:not-allowed;
}

@media screen and (max-width: 600px){
    .predict-matches-table .time-cell{
        padding-left:4px !important;
        padding-right:4px !important;
    }

    .match-row-chevron{
        font-size:10px;
    }

    .match-extra-content{
        padding:6px 8px;
    }

    .match-toggle-label-full{
        display:none;
    }

    .match-toggle-label-short{
        display:inline;
    }

    .match-toggle-btn{
        padding:4px 8px;
        font-size:10px;
    }

    .odds-boxes{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:4px;
    }

    .odds-card{
        padding:4px 2px;
    }

    .odds-card-title{
        font-size:9px;
    }

    .odds-card-value{
        font-size:12px;
    }

    .comments-wrapper{
        max-height:110px;
        padding:4px;
    }

    .comment-text{
        font-size:11px;
    }

    .comment-form{
        flex-direction:column;
        align-items:stretch;
    }

    .comment-input,
    .send-comment-btn{
        width:100%;
        height:30px;
    }

    .send-comment-btn{
        padding:0;
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Incremental match loading */
.predict-loader { text-align: center; padding: 18px 10px; }
.predict-loader[hidden] { display: none; }
.predict-load-status { display: block; margin-bottom: 8px; font-size: 14px; }
.predict-load-more { padding: 10px 18px; border: 1px solid #3a6ea5; border-radius: 6px; background: #3a6ea5; color: #fff; cursor: pointer; }
.predict-load-more:disabled { opacity: .6; cursor: wait; }
