/* ============================================================
   ONEFOOTBALL-STYLE — Teams untereinander, nach Datum gruppiert
   Einheitliches Layout für Mobile UND Desktop
   ============================================================ */


/* --- Datums-Header --- */
.date-header {
    background: var(--color-header-cyan, #1a7f7f);
    color: #fff;
    padding: 10px 16px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.date-header .day-date {
    font-size: 0.8rem;
    color: #fff;
}

/* --- Gruppen-Label (GRUPPE A) --- */
.group-label {
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}


/* --- Match-Block (ein WM-Spiel) --- */
.match-block {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background 0.15s;
    max-width: 700px;
}
.match-block:hover {
    background: #f8f8f8;
}
.match-block.is-played {
    opacity: 0.7;
}
.match-block.is-turnier {
    border-left: 3px solid #ff6600;
}

/* Teams-Spalte (links) */
.match-block .teams-col {
    flex: 1;
    min-width: 0;
}
.match-block .team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}
.match-block .team-row .flag {
    width: 22px;
    height: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
}
.match-block .team-row .team-name {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-block .team-row .team-score {
    font-weight: 900;
    font-size: 0.95rem;
    margin-left: auto;
    min-width: 16px;
    text-align: right;
}

/* Info-Spalte (Uhrzeit / Status) */
.match-block .info-col {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    border-left: 1px solid #eee;
    padding-left: 10px;
    margin-left: 8px;
}
.match-block .info-col .match-time {
    font-size: 0.8rem;
    font-weight: 700;
}
.match-block .info-col .match-status {
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
}
.match-block .info-col .match-status.finished {
    color: #28a745;
}

/* --- Prognose-Spalte (Eingabefelder oder Anzeige) --- */
.match-block .bet-col {
    width: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border-left: 1px solid #eee;
    padding-left: 8px;
    margin-left: 6px;
}
.bet-col input[type="number"] {
    width: 34px;
    height: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    -moz-appearance: textfield;
    padding: 0;
}
.bet-col input[type="number"]::-webkit-outer-spin-button,
.bet-col input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.bet-col input[type="number"]:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,102,0,0.2);
}
.bet-col input[type="number"]:disabled {
    background: #f0f0f0;
    color: #999;
}
.bet-col .bet-label {
    font-size: 0.55rem;
    color: #bbb;
    text-transform: uppercase;
}
.bet-col .bet-display {
    font-weight: 700;
    font-size: 0.85rem;
}
.bet-col .bet-missed {
    color: #dc3545;
    font-size: 0.8rem;
}

/* --- Usergoals Badge --- */
.goals-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}
.goals-0 { background: #f0f0f0; color: #999; }
.goals-1 { background: #fff3cd; color: #856404; }
.goals-2 { background: #d4edda; color: #155724; }
.goals-3 { background: #ff6600; color: #fff; }

/* --- Stats-Link --- */
.match-block .stats-col {
    width: 30px;
    flex-shrink: 0;
    text-align: center;
}
.match-block .stats-col a {
    font-size: 0.85rem;
    text-decoration: none;
}

/* --- Deadline-Anzeige --- */
.deadline-text {
    font-size: 0.8rem;
    color: #ff6600;
    text-align: center;
    margin-top: 2px;
}

/* ============================================================
   DUELL-STYLE (mygames)
   ============================================================ */

/* Duell-Header */
.duel-header {
    background: var(--color-header-cyan, #1a7f7f);
    color: #fff;
    padding: 10px 16px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.duel-header .round-label {
    font-size: 0.7rem;
    color: #fff;
}
.duel-header .opponent-name {
    font-size: 0.9rem;
}
.duel-header .duel-score {
    font-weight: 900;
    font-size: 1.1rem;
}

/* Tip-Header Zeile (Я / Соп. / Рез.) */
.tip-header-row {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    background: #f0f0f0;
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
    max-width: 700px;
}
.tip-header-row .teams-spacer { flex: 1; }
.tip-header-row .tip-h {
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* Duell-Match */
.duel-match {
    display: flex;
    align-items: stretch;
    padding: 6px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    max-width: 700px;
}
.duel-match .teams-col {
    flex: 1;
    min-width: 0;
}
.duel-match .team-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
}
.duel-match .team-row .flag {
    width: 20px;
    height: 14px;
    border: 1px solid #ddd;
    border-radius: 1px;
    flex-shrink: 0;
    object-fit: cover;
}
.duel-match .team-row .team-name {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tip-Spalte (Mein Tipp / Gegner / Ergebnis) */
.tip-col {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border-left: 1px solid #eee;
    padding-left: 4px;
}
.tip-col.my-tip { color: #ff6600; }
.tip-col.opp-tip { color: #0d6efd; }
.tip-col.result { color: #333; }

/* Duell-Footer */
.duel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f8f8f8;
    border-bottom: 2px solid #ddd;
    font-size: 0.8rem;
    max-width: 700px;
}
.duel-footer .duel-result {
    font-weight: 900;
    font-size: 1rem;
}
.duel-footer .duel-result.win { color: #28a745; }
.duel-footer .duel-result.loss { color: #dc3545; }
.duel-footer .duel-result.draw { color: #ffc107; }

/* --- Sticky Save Bar (mybets / allwmgames) --- */
.sticky-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
.sticky-save-bar .btn {
    background: #ff6600;
    border: none;
    color: #fff;
    font-weight: 700;
}

/* Container-Zentrierung auf Desktop */
.matches-container {
    max-width: 700px;
    margin: 0 auto;
}




/* Deadline innerhalb der teams-col (mygames) */
.deadline-inline {
    font-size: 0.7rem;
    color: #ff6600;
    margin-top: 2px;
    text-align: left;
}
