/* Past matches (soccer365-like): date filter + left tree */
.past-datebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.past-datebar .date-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.past-datebar .date-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.past-datebar input[type="date"] {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 33, 0.55);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 8px 10px;
}

.past-layout {
    display: flex;
    gap: 14px;
    min-height: 520px;
}

.past-sidebar {
    width: 340px;
    max-width: 42vw;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    overflow: auto;
    max-height: 72vh;
}

.past-main {
    flex: 1;
    min-width: 0;
}

.past-tree details {
    border-radius: 12px;
}

.past-tree summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.past-tree summary::-webkit-details-marker {
    display: none;
}

.past-tree summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.past-tree .tree-flag {
    font-size: 18px;
}

.past-tree .tree-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.past-tree .tree-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.past-tree .tree-children {
    padding: 2px 0 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.past-tree .league-summary {
    padding: 8px 10px;
    border-left: 3px solid #667eea;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.past-tree .match-leaf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.past-tree .match-leaf:hover {
    background: rgba(255, 255, 255, 0.04);
}

.past-tree .leaf-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    min-width: 42px;
    font-variant-numeric: tabular-nums;
}

.past-tree .leaf-teams {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.past-tree .leaf-score {
    font-size: 13px;
    font-weight: 700;
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.past-main .past-title {
    margin: 0 0 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.past-main .past-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

